absolutely 2.1.0 → 3.0.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: 7795781f33ec7faa95aaf0613898d77b0b154bd32afd497a98e35bd2911557ac
4
- data.tar.gz: aeccbc8532f4eb04ecc9ca3cf55f00a674de774bc6d4a19c00cf278f5d79d973
3
+ metadata.gz: 91566fb265c0b030b5014124f954e10d150482b0b2487d6e729191e3958cc732
4
+ data.tar.gz: 6eea11bf5e67cb75cb33ccb21e0573aefa6899cfed505f4b864e46e643a0781a
5
5
  SHA512:
6
- metadata.gz: 560912d16ae79115377345d95351304f019c501da26891e327fa7472e681aedd57441129865b9e851c25c2a1337bb6746b573fa035109437746e2bb4d6fdb00a
7
- data.tar.gz: c65f10379621cc39973d34b39d58b76fc036d07fbc3aac346ac1d5b3d64732d2fe93c41e8b8a976e962d1f26d52b49d1e4569319cd47cafad45850b3f50e8836
6
+ metadata.gz: 077d370aaef9a645222bdaf5297f6172f0f369bc6d93d336ede24999564126058d34cfcaea3c206ecb25f539b02b21f79fa5112e06be6e9dbc874ea3fe6925ba
7
+ data.tar.gz: f201dc5e6ab3a7b24f95da4a0ccffa3452f63c13e779fe9533727e8ab9fdd41952ccb9ad6928323388db3536cff02254d70f25f371626c3fbc64dee486301e2e
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.0 / 2019-05-28
4
+
5
+ - Return normalized `relative_uri` in `to_abs` when `relative_uri` is an absolute URL ([81261e9](https://github.com/jgarber623/absolutely/commit/81261e9)).
6
+
3
7
  ## 2.1.0 / 2019-05-01
4
8
 
5
9
  - Rename `to_absolute_uri` method to `to_abs` ([d14e33f](https://github.com/jgarber623/absolutely/commit/d14e33f)).
data/Rakefile CHANGED
@@ -6,6 +6,7 @@ require 'rubocop/rake_task'
6
6
 
7
7
  Reek::Rake::Task.new do |task|
8
8
  task.fail_on_error = false
9
+ task.source_files = FileList['**/*.rb'].exclude('vendor/**/*.rb')
9
10
  end
10
11
 
11
12
  RSpec::Core::RakeTask.new
@@ -28,11 +28,11 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency 'rake', '~> 12.3'
29
29
  spec.add_development_dependency 'reek', '~> 5.4'
30
30
  spec.add_development_dependency 'rspec', '~> 3.8'
31
- spec.add_development_dependency 'rubocop', '~> 0.68.1'
32
- spec.add_development_dependency 'rubocop-performance', '~> 1.1'
33
- spec.add_development_dependency 'rubocop-rspec', '~> 1.32'
31
+ spec.add_development_dependency 'rubocop', '~> 0.70.0'
32
+ spec.add_development_dependency 'rubocop-performance', '~> 1.3'
33
+ spec.add_development_dependency 'rubocop-rspec', '~> 1.33'
34
34
  spec.add_development_dependency 'simplecov', '~> 0.16.1'
35
- spec.add_development_dependency 'simplecov-console', '~> 0.4.2'
35
+ spec.add_development_dependency 'simplecov-console', '~> 0.5.0'
36
36
 
37
37
  spec.add_runtime_dependency 'addressable', '~> 2.6'
38
38
  end
@@ -16,7 +16,7 @@ module Absolutely
16
16
  end
17
17
 
18
18
  def to_abs
19
- return relative_uri.to_s if relative_uri.absolute?
19
+ return relative_uri.normalize.to_s if relative_uri.absolute?
20
20
 
21
21
  base_uri.path = base_uri.normalized_path
22
22
 
@@ -1,3 +1,3 @@
1
1
  module Absolutely
2
- VERSION = '2.1.0'.freeze
2
+ VERSION = '3.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: absolutely
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 3.0.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-05-02 00:00:00.000000000 Z
11
+ date: 2019-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -58,42 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.68.1
61
+ version: 0.70.0
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.68.1
68
+ version: 0.70.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-performance
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.1'
75
+ version: '1.3'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.1'
82
+ version: '1.3'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop-rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.32'
89
+ version: '1.33'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.32'
96
+ version: '1.33'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.4.2
117
+ version: 0.5.0
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: 0.4.2
124
+ version: 0.5.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: addressable
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -168,7 +168,7 @@ licenses:
168
168
  - MIT
169
169
  metadata:
170
170
  bug_tracker_uri: https://github.com/jgarber623/absolutely/issues
171
- changelog_uri: https://github.com/jgarber623/absolutely/blob/v2.1.0/CHANGELOG.md
171
+ changelog_uri: https://github.com/jgarber623/absolutely/blob/v3.0.0/CHANGELOG.md
172
172
  post_install_message:
173
173
  rdoc_options: []
174
174
  require_paths: