GitHub PullRequestReviewCommentEvent at 2014-06-17 20:04:29
Repository: rails
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/ujjwalt/rails/pulls/comments/13881729","id":13881729,"diff_hunk":"@@ -0,0 +1,744 @@\n+# CANONICAL_ACTIONS holds all actions that does not need a prefix or\n+# a path appended since they fit properly in their scope level.\n+VALID_ON_OPTIONS  = [:new, :collection, :member]\n+RESOURCE_OPTIONS  = [:as, :controller, :path, :only, :except, :param, :concerns]\n+CANONICAL_ACTIONS = %w(index create new show update destroy)\n+RESOURCE_METHOD_SCOPES = [:collection, :member, :new]\n+RESOURCE_SCOPES = [:resource, :resources]\n+\n+class Resource #:nodoc:\n+  attr_reader :controller, :path, :options, :param\n+\n+  def initialize(entities, options = {})\n+    @name       = entities.to_s\n+    @path       = (options[:path] || @name).to_s\n+    @controller = (options[:controller] || @name).to_s\n+    @as         = options[:as]\n+    @param      = (options[:param] || :id).to_sym\n+    @options    = options\n+    @shallow    = false\n+  end\n+\n+  def default_actions\n+    [:index, :create, :new, :show, :update, :destroy, :edit]\n+  end\n+\n+  def actions\n+    if only = @options[:only]\n+      Array(only).map(&:to_sym)\n+    elsif except = @options[:except]\n+      default_actions - Array(except).map(&:to_sym)\n+    else\n+      default_actions\n+    end\n+  end\n+\n+  def name\n+    @as || @name\n+  end\n+\n+  def plural\n+    @plural ||= name.to_s\n+  end\n+\n+  def singular\n+    @singular ||= name.to_s.singularize\n+  end\n+\n+  alias :member_name :singular\n+\n+  # Checks for uncountable plurals, and appends \"_index\" if the plural\n+  # and singular form are the same.\n+  def collection_name\n+    singular == plural ? \"#{plural}_index\" : plural\n+  end\n+\n+  def resource_scope\n+    { :controller => controller }\n+  end\n+\n+  alias :collection_scope :path\n+\n+  def member_scope\n+    \"#{path}/:#{param}\"\n+  end\n+\n+  alias :shallow_scope :member_scope\n+\n+  def new_scope(new_path)\n+    \"#{path}/#{new_path}\"\n+  end\n+\n+  def nested_param\n+    :\"#{singular}_#{param}\"\n+  end\n+\n+  def nested_scope\n+    \"#{path}/:#{nested_param}\"\n+  end\n+\n+  def shallow=(value)\n+    @shallow = value\n+  end\n+\n+  def shallow?\n+    @shallow\n+  end\n+end\n+\n+class SingletonResource < Resource #:nodoc:\n+  def initialize(entities, options)\n+    super\n+    @as         = nil\n+    @controller = (options[:controller] || plural).to_s\n+    @as         = options[:as]\n+  end\n+\n+  def default_actions\n+    [:show, :create, :update, :destroy, :new, :edit]\n+  end\n+\n+  def plural\n+    @plural ||= name.to_s.pluralize\n+  end\n+\n+  def singular\n+    @singular ||= name.to_s\n+  end\n+\n+  alias :member_name :singular\n+  alias :collection_name :singular\n+\n+  alias :member_scope :path\n+  alias :nested_scope :path\n+end\n+\n+def resources_path_names(options)\n+  @scope[:path_names].merge!(options)\n+end\n+\n+# Sometimes, you have a resource that clients always look up without\n+# referencing an ID. A common example, /profile always shows the\n+# profile of the currently logged in user. In this case, you can use\n+# a singular resource to map /profile (rather than /profile/:id) to\n+# the show action:\n+#\n+#   resource :profile\n+#\n+# creates six different routes in your application, all mapping to\n+# the +Profiles+ controller (note that the controller is named after\n+# the plural):\n+#\n+#   GET       /profile/new\n+#   POST      /profile\n+#   GET       /profile\n+#   GET       /profile/edit\n+#   PATCH/PUT /profile\n+#   DELETE    /profile\n+#\n+# === Options\n+# Takes same options as +resources+.\n+def resource(*resources, &block)\n+  options = resources.extract_options!.dup\n+\n+  if apply_common_behavior_for(:resource, resources, options, &block)\n+    return self\n+  end\n+\n+  resource_scope(:resource, SingletonResource.new(resources.pop, options)) do\n+    yield if block_given?\n+\n+    concerns(options[:concerns]) if options[:concerns]\n+\n+    collection do\n+      post :create\n+    end if parent_resource.actions.include?(:create)\n+\n+    new do\n+      get :new\n+    end if parent_resource.actions.include?(:new)\n+\n+    set_member_mappings_for_resource\n+  end\n+\n+  self\n+end\n+\n+# In Rails, a resourceful route provides a mapping between HTTP verbs\n+# and URLs and controller actions. By convention, each action also maps\n+# to particular CRUD operations in a database. A single entry in the\n+# routing file, such as\n+#\n+#   resources :photos\n+#\n+# creates seven different routes in your application, all mapping to\n+# the +Photos+ controller:\n+#\n+#   GET       /photos\n+#   GET       /photos/new\n+#   POST      /photos\n+#   GET       /photos/:id\n+#   GET       /photos/:id/edit\n+#   PATCH/PUT /photos/:id\n+#   DELETE    /photos/:id\n+#\n+# Resources can also be nested infinitely by using this block syntax:\n+#\n+#   resources :photos do\n+#     resources :comments\n+#   end\n+#\n+# This generates the following comments routes:\n+#\n+#   GET       /photos/:photo_id/comments\n+#   GET       /photos/:photo_id/comments/new\n+#   POST      /photos/:photo_id/comments\n+#   GET       /photos/:photo_id/comments/:id\n+#   GET       /photos/:photo_id/comments/:id/edit\n+#   PATCH/PUT /photos/:photo_id/comments/:id\n+#   DELETE    /photos/:photo_id/comments/:id\n+#\n+# === Options\n+# Takes same options as <tt>Base#match</tt> as well as:\n+#\n+# [:path_names]\n+#   Allows you to change the segment component of the +edit+ and +new+ actions.\n+#   Actions not specified are not changed.\n+#\n+#     resources :posts, path_names: { new: \"brand_new\" }\n+#\n+#   The above example will now change /posts/new to /posts/brand_new\n+#\n+# [:path]\n+#   Allows you to change the path prefix for the resource.\n+#\n+#     resources :posts, path: 'postings'\n+#\n+#   The resource and all segments will now route to /postings instead of /posts\n+#\n+# [:only]\n+#   Only generate routes for the given actions.\n+#\n+#     resources :cows, only: :show\n+#     resources :cows, only: [:show, :index]\n+#\n+# [:except]\n+#   Generate all routes except for the given actions.\n+#\n+#     resources :cows, except: :show\n+#     resources :cows, except: [:show, :index]\n+#\n+# [:shallow]\n+#   Generates shallow routes for nested resource(s). When placed on a parent resource,\n+#   generates shallow routes for all nested resources.\n+#\n+#     resources :posts, shallow: true do\n+#       resources :comments\n+#     end\n+#\n+#   Is the same as:\n+#\n+#     resources :posts do\n+#       resources :comments, except: [:show, :edit, :update, :destroy]\n+#     end\n+#     resources :comments, only: [:show, :edit, :update, :destroy]\n+#\n+#   This allows URLs for resources that otherwise would be deeply nested such\n+#   as a comment on a blog post like <tt>/posts/a-long-permalink/comments/1234</tt>\n+#   to be shortened to just <tt>/comments/1234</tt>.\n+#\n+# [:shallow_path]\n+#   Prefixes nested shallow routes with the specified path.\n+#\n+#     scope shallow_path: \"sekret\" do\n+#       resources :posts do\n+#         resources :comments, shallow: true\n+#       end\n+#     end\n+#\n+#   The +comments+ resource here will have the following routes generated for it:\n+#\n+#     post_comments    GET       /posts/:post_id/comments(.:format)\n+#     post_comments    POST      /posts/:post_id/comments(.:format)\n+#     new_post_comment GET       /posts/:post_id/comments/new(.:format)\n+#     edit_comment     GET       /sekret/comments/:id/edit(.:format)\n+#     comment          GET       /sekret/comments/:id(.:format)\n+#     comment          PATCH/PUT /sekret/comments/:id(.:format)\n+#     comment          DELETE    /sekret/comments/:id(.:format)\n+#\n+# [:shallow_prefix]\n+#   Prefixes nested shallow route names with specified prefix.\n+#\n+#     scope shallow_prefix: \"sekret\" do\n+#       resources :posts do\n+#         resources :comments, shallow: true\n+#       end\n+#     end\n+#\n+#   The +comments+ resource here will have the following routes generated for it:\n+#\n+#     post_comments           GET       /posts/:post_id/comments(.:format)\n+#     post_comments           POST      /posts/:post_id/comments(.:format)\n+#     new_post_comment        GET       /posts/:post_id/comments/new(.:format)\n+#     edit_sekret_comment     GET       /comments/:id/edit(.:format)\n+#     sekret_comment          GET       /comments/:id(.:format)\n+#     sekret_comment          PATCH/PUT /comments/:id(.:format)\n+#     sekret_comment          DELETE    /comments/:id(.:format)\n+#\n+# [:format]\n+#   Allows you to specify the default value for optional +format+\n+#   segment or disable it by supplying +false+.\n+#\n+# === Examples\n+#\n+#   # routes call <tt>Admin::PostsController</tt>\n+#   resources :posts, module: \"admin\"\n+#\n+#   # resource actions are at /admin/posts.\n+#   resources :posts, path: \"admin/posts\"\n+def resources(*resources, &block)\n+  options = resources.extract_options!.dup\n+\n+  if apply_common_behavior_for(:resources, resources, options, &block)\n+    return self\n+  end\n+\n+  resource_scope(:resources, Resource.new(resources.pop, options)) do\n+    yield if block_given?\n+\n+    concerns(options[:concerns]) if options[:concerns]\n+\n+    collection do\n+      get  :index if parent_resource.actions.include?(:index)\n+      post :create if parent_resource.actions.include?(:create)\n+    end\n+\n+    new do\n+      get :new\n+    end if parent_resource.actions.include?(:new)\n+\n+    set_member_mappings_for_resource\n+  end\n+\n+  self\n+end\n+\n+# To add a route to the collection:\n+#\n+#   resources :photos do\n+#     collection do\n+#       get 'search'\n+#     end\n+#   end\n+#\n+# This will enable Rails to recognize paths such as <tt>/photos/search</tt>\n+# with GET, and route to the search action of +PhotosController+. It will also\n+# create the <tt>search_photos_url</tt> and <tt>search_photos_path</tt>\n+# route helpers.\n+def collection\n+  unless resource_scope?\n+    raise ArgumentError, \"can't use collection outside resource(s) scope\"\n+  end\n+\n+  with_scope_level(:collection) do\n+    scope(parent_resource.collection_scope) do\n+      yield\n+    end\n+  end\n+end\n+\n+# To add a member route, add a member block into the resource block:\n+#\n+#   resources :photos do\n+#     member do\n+#       get 'preview'\n+#     end\n+#   end\n+#\n+# This will recognize <tt>/photos/1/preview</tt> with GET, and route to the\n+# preview action of +PhotosController+. It will also create the\n+# <tt>preview_photo_url</tt> and <tt>preview_photo_path</tt> helpers.\n+def member\n+  unless resource_scope?\n+    raise ArgumentError, \"can't use member outside resource(s) scope\"\n+  end\n+\n+  with_scope_level(:member) do\n+    if shallow?\n+      shallow_scope(parent_resource.member_scope) { yield }\n+    else\n+      scope(parent_resource.member_scope) { yield }\n+    end\n+  end\n+end\n+\n+def new\n+  unless resource_scope?\n+    raise ArgumentError, \"can't use new outside resource(s) scope\"\n+  end\n+\n+  with_scope_level(:new) do\n+    scope(parent_resource.new_scope(action_path(:new))) do\n+      yield\n+    end\n+  end\n+end\n+\n+def nested\n+  unless resource_scope?\n+    raise ArgumentError, \"can't use nested outside resource(s) scope\"\n+  end\n+\n+  with_scope_level(:nested) do\n+    if shallow? && shallow_nesting_depth > 1\n+      shallow_scope(parent_resource.nested_scope, nested_options) { yield }\n+    else\n+      scope(parent_resource.nested_scope, nested_options) { yield }\n+    end\n+  end\n+end\n+\n+# See ActionDispatch::Routing::Mapper::Scoping#namespace\n+def namespace(path, options = {})\n+  if resource_scope?\n+    nested { super }\n+  else\n+    super\n+  end\n+end\n+\n+def shallow\n+  scope(:shallow => true) do\n+    yield\n+  end\n+end\n+\n+def shallow?\n+  parent_resource.instance_of?(Resource) && @scope[:shallow]\n+end\n+\n+# match 'path' => 'controller#action'\n+# match 'path', to: 'controller#action'\n+# match 'path', 'otherpath', on: :member, via: :get\n+def match(path, *rest)\n+  if rest.empty? && Hash === path\n+    options  = path\n+    path, to = options.find { |name, _value| name.is_a?(String) }\n+\n+    case to\n+    when Symbol\n+      options[:action] = to\n+    when String\n+      if to =~ /#/\n+        options[:to] = to\n+      else\n+        options[:controller] = to\n+      end\n+    else\n+      options[:to] = to\n+    end\n+\n+    options.delete(path)\n+    paths = [path]\n+  else\n+    options = rest.pop || {}\n+    paths = [path] + rest\n+  end\n+\n+  options[:anchor] = true unless options.key?(:anchor)\n+\n+  if options[:on] && !VALID_ON_OPTIONS.include?(options[:on])\n+    raise ArgumentError, \"Unknown scope #{on.inspect} given to :on\"\n+  end\n+\n+  if @scope[:controller] && @scope[:action]\n+    options[:to] ||= \"#{@scope[:controller]}##{@scope[:action]}\"\n+  end\n+\n+  paths.each do |_path|\n+    route_options = options.dup\n+    route_options[:path] ||= _path if _path.is_a?(String)\n+\n+    path_without_format = _path.to_s.sub(/\\(\\.:format\\)$/, '')\n+    if using_match_shorthand?(path_without_format, route_options)\n+      route_options[:to] ||= path_without_format.gsub(%r{^/}, \"\").sub(%r{/([^/]*)$}, '#\\1')\n+      route_options[:to].tr!(\"-\", \"_\")\n+    end\n+\n+    decomposed_match(_path, route_options)\n+  end\n+  self\n+end\n+\n+def using_match_shorthand?(path, options)\n+  path && (options[:to] || options[:action]).nil? && path =~ %r{/[\\w/]+$}\n+end\n+\n+def decomposed_match(path, options) # :nodoc:\n+  if on = options.delete(:on)\n+    send(on) { decomposed_match(path, options) }\n+  else\n+    case @scope[:scope_level]\n+    when :resources\n+      nested { decomposed_match(path, options) }\n+    when :resource\n+      member { decomposed_match(path, options) }\n+    else\n+      add_route(path, options)\n+    end\n+  end\n+end\n+\n+def add_route(action, options) # :nodoc:\n+  path = path_for_action(action, options.delete(:path))\n+  raise ArgumentError, \"path is required\" if path.blank?\n+\n+  action = action.to_s.dup\n+\n+  if action =~ /^[\\w\\-\\/]+$/\n+    options[:action] ||= action.tr('-', '_') unless action.include?(\"/\")\n+  else\n+    action = nil\n+  end\n+\n+  if !options.fetch(:as, true)\n+    options.delete(:as)\n+  else\n+    options[:as] = name_for_action(options[:as], action)\n+  end\n+\n+  mapping = Mapping.build(@scope, URI.parser.escape(path), options)\n+  app, conditions, requirements, defaults, as, anchor = mapping.to_route\n+  @set.add_route(app, conditions, requirements, defaults, as, anchor)\n+end\n+\n+def root(path, options={})","path":"actionpack/lib/action_dispatch/routing/dsl/resource_scope.rb","position":515,"original_position":515,"commit_id":"126ecaa3d93ba01b19de4d8e8b764c4649f3dc5b","original_commit_id":"126ecaa3d93ba01b19de4d8e8b764c4649f3dc5b","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","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":"Surrounding space missing in default value assignment.","created_at":"2014-06-17T20:04:29Z","updated_at":"2014-06-17T20:04:29Z","html_url":"https://github.com/ujjwalt/rails/pull/2#discussion_r13881729","pull_request_url":"https://api.github.com/repos/ujjwalt/rails/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/ujjwalt/rails/pulls/comments/13881729"},"html":{"href":"https://github.com/ujjwalt/rails/pull/2#discussion_r13881729"},"pull_request":{"href":"https://api.github.com/repos/ujjwalt/rails/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/ujjwalt/rails/pulls/2","id":17257946,"html_url":"https://github.com/ujjwalt/rails/pull/2","diff_url":"https://github.com/ujjwalt/rails/pull/2.diff","patch_url":"https://github.com/ujjwalt/rails/pull/2.patch","issue_url":"https://api.github.com/repos/ujjwalt/rails/issues/2","number":2,"state":"open","title":"Organization","user":{"login":"ujjwalt","id":660290,"avatar_url":"https://avatars.githubusercontent.com/u/660290?","gravatar_id":"701bd4e42b981a28d561b2a9475801f5","url":"https://api.github.com/users/ujjwalt","html_url":"https://github.com/ujjwalt","followers_url":"https://api.github.com/users/ujjwalt/followers","following_url":"https://api.github.com/users/ujjwalt/following{/other_user}","gists_url":"https://api.github.com/users/ujjwalt/gists{/gist_id}","starred_url":"https://api.github.com/users/ujjwalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ujjwalt/subscriptions","organizations_url":"https://api.github.com/users/ujjwalt/orgs","repos_url":"https://api.github.com/users/ujjwalt/repos","events_url":"https://api.github.com/users/ujjwalt/events{/privacy}","received_events_url":"https://api.github.com/users/ujjwalt/received_events","type":"User","site_admin":false},"body":"Trying to work out a structure and organization of how the refactor will work. The actual implementation should probably be another PR. This is for experimentation\r\n\r\n\\cc @pixeltrix","created_at":"2014-06-17T20:04:07Z","updated_at":"2014-06-17T20:04:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fae554d659f4fca73e33207bdeea54037a6c598d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ujjwalt/rails/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ujjwalt/rails/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ujjwalt/rails/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ujjwalt/rails/issues/2/comments","statuses_url":"https://api.github.com/repos/ujjwalt/rails/statuses/126ecaa3d93ba01b19de4d8e8b764c4649f3dc5b","head":{"label":"ujjwalt:organization","ref":"organization","sha":"126ecaa3d93ba01b19de4d8e8b764c4649f3dc5b","user":{"login":"ujjwalt","id":660290,"avatar_url":"https://avatars.githubusercontent.com/u/660290?","gravatar_id":"701bd4e42b981a28d561b2a9475801f5","url":"https://api.github.com/users/ujjwalt","html_url":"https://github.com/ujjwalt","followers_url":"https://api.github.com/users/ujjwalt/followers","following_url":"https://api.github.com/users/ujjwalt/following{/other_user}","gists_url":"https://api.github.com/users/ujjwalt/gists{/gist_id}","starred_url":"https://api.github.com/users/ujjwalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ujjwalt/subscriptions","organizations_url":"https://api.github.com/users/ujjwalt/orgs","repos_url":"https://api.github.com/users/ujjwalt/repos","events_url":"https://api.github.com/users/ujjwalt/events{/privacy}","received_events_url":"https://api.github.com/users/ujjwalt/received_events","type":"User","site_admin":false},"repo":{"id":10567904,"name":"rails","full_name":"ujjwalt/rails","owner":{"login":"ujjwalt","id":660290,"avatar_url":"https://avatars.githubusercontent.com/u/660290?","gravatar_id":"701bd4e42b981a28d561b2a9475801f5","url":"https://api.github.com/users/ujjwalt","html_url":"https://github.com/ujjwalt","followers_url":"https://api.github.com/users/ujjwalt/followers","following_url":"https://api.github.com/users/ujjwalt/following{/other_user}","gists_url":"https://api.github.com/users/ujjwalt/gists{/gist_id}","starred_url":"https://api.github.com/users/ujjwalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ujjwalt/subscriptions","organizations_url":"https://api.github.com/users/ujjwalt/orgs","repos_url":"https://api.github.com/users/ujjwalt/repos","events_url":"https://api.github.com/users/ujjwalt/events{/privacy}","received_events_url":"https://api.github.com/users/ujjwalt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ujjwalt/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/ujjwalt/rails","forks_url":"https://api.github.com/repos/ujjwalt/rails/forks","keys_url":"https://api.github.com/repos/ujjwalt/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ujjwalt/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ujjwalt/rails/teams","hooks_url":"https://api.github.com/repos/ujjwalt/rails/hooks","issue_events_url":"https://api.github.com/repos/ujjwalt/rails/issues/events{/number}","events_url":"https://api.github.com/repos/ujjwalt/rails/events","assignees_url":"https://api.github.com/repos/ujjwalt/rails/assignees{/user}","branches_url":"https://api.github.com/repos/ujjwalt/rails/branches{/branch}","tags_url":"https://api.github.com/repos/ujjwalt/rails/tags","blobs_url":"https://api.github.com/repos/ujjwalt/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ujjwalt/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ujjwalt/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/ujjwalt/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ujjwalt/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/ujjwalt/rails/languages","stargazers_url":"https://api.github.com/repos/ujjwalt/rails/stargazers","contributors_url":"https://api.github.com/repos/ujjwalt/rails/contributors","subscribers_url":"https://api.github.com/repos/ujjwalt/rails/subscribers","subscription_url":"https://api.github.com/repos/ujjwalt/rails/subscription","commits_url":"https://api.github.com/repos/ujjwalt/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/ujjwalt/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/ujjwalt/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/ujjwalt/rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/ujjwalt/rails/contents/{+path}","compare_url":"https://api.github.com/repos/ujjwalt/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ujjwalt/rails/merges","archive_url":"https://api.github.com/repos/ujjwalt/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ujjwalt/rails/downloads","issues_url":"https://api.github.com/repos/ujjwalt/rails/issues{/number}","pulls_url":"https://api.github.com/repos/ujjwalt/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/ujjwalt/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/ujjwalt/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ujjwalt/rails/labels{/name}","releases_url":"https://api.github.com/repos/ujjwalt/rails/releases{/id}","created_at":"2013-06-08T11:46:55Z","updated_at":"2014-06-17T20:04:07Z","pushed_at":"2014-06-15T05:25:37Z","git_url":"git://github.com/ujjwalt/rails.git","ssh_url":"git@github.com:ujjwalt/rails.git","clone_url":"https://github.com/ujjwalt/rails.git","svn_url":"https://github.com/ujjwalt/rails","homepage":"http://rubyonrails.org","size":115510,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"ujjwalt:master","ref":"master","sha":"f3ed68fcbb319f17972888c07e7be158b505329d","user":{"login":"ujjwalt","id":660290,"avatar_url":"https://avatars.githubusercontent.com/u/660290?","gravatar_id":"701bd4e42b981a28d561b2a9475801f5","url":"https://api.github.com/users/ujjwalt","html_url":"https://github.com/ujjwalt","followers_url":"https://api.github.com/users/ujjwalt/followers","following_url":"https://api.github.com/users/ujjwalt/following{/other_user}","gists_url":"https://api.github.com/users/ujjwalt/gists{/gist_id}","starred_url":"https://api.github.com/users/ujjwalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ujjwalt/subscriptions","organizations_url":"https://api.github.com/users/ujjwalt/orgs","repos_url":"https://api.github.com/users/ujjwalt/repos","events_url":"https://api.github.com/users/ujjwalt/events{/privacy}","received_events_url":"https://api.github.com/users/ujjwalt/received_events","type":"User","site_admin":false},"repo":{"id":10567904,"name":"rails","full_name":"ujjwalt/rails","owner":{"login":"ujjwalt","id":660290,"avatar_url":"https://avatars.githubusercontent.com/u/660290?","gravatar_id":"701bd4e42b981a28d561b2a9475801f5","url":"https://api.github.com/users/ujjwalt","html_url":"https://github.com/ujjwalt","followers_url":"https://api.github.com/users/ujjwalt/followers","following_url":"https://api.github.com/users/ujjwalt/following{/other_user}","gists_url":"https://api.github.com/users/ujjwalt/gists{/gist_id}","starred_url":"https://api.github.com/users/ujjwalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ujjwalt/subscriptions","organizations_url":"https://api.github.com/users/ujjwalt/orgs","repos_url":"https://api.github.com/users/ujjwalt/repos","events_url":"https://api.github.com/users/ujjwalt/events{/privacy}","received_events_url":"https://api.github.com/users/ujjwalt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ujjwalt/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/ujjwalt/rails","forks_url":"https://api.github.com/repos/ujjwalt/rails/forks","keys_url":"https://api.github.com/repos/ujjwalt/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ujjwalt/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ujjwalt/rails/teams","hooks_url":"https://api.github.com/repos/ujjwalt/rails/hooks","issue_events_url":"https://api.github.com/repos/ujjwalt/rails/issues/events{/number}","events_url":"https://api.github.com/repos/ujjwalt/rails/events","assignees_url":"https://api.github.com/repos/ujjwalt/rails/assignees{/user}","branches_url":"https://api.github.com/repos/ujjwalt/rails/branches{/branch}","tags_url":"https://api.github.com/repos/ujjwalt/rails/tags","blobs_url":"https://api.github.com/repos/ujjwalt/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ujjwalt/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ujjwalt/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/ujjwalt/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ujjwalt/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/ujjwalt/rails/languages","stargazers_url":"https://api.github.com/repos/ujjwalt/rails/stargazers","contributors_url":"https://api.github.com/repos/ujjwalt/rails/contributors","subscribers_url":"https://api.github.com/repos/ujjwalt/rails/subscribers","subscription_url":"https://api.github.com/repos/ujjwalt/rails/subscription","commits_url":"https://api.github.com/repos/ujjwalt/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/ujjwalt/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/ujjwalt/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/ujjwalt/rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/ujjwalt/rails/contents/{+path}","compare_url":"https://api.github.com/repos/ujjwalt/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ujjwalt/rails/merges","archive_url":"https://api.github.com/repos/ujjwalt/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ujjwalt/rails/downloads","issues_url":"https://api.github.com/repos/ujjwalt/rails/issues{/number}","pulls_url":"https://api.github.com/repos/ujjwalt/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/ujjwalt/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/ujjwalt/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ujjwalt/rails/labels{/name}","releases_url":"https://api.github.com/repos/ujjwalt/rails/releases{/id}","created_at":"2013-06-08T11:46:55Z","updated_at":"2014-06-17T20:04:07Z","pushed_at":"2014-06-15T05:25:37Z","git_url":"git://github.com/ujjwalt/rails.git","ssh_url":"git@github.com:ujjwalt/rails.git","clone_url":"https://github.com/ujjwalt/rails.git","svn_url":"https://github.com/ujjwalt/rails","homepage":"http://rubyonrails.org","size":115510,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ujjwalt/rails/pulls/2"},"html":{"href":"https://github.com/ujjwalt/rails/pull/2"},"issue":{"href":"https://api.github.com/repos/ujjwalt/rails/issues/2"},"comments":{"href":"https://api.github.com/repos/ujjwalt/rails/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ujjwalt/rails/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ujjwalt/rails/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ujjwalt/rails/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ujjwalt/rails/statuses/126ecaa3d93ba01b19de4d8e8b764c4649f3dc5b"}}}}