octocat_herder 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -77,7 +77,7 @@ class OctocatHerder
77
77
 
78
78
  # Execute a GET request against the GitHub v3 API.
79
79
  #
80
- # @since development
80
+ # @since 0.1.0
81
81
  #
82
82
  # @param [String] end_point The part of the API URL after
83
83
  # +'api.github.com'+, including the leading +'/'+.
@@ -117,7 +117,7 @@ class OctocatHerder
117
117
  # Small wrapper around HTTParty.get, which handles adding
118
118
  # authentication information to the API request.
119
119
  #
120
- # @since development
120
+ # @since 0.1.0
121
121
  def raw_get(end_point, options={})
122
122
  query_params = options.delete(:params) || {}
123
123
  query_string = query_string_from_params(query_params)
@@ -132,7 +132,7 @@ class OctocatHerder
132
132
 
133
133
  # Are we making authenticated requests?
134
134
  #
135
- # @since development
135
+ # @since 0.1.0
136
136
  # @return [true, false]
137
137
  def authenticated_requests?
138
138
  if (user_name and password) or oauth2_token
@@ -151,7 +151,7 @@ class OctocatHerder
151
151
  # ['+first+'] The first page of results.
152
152
  # ['+prev+'] The immediate previous page of results.
153
153
  #
154
- # @since development
154
+ # @since 0.1.0
155
155
  #
156
156
  # @raise [ArgumentError] If type is not one of the allowed values.
157
157
  #
@@ -171,7 +171,7 @@ class OctocatHerder
171
171
 
172
172
  # Convenience method to generate URL query strings.
173
173
  #
174
- # @since development
174
+ # @since 0.1.0
175
175
  #
176
176
  # @param [Hash] params A Hash of key/values to be turned into a
177
177
  # URL query string. Does not support nested data.
@@ -307,10 +307,19 @@ class OctocatHerder
307
307
  ret
308
308
  end
309
309
 
310
+ # The pull request as a single patch, with the pull request title
311
+ # & body as the commit message, and the total diff as the patch.
312
+ #
313
+ # @since 0.1.0
314
+ # @return [String]
310
315
  def patch_text
311
316
  @patch_text ||= connection.raw_get(patch_url).body
312
317
  end
313
318
 
319
+ # The diff introduced by all of the commits in the pull request.
320
+ #
321
+ # @since 0.1.0
322
+ # @return [String]
314
323
  def diff_text
315
324
  @diff_text ||= connection.raw_get(diff_url).body
316
325
  end
@@ -64,7 +64,7 @@ class OctocatHerder
64
64
 
65
65
  # List of users following this user.
66
66
  #
67
- # @since development
67
+ # @since 0.1.0
68
68
  # @return [Array<OctocatHerder::User>]
69
69
  def followers
70
70
  result = connection.get(
@@ -78,7 +78,7 @@ class OctocatHerder
78
78
 
79
79
  # List of users this user is following.
80
80
  #
81
- # @since development
81
+ # @since 0.1.0
82
82
  # @return [Array<OctocatHerder::User>]
83
83
  def following
84
84
  users = connection.get(
@@ -93,7 +93,7 @@ class OctocatHerder
93
93
  # Check if the user authenticated by the provided
94
94
  # {OctocatHerder::Connection} is following the specified user.
95
95
  #
96
- # @since development
96
+ # @since 0.1.0
97
97
  #
98
98
  # @raise [ArgumentError] If user is not a String or an
99
99
  # OctocatHerder::User
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{octocat_herder}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jacob Helwig"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octocat_herder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacob Helwig