passages 1.5.2 → 2.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: 506cbf386bbac4a1160b5fe60bf84a935f7196df
4
- data.tar.gz: 4cc37557abaaf7cde430edefdc60e9d3f4d02592
3
+ metadata.gz: e9222ad73782391482c0c599d4cc2fab3a731b1d
4
+ data.tar.gz: 3e813114c9aa59ae36a1e4a37350ac48b4f9309b
5
5
  SHA512:
6
- metadata.gz: 9a9e6e1440284fa8c773e252ec952cd50eede94a93046e82e66de576aaca10f6ab9b949bc20e51d32635692ff5984c1abaa58a3cf8f4bdc752073c29501c0893
7
- data.tar.gz: 11d7d93ca45f72758e5f760861c8e985096f1d199bebc06f22f67787fe0bcb046053a63631111768c7089fc5d8a0f5e8ceb4a6f4a1172fc8928844bd306e4e5c
6
+ metadata.gz: 64674b61c287c6b0b81f41ea705112a49f74b38bd299fa5aea5df1c22ec4eaaceff806ff18a32f2e37e22d4552c482c9d4d4aae71009d0d28fd443534ebd11a2
7
+ data.tar.gz: 63801b31a44fe49e6f024a795cfe452be60454b0bac40fe93a75de9eda81dcf2a9842e75531c040645eed216be2b2f22ac0718c59edfd6937c2c806b02413d4f
data/Gemfile.lock CHANGED
@@ -1,97 +1,102 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- passages (1.5.0)
5
- rails (~> 4.0)
4
+ passages (2.0.0)
5
+ rails (~> 5.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionmailer (4.2.4)
11
- actionpack (= 4.2.4)
12
- actionview (= 4.2.4)
13
- activejob (= 4.2.4)
10
+ actioncable (5.1.1)
11
+ actionpack (= 5.1.1)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (~> 0.6.1)
14
+ actionmailer (5.1.1)
15
+ actionpack (= 5.1.1)
16
+ actionview (= 5.1.1)
17
+ activejob (= 5.1.1)
14
18
  mail (~> 2.5, >= 2.5.4)
15
- rails-dom-testing (~> 1.0, >= 1.0.5)
16
- actionpack (4.2.4)
17
- actionview (= 4.2.4)
18
- activesupport (= 4.2.4)
19
- rack (~> 1.6)
20
- rack-test (~> 0.6.2)
21
- rails-dom-testing (~> 1.0, >= 1.0.5)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.1.1)
21
+ actionview (= 5.1.1)
22
+ activesupport (= 5.1.1)
23
+ rack (~> 2.0)
24
+ rack-test (~> 0.6.3)
25
+ rails-dom-testing (~> 2.0)
22
26
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
- actionview (4.2.4)
24
- activesupport (= 4.2.4)
27
+ actionview (5.1.1)
28
+ activesupport (= 5.1.1)
25
29
  builder (~> 3.1)
26
- erubis (~> 2.7.0)
27
- rails-dom-testing (~> 1.0, >= 1.0.5)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- activejob (4.2.4)
30
- activesupport (= 4.2.4)
31
- globalid (>= 0.3.0)
32
- activemodel (4.2.4)
33
- activesupport (= 4.2.4)
34
- builder (~> 3.1)
35
- activerecord (4.2.4)
36
- activemodel (= 4.2.4)
37
- activesupport (= 4.2.4)
38
- arel (~> 6.0)
39
- activesupport (4.2.4)
30
+ erubi (~> 1.4)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.1.1)
34
+ activesupport (= 5.1.1)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.1.1)
37
+ activesupport (= 5.1.1)
38
+ activerecord (5.1.1)
39
+ activemodel (= 5.1.1)
40
+ activesupport (= 5.1.1)
41
+ arel (~> 8.0)
42
+ activesupport (5.1.1)
43
+ concurrent-ruby (~> 1.0, >= 1.0.2)
40
44
  i18n (~> 0.7)
41
- json (~> 1.7, >= 1.7.7)
42
45
  minitest (~> 5.1)
43
- thread_safe (~> 0.3, >= 0.3.4)
44
46
  tzinfo (~> 1.1)
45
- arel (6.0.3)
47
+ arel (8.0.0)
46
48
  ast (2.2.0)
47
- builder (3.2.2)
49
+ builder (3.2.3)
50
+ concurrent-ruby (1.0.5)
48
51
  diff-lcs (1.2.5)
49
- erubis (2.7.0)
50
- globalid (0.3.6)
51
- activesupport (>= 4.1.0)
52
- i18n (0.7.0)
53
- json (1.8.3)
52
+ erubi (1.6.0)
53
+ globalid (0.4.0)
54
+ activesupport (>= 4.2.0)
55
+ i18n (0.8.1)
54
56
  loofah (2.0.3)
55
57
  nokogiri (>= 1.5.9)
56
- mail (2.6.3)
57
- mime-types (>= 1.16, < 3)
58
- mime-types (2.6.2)
59
- mini_portile (0.6.2)
60
- minitest (5.8.3)
61
- nokogiri (1.6.6.2)
62
- mini_portile (~> 0.6.0)
58
+ mail (2.6.5)
59
+ mime-types (>= 1.16, < 4)
60
+ method_source (0.8.2)
61
+ mime-types (3.1)
62
+ mime-types-data (~> 3.2015)
63
+ mime-types-data (3.2016.0521)
64
+ mini_portile2 (2.1.0)
65
+ minitest (5.10.2)
66
+ nio4r (2.0.0)
67
+ nokogiri (1.7.2)
68
+ mini_portile2 (~> 2.1.0)
63
69
  parser (2.3.0.7)
64
70
  ast (~> 2.2)
65
71
  powerpack (0.1.1)
66
- rack (1.6.4)
72
+ rack (2.0.3)
67
73
  rack-test (0.6.3)
68
74
  rack (>= 1.0)
69
- rails (4.2.4)
70
- actionmailer (= 4.2.4)
71
- actionpack (= 4.2.4)
72
- actionview (= 4.2.4)
73
- activejob (= 4.2.4)
74
- activemodel (= 4.2.4)
75
- activerecord (= 4.2.4)
76
- activesupport (= 4.2.4)
75
+ rails (5.1.1)
76
+ actioncable (= 5.1.1)
77
+ actionmailer (= 5.1.1)
78
+ actionpack (= 5.1.1)
79
+ actionview (= 5.1.1)
80
+ activejob (= 5.1.1)
81
+ activemodel (= 5.1.1)
82
+ activerecord (= 5.1.1)
83
+ activesupport (= 5.1.1)
77
84
  bundler (>= 1.3.0, < 2.0)
78
- railties (= 4.2.4)
79
- sprockets-rails
80
- rails-deprecated_sanitizer (1.0.3)
81
- activesupport (>= 4.2.0.alpha)
82
- rails-dom-testing (1.0.7)
83
- activesupport (>= 4.2.0.beta, < 5.0)
84
- nokogiri (~> 1.6.0)
85
- rails-deprecated_sanitizer (>= 1.0.1)
86
- rails-html-sanitizer (1.0.2)
85
+ railties (= 5.1.1)
86
+ sprockets-rails (>= 2.0.0)
87
+ rails-dom-testing (2.0.3)
88
+ activesupport (>= 4.2.0)
89
+ nokogiri (>= 1.6)
90
+ rails-html-sanitizer (1.0.3)
87
91
  loofah (~> 2.0)
88
- railties (4.2.4)
89
- actionpack (= 4.2.4)
90
- activesupport (= 4.2.4)
92
+ railties (5.1.1)
93
+ actionpack (= 5.1.1)
94
+ activesupport (= 5.1.1)
95
+ method_source
91
96
  rake (>= 0.8.7)
92
97
  thor (>= 0.18.1, < 2.0)
93
98
  rainbow (2.1.0)
94
- rake (10.4.2)
99
+ rake (12.0.0)
95
100
  rspec (3.3.0)
96
101
  rspec-core (~> 3.3.0)
97
102
  rspec-expectations (~> 3.3.0)
@@ -112,17 +117,21 @@ GEM
112
117
  ruby-progressbar (~> 1.7)
113
118
  unicode-display_width (~> 1.0, >= 1.0.1)
114
119
  ruby-progressbar (1.7.5)
115
- sprockets (3.3.5)
120
+ sprockets (3.7.1)
121
+ concurrent-ruby (~> 1.0)
116
122
  rack (> 1, < 3)
117
- sprockets-rails (2.3.3)
118
- actionpack (>= 3.0)
119
- activesupport (>= 3.0)
120
- sprockets (>= 2.8, < 4.0)
121
- thor (0.19.1)
122
- thread_safe (0.3.5)
123
- tzinfo (1.2.2)
123
+ sprockets-rails (3.2.0)
124
+ actionpack (>= 4.0)
125
+ activesupport (>= 4.0)
126
+ sprockets (>= 3.0.0)
127
+ thor (0.19.4)
128
+ thread_safe (0.3.6)
129
+ tzinfo (1.2.3)
124
130
  thread_safe (~> 0.1)
125
131
  unicode-display_width (1.0.2)
132
+ websocket-driver (0.6.5)
133
+ websocket-extensions (>= 0.1.0)
134
+ websocket-extensions (0.1.2)
126
135
 
127
136
  PLATFORMS
128
137
  ruby
data/README.md CHANGED
@@ -47,6 +47,11 @@ end
47
47
 
48
48
  With the Engine mounted at `/passages`, the rendered page will display a search box and list of all known routes within the application.
49
49
 
50
+ ### Rails 5 and Above
51
+
52
+ Rails 5 apps should use version 2.0 of this gem, everyone below should use
53
+ 1.5.2
54
+
50
55
  ## Authorization
51
56
 
52
57
  Since there are no environment dependent checks, the `/passages` page uses configurable http basic authentication.
@@ -1,6 +1,6 @@
1
1
  <tr>
2
2
  <% Passages::Route.attributes_for_display.each do |attribute| %>
3
- <td data-search='<%= route.send(attribute).downcase %>' data-matching-attribute='<%=attribute%>'>
3
+ <td data-search='<%= route.send(attribute).try(:downcase) %>' data-matching-attribute='<%=attribute%>'>
4
4
  <%= route.send(attribute) %>
5
5
  </td>
6
6
  <% end %>
@@ -6,13 +6,15 @@ module Passages
6
6
  # Main DelegateClass used for decoration and discerning if a route is
7
7
  # a "regular" route or a mount route
8
8
  class Route < DelegateClass(ActionDispatch::Routing::RouteWrapper)
9
+ ATTRIBUTES_FOR_DISPLAY = %w(name verb controller action path).freeze
10
+
9
11
  def initialize(route)
10
12
  super(ActionDispatch::Routing::RouteWrapper.new(route))
11
13
  end
12
14
 
13
15
  class << self
14
16
  def attributes_for_display
15
- %w(name verb controller action path)
17
+ ATTRIBUTES_FOR_DISPLAY
16
18
  end
17
19
 
18
20
  def from_raw_route(raw_route)
data/passages.gemspec CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |s|
20
20
  s.files = `git ls-files`.split("\n")
21
21
  s.test_files = s.files.grep(%r{^spec/})
22
22
 
23
- s.required_ruby_version = '>= 2.0.0'
24
- s.add_dependency 'rails', '~> 4.0'
23
+ s.required_ruby_version = '>= 2.2.2'
24
+ s.add_dependency 'rails', '~> 5.0'
25
25
 
26
26
  s.add_development_dependency 'rspec', '~> 3.2'
27
27
  s.add_development_dependency 'rubocop', '0.39.0'
data/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Passages
2
- MAJOR = 1
3
- MINOR = 5
4
- TINY = 2
2
+ MAJOR = 2
3
+ MINOR = 0
4
+ TINY = 0
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join('.').freeze
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passages
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Yesbeck
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-02 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '5.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
- version: '4.0'
26
+ version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - ">="
120
120
  - !ruby/object:Gem::Version
121
- version: 2.0.0
121
+ version: 2.2.2
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - ">="