grape-path-helpers 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: 0cce4a208f0d1e34b8a35da84f34d2ffa02bc7e4
4
- data.tar.gz: c7363febba8def48120a68779cf9d097fec7b8e2
3
+ metadata.gz: 1218eb9de9f194f6cbcf51e76bdb4be68cfa641c
4
+ data.tar.gz: 7e3af2e54ddff24e32e3ea53e9efbd29eaabddc0
5
5
  SHA512:
6
- metadata.gz: e8e1650bc433de578ef57e8d91fcdf31e94542545a12fccb69040d6094b9b1188404b9b6ed8956d59f4f6b26274434b71795176024d4bf99b82c1cf3f155bd03
7
- data.tar.gz: 1b65db4108966fee07ccaf91931672e1c6fb01ae918a8a52c3057e2f34da3d25725408ad97376f9b268fd7e7c46c5e4551dadf44239902df79f5245bacf6979e
6
+ metadata.gz: d7d43750369cb3a535f2f3e010be78fa8e68993dee480225c51f7a83e4edae88140f63089cc570ca55b7bda50495019ade19a01fb5a57cc95aae986765743120
7
+ data.tar.gz: 3e0392e00e37c18d512966b02fc702d4655072a05cecc5a88c6b4268a474da1ed28d13e6acd1a4b60ae28e6c188a91958529bec80b134c5492f10befc96086a4
@@ -2,17 +2,17 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  grape-path-helpers (1.0.0)
5
- activesupport
5
+ activesupport (~> 4)
6
6
  grape (~> 1.0)
7
- rake
7
+ rake (~> 12)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (5.2.0)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 0.7, < 2)
12
+ activesupport (4.2.10)
13
+ i18n (~> 0.7)
15
14
  minitest (~> 5.1)
15
+ thread_safe (~> 0.3, >= 0.3.4)
16
16
  tzinfo (~> 1.1)
17
17
  ast (2.4.0)
18
18
  axiom-types (0.1.1)
@@ -28,14 +28,14 @@ GEM
28
28
  thread_safe (~> 0.3, >= 0.3.1)
29
29
  diff-lcs (1.3)
30
30
  equalizer (0.0.11)
31
- grape (1.0.2)
31
+ grape (1.0.3)
32
32
  activesupport
33
33
  builder
34
34
  mustermann-grape (~> 1.0.0)
35
35
  rack (>= 1.3.0)
36
36
  rack-accept
37
37
  virtus (>= 1.0.0)
38
- i18n (1.0.1)
38
+ i18n (0.9.5)
39
39
  concurrent-ruby (~> 1.0)
40
40
  ice_nine (0.11.2)
41
41
  method_source (0.9.0)
@@ -68,7 +68,7 @@ GEM
68
68
  diff-lcs (>= 1.2.0, < 2.0)
69
69
  rspec-support (~> 3.7.0)
70
70
  rspec-support (3.7.1)
71
- rubocop (0.55.0)
71
+ rubocop (0.56.0)
72
72
  parallel (~> 1.10)
73
73
  parser (>= 2.5)
74
74
  powerpack (~> 0.1)
@@ -79,7 +79,7 @@ GEM
79
79
  thread_safe (0.3.6)
80
80
  tzinfo (1.2.5)
81
81
  thread_safe (~> 0.1)
82
- unicode-display_width (1.3.2)
82
+ unicode-display_width (1.3.3)
83
83
  virtus (1.0.5)
84
84
  axiom-types (~> 0.1)
85
85
  coercible (~> 1.0)
@@ -91,9 +91,9 @@ PLATFORMS
91
91
 
92
92
  DEPENDENCIES
93
93
  grape-path-helpers!
94
- pry
95
- rspec
96
- rubocop
94
+ pry (~> 0.11)
95
+ rspec (~> 3.7)
96
+ rubocop (~> 0.56)
97
97
 
98
98
  BUNDLED WITH
99
99
  1.16.2
@@ -9,13 +9,13 @@ Gem::Specification.new do |gem|
9
9
  gem.authors = ['Drew Blessing', 'Harper Henn']
10
10
  gem.email = ''
11
11
  gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
12
- gem.homepage = 'https://github.com/gitlab/grape-path-helpers'
12
+ gem.homepage = 'https://gitlab.com/gitlab-org/grape-path-helpers'
13
13
 
14
- gem.add_runtime_dependency 'activesupport'
14
+ gem.add_runtime_dependency 'activesupport', '~> 4'
15
15
  gem.add_runtime_dependency 'grape', '~> 1.0'
16
- gem.add_runtime_dependency 'rake'
16
+ gem.add_runtime_dependency 'rake', '~> 12'
17
17
 
18
- gem.add_development_dependency 'pry'
19
- gem.add_development_dependency 'rspec'
20
- gem.add_development_dependency 'rubocop'
18
+ gem.add_development_dependency 'pry', '~> 0.11'
19
+ gem.add_development_dependency 'rspec', '~> 3.7'
20
+ gem.add_development_dependency 'rubocop', '~> 0.56'
21
21
  end
@@ -62,13 +62,13 @@ module GrapePathHelpers
62
62
  end
63
63
 
64
64
  def route_versions
65
- if route_version.is_a?(Array)
66
- route_version
67
- elsif route_version
65
+ return [nil] if route_version.nil? || route_version.empty?
66
+
67
+ if route_version.is_a?(String)
68
68
  version_pattern = /[^\[",\]\s]+/
69
69
  route_version.scan(version_pattern)
70
70
  else
71
- [nil]
71
+ route_version
72
72
  end
73
73
  end
74
74
 
@@ -1,4 +1,4 @@
1
1
  # Gem version
2
2
  module GrapePathHelpers
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.0.1'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-path-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drew Blessing
@@ -15,16 +15,16 @@ dependencies:
15
15
  name: activesupport
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: '4'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ">="
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: '4'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: grape
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -43,58 +43,58 @@ dependencies:
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">="
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0'
48
+ version: '12'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ">="
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: '12'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: pry
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ">="
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '0'
62
+ version: '0.11'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '0'
69
+ version: '0.11'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rspec
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ">="
74
+ - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '0'
76
+ version: '3.7'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '0'
83
+ version: '3.7'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: rubocop
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ">="
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '0'
90
+ version: '0.56'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ">="
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '0'
97
+ version: '0.56'
98
98
  description: Route path helpers for Grape
99
99
  email: ''
100
100
  executables: []
@@ -127,7 +127,7 @@ files:
127
127
  - spec/grape_path_helpers/named_route_matcher_spec.rb
128
128
  - spec/spec_helper.rb
129
129
  - spec/support/api.rb
130
- homepage: https://github.com/gitlab/grape-path-helpers
130
+ homepage: https://gitlab.com/gitlab-org/grape-path-helpers
131
131
  licenses:
132
132
  - MIT
133
133
  metadata: {}