routes_revealer 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e9105d0a3686e6c8b09688269bc61d949c29368
4
- data.tar.gz: 381ce8505dffe805e0341b5870463b3318d42e5c
3
+ metadata.gz: 64e0e44275c7f877cecf37e7d34915afeead933c
4
+ data.tar.gz: bf6b048942c1f62a652ae2d02ff9cd9f88f17955
5
5
  SHA512:
6
- metadata.gz: 305c360348b3ebe241d49ed10dd7eb11a4022610867eb2bbfa99d13090da69c4ce756441d538ed251b76c5a8184a01cce92da7d098ebf0e5901d5c3971a55eef
7
- data.tar.gz: 2c974249f7f49981534a4ff1ecc7af8fbb08f3f6ef9cd7fe28572e67aeb72da06ed297109ea404352b988867c9b139da400b120ae3b6f0398ab3b161413d6021
6
+ metadata.gz: a14e5eda4df3c02f16e0ab4f3ccb6e819771db378c924ec976ccf7f14557c25d674c6a3576ae60c934799eeddd82965a36c76628dfe9adab2f2097182614036b
7
+ data.tar.gz: 97edd37c1d12fd031e4140a2a33bd8c66a00e8e0d65b06510818f98259b491b188527a32a2c641d2334cb889988b333c31340d74d6bd08c28ec524bc97ffbc2f
@@ -17,6 +17,7 @@ module RoutesRevealer
17
17
  output += [asset_route]
18
18
  output += map_routes(Rails.application.routes.routes).flatten
19
19
  output.compact!.uniq!
20
+ output.sort! if output
20
21
  render json: output
21
22
  end
22
23
 
@@ -9,5 +9,5 @@
9
9
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
10
  # See the License for the specific language governing permissions and limitations under the License.
11
11
  module RoutesRevealer
12
- VERSION = '2.1.1'
12
+ VERSION = '2.1.2'
13
13
  end
@@ -66,11 +66,11 @@ describe RoutesRevealer::RoutesController do
66
66
 
67
67
  it { expect(response.status).to eq 200 }
68
68
  it { expect(JSON.parse(response.body).length).to eq 9 }
69
- it { expect(JSON.parse(response.body)[0]).to eq "/assets" }
70
- it { expect(JSON.parse(response.body)[1]).to eq "/1" }
71
- it { expect(JSON.parse(response.body)[2]).to eq "/2" }
72
- it { expect(JSON.parse(response.body)[3]).to eq "/3" }
73
- it { expect(JSON.parse(response.body)[4]).to eq "/4" }
69
+ it { expect(JSON.parse(response.body)[0]).to eq "/1" }
70
+ it { expect(JSON.parse(response.body)[1]).to eq "/2" }
71
+ it { expect(JSON.parse(response.body)[2]).to eq "/3" }
72
+ it { expect(JSON.parse(response.body)[3]).to eq "/4" }
73
+ it { expect(JSON.parse(response.body)[4]).to eq "/assets" }
74
74
  it { expect(JSON.parse(response.body)[5]).to eq "/t1" }
75
75
  it { expect(JSON.parse(response.body)[6]).to eq "/t2" }
76
76
  it { expect(JSON.parse(response.body)[7]).to eq "/that/1" }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: routes_revealer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - The CareerBuilder.com Consumer Development teams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-17 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails