Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev --> Master #2142

Merged
merged 22 commits into from
Dec 21, 2016
Merged

Dev --> Master #2142

merged 22 commits into from
Dec 21, 2016

Conversation

coreycaitlin
Copy link

CircleCI

馃槑 PREVIEW

Changes proposed in this pull request:

/cc @gemfarmer @elainekamlley

module SiteData
class AuthorData
def initialize
@path = File.join(Dir.pwd, "_authors")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer single-quoted strings when you don't need string interpolation or special symbols.

if x.data['name'].nil?
puts "No such author: #{input} in #{x}"
else
x.data['name'].downcase == input.downcase

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use casecmp instead of downcase ==.

@ghost
Copy link

ghost commented Dec 20, 2016

I found 4 accessibility errors:

'http://localhost:4000/ | critical | Links must have discernible text | ["html > .page-home > header > .site-navbar.usa-grid > .site-logo.media_link"]'
'http://localhost:4000/2014/05/29/announcing-the-developer-program-a-new-hub-for/ | serious | <html> element must have a valid lang attribute | ["html"]'
'http://localhost:4000/2014/12/23/hub/ | serious | <html> element must have a valid lang attribute | ["html"]'
'http://localhost:4000/2016/10/28/california-takes-new-approach-procurement/ | critical | Frames must have unique title attribute | ["#main-content > div > .post > .post-content > iframe"]'

@path = File.join(Dir.pwd, '_authors')
end

def update(author_file, key, value)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment Branch Condition size for update is too high. [16.28/15]
Method has too many lines. [14/10]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The alternative was also problematic !

@ghost
Copy link

ghost commented Dec 20, 2016

I found 3 accessibility errors:

'http://localhost:4000/ | critical | Links must have discernible text | ["html > .page-home > header > .site-navbar.usa-grid > .site-logo.media_link"]'
'http://localhost:4000/2014/05/29/announcing-the-developer-program-a-new-hub-for/ | serious | <html> element must have a valid lang attribute | ["html"]'
'http://localhost:4000/2014/12/23/hub/ | serious | <html> element must have a valid lang attribute | ["html"]'

@gemfarmer
Copy link
Contributor

One small change and then this should be good to ship! Making a PR now

@gemfarmer
Copy link
Contributor

Actually, nevermind @coreycaitlin. I was looking at the wrong branch. This looks good to go!

@gemfarmer gemfarmer merged commit 3fbafb4 into master Dec 21, 2016
@gemfarmer gemfarmer added this to the Sprint-AnxiousArchipelago milestone Dec 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants