actionpack-direct_routes 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +39 -0
  4. data/Rakefile +34 -0
  5. data/lib/action_dispatch/routing/direct_routes/mapper.rb +17 -0
  6. data/lib/action_dispatch/routing/direct_routes/mapper/scope.rb +15 -0
  7. data/lib/action_dispatch/routing/direct_routes/route_set.rb +89 -0
  8. data/lib/action_dispatch/routing/direct_routes/route_set/custom_url_helper.rb +39 -0
  9. data/lib/action_dispatch/routing/direct_routes/route_set/named_route_collection.rb +36 -0
  10. data/lib/actionpack/direct_routes.rb +15 -0
  11. data/lib/actionpack/direct_routes/version.rb +5 -0
  12. data/test/application/routing_test.rb +206 -0
  13. data/test/dummy/README.rdoc +28 -0
  14. data/test/dummy/Rakefile +6 -0
  15. data/test/dummy/app/assets/javascripts/application.js +13 -0
  16. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  17. data/test/dummy/app/controllers/application_controller.rb +5 -0
  18. data/test/dummy/app/helpers/application_helper.rb +2 -0
  19. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  20. data/test/dummy/bin/bundle +3 -0
  21. data/test/dummy/bin/rails +4 -0
  22. data/test/dummy/bin/rake +4 -0
  23. data/test/dummy/bin/setup +29 -0
  24. data/test/dummy/config.ru +4 -0
  25. data/test/dummy/config/application.rb +26 -0
  26. data/test/dummy/config/boot.rb +5 -0
  27. data/test/dummy/config/database.yml +25 -0
  28. data/test/dummy/config/environment.rb +5 -0
  29. data/test/dummy/config/environments/development.rb +41 -0
  30. data/test/dummy/config/environments/production.rb +79 -0
  31. data/test/dummy/config/environments/test.rb +42 -0
  32. data/test/dummy/config/initializers/assets.rb +11 -0
  33. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  35. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  36. data/test/dummy/config/initializers/inflections.rb +16 -0
  37. data/test/dummy/config/initializers/mime_types.rb +4 -0
  38. data/test/dummy/config/initializers/session_store.rb +3 -0
  39. data/test/dummy/config/initializers/to_time_preserves_timezone.rb +10 -0
  40. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/test/dummy/config/locales/en.yml +23 -0
  42. data/test/dummy/config/routes.rb +56 -0
  43. data/test/dummy/config/secrets.yml +22 -0
  44. data/test/dummy/db/test.sqlite3 +0 -0
  45. data/test/dummy/log/test.log +690 -0
  46. data/test/dummy/public/404.html +67 -0
  47. data/test/dummy/public/422.html +67 -0
  48. data/test/dummy/public/500.html +66 -0
  49. data/test/dummy/public/favicon.ico +0 -0
  50. data/test/integration/custom_url_helpers_test.rb +238 -0
  51. data/test/test_helper.rb +20 -0
  52. metadata +219 -0
metadata ADDED
@@ -0,0 +1,219 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: actionpack-direct_routes
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - hamuyuuki
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-10-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: actionpack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 4.2.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 4.2.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 5.1.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 5.1.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 4.2.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 4.2.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sqlite3
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.3.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.3.0
97
+ description: "`actionpack-direct_routes` backports Direct routes into Rails 4 and
98
+ Rails 5.0. Rails 5.1 adds Direct routes that you can create custom URL helpers directly."
99
+ email:
100
+ - 13702378+hamuyuuki@users.noreply.github.com
101
+ executables: []
102
+ extensions: []
103
+ extra_rdoc_files: []
104
+ files:
105
+ - MIT-LICENSE
106
+ - README.md
107
+ - Rakefile
108
+ - lib/action_dispatch/routing/direct_routes/mapper.rb
109
+ - lib/action_dispatch/routing/direct_routes/mapper/scope.rb
110
+ - lib/action_dispatch/routing/direct_routes/route_set.rb
111
+ - lib/action_dispatch/routing/direct_routes/route_set/custom_url_helper.rb
112
+ - lib/action_dispatch/routing/direct_routes/route_set/named_route_collection.rb
113
+ - lib/actionpack/direct_routes.rb
114
+ - lib/actionpack/direct_routes/version.rb
115
+ - test/application/routing_test.rb
116
+ - test/dummy/README.rdoc
117
+ - test/dummy/Rakefile
118
+ - test/dummy/app/assets/javascripts/application.js
119
+ - test/dummy/app/assets/stylesheets/application.css
120
+ - test/dummy/app/controllers/application_controller.rb
121
+ - test/dummy/app/helpers/application_helper.rb
122
+ - test/dummy/app/views/layouts/application.html.erb
123
+ - test/dummy/bin/bundle
124
+ - test/dummy/bin/rails
125
+ - test/dummy/bin/rake
126
+ - test/dummy/bin/setup
127
+ - test/dummy/config.ru
128
+ - test/dummy/config/application.rb
129
+ - test/dummy/config/boot.rb
130
+ - test/dummy/config/database.yml
131
+ - test/dummy/config/environment.rb
132
+ - test/dummy/config/environments/development.rb
133
+ - test/dummy/config/environments/production.rb
134
+ - test/dummy/config/environments/test.rb
135
+ - test/dummy/config/initializers/assets.rb
136
+ - test/dummy/config/initializers/backtrace_silencers.rb
137
+ - test/dummy/config/initializers/cookies_serializer.rb
138
+ - test/dummy/config/initializers/filter_parameter_logging.rb
139
+ - test/dummy/config/initializers/inflections.rb
140
+ - test/dummy/config/initializers/mime_types.rb
141
+ - test/dummy/config/initializers/session_store.rb
142
+ - test/dummy/config/initializers/to_time_preserves_timezone.rb
143
+ - test/dummy/config/initializers/wrap_parameters.rb
144
+ - test/dummy/config/locales/en.yml
145
+ - test/dummy/config/routes.rb
146
+ - test/dummy/config/secrets.yml
147
+ - test/dummy/db/test.sqlite3
148
+ - test/dummy/log/test.log
149
+ - test/dummy/public/404.html
150
+ - test/dummy/public/422.html
151
+ - test/dummy/public/500.html
152
+ - test/dummy/public/favicon.ico
153
+ - test/integration/custom_url_helpers_test.rb
154
+ - test/test_helper.rb
155
+ homepage: https://github.com/hamuyuuki/actionpack-direct_routes
156
+ licenses:
157
+ - MIT
158
+ metadata: {}
159
+ post_install_message:
160
+ rdoc_options: []
161
+ require_paths:
162
+ - lib
163
+ required_ruby_version: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ required_rubygems_version: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ requirements: []
174
+ rubyforge_project:
175
+ rubygems_version: 2.6.14.4
176
+ signing_key:
177
+ specification_version: 4
178
+ summary: Backport Direct routes into Rails 4 and Rails 5.0.
179
+ test_files:
180
+ - test/test_helper.rb
181
+ - test/application/routing_test.rb
182
+ - test/integration/custom_url_helpers_test.rb
183
+ - test/dummy/app/controllers/application_controller.rb
184
+ - test/dummy/app/helpers/application_helper.rb
185
+ - test/dummy/app/views/layouts/application.html.erb
186
+ - test/dummy/app/assets/javascripts/application.js
187
+ - test/dummy/app/assets/stylesheets/application.css
188
+ - test/dummy/config/locales/en.yml
189
+ - test/dummy/config/database.yml
190
+ - test/dummy/config/environments/production.rb
191
+ - test/dummy/config/environments/development.rb
192
+ - test/dummy/config/environments/test.rb
193
+ - test/dummy/config/secrets.yml
194
+ - test/dummy/config/environment.rb
195
+ - test/dummy/config/routes.rb
196
+ - test/dummy/config/boot.rb
197
+ - test/dummy/config/application.rb
198
+ - test/dummy/config/initializers/to_time_preserves_timezone.rb
199
+ - test/dummy/config/initializers/assets.rb
200
+ - test/dummy/config/initializers/cookies_serializer.rb
201
+ - test/dummy/config/initializers/mime_types.rb
202
+ - test/dummy/config/initializers/session_store.rb
203
+ - test/dummy/config/initializers/filter_parameter_logging.rb
204
+ - test/dummy/config/initializers/backtrace_silencers.rb
205
+ - test/dummy/config/initializers/inflections.rb
206
+ - test/dummy/config/initializers/wrap_parameters.rb
207
+ - test/dummy/README.rdoc
208
+ - test/dummy/public/500.html
209
+ - test/dummy/public/favicon.ico
210
+ - test/dummy/public/422.html
211
+ - test/dummy/public/404.html
212
+ - test/dummy/bin/bundle
213
+ - test/dummy/bin/rake
214
+ - test/dummy/bin/rails
215
+ - test/dummy/bin/setup
216
+ - test/dummy/config.ru
217
+ - test/dummy/db/test.sqlite3
218
+ - test/dummy/Rakefile
219
+ - test/dummy/log/test.log