GitHub PullRequestReviewCommentEvent at 2014-12-07 21:23:50
Repository: flashcards
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/mfoxtrot/flashcards/pulls/comments/21428387","id":21428387,"diff_hunk":"@@ -0,0 +1,166 @@\n+# Use this setup block to configure all options available in SimpleForm.\n+SimpleForm.setup do |config|\n+  # Wrappers are used by the form builder to generate a\n+  # complete input. You can remove any component from the\n+  # wrapper, change the order or even add your own to the\n+  # stack. The options given below are used to wrap the\n+  # whole input.\n+  config.wrappers :default, class: :input,\n+    hint_class: :field_with_hint, error_class: :field_with_errors do |b|\n+    ## Extensions enabled by default\n+    # Any of these extensions can be disabled for a\n+    # given input by passing: `f.input EXTENSION_NAME => false`.\n+    # You can make any of these extensions optional by\n+    # renaming `b.use` to `b.optional`.\n+\n+    # Determines whether to use HTML5 (:email, :url, ...)\n+    # and required attributes\n+    b.use :html5\n+\n+    # Calculates placeholders automatically from I18n\n+    # You can also pass a string as f.input placeholder: \"Placeholder\"\n+    b.use :placeholder\n+\n+    ## Optional extensions\n+    # They are disabled unless you pass `f.input EXTENSION_NAME => true`\n+    # to the input. If so, they will retrieve the values from the model\n+    # if any exists. If you want to enable any of those\n+    # extensions by default, you can change `b.optional` to `b.use`.\n+\n+    # Calculates maxlength from length validations for string inputs\n+    b.optional :maxlength\n+\n+    # Calculates pattern from format validations for string inputs\n+    b.optional :pattern\n+\n+    # Calculates min and max from length validations for numeric inputs\n+    b.optional :min_max\n+\n+    # Calculates readonly automatically from readonly attributes\n+    b.optional :readonly\n+\n+    ## Inputs\n+    b.use :label_input\n+    b.use :hint,  wrap_with: { tag: :span, class: :hint }\n+    b.use :error, wrap_with: { tag: :span, class: :error }\n+\n+    ## full_messages_for\n+    # If you want to display the full error message for the attribute, you can\n+    # use the component :full_error, like:\n+    #\n+    # b.use :full_error, wrap_with: { tag: :span, class: :error }\n+  end\n+\n+  # The default wrapper to be used by the FormBuilder.\n+  config.default_wrapper = :default\n+\n+  # Define the way to render check boxes / radio buttons with labels.\n+  # Defaults to :nested for bootstrap config.\n+  #   inline: input + label\n+  #   nested: label > input\n+  config.boolean_style = :nested\n+\n+  # Default class for buttons\n+  config.button_class = 'btn'\n+\n+  # Method used to tidy up errors. Specify any Rails Array method.\n+  # :first lists the first message for each field.\n+  # Use :to_sentence to list all errors for each field.\n+  # config.error_method = :first\n+\n+  # Default tag used for error notification helper.\n+  config.error_notification_tag = :div\n+\n+  # CSS class to add for error notification helper.\n+  config.error_notification_class = 'error_notification'\n+\n+  # ID to add for error notification helper.\n+  # config.error_notification_id = nil\n+\n+  # Series of attempts to detect a default label method for collection.\n+  # config.collection_label_methods = [ :to_label, :name, :title, :to_s ]\n+\n+  # Series of attempts to detect a default value method for collection.\n+  # config.collection_value_methods = [ :id, :to_s ]\n+\n+  # You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.\n+  # config.collection_wrapper_tag = nil\n+\n+  # You can define the class to use on all collection wrappers. Defaulting to none.\n+  # config.collection_wrapper_class = nil\n+\n+  # You can wrap each item in a collection of radio/check boxes with a tag,\n+  # defaulting to :span. Please note that when using :boolean_style = :nested,\n+  # SimpleForm will force this option to be a label.\n+  # config.item_wrapper_tag = :span\n+\n+  # You can define a class to use in all item wrappers. Defaulting to none.\n+  # config.item_wrapper_class = nil\n+\n+  # How the label text should be generated altogether with the required text.\n+  # config.label_text = lambda { |label, required, explicit_label| \"#{required} #{label}\" }\n+\n+  # You can define the class to use on all labels. Default is nil.\n+  # config.label_class = nil\n+\n+  # You can define the default class to be used on forms. Can be overriden\n+  # with `html: { :class }`. Defaulting to none.\n+  # config.default_form_class = nil\n+\n+  # You can define which elements should obtain additional classes\n+  # config.generate_additional_classes_for = [:wrapper, :label, :input]\n+\n+  # Whether attributes are required by default (or not). Default is true.\n+  # config.required_by_default = true\n+\n+  # Tell browsers whether to use the native HTML5 validations (novalidate form option).","path":"config/initializers/simple_form.rb","position":116,"original_position":116,"commit_id":"b6747a4f7e2c602ce243126f297896d64b676222","original_commit_id":"b6747a4f7e2c602ce243126f297896d64b676222","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [87/80]","created_at":"2014-12-07T21:23:50Z","updated_at":"2014-12-07T21:23:50Z","html_url":"https://github.com/mfoxtrot/flashcards/pull/4#discussion_r21428387","pull_request_url":"https://api.github.com/repos/mfoxtrot/flashcards/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/mfoxtrot/flashcards/pulls/comments/21428387"},"html":{"href":"https://github.com/mfoxtrot/flashcards/pull/4#discussion_r21428387"},"pull_request":{"href":"https://api.github.com/repos/mfoxtrot/flashcards/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/mfoxtrot/flashcards/pulls/4","id":25624236,"html_url":"https://github.com/mfoxtrot/flashcards/pull/4","diff_url":"https://github.com/mfoxtrot/flashcards/pull/4.diff","patch_url":"https://github.com/mfoxtrot/flashcards/pull/4.patch","issue_url":"https://api.github.com/repos/mfoxtrot/flashcards/issues/4","number":4,"state":"open","locked":false,"title":"Remove space in route.rb","user":{"login":"mfoxtrot","id":5728951,"avatar_url":"https://avatars.githubusercontent.com/u/5728951?v=3","gravatar_id":"","url":"https://api.github.com/users/mfoxtrot","html_url":"https://github.com/mfoxtrot","followers_url":"https://api.github.com/users/mfoxtrot/followers","following_url":"https://api.github.com/users/mfoxtrot/following{/other_user}","gists_url":"https://api.github.com/users/mfoxtrot/gists{/gist_id}","starred_url":"https://api.github.com/users/mfoxtrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfoxtrot/subscriptions","organizations_url":"https://api.github.com/users/mfoxtrot/orgs","repos_url":"https://api.github.com/users/mfoxtrot/repos","events_url":"https://api.github.com/users/mfoxtrot/events{/privacy}","received_events_url":"https://api.github.com/users/mfoxtrot/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-12-06T21:45:44Z","updated_at":"2014-12-07T21:23:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"caa6a3a1ff2022d3dfafe98905cf720727e28182","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mfoxtrot/flashcards/pulls/4/commits","review_comments_url":"https://api.github.com/repos/mfoxtrot/flashcards/pulls/4/comments","review_comment_url":"https://api.github.com/repos/mfoxtrot/flashcards/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mfoxtrot/flashcards/issues/4/comments","statuses_url":"https://api.github.com/repos/mfoxtrot/flashcards/statuses/b6747a4f7e2c602ce243126f297896d64b676222","head":{"label":"mfoxtrot:Lesson_3","ref":"Lesson_3","sha":"b6747a4f7e2c602ce243126f297896d64b676222","user":{"login":"mfoxtrot","id":5728951,"avatar_url":"https://avatars.githubusercontent.com/u/5728951?v=3","gravatar_id":"","url":"https://api.github.com/users/mfoxtrot","html_url":"https://github.com/mfoxtrot","followers_url":"https://api.github.com/users/mfoxtrot/followers","following_url":"https://api.github.com/users/mfoxtrot/following{/other_user}","gists_url":"https://api.github.com/users/mfoxtrot/gists{/gist_id}","starred_url":"https://api.github.com/users/mfoxtrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfoxtrot/subscriptions","organizations_url":"https://api.github.com/users/mfoxtrot/orgs","repos_url":"https://api.github.com/users/mfoxtrot/repos","events_url":"https://api.github.com/users/mfoxtrot/events{/privacy}","received_events_url":"https://api.github.com/users/mfoxtrot/received_events","type":"User","site_admin":false},"repo":{"id":27487035,"name":"flashcards","full_name":"mfoxtrot/flashcards","owner":{"login":"mfoxtrot","id":5728951,"avatar_url":"https://avatars.githubusercontent.com/u/5728951?v=3","gravatar_id":"","url":"https://api.github.com/users/mfoxtrot","html_url":"https://github.com/mfoxtrot","followers_url":"https://api.github.com/users/mfoxtrot/followers","following_url":"https://api.github.com/users/mfoxtrot/following{/other_user}","gists_url":"https://api.github.com/users/mfoxtrot/gists{/gist_id}","starred_url":"https://api.github.com/users/mfoxtrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfoxtrot/subscriptions","organizations_url":"https://api.github.com/users/mfoxtrot/orgs","repos_url":"https://api.github.com/users/mfoxtrot/repos","events_url":"https://api.github.com/users/mfoxtrot/events{/privacy}","received_events_url":"https://api.github.com/users/mfoxtrot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mfoxtrot/flashcards","description":"Mkdev.me education project","fork":false,"url":"https://api.github.com/repos/mfoxtrot/flashcards","forks_url":"https://api.github.com/repos/mfoxtrot/flashcards/forks","keys_url":"https://api.github.com/repos/mfoxtrot/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mfoxtrot/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mfoxtrot/flashcards/teams","hooks_url":"https://api.github.com/repos/mfoxtrot/flashcards/hooks","issue_events_url":"https://api.github.com/repos/mfoxtrot/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/mfoxtrot/flashcards/events","assignees_url":"https://api.github.com/repos/mfoxtrot/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/mfoxtrot/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/mfoxtrot/flashcards/tags","blobs_url":"https://api.github.com/repos/mfoxtrot/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mfoxtrot/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mfoxtrot/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/mfoxtrot/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mfoxtrot/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/mfoxtrot/flashcards/languages","stargazers_url":"https://api.github.com/repos/mfoxtrot/flashcards/stargazers","contributors_url":"https://api.github.com/repos/mfoxtrot/flashcards/contributors","subscribers_url":"https://api.github.com/repos/mfoxtrot/flashcards/subscribers","subscription_url":"https://api.github.com/repos/mfoxtrot/flashcards/subscription","commits_url":"https://api.github.com/repos/mfoxtrot/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/mfoxtrot/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/mfoxtrot/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/mfoxtrot/flashcards/issues/comments/{number}","contents_url":"https://api.github.com/repos/mfoxtrot/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/mfoxtrot/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mfoxtrot/flashcards/merges","archive_url":"https://api.github.com/repos/mfoxtrot/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mfoxtrot/flashcards/downloads","issues_url":"https://api.github.com/repos/mfoxtrot/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/mfoxtrot/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/mfoxtrot/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/mfoxtrot/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mfoxtrot/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/mfoxtrot/flashcards/releases{/id}","created_at":"2014-12-03T12:54:16Z","updated_at":"2014-12-06T21:32:59Z","pushed_at":"2014-12-07T21:23:47Z","git_url":"git://github.com/mfoxtrot/flashcards.git","ssh_url":"git@github.com:mfoxtrot/flashcards.git","clone_url":"https://github.com/mfoxtrot/flashcards.git","svn_url":"https://github.com/mfoxtrot/flashcards","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mfoxtrot:master","ref":"master","sha":"8327afd021c48abe2c27b5daee5aa4c9a84e1507","user":{"login":"mfoxtrot","id":5728951,"avatar_url":"https://avatars.githubusercontent.com/u/5728951?v=3","gravatar_id":"","url":"https://api.github.com/users/mfoxtrot","html_url":"https://github.com/mfoxtrot","followers_url":"https://api.github.com/users/mfoxtrot/followers","following_url":"https://api.github.com/users/mfoxtrot/following{/other_user}","gists_url":"https://api.github.com/users/mfoxtrot/gists{/gist_id}","starred_url":"https://api.github.com/users/mfoxtrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfoxtrot/subscriptions","organizations_url":"https://api.github.com/users/mfoxtrot/orgs","repos_url":"https://api.github.com/users/mfoxtrot/repos","events_url":"https://api.github.com/users/mfoxtrot/events{/privacy}","received_events_url":"https://api.github.com/users/mfoxtrot/received_events","type":"User","site_admin":false},"repo":{"id":27487035,"name":"flashcards","full_name":"mfoxtrot/flashcards","owner":{"login":"mfoxtrot","id":5728951,"avatar_url":"https://avatars.githubusercontent.com/u/5728951?v=3","gravatar_id":"","url":"https://api.github.com/users/mfoxtrot","html_url":"https://github.com/mfoxtrot","followers_url":"https://api.github.com/users/mfoxtrot/followers","following_url":"https://api.github.com/users/mfoxtrot/following{/other_user}","gists_url":"https://api.github.com/users/mfoxtrot/gists{/gist_id}","starred_url":"https://api.github.com/users/mfoxtrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfoxtrot/subscriptions","organizations_url":"https://api.github.com/users/mfoxtrot/orgs","repos_url":"https://api.github.com/users/mfoxtrot/repos","events_url":"https://api.github.com/users/mfoxtrot/events{/privacy}","received_events_url":"https://api.github.com/users/mfoxtrot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mfoxtrot/flashcards","description":"Mkdev.me education project","fork":false,"url":"https://api.github.com/repos/mfoxtrot/flashcards","forks_url":"https://api.github.com/repos/mfoxtrot/flashcards/forks","keys_url":"https://api.github.com/repos/mfoxtrot/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mfoxtrot/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mfoxtrot/flashcards/teams","hooks_url":"https://api.github.com/repos/mfoxtrot/flashcards/hooks","issue_events_url":"https://api.github.com/repos/mfoxtrot/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/mfoxtrot/flashcards/events","assignees_url":"https://api.github.com/repos/mfoxtrot/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/mfoxtrot/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/mfoxtrot/flashcards/tags","blobs_url":"https://api.github.com/repos/mfoxtrot/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mfoxtrot/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mfoxtrot/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/mfoxtrot/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mfoxtrot/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/mfoxtrot/flashcards/languages","stargazers_url":"https://api.github.com/repos/mfoxtrot/flashcards/stargazers","contributors_url":"https://api.github.com/repos/mfoxtrot/flashcards/contributors","subscribers_url":"https://api.github.com/repos/mfoxtrot/flashcards/subscribers","subscription_url":"https://api.github.com/repos/mfoxtrot/flashcards/subscription","commits_url":"https://api.github.com/repos/mfoxtrot/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/mfoxtrot/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/mfoxtrot/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/mfoxtrot/flashcards/issues/comments/{number}","contents_url":"https://api.github.com/repos/mfoxtrot/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/mfoxtrot/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mfoxtrot/flashcards/merges","archive_url":"https://api.github.com/repos/mfoxtrot/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mfoxtrot/flashcards/downloads","issues_url":"https://api.github.com/repos/mfoxtrot/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/mfoxtrot/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/mfoxtrot/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/mfoxtrot/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mfoxtrot/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/mfoxtrot/flashcards/releases{/id}","created_at":"2014-12-03T12:54:16Z","updated_at":"2014-12-06T21:32:59Z","pushed_at":"2014-12-07T21:23:47Z","git_url":"git://github.com/mfoxtrot/flashcards.git","ssh_url":"git@github.com:mfoxtrot/flashcards.git","clone_url":"https://github.com/mfoxtrot/flashcards.git","svn_url":"https://github.com/mfoxtrot/flashcards","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mfoxtrot/flashcards/pulls/4"},"html":{"href":"https://github.com/mfoxtrot/flashcards/pull/4"},"issue":{"href":"https://api.github.com/repos/mfoxtrot/flashcards/issues/4"},"comments":{"href":"https://api.github.com/repos/mfoxtrot/flashcards/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/mfoxtrot/flashcards/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/mfoxtrot/flashcards/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mfoxtrot/flashcards/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/mfoxtrot/flashcards/statuses/b6747a4f7e2c602ce243126f297896d64b676222"}}}}