upjs-rails 0.11.1 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -0
  3. data/dist/up-bootstrap.js +9 -17
  4. data/dist/up-bootstrap.min.js +1 -1
  5. data/dist/up.js +384 -458
  6. data/dist/up.min.js +2 -2
  7. data/lib/assets/javascripts/up/boot.js.coffee +2 -2
  8. data/lib/assets/javascripts/up/browser.js.coffee +2 -2
  9. data/lib/assets/javascripts/up/bus.js.coffee +39 -88
  10. data/lib/assets/javascripts/up/flow.js.coffee +25 -33
  11. data/lib/assets/javascripts/up/form.js.coffee +2 -2
  12. data/lib/assets/javascripts/up/history.js.coffee +8 -7
  13. data/lib/assets/javascripts/up/layout.js.coffee +19 -18
  14. data/lib/assets/javascripts/up/link.js.coffee +2 -2
  15. data/lib/assets/javascripts/up/magic.js.coffee +41 -27
  16. data/lib/assets/javascripts/up/modal.js.coffee +74 -57
  17. data/lib/assets/javascripts/up/motion.js.coffee +11 -10
  18. data/lib/assets/javascripts/up/navigation.js.coffee +11 -10
  19. data/lib/assets/javascripts/up/popup.js.coffee +19 -16
  20. data/lib/assets/javascripts/up/proxy.js.coffee +17 -16
  21. data/lib/assets/javascripts/up/tooltip.js.coffee +28 -14
  22. data/lib/assets/javascripts/up/util.js.coffee +14 -22
  23. data/lib/assets/javascripts/up-bootstrap/layout-ext.js.coffee +5 -6
  24. data/lib/assets/javascripts/up-bootstrap/modal-ext.js.coffee +8 -8
  25. data/lib/assets/javascripts/up-bootstrap/navigation-ext.js.coffee +2 -5
  26. data/lib/assets/javascripts/up.js.coffee +0 -1
  27. data/lib/upjs/rails/version.rb +1 -1
  28. data/spec_app/Gemfile.lock +1 -1
  29. data/spec_app/spec/javascripts/up/bus_spec.js.coffee +43 -6
  30. data/spec_app/spec/javascripts/up/flow_spec.js.coffee +1 -1
  31. data/spec_app/spec/javascripts/up/history_spec.js.coffee +3 -3
  32. data/spec_app/spec/javascripts/up/layout_spec.js.coffee +9 -11
  33. data/spec_app/spec/javascripts/up/link_spec.js.coffee +7 -9
  34. data/spec_app/spec/javascripts/up/magic_spec.js.coffee +5 -5
  35. data/spec_app/spec/javascripts/up/modal_spec.js.coffee +8 -10
  36. data/spec_app/spec/javascripts/up/navigation_spec.js.coffee +13 -13
  37. data/spec_app/spec/javascripts/up/popup_spec.js.coffee +1 -5
  38. data/spec_app/spec/javascripts/up/proxy_spec.js.coffee +51 -52
  39. data/spec_app/spec/javascripts/up/tooltip_spec.js.coffee +19 -5
  40. data/spec_app/spec/javascripts/up/util_spec.js.coffee +14 -23
  41. metadata +1 -3
  42. data/lib/assets/javascripts/up/slot.js.coffee +0 -63
  43. data/spec_app/spec/javascripts/up/slot_spec.js.coffee +0 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45aca2d7cd9c8a07f58d4d481a6a37ad7b37b7a3
4
- data.tar.gz: 678ae5a37b08503652573fcc6e18eebf5957cf1a
3
+ metadata.gz: b92f1a5f0bbaa4e375c121941f69f046f720c722
4
+ data.tar.gz: ddd4812c22d9ae7a2745037564f147a3523e344c
5
5
  SHA512:
6
- metadata.gz: 18ea3374c9519f55ca8f73df9681dc21617693a66ccfe0a3ae93c5b1f79636b04b4a0cfe2c2800b8af0a4486f0d8a812ad10d51640a0a49f9839c2f4293833cb
7
- data.tar.gz: 2fcd00b404ae9c278e03d3e3ea97546e016956f04282f09c814d30b465752b15b29212b2e0a4c8b501f3355041419d230998b85db59c656f94f8aef3fc0646b4
6
+ metadata.gz: 39452897102d34f99bda5eae970cf67538d906600d1b94d2768041c835ab5d91ba20c01c5137e27208817858edc38480a81b1274d747fa3569c35e8484bfcf58
7
+ data.tar.gz: 4c9005ede5ab2d3835e34c2d2df5c60d5fa38d8936dad005975d5ca08e0787325f03c70ce52989cdf9340cd23e55bb9a09f9041b227dbc5b69a51b2aecf1b9dc
data/CHANGELOG.md CHANGED
@@ -5,6 +5,56 @@ All notable changes to this project will be documented in this file.
5
5
  This project mostly adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
 
8
+ 0.12.0
9
+ ------
10
+
11
+ ### Compatible changes
12
+
13
+ - Up.js can now be used with [`jQuery.noConflict()`](https://api.jquery.com/jquery.noconflict/).
14
+
15
+
16
+ ### Incompatible changes
17
+
18
+ - Remove the `up.`slot, which was poorly implemented, untested, and not much better than the `:empty` pseudo-selector
19
+ which has great browser support
20
+ - Replaced the `up.bus.on(...)` event registry with vanilla DOM events bound to `document`. Also renamed
21
+ events in the process.
22
+
23
+ Instead of the old ...
24
+
25
+ up.bus.on('fragment:ready', function($fragment) {
26
+ ...
27
+ };
28
+
29
+ ... you now need to write ...
30
+
31
+ $(document).on('up:fragment:inserted', function(event) {
32
+ var $fragment = $(this);
33
+ ...
34
+ };
35
+
36
+ ... or shorter:
37
+
38
+ up.on('up:fragment:inserted', function(event, $fragment) {
39
+ ...
40
+ };
41
+ - Renamed `up.ready` to `up.hello`. This will emit an `up:event:inserted` event for the given element,
42
+ causing it to be compiled etc.
43
+ - `up.popup.open` has been renamed to `up.popup.attach`.
44
+ - `up.modal.open` has been split into two methods `up.modal.visit(url)` and `up.modal.follow($link)`.
45
+ - `up.tooltip.open` has been renamed to `up.tooltip.attach`.
46
+ - Tooltips now escape HTML by default; To use HTML content, use an `[up-tooltip-html]` attribute instead.
47
+ - Module configurations are now simple properties like `up.layout.config` instead of methods like `up.layout.defaults(...)`.
48
+
49
+ Instead of the old ...
50
+
51
+ up.layout.defaults({ snap: 100 });
52
+
53
+ ... you now need to write:
54
+
55
+ up.layout.config.snap = 100;
56
+
57
+
8
58
  0.11.1
9
59
  ------
10
60
 
data/dist/up-bootstrap.js CHANGED
@@ -1,29 +1,21 @@
1
1
  (function() {
2
- var defaults;
2
+ up.layout.config.fixedTop.push('.navbar-fixed-top');
3
3
 
4
- defaults = up.layout.defaults();
4
+ up.layout.config.fixedBottom.push('.navbar-fixed-bottom');
5
5
 
6
- up.layout.defaults({
7
- fixedTop: defaults.fixedTop.concat(['.navbar-fixed-top']),
8
- fixedBottom: defaults.fixedBottom.concat(['.navbar-fixed-bottom']),
9
- anchoredRight: defaults.anchoredRight.concat(['.navbar-fixed-top', '.navbar-fixed-bottom', '.footer'])
10
- });
6
+ up.layout.config.anchoredRight.push('.navbar-fixed-top');
7
+
8
+ up.layout.config.anchoredRight.push('.navbar-fixed-bottom');
9
+
10
+ up.layout.config.anchoredRight.push('.footer');
11
11
 
12
12
  }).call(this);
13
13
  (function() {
14
- up.modal.defaults({
15
- template: "<div class=\"up-modal\">\n <div class=\"up-modal-dialog modal-dialog\">\n <div class=\"up-modal-content modal-content\"></div>\n </div>\n</div>"
16
- });
14
+ up.modal.config.template = "<div class=\"up-modal\">\n <div class=\"up-modal-dialog modal-dialog\">\n <div class=\"up-modal-content modal-content\"></div>\n </div>\n</div>";
17
15
 
18
16
  }).call(this);
19
17
  (function() {
20
- var defaults;
21
-
22
- defaults = up.navigation.defaults();
23
-
24
- up.navigation.defaults({
25
- currentClasses: defaults.currentClasses.concat(['active'])
26
- });
18
+ up.navigation.config.currentClasses.push('active');
27
19
 
28
20
  }).call(this);
29
21
  (function() {
@@ -1 +1 @@
1
- (function(){var a;a=up.layout.defaults(),up.layout.defaults({fixedTop:a.fixedTop.concat([".navbar-fixed-top"]),fixedBottom:a.fixedBottom.concat([".navbar-fixed-bottom"]),anchoredRight:a.anchoredRight.concat([".navbar-fixed-top",".navbar-fixed-bottom",".footer"])})}).call(this),function(){up.modal.defaults({template:'<div class="up-modal">\n <div class="up-modal-dialog modal-dialog">\n <div class="up-modal-content modal-content"></div>\n </div>\n</div>'})}.call(this),function(){var a;a=up.navigation.defaults(),up.navigation.defaults({currentClasses:a.currentClasses.concat(["active"])})}.call(this),function(){}.call(this);
1
+ (function(){up.layout.config.fixedTop.push(".navbar-fixed-top"),up.layout.config.fixedBottom.push(".navbar-fixed-bottom"),up.layout.config.anchoredRight.push(".navbar-fixed-top"),up.layout.config.anchoredRight.push(".navbar-fixed-bottom"),up.layout.config.anchoredRight.push(".footer")}).call(this),function(){up.modal.config.template='<div class="up-modal">\n <div class="up-modal-dialog modal-dialog">\n <div class="up-modal-content modal-content"></div>\n </div>\n</div>'}.call(this),function(){up.navigation.config.currentClasses.push("active")}.call(this),function(){}.call(this);