unpoly-rails 0.37.0 → 0.50.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of unpoly-rails might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +127 -25
- data/LICENSE +1 -1
- data/README_RAILS.md +4 -2
- data/Rakefile +6 -1
- data/dist/unpoly.js +3192 -2198
- data/dist/unpoly.min.js +4 -3
- data/lib/assets/javascripts/unpoly/browser.coffee +51 -63
- data/lib/assets/javascripts/unpoly/bus.coffee +58 -33
- data/lib/assets/javascripts/unpoly/classes/cache.coffee +117 -0
- data/lib/assets/javascripts/unpoly/{dom → classes}/extract_cascade.coffee +3 -3
- data/lib/assets/javascripts/unpoly/{dom → classes}/extract_plan.coffee +1 -1
- data/lib/assets/javascripts/unpoly/classes/field_observer.coffee +57 -0
- data/lib/assets/javascripts/unpoly/classes/follow_variant.coffee +52 -0
- data/lib/assets/javascripts/unpoly/classes/motion_tracker.coffee +95 -0
- data/lib/assets/javascripts/unpoly/classes/record.coffee +16 -0
- data/lib/assets/javascripts/unpoly/classes/request.coffee +228 -0
- data/lib/assets/javascripts/unpoly/classes/response.coffee +138 -0
- data/lib/assets/javascripts/unpoly/dom.coffee +151 -142
- data/lib/assets/javascripts/unpoly/feedback.coffee +67 -38
- data/lib/assets/javascripts/unpoly/form.coffee +156 -139
- data/lib/assets/javascripts/unpoly/history.coffee +22 -19
- data/lib/assets/javascripts/unpoly/layout.coffee +108 -90
- data/lib/assets/javascripts/unpoly/link.coffee +159 -158
- data/lib/assets/javascripts/unpoly/log.coffee +5 -5
- data/lib/assets/javascripts/unpoly/modal.coffee +93 -81
- data/lib/assets/javascripts/unpoly/motion.coffee +291 -250
- data/lib/assets/javascripts/unpoly/popup.coffee +67 -53
- data/lib/assets/javascripts/unpoly/protocol.coffee +67 -16
- data/lib/assets/javascripts/unpoly/proxy.coffee +282 -211
- data/lib/assets/javascripts/unpoly/rails.coffee +3 -14
- data/lib/assets/javascripts/unpoly/syntax.coffee +54 -49
- data/lib/assets/javascripts/unpoly/tooltip.coffee +18 -25
- data/lib/assets/javascripts/unpoly/util.coffee +236 -477
- data/lib/assets/javascripts/unpoly.coffee +1 -1
- data/lib/unpoly/rails/inspector.rb +67 -22
- data/lib/unpoly/rails/version.rb +1 -1
- data/package.json +1 -1
- data/spec_app/Gemfile.lock +13 -13
- data/spec_app/app/assets/javascripts/integration_test.coffee +1 -0
- data/spec_app/app/assets/javascripts/jasmine_specs.coffee +1 -1
- data/spec_app/app/assets/stylesheets/jasmine_specs.sass +10 -0
- data/spec_app/app/controllers/binding_test_controller.rb +19 -2
- data/spec_app/app/controllers/method_test_controller.rb +16 -0
- data/spec_app/app/views/layouts/jasmine_rails/spec_runner.html.erb +20 -0
- data/spec_app/app/views/method_test/form_target.erb +17 -0
- data/spec_app/app/views/method_test/page1.erb +11 -0
- data/spec_app/app/views/method_test/page2.erb +6 -0
- data/spec_app/app/views/pages/start.erb +33 -19
- data/spec_app/config/initializers/assets.rb +5 -0
- data/spec_app/config/routes.rb +3 -0
- data/spec_app/spec/controllers/binding_test_controller_spec.rb +82 -27
- data/spec_app/spec/javascripts/helpers/agent_detector.coffee +17 -0
- data/spec_app/spec/javascripts/helpers/async_sequence.js.coffee +102 -0
- data/spec_app/spec/javascripts/helpers/last_request.js.coffee +1 -1
- data/spec_app/spec/javascripts/helpers/mock_ajax.js.coffee +5 -2
- data/spec_app/spec/javascripts/helpers/promise_state.js +18 -0
- data/spec_app/spec/javascripts/helpers/protect_jasmine_runner.coffee +9 -0
- data/spec_app/spec/javascripts/helpers/reset_history.js.coffee +22 -0
- data/spec_app/spec/javascripts/helpers/reset_up.js.coffee +11 -3
- data/spec_app/spec/javascripts/helpers/show_lib_versions.coffee +10 -0
- data/spec_app/spec/javascripts/helpers/to_be_error.coffee +5 -0
- data/spec_app/spec/javascripts/helpers/to_match_url.coffee +13 -0
- data/spec_app/spec/javascripts/helpers/trigger.js.coffee +13 -6
- data/spec_app/spec/javascripts/up/browser_spec.js.coffee +92 -33
- data/spec_app/spec/javascripts/up/bus_spec.js.coffee +64 -15
- data/spec_app/spec/javascripts/up/classes/.keep +0 -0
- data/spec_app/spec/javascripts/up/classes/cache_spec.js.coffee +1 -0
- data/spec_app/spec/javascripts/up/dom_spec.js.coffee +759 -551
- data/spec_app/spec/javascripts/up/feedback_spec.js.coffee +155 -82
- data/spec_app/spec/javascripts/up/form_spec.js.coffee +490 -349
- data/spec_app/spec/javascripts/up/history_spec.js.coffee +226 -179
- data/spec_app/spec/javascripts/up/layout_spec.js.coffee +253 -185
- data/spec_app/spec/javascripts/up/link_spec.js.coffee +416 -270
- data/spec_app/spec/javascripts/up/modal_spec.js.coffee +459 -330
- data/spec_app/spec/javascripts/up/motion_spec.js.coffee +198 -153
- data/spec_app/spec/javascripts/up/namespace_spec.js.coffee +9 -0
- data/spec_app/spec/javascripts/up/popup_spec.js.coffee +240 -175
- data/spec_app/spec/javascripts/up/protocol_spec.js.coffee +38 -0
- data/spec_app/spec/javascripts/up/proxy_spec.js.coffee +777 -303
- data/spec_app/spec/javascripts/up/rails_spec.js.coffee +24 -8
- data/spec_app/spec/javascripts/up/syntax_spec.js.coffee +40 -23
- data/spec_app/spec/javascripts/up/tooltip_spec.js.coffee +80 -66
- data/spec_app/spec/javascripts/up/util_spec.js.coffee +227 -201
- data/spec_app/vendor/asset-libs/es6-promise-4.1.6/es6-promise.auto.js +1159 -0
- metadata +30 -7
- data/spec_app/spec/javascripts/helpers/reset_path.js.coffee +0 -7
- data/spec_app/spec/javascripts/helpers/to_equal_url.coffee +0 -11
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unpoly-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.50.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Koch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -96,9 +96,16 @@ files:
|
|
96
96
|
- lib/assets/javascripts/unpoly.coffee
|
97
97
|
- lib/assets/javascripts/unpoly/browser.coffee
|
98
98
|
- lib/assets/javascripts/unpoly/bus.coffee
|
99
|
+
- lib/assets/javascripts/unpoly/classes/cache.coffee
|
100
|
+
- lib/assets/javascripts/unpoly/classes/extract_cascade.coffee
|
101
|
+
- lib/assets/javascripts/unpoly/classes/extract_plan.coffee
|
102
|
+
- lib/assets/javascripts/unpoly/classes/field_observer.coffee
|
103
|
+
- lib/assets/javascripts/unpoly/classes/follow_variant.coffee
|
104
|
+
- lib/assets/javascripts/unpoly/classes/motion_tracker.coffee
|
105
|
+
- lib/assets/javascripts/unpoly/classes/record.coffee
|
106
|
+
- lib/assets/javascripts/unpoly/classes/request.coffee
|
107
|
+
- lib/assets/javascripts/unpoly/classes/response.coffee
|
99
108
|
- lib/assets/javascripts/unpoly/dom.coffee
|
100
|
-
- lib/assets/javascripts/unpoly/dom/extract_cascade.coffee
|
101
|
-
- lib/assets/javascripts/unpoly/dom/extract_plan.coffee
|
102
109
|
- lib/assets/javascripts/unpoly/feedback.coffee
|
103
110
|
- lib/assets/javascripts/unpoly/form.coffee
|
104
111
|
- lib/assets/javascripts/unpoly/history.coffee
|
@@ -156,6 +163,7 @@ files:
|
|
156
163
|
- spec_app/app/controllers/error_test_controller.rb
|
157
164
|
- spec_app/app/controllers/form_test/basics_controller.rb
|
158
165
|
- spec_app/app/controllers/form_test/uploads_controller.rb
|
166
|
+
- spec_app/app/controllers/method_test_controller.rb
|
159
167
|
- spec_app/app/controllers/pages_controller.rb
|
160
168
|
- spec_app/app/controllers/replace_test_controller.rb
|
161
169
|
- spec_app/app/helpers/application_helper.rb
|
@@ -173,6 +181,10 @@ files:
|
|
173
181
|
- spec_app/app/views/form_test/submission_result.erb
|
174
182
|
- spec_app/app/views/form_test/uploads/new.erb
|
175
183
|
- spec_app/app/views/layouts/integration_test.erb
|
184
|
+
- spec_app/app/views/layouts/jasmine_rails/spec_runner.html.erb
|
185
|
+
- spec_app/app/views/method_test/form_target.erb
|
186
|
+
- spec_app/app/views/method_test/page1.erb
|
187
|
+
- spec_app/app/views/method_test/page2.erb
|
176
188
|
- spec_app/app/views/pages/start.erb
|
177
189
|
- spec_app/app/views/replace_test/_nav.erb
|
178
190
|
- spec_app/app/views/replace_test/page1.erb
|
@@ -215,7 +227,9 @@ files:
|
|
215
227
|
- spec_app/public/robots.txt
|
216
228
|
- spec_app/script/cucumber
|
217
229
|
- spec_app/spec/controllers/binding_test_controller_spec.rb
|
230
|
+
- spec_app/spec/javascripts/helpers/agent_detector.coffee
|
218
231
|
- spec_app/spec/javascripts/helpers/append_fixture.js.coffee
|
232
|
+
- spec_app/spec/javascripts/helpers/async_sequence.js.coffee
|
219
233
|
- spec_app/spec/javascripts/helpers/browser_switches.js.coffee
|
220
234
|
- spec_app/spec/javascripts/helpers/enable_logging.js.coffee
|
221
235
|
- spec_app/spec/javascripts/helpers/index.js.coffee
|
@@ -224,13 +238,17 @@ files:
|
|
224
238
|
- spec_app/spec/javascripts/helpers/mock_ajax.js.coffee
|
225
239
|
- spec_app/spec/javascripts/helpers/mock_clock.js.coffee
|
226
240
|
- spec_app/spec/javascripts/helpers/parse_form_data.js.coffee
|
241
|
+
- spec_app/spec/javascripts/helpers/promise_state.js
|
242
|
+
- spec_app/spec/javascripts/helpers/protect_jasmine_runner.coffee
|
227
243
|
- spec_app/spec/javascripts/helpers/remove_body_margin.js.coffee
|
244
|
+
- spec_app/spec/javascripts/helpers/reset_history.js.coffee
|
228
245
|
- spec_app/spec/javascripts/helpers/reset_knife.js.coffee
|
229
|
-
- spec_app/spec/javascripts/helpers/reset_path.js.coffee
|
230
246
|
- spec_app/spec/javascripts/helpers/reset_up.js.coffee
|
231
247
|
- spec_app/spec/javascripts/helpers/restore_body_scroll.js.coffee
|
248
|
+
- spec_app/spec/javascripts/helpers/show_lib_versions.coffee
|
232
249
|
- spec_app/spec/javascripts/helpers/to_be_around.js.coffee
|
233
250
|
- spec_app/spec/javascripts/helpers/to_be_blank.js.coffee
|
251
|
+
- spec_app/spec/javascripts/helpers/to_be_error.coffee
|
234
252
|
- spec_app/spec/javascripts/helpers/to_be_given.js.coffee
|
235
253
|
- spec_app/spec/javascripts/helpers/to_be_jquery.js.coffee
|
236
254
|
- spec_app/spec/javascripts/helpers/to_be_missing.js.coffee
|
@@ -239,13 +257,15 @@ files:
|
|
239
257
|
- spec_app/spec/javascripts/helpers/to_contain.js.coffee
|
240
258
|
- spec_app/spec/javascripts/helpers/to_end_with.js.coffee
|
241
259
|
- spec_app/spec/javascripts/helpers/to_equal_jquery.js.coffee
|
242
|
-
- spec_app/spec/javascripts/helpers/to_equal_url.coffee
|
243
260
|
- spec_app/spec/javascripts/helpers/to_have_request_method.js.coffee
|
261
|
+
- spec_app/spec/javascripts/helpers/to_match_url.coffee
|
244
262
|
- spec_app/spec/javascripts/helpers/trigger.js.coffee
|
245
263
|
- spec_app/spec/javascripts/helpers/wait_until_dom_ready.js.coffee
|
246
264
|
- spec_app/spec/javascripts/support/jasmine.yml
|
247
265
|
- spec_app/spec/javascripts/up/browser_spec.js.coffee
|
248
266
|
- spec_app/spec/javascripts/up/bus_spec.js.coffee
|
267
|
+
- spec_app/spec/javascripts/up/classes/.keep
|
268
|
+
- spec_app/spec/javascripts/up/classes/cache_spec.js.coffee
|
249
269
|
- spec_app/spec/javascripts/up/dom_spec.js.coffee
|
250
270
|
- spec_app/spec/javascripts/up/feedback_spec.js.coffee
|
251
271
|
- spec_app/spec/javascripts/up/form_spec.js.coffee
|
@@ -255,7 +275,9 @@ files:
|
|
255
275
|
- spec_app/spec/javascripts/up/log_spec.js.coffee
|
256
276
|
- spec_app/spec/javascripts/up/modal_spec.js.coffee
|
257
277
|
- spec_app/spec/javascripts/up/motion_spec.js.coffee
|
278
|
+
- spec_app/spec/javascripts/up/namespace_spec.js.coffee
|
258
279
|
- spec_app/spec/javascripts/up/popup_spec.js.coffee
|
280
|
+
- spec_app/spec/javascripts/up/protocol_spec.js.coffee
|
259
281
|
- spec_app/spec/javascripts/up/proxy_spec.js.coffee
|
260
282
|
- spec_app/spec/javascripts/up/rails_spec.js.coffee
|
261
283
|
- spec_app/spec/javascripts/up/syntax_spec.js.coffee
|
@@ -269,6 +291,7 @@ files:
|
|
269
291
|
- spec_app/test/mailers/.keep
|
270
292
|
- spec_app/test/models/.keep
|
271
293
|
- spec_app/test/test_helper.rb
|
294
|
+
- spec_app/vendor/asset-libs/es6-promise-4.1.6/es6-promise.auto.js
|
272
295
|
- spec_app/vendor/asset-libs/jasmine-ajax-3.3.1/.bower.json
|
273
296
|
- spec_app/vendor/asset-libs/jasmine-ajax-3.3.1/.gitignore
|
274
297
|
- spec_app/vendor/asset-libs/jasmine-ajax-3.3.1/.npmignore
|
@@ -300,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
300
323
|
version: '0'
|
301
324
|
requirements: []
|
302
325
|
rubyforge_project:
|
303
|
-
rubygems_version: 2.6.
|
326
|
+
rubygems_version: 2.6.13
|
304
327
|
signing_key:
|
305
328
|
specification_version: 4
|
306
329
|
summary: Rails bindings for Unpoly, the unobtrusive JavaScript framework
|
@@ -1,11 +0,0 @@
|
|
1
|
-
u = up.util
|
2
|
-
|
3
|
-
beforeEach ->
|
4
|
-
jasmine.addMatchers
|
5
|
-
toEqualUrl: (util, customEqualityTesters) ->
|
6
|
-
compare: (actual, expected, normalizeOptions = {}) ->
|
7
|
-
normalizedActual = u.normalizeUrl(actual, normalizeOptions)
|
8
|
-
normalizedExpected = u.normalizeUrl(expected, normalizeOptions)
|
9
|
-
pass: normalizedActual == normalizedExpected
|
10
|
-
|
11
|
-
|