redirect-uri 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e619eb44a9fa3ea901787084c35712527361e460fc1c2939b9a4a83f78a2ffd1
4
- data.tar.gz: 3f9ae0486eaceb86489e9a22ac9d7b65dcfd855c0ccdddd122ee9fe6fc839c4c
3
+ metadata.gz: e09511d341d2067b15da84d09cdd4067a7a2cf64ddb5e2398b5cf0a98a2d058e
4
+ data.tar.gz: 37eb87e39f6ef91ff55ef80509dd871fbc22b24317e1760741e10369370bbf99
5
5
  SHA512:
6
- metadata.gz: 1a55baa10955fb480c70df902428b9664934c4f85f04d57eb8d5915ecd794217d0522352e935fe8311ea3f4833ecfb8bfb59b4730f943aec19a0192d9cc1cf22
7
- data.tar.gz: 70813b8fcec8f2b92cbe8a7d93065f449094794aea2857fa7a6d66e1a0943c92ad3a331889f652f73361f75d879c880f8491003daa0fdfc3e38d3c2fc4d87ee3
6
+ metadata.gz: 754beb0f99f9bfdd996394ba06d25e89e2c84df5da9afb7bb58d90e400351766eab44ce3f144d6a282173f57f4f9d6bb7bd3cf1901c1179269e5db4751e549c3
7
+ data.tar.gz: 17d4112393cdf1d75dacc43675f8a802c4f82b26e5ae0af60672e5bcd45ead0e5dcdc7c44aa6392d7d7749416914181a118c8b2f997a57552658e5ea4b971463
@@ -1,4 +1,5 @@
1
1
  require:
2
+ - rubocop-performance
2
3
  - rubocop-rspec
3
4
 
4
5
  Metrics/BlockLength:
@@ -8,6 +9,13 @@ Metrics/BlockLength:
8
9
  Metrics/LineLength:
9
10
  Enabled: false
10
11
 
12
+ Naming/FileName:
13
+ Exclude:
14
+ - lib/redirect-uri.rb
15
+
16
+ Naming/RescuedExceptionsVariableName:
17
+ PreferredName: error
18
+
11
19
  Style/Documentation:
12
20
  Enabled: false
13
21
 
@@ -1 +1 @@
1
- 2.4.5
1
+ 2.4.6
@@ -1,12 +1,13 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.4.5
4
- - 2.5.3
5
- - 2.6.0
3
+ - 2.4.6
4
+ - 2.5.5
5
+ - 2.6.2
6
6
  cache:
7
7
  - bundler
8
8
  before_install:
9
- - gem install bundler -v '~> 1.17'
9
+ - gem update --system
10
+ - gem install bundler
10
11
  before_script:
11
12
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
12
13
  - chmod +x ./cc-test-reporter
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0 / 2019-04-11
4
+
5
+ - Rename `lib/redirect-uri.rb` to support automatic loading via Bundler, etc. ([e850788](https://github.com/jgarber623/redirect-uri-ruby/commit/e850788)).
6
+ - Rename `Response` class to `Request` ([1bbfed7](https://github.com/jgarber623/redirect-uri-ruby/commit/1bbfed7)).
7
+
3
8
  ## 0.1.1 / 2019-01-03
4
9
 
5
10
  - Expand supported Ruby versions to include 2.6 ([ceda930](https://github.com/jgarber623/redirect-uri-ruby/commit/ceda930)).
@@ -8,9 +8,9 @@ There are a couple ways you can help improve redirect-uri-ruby:
8
8
 
9
9
  ## Getting Started
10
10
 
11
- redirect-uri-ruby is developed using Ruby 2.4.5 and is additionally tested against Ruby 2.5.3 and 2.6.0 using [Travis CI](https://travis-ci.com/jgarber623/redirect-uri-ruby).
11
+ redirect-uri-ruby is developed using Ruby 2.4.6 and is additionally tested against Ruby 2.5.5 and 2.6.2 using [Travis CI](https://travis-ci.com/jgarber623/redirect-uri-ruby).
12
12
 
13
- Before making changes to redirect-uri-ruby, you'll want to install Ruby 2.4.5. It's recommended that you use a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm). Once you've installed Ruby 2.4.5 using your method of choice, install the project's gems by running:
13
+ Before making changes to redirect-uri-ruby, you'll want to install Ruby 2.4.6. It's recommended that you use a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm). Once you've installed Ruby 2.4.6 using your method of choice, install the project's gems by running:
14
14
 
15
15
  ```sh
16
16
  bundle install
data/README.md CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  Before installing and using redirect-uri-ruby, you'll want to have [Ruby](https://www.ruby-lang.org) 2.4 (or newer) installed. It's recommended that you use a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm).
20
20
 
21
- redirect-uri-ruby is developed using Ruby 2.4.5 and is additionally tested against Ruby 2.5.3 and 2.6.0 using [Travis CI](https://travis-ci.com/jgarber623/redirect-uri-ruby).
21
+ redirect-uri-ruby is developed using Ruby 2.4.6 and is additionally tested against Ruby 2.5.5 and 2.6.2 using [Travis CI](https://travis-ci.com/jgarber623/redirect-uri-ruby).
22
22
 
23
23
  ## Installation
24
24
 
@@ -7,7 +7,7 @@ require 'redirect_uri/version'
7
7
  require 'redirect_uri/error'
8
8
  require 'redirect_uri/client'
9
9
  require 'redirect_uri/discover'
10
- require 'redirect_uri/response'
10
+ require 'redirect_uri/request'
11
11
 
12
12
  module RedirectUri
13
13
  def self.discover(url)
@@ -15,7 +15,7 @@ module RedirectUri
15
15
  end
16
16
 
17
17
  def response
18
- @response ||= Response.new(@uri).response
18
+ @response ||= Request.new(@uri).response
19
19
  end
20
20
  end
21
21
  end
@@ -1,5 +1,5 @@
1
1
  module RedirectUri
2
- class Response
2
+ class Request
3
3
  HTTP_HEADERS_OPTS = {
4
4
  accept: '*/*',
5
5
  user_agent: 'Redirect URI Discovery (https://rubygems.org/gems/redirect-uri)'
@@ -1,3 +1,3 @@
1
1
  module RedirectUri
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
@@ -20,17 +20,17 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_development_dependency 'bundler', '~> 1.17'
24
23
  spec.add_development_dependency 'rake', '~> 12.3'
25
24
  spec.add_development_dependency 'rspec', '~> 3.8'
26
- spec.add_development_dependency 'rubocop', '~> 0.62.0'
25
+ spec.add_development_dependency 'rubocop', '~> 0.67.2'
26
+ spec.add_development_dependency 'rubocop-performance', '~> 1.1'
27
27
  spec.add_development_dependency 'rubocop-rspec', '~> 1.31'
28
28
  spec.add_development_dependency 'simplecov', '~> 0.16.1'
29
29
  spec.add_development_dependency 'simplecov-console', '~> 0.4.2'
30
- spec.add_development_dependency 'webmock', '~> 3.4'
30
+ spec.add_development_dependency 'webmock', '~> 3.5'
31
31
 
32
32
  spec.add_runtime_dependency 'absolutely', '~> 1.1'
33
- spec.add_runtime_dependency 'addressable', '~> 2.5'
34
- spec.add_runtime_dependency 'http', '~> 4.0'
35
- spec.add_runtime_dependency 'nokogiri', '~> 1.8'
33
+ spec.add_runtime_dependency 'addressable', '~> 2.6'
34
+ spec.add_runtime_dependency 'http', '~> 4.1'
35
+ spec.add_runtime_dependency 'nokogiri', '~> 1.10'
36
36
  end
metadata CHANGED
@@ -1,71 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redirect-uri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Garber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-03 00:00:00.000000000 Z
11
+ date: 2019-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.17'
19
+ version: '12.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.17'
26
+ version: '12.3'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '12.3'
33
+ version: '3.8'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '12.3'
40
+ version: '3.8'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: rubocop
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.8'
47
+ version: 0.67.2
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.8'
54
+ version: 0.67.2
55
55
  - !ruby/object:Gem::Dependency
56
- name: rubocop
56
+ name: rubocop-performance
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.62.0
61
+ version: '1.1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.62.0
68
+ version: '1.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '3.4'
117
+ version: '3.5'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '3.4'
124
+ version: '3.5'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: absolutely
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -142,42 +142,42 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '2.5'
145
+ version: '2.6'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '2.5'
152
+ version: '2.6'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: http
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '4.0'
159
+ version: '4.1'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '4.0'
166
+ version: '4.1'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: nokogiri
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '1.8'
173
+ version: '1.10'
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '1.8'
180
+ version: '1.10'
181
181
  description: Discover a URL’s registered callback URLs for use with Micropub and IndieAuth
182
182
  clients.
183
183
  email:
@@ -200,11 +200,11 @@ files:
200
200
  - LICENSE
201
201
  - README.md
202
202
  - Rakefile
203
- - lib/redirect_uri.rb
203
+ - lib/redirect-uri.rb
204
204
  - lib/redirect_uri/client.rb
205
205
  - lib/redirect_uri/discover.rb
206
206
  - lib/redirect_uri/error.rb
207
- - lib/redirect_uri/response.rb
207
+ - lib/redirect_uri/request.rb
208
208
  - lib/redirect_uri/version.rb
209
209
  - redirect-uri.gemspec
210
210
  homepage: https://github.com/jgarber623/redirect-uri-ruby
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  - !ruby/object:Gem::Version
230
230
  version: '0'
231
231
  requirements: []
232
- rubygems_version: 3.0.2
232
+ rubygems_version: 3.0.3
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: Discover a URL’s registered callback URLs for use with Micropub and IndieAuth