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 +4 -4
- data/Gemfile.lock +84 -75
- data/README.md +5 -0
- data/app/views/passages/routes/_route.html.erb +1 -1
- data/lib/passages/route.rb +3 -1
- data/passages.gemspec +2 -2
- data/version.rb +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9222ad73782391482c0c599d4cc2fab3a731b1d
|
4
|
+
data.tar.gz: 3e813114c9aa59ae36a1e4a37350ac48b4f9309b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 (
|
5
|
-
rails (~>
|
4
|
+
passages (2.0.0)
|
5
|
+
rails (~> 5.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
actionpack (=
|
12
|
-
|
13
|
-
|
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 (~>
|
16
|
-
actionpack (
|
17
|
-
actionview (=
|
18
|
-
activesupport (=
|
19
|
-
rack (~>
|
20
|
-
rack-test (~> 0.6.
|
21
|
-
rails-dom-testing (~>
|
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 (
|
24
|
-
activesupport (=
|
27
|
+
actionview (5.1.1)
|
28
|
+
activesupport (= 5.1.1)
|
25
29
|
builder (~> 3.1)
|
26
|
-
|
27
|
-
rails-dom-testing (~>
|
28
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
29
|
-
activejob (
|
30
|
-
activesupport (=
|
31
|
-
globalid (>= 0.3.
|
32
|
-
activemodel (
|
33
|
-
activesupport (=
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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 (
|
47
|
+
arel (8.0.0)
|
46
48
|
ast (2.2.0)
|
47
|
-
builder (3.2.
|
49
|
+
builder (3.2.3)
|
50
|
+
concurrent-ruby (1.0.5)
|
48
51
|
diff-lcs (1.2.5)
|
49
|
-
|
50
|
-
globalid (0.
|
51
|
-
activesupport (>= 4.
|
52
|
-
i18n (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.
|
57
|
-
mime-types (>= 1.16, <
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
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 (
|
72
|
+
rack (2.0.3)
|
67
73
|
rack-test (0.6.3)
|
68
74
|
rack (>= 1.0)
|
69
|
-
rails (
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
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 (=
|
79
|
-
sprockets-rails
|
80
|
-
rails-
|
81
|
-
activesupport (>= 4.2.0
|
82
|
-
|
83
|
-
|
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 (
|
89
|
-
actionpack (=
|
90
|
-
activesupport (=
|
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 (
|
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.
|
120
|
+
sprockets (3.7.1)
|
121
|
+
concurrent-ruby (~> 1.0)
|
116
122
|
rack (> 1, < 3)
|
117
|
-
sprockets-rails (2.
|
118
|
-
actionpack (>=
|
119
|
-
activesupport (>=
|
120
|
-
sprockets (>=
|
121
|
-
thor (0.19.
|
122
|
-
thread_safe (0.3.
|
123
|
-
tzinfo (1.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 %>
|
data/lib/passages/route.rb
CHANGED
@@ -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
|
-
|
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.
|
24
|
-
s.add_dependency 'rails', '~>
|
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
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:
|
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:
|
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: '
|
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: '
|
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.
|
121
|
+
version: 2.2.2
|
122
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
124
|
- - ">="
|