routes_revealer 0.2.0 → 1.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
  SHA1:
3
- metadata.gz: 3389bdc2a73c9e2472dc5a389dc77271f53969e4
4
- data.tar.gz: 331e4a902420d3c8cf2b0de41f69fedfb5d0eb02
3
+ metadata.gz: 4f0aa69a278eaaa4d9705bb26e555f906de653cb
4
+ data.tar.gz: e21d078145df3484198d0ddc99be1dbfd35b2e78
5
5
  SHA512:
6
- metadata.gz: e7acf7e8016ac0a7663d21ed87dd2ab08ff4eaa291642181aea6065b18aa9c122b4675f3b5fe767d6ef6a1100b4b5d9541e28709c67439c92af26b2387c0bca0
7
- data.tar.gz: b51e2acd1cc0e9ed5b2e30a7f051feb7f1ea47793f039335006d0ebbc30a6d4ca3a508bc5a6a0bfb6a36e47a5fc7ffdd26b97cdb79203642c38d25c1fa18e257
6
+ metadata.gz: 3a0ed2a2c9ade4abc71e453db1b7213468a2085b87e6e8012ffa954ee4bf69c44daf1748a5d2fa64098a6bd8e56a0bbac755d54ce43910ce2fb06efd1e39aba6
7
+ data.tar.gz: d3011b3a3d64b57841c3aba9027598a585521164f845437f64b93438d721fbaffd1d29cb843848f0baa307055da8701e2c794b9c0adf44e5b0dfc2556ca54fe1
@@ -19,7 +19,7 @@ module RoutesRevealer
19
19
  private
20
20
 
21
21
  def ignore_route?(route_string)
22
- route_string =~ /(\/[0-9]{3})|(^\/routes)|(^\/rails)|(^\/$)/
22
+ route_string =~ /(\/[0-9]{3})|(^\/routes)|(^\/rails)/
23
23
  end
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module RoutesRevealer
2
- VERSION = "0.2.0"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -21,10 +21,11 @@ describe RoutesRevealer::RoutesController do
21
21
  end
22
22
 
23
23
  it { expect(response.status).to eq 200 }
24
- it { expect(JSON.parse(response.body).length).to eq 3 }
24
+ it { expect(JSON.parse(response.body).length).to eq 4 }
25
25
  it { expect(JSON.parse(response.body)[0]).to eq "/good/route1" }
26
26
  it { expect(JSON.parse(response.body)[1]).to eq "/good/route2" }
27
- it { expect(JSON.parse(response.body)[2]).to eq "/assets" }
27
+ it { expect(JSON.parse(response.body)[2]).to eq "/" }
28
+ it { expect(JSON.parse(response.body)[3]).to eq "/assets" }
28
29
 
29
30
  end
30
31
  end
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: routes_revealer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Consumer Development
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-03 00:00:00.000000000 Z
11
+ date: 2015-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>'
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>'
24
+ - - ">"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
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
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
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
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '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
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: binding_of_caller
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
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
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: better_errors
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.1'
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
96
  version: '1.1'
97
97
  description: The /routes route will list all of the consuming application's routes
@@ -102,16 +102,16 @@ executables: []
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
+ - Rakefile
105
106
  - app/controllers/routes_revealer/routes_controller.rb
106
107
  - config/routes.rb
107
- - lib/routes_revealer.rb
108
108
  - lib/rails/response_injections.rb
109
+ - lib/routes_revealer.rb
109
110
  - lib/routes_revealer/engine.rb
110
111
  - lib/routes_revealer/version.rb
111
- - Rakefile
112
- - spec/spec_helper.rb
113
112
  - spec/config/initializers/response_injections_spec.rb
114
113
  - spec/controllers/routes_controller_spec.rb
114
+ - spec/spec_helper.rb
115
115
  - spec/support/helpers/controller_helpers.rb
116
116
  homepage: ''
117
117
  licenses:
@@ -123,22 +123,22 @@ require_paths:
123
123
  - lib
124
124
  required_ruby_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - '>='
126
+ - - ">="
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - '>='
131
+ - - ">="
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.0.14
136
+ rubygems_version: 2.4.8
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Provides the route /routes which will list the applications routes
140
140
  test_files:
141
- - spec/spec_helper.rb
142
141
  - spec/config/initializers/response_injections_spec.rb
143
142
  - spec/controllers/routes_controller_spec.rb
143
+ - spec/spec_helper.rb
144
144
  - spec/support/helpers/controller_helpers.rb