{"action":"created","comment":{"url":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls/comments/41453781","id":41453781,"diff_hunk":"@@ -0,0 +1,165 @@\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.\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).\n+  # These validations are enabled in SimpleForm's internal config but disabled by default\n+  # in this configuration, which is recommended due to some quirks from different browsers.\n+  # To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,\n+  # change this configuration to true.\n+  config.browser_validations = false\n+\n+  # Collection of methods to detect if a file type was given.\n+  # config.file_methods = [ :mounted_as, :file?, :public_filename ]\n+\n+  # Custom mappings for input types. This should be a hash containing a regexp\n+  # to match as key, and the input type that will be used when the field name\n+  # matches the regexp as value.\n+  # config.input_mappings = { /count/ => :integer }\n+\n+  # Custom wrappers for input types. This should be a hash containing an input\n+  # type as key and the wrapper that will be used for all inputs with specified type.","path":"config/initializers/simple_form.rb","position":131,"original_position":131,"commit_id":"d6ba9d0e48cb7b4ca06fb64c9b9ac775c163225f","original_commit_id":"d6ba9d0e48cb7b4ca06fb64c9b9ac775c163225f","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. [85/80]","created_at":"2015-10-07T22:02:47Z","updated_at":"2015-10-07T22:02:47Z","html_url":"https://github.com/casualsubversive/by-its-cover/pull/2#discussion_r41453781","pull_request_url":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls/comments/41453781"},"html":{"href":"https://github.com/casualsubversive/by-its-cover/pull/2#discussion_r41453781"},"pull_request":{"href":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls/2","id":47081713,"html_url":"https://github.com/casualsubversive/by-its-cover/pull/2","diff_url":"https://github.com/casualsubversive/by-its-cover/pull/2.diff","patch_url":"https://github.com/casualsubversive/by-its-cover/pull/2.patch","issue_url":"https://api.github.com/repos/casualsubversive/by-its-cover/issues/2","number":2,"state":"open","locked":false,"title":"Modify user","user":{"login":"casualsubversive","id":13060122,"avatar_url":"https://avatars.githubusercontent.com/u/13060122?v=3","gravatar_id":"","url":"https://api.github.com/users/casualsubversive","html_url":"https://github.com/casualsubversive","followers_url":"https://api.github.com/users/casualsubversive/followers","following_url":"https://api.github.com/users/casualsubversive/following{/other_user}","gists_url":"https://api.github.com/users/casualsubversive/gists{/gist_id}","starred_url":"https://api.github.com/users/casualsubversive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casualsubversive/subscriptions","organizations_url":"https://api.github.com/users/casualsubversive/orgs","repos_url":"https://api.github.com/users/casualsubversive/repos","events_url":"https://api.github.com/users/casualsubversive/events{/privacy}","received_events_url":"https://api.github.com/users/casualsubversive/received_events","type":"User","site_admin":false},"body":"- Modify the user model\r\n- Write feature test for editing user profile\r\n- Write unit test\r\n- Add profile photos with CarrierWave\r\n- Add \"Test Reader\" user to seed file\r\n- Add UserSignIn module\r\n- Style flashes","created_at":"2015-10-07T21:02:54Z","updated_at":"2015-10-07T22:02:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ef416ec9591e07753a40c3995fc7e569e8a76c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls/2/commits","review_comments_url":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls/2/comments","review_comment_url":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls/comments{/number}","comments_url":"https://api.github.com/repos/casualsubversive/by-its-cover/issues/2/comments","statuses_url":"https://api.github.com/repos/casualsubversive/by-its-cover/statuses/d6ba9d0e48cb7b4ca06fb64c9b9ac775c163225f","head":{"label":"casualsubversive:modify-user","ref":"modify-user","sha":"d6ba9d0e48cb7b4ca06fb64c9b9ac775c163225f","user":{"login":"casualsubversive","id":13060122,"avatar_url":"https://avatars.githubusercontent.com/u/13060122?v=3","gravatar_id":"","url":"https://api.github.com/users/casualsubversive","html_url":"https://github.com/casualsubversive","followers_url":"https://api.github.com/users/casualsubversive/followers","following_url":"https://api.github.com/users/casualsubversive/following{/other_user}","gists_url":"https://api.github.com/users/casualsubversive/gists{/gist_id}","starred_url":"https://api.github.com/users/casualsubversive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casualsubversive/subscriptions","organizations_url":"https://api.github.com/users/casualsubversive/orgs","repos_url":"https://api.github.com/users/casualsubversive/repos","events_url":"https://api.github.com/users/casualsubversive/events{/privacy}","received_events_url":"https://api.github.com/users/casualsubversive/received_events","type":"User","site_admin":false},"repo":{"id":43704988,"name":"by-its-cover","full_name":"casualsubversive/by-its-cover","owner":{"login":"casualsubversive","id":13060122,"avatar_url":"https://avatars.githubusercontent.com/u/13060122?v=3","gravatar_id":"","url":"https://api.github.com/users/casualsubversive","html_url":"https://github.com/casualsubversive","followers_url":"https://api.github.com/users/casualsubversive/followers","following_url":"https://api.github.com/users/casualsubversive/following{/other_user}","gists_url":"https://api.github.com/users/casualsubversive/gists{/gist_id}","starred_url":"https://api.github.com/users/casualsubversive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casualsubversive/subscriptions","organizations_url":"https://api.github.com/users/casualsubversive/orgs","repos_url":"https://api.github.com/users/casualsubversive/repos","events_url":"https://api.github.com/users/casualsubversive/events{/privacy}","received_events_url":"https://api.github.com/users/casualsubversive/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/casualsubversive/by-its-cover","description":null,"fork":false,"url":"https://api.github.com/repos/casualsubversive/by-its-cover","forks_url":"https://api.github.com/repos/casualsubversive/by-its-cover/forks","keys_url":"https://api.github.com/repos/casualsubversive/by-its-cover/keys{/key_id}","collaborators_url":"https://api.github.com/repos/casualsubversive/by-its-cover/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/casualsubversive/by-its-cover/teams","hooks_url":"https://api.github.com/repos/casualsubversive/by-its-cover/hooks","issue_events_url":"https://api.github.com/repos/casualsubversive/by-its-cover/issues/events{/number}","events_url":"https://api.github.com/repos/casualsubversive/by-its-cover/events","assignees_url":"https://api.github.com/repos/casualsubversive/by-its-cover/assignees{/user}","branches_url":"https://api.github.com/repos/casualsubversive/by-its-cover/branches{/branch}","tags_url":"https://api.github.com/repos/casualsubversive/by-its-cover/tags","blobs_url":"https://api.github.com/repos/casualsubversive/by-its-cover/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/casualsubversive/by-its-cover/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/casualsubversive/by-its-cover/git/refs{/sha}","trees_url":"https://api.github.com/repos/casualsubversive/by-its-cover/git/trees{/sha}","statuses_url":"https://api.github.com/repos/casualsubversive/by-its-cover/statuses/{sha}","languages_url":"https://api.github.com/repos/casualsubversive/by-its-cover/languages","stargazers_url":"https://api.github.com/repos/casualsubversive/by-its-cover/stargazers","contributors_url":"https://api.github.com/repos/casualsubversive/by-its-cover/contributors","subscribers_url":"https://api.github.com/repos/casualsubversive/by-its-cover/subscribers","subscription_url":"https://api.github.com/repos/casualsubversive/by-its-cover/subscription","commits_url":"https://api.github.com/repos/casualsubversive/by-its-cover/commits{/sha}","git_commits_url":"https://api.github.com/repos/casualsubversive/by-its-cover/git/commits{/sha}","comments_url":"https://api.github.com/repos/casualsubversive/by-its-cover/comments{/number}","issue_comment_url":"https://api.github.com/repos/casualsubversive/by-its-cover/issues/comments{/number}","contents_url":"https://api.github.com/repos/casualsubversive/by-its-cover/contents/{+path}","compare_url":"https://api.github.com/repos/casualsubversive/by-its-cover/compare/{base}...{head}","merges_url":"https://api.github.com/repos/casualsubversive/by-its-cover/merges","archive_url":"https://api.github.com/repos/casualsubversive/by-its-cover/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/casualsubversive/by-its-cover/downloads","issues_url":"https://api.github.com/repos/casualsubversive/by-its-cover/issues{/number}","pulls_url":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls{/number}","milestones_url":"https://api.github.com/repos/casualsubversive/by-its-cover/milestones{/number}","notifications_url":"https://api.github.com/repos/casualsubversive/by-its-cover/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/casualsubversive/by-its-cover/labels{/name}","releases_url":"https://api.github.com/repos/casualsubversive/by-its-cover/releases{/id}","created_at":"2015-10-05T18:28:06Z","updated_at":"2015-10-05T19:57:18Z","pushed_at":"2015-10-07T22:02:31Z","git_url":"git://github.com/casualsubversive/by-its-cover.git","ssh_url":"git@github.com:casualsubversive/by-its-cover.git","clone_url":"https://github.com/casualsubversive/by-its-cover.git","svn_url":"https://github.com/casualsubversive/by-its-cover","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"casualsubversive:master","ref":"master","sha":"9a870a0731ebfe728cebec55885c8c0b699792f6","user":{"login":"casualsubversive","id":13060122,"avatar_url":"https://avatars.githubusercontent.com/u/13060122?v=3","gravatar_id":"","url":"https://api.github.com/users/casualsubversive","html_url":"https://github.com/casualsubversive","followers_url":"https://api.github.com/users/casualsubversive/followers","following_url":"https://api.github.com/users/casualsubversive/following{/other_user}","gists_url":"https://api.github.com/users/casualsubversive/gists{/gist_id}","starred_url":"https://api.github.com/users/casualsubversive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casualsubversive/subscriptions","organizations_url":"https://api.github.com/users/casualsubversive/orgs","repos_url":"https://api.github.com/users/casualsubversive/repos","events_url":"https://api.github.com/users/casualsubversive/events{/privacy}","received_events_url":"https://api.github.com/users/casualsubversive/received_events","type":"User","site_admin":false},"repo":{"id":43704988,"name":"by-its-cover","full_name":"casualsubversive/by-its-cover","owner":{"login":"casualsubversive","id":13060122,"avatar_url":"https://avatars.githubusercontent.com/u/13060122?v=3","gravatar_id":"","url":"https://api.github.com/users/casualsubversive","html_url":"https://github.com/casualsubversive","followers_url":"https://api.github.com/users/casualsubversive/followers","following_url":"https://api.github.com/users/casualsubversive/following{/other_user}","gists_url":"https://api.github.com/users/casualsubversive/gists{/gist_id}","starred_url":"https://api.github.com/users/casualsubversive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casualsubversive/subscriptions","organizations_url":"https://api.github.com/users/casualsubversive/orgs","repos_url":"https://api.github.com/users/casualsubversive/repos","events_url":"https://api.github.com/users/casualsubversive/events{/privacy}","received_events_url":"https://api.github.com/users/casualsubversive/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/casualsubversive/by-its-cover","description":null,"fork":false,"url":"https://api.github.com/repos/casualsubversive/by-its-cover","forks_url":"https://api.github.com/repos/casualsubversive/by-its-cover/forks","keys_url":"https://api.github.com/repos/casualsubversive/by-its-cover/keys{/key_id}","collaborators_url":"https://api.github.com/repos/casualsubversive/by-its-cover/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/casualsubversive/by-its-cover/teams","hooks_url":"https://api.github.com/repos/casualsubversive/by-its-cover/hooks","issue_events_url":"https://api.github.com/repos/casualsubversive/by-its-cover/issues/events{/number}","events_url":"https://api.github.com/repos/casualsubversive/by-its-cover/events","assignees_url":"https://api.github.com/repos/casualsubversive/by-its-cover/assignees{/user}","branches_url":"https://api.github.com/repos/casualsubversive/by-its-cover/branches{/branch}","tags_url":"https://api.github.com/repos/casualsubversive/by-its-cover/tags","blobs_url":"https://api.github.com/repos/casualsubversive/by-its-cover/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/casualsubversive/by-its-cover/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/casualsubversive/by-its-cover/git/refs{/sha}","trees_url":"https://api.github.com/repos/casualsubversive/by-its-cover/git/trees{/sha}","statuses_url":"https://api.github.com/repos/casualsubversive/by-its-cover/statuses/{sha}","languages_url":"https://api.github.com/repos/casualsubversive/by-its-cover/languages","stargazers_url":"https://api.github.com/repos/casualsubversive/by-its-cover/stargazers","contributors_url":"https://api.github.com/repos/casualsubversive/by-its-cover/contributors","subscribers_url":"https://api.github.com/repos/casualsubversive/by-its-cover/subscribers","subscription_url":"https://api.github.com/repos/casualsubversive/by-its-cover/subscription","commits_url":"https://api.github.com/repos/casualsubversive/by-its-cover/commits{/sha}","git_commits_url":"https://api.github.com/repos/casualsubversive/by-its-cover/git/commits{/sha}","comments_url":"https://api.github.com/repos/casualsubversive/by-its-cover/comments{/number}","issue_comment_url":"https://api.github.com/repos/casualsubversive/by-its-cover/issues/comments{/number}","contents_url":"https://api.github.com/repos/casualsubversive/by-its-cover/contents/{+path}","compare_url":"https://api.github.com/repos/casualsubversive/by-its-cover/compare/{base}...{head}","merges_url":"https://api.github.com/repos/casualsubversive/by-its-cover/merges","archive_url":"https://api.github.com/repos/casualsubversive/by-its-cover/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/casualsubversive/by-its-cover/downloads","issues_url":"https://api.github.com/repos/casualsubversive/by-its-cover/issues{/number}","pulls_url":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls{/number}","milestones_url":"https://api.github.com/repos/casualsubversive/by-its-cover/milestones{/number}","notifications_url":"https://api.github.com/repos/casualsubversive/by-its-cover/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/casualsubversive/by-its-cover/labels{/name}","releases_url":"https://api.github.com/repos/casualsubversive/by-its-cover/releases{/id}","created_at":"2015-10-05T18:28:06Z","updated_at":"2015-10-05T19:57:18Z","pushed_at":"2015-10-07T22:02:31Z","git_url":"git://github.com/casualsubversive/by-its-cover.git","ssh_url":"git@github.com:casualsubversive/by-its-cover.git","clone_url":"https://github.com/casualsubversive/by-its-cover.git","svn_url":"https://github.com/casualsubversive/by-its-cover","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","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/casualsubversive/by-its-cover/pulls/2"},"html":{"href":"https://github.com/casualsubversive/by-its-cover/pull/2"},"issue":{"href":"https://api.github.com/repos/casualsubversive/by-its-cover/issues/2"},"comments":{"href":"https://api.github.com/repos/casualsubversive/by-its-cover/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/casualsubversive/by-its-cover/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/casualsubversive/by-its-cover/statuses/d6ba9d0e48cb7b4ca06fb64c9b9ac775c163225f"}}}}