js-routes 1.0.1 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +19 -4
- data/Appraisals +2 -2
- data/CHANGELOG.md +70 -0
- data/Rakefile +14 -1
- data/Readme.md +23 -11
- data/gemfiles/rails42.gemfile +1 -1
- data/gemfiles/rails42_sprockets3.gemfile +1 -1
- data/gemfiles/rails50.gemfile +8 -0
- data/gemfiles/rails50_sprockets3.gemfile +8 -0
- data/js-routes.gemspec +2 -2
- data/lib/js_routes/engine.rb +62 -14
- data/lib/js_routes/version.rb +1 -1
- data/lib/js_routes.rb +76 -60
- data/lib/routes.js +163 -100
- data/lib/routes.js.coffee +113 -54
- data/spec/js_routes/default_serializer_spec.rb +13 -0
- data/spec/js_routes/generated_javascript_spec.rb +12 -0
- data/spec/js_routes/options_spec.rb +90 -20
- data/spec/js_routes/rails_routes_compatibility_spec.rb +46 -49
- data/spec/js_routes/zzz_last_post_rails_init_spec.rb +3 -9
- data/spec/spec_helper.rb +31 -57
- data/spec/support/routes.rb +71 -0
- metadata +14 -12
- data/Guardfile +0 -3
- data/temp +0 -2
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: js-routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bogdan Gusiev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.1.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: coffee-script
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,33 +81,33 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: appraisal
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 0.5.2
|
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
|
-
version:
|
96
|
+
version: 0.5.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: byebug
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0
|
103
|
+
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: therubyracer
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,7 +137,6 @@ files:
|
|
137
137
|
- Appraisals
|
138
138
|
- CHANGELOG.md
|
139
139
|
- Gemfile
|
140
|
-
- Guardfile
|
141
140
|
- LICENSE.txt
|
142
141
|
- Rakefile
|
143
142
|
- Readme.md
|
@@ -149,6 +148,8 @@ files:
|
|
149
148
|
- gemfiles/rails41_sprockets3.gemfile
|
150
149
|
- gemfiles/rails42.gemfile
|
151
150
|
- gemfiles/rails42_sprockets3.gemfile
|
151
|
+
- gemfiles/rails50.gemfile
|
152
|
+
- gemfiles/rails50_sprockets3.gemfile
|
152
153
|
- js-routes.gemspec
|
153
154
|
- lib/js-routes.rb
|
154
155
|
- lib/js_routes.rb
|
@@ -160,12 +161,13 @@ files:
|
|
160
161
|
- spec/dummy/app/assets/javascripts/.gitkeep
|
161
162
|
- spec/dummy/config/routes.rb
|
162
163
|
- spec/js_routes/amd_compatibility_spec.rb
|
164
|
+
- spec/js_routes/default_serializer_spec.rb
|
163
165
|
- spec/js_routes/generated_javascript_spec.rb
|
164
166
|
- spec/js_routes/options_spec.rb
|
165
167
|
- spec/js_routes/rails_routes_compatibility_spec.rb
|
166
168
|
- spec/js_routes/zzz_last_post_rails_init_spec.rb
|
167
169
|
- spec/spec_helper.rb
|
168
|
-
-
|
170
|
+
- spec/support/routes.rb
|
169
171
|
homepage: http://github.com/railsware/js-routes
|
170
172
|
licenses:
|
171
173
|
- MIT
|
@@ -186,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
188
|
version: '0'
|
187
189
|
requirements: []
|
188
190
|
rubyforge_project:
|
189
|
-
rubygems_version: 2.
|
191
|
+
rubygems_version: 2.5.1
|
190
192
|
signing_key:
|
191
193
|
specification_version: 4
|
192
194
|
summary: Brings Rails named routes to javascript
|
data/Guardfile
DELETED
data/temp
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
#<ActionDispatch::Journey::Route:0x007f8c4bdba798 @name="blog_app", @app=BlogEngine::Engine, @path=#<ActionDispatch::Journey::Path::Pattern:0x007f8c4bdbb120 @anchored=false, @spec=/blog, @requirements={}, @separators="/.?", @names=[], @optional_names=[], @required_names=[], @re=nil, @offsets=nil>, @dispatcher=false, @constraints={:required_defaults=>[]}, @defaults={}, @required_defaults=nil, @required_parts=[], @parts=[], @decorated_ast=nil, @precedence=61>
|
2
|
-
#<ActionDispatch::Journey::Route:0x007f8c4a861658 @name="support", @app=BlogEngine::Engine, @path=#<ActionDispatch::Journey::Path::Pattern:0x007f8c4a85c838 @anchored=true, @spec=/support(/page/:page)(.:format), @requirements={}, @separators="/.?", @names=["page", "format"], @optional_names=["page", "format"], @required_names=[], @re=nil, @offsets=nil>, @dispatcher=false, @constraints={:required_defaults=>[], :request_method=>/^GET$/}, @defaults={}, @required_defaults=nil, @required_parts=[], @parts=[:page, :format], @decorated_ast=nil, @precedence=0>
|