turbolinks-animate 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab0e41db2dfb254b541ebd57c8305221fbeadcfa6395b8fd315dfbe6a7d0d4f2
4
- data.tar.gz: a4a8d91a301015a14b7a3d4192520282019d24cecb9e459912f49bf9128331a0
3
+ metadata.gz: d9fdda2cd60cc0690b10d1ff749215e1e38189431229e385432453cfad05571a
4
+ data.tar.gz: 7a267dc10022daa7b1c8fc395cfa94fefd5210a88ac289deb9b071de610aebdc
5
5
  SHA512:
6
- metadata.gz: 64f2f45492c567cae394d0b1fa9ed07598e84cfa934cba90ec0c617a934cf794c8e919dd9479562e9f948db84703089e44ca7cf4b007b7e473eceeba71fd9890
7
- data.tar.gz: c17cca4f35a13f325314c487003eb5d5d2754c4209d6e33d02e9cd8aa7f13dda264b73092a23c72daf635a843aa5cf028080560d57f09214f1797b1de9ea28d8
6
+ metadata.gz: fa8415632c8a05539ff4b1d595cbddad1cb266f86e072291a893e634dbafb168bfec230a7ef9661498ddcdc84550064593a16aa4115354dc511584cfd8eb34ef
7
+ data.tar.gz: d85eeebaa3b981e3ff6dbd53e9f8da4aaf0a528a152318eccb6e2f30cfcb20586106818b331f9f2f5f41b252d0138111139a1636b87fcdc20fea4a18bb077fca
@@ -4,6 +4,12 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 1.2.0 - 2018-01-06
8
+
9
+ * enhancements
10
+ * automatically include `TurbolinksAnimateHelper` in controllers
11
+ * updated [turbolinks-animate.js](https://github.com/jonhue/turbolinks-animate.js) to `1.3.8`
12
+
7
13
  ### 1.1.0 - 2017-12-17
8
14
 
9
15
  * enhancements
data/README.md CHANGED
@@ -23,7 +23,7 @@ This gem extends the [turbolinks-animate.js](https://github.com/jonhue/turbolink
23
23
 
24
24
  ## Installation
25
25
 
26
- `turbolinks-animate` works with Rails 4.0 onwards. You can add it to your `Gemfile` with:
26
+ `turbolinks-animate` works with Rails 5 onwards. You can add it to your `Gemfile` with:
27
27
 
28
28
  ```ruby
29
29
  gem 'turbolinks-animate'
@@ -51,7 +51,7 @@ The javascript and CSS files will be added to the asset pipeline and are availab
51
51
  //= require turbolinks-animate
52
52
 
53
53
  $(document).on( 'turbolinks:load', function() {
54
- $('body').turbolinksAnimate();
54
+ $('body.turbolinks-animate').turbolinksAnimate();
55
55
  turbolinksAnimateAppear();
56
56
  });
57
57
  $(document).on( 'turbolinks:request-start', function() {
@@ -66,6 +66,12 @@ $(window).on( 'popstate beforeunload', function(event) {
66
66
  @import "animate"
67
67
  ```
68
68
 
69
+ **Note:** When using a package manager like Yarn, make sure to fetch the latest version instead:
70
+
71
+ ```
72
+ $ yarn install turbolinks-animate
73
+ ```
74
+
69
75
  To use turbolinks-animate, replace the `body` tag in your layout with the `turbolinks_animate_body` view helper:
70
76
 
71
77
  ```ruby
@@ -73,12 +79,10 @@ To use turbolinks-animate, replace the `body` tag in your layout with the `turbo
73
79
  = yield
74
80
  ```
75
81
 
76
- In your controller simply include the `TurbolinksAnimateHelper` module, and specify your animation.
82
+ In your controller simply the animation:
77
83
 
78
84
  ```ruby
79
85
  class WelcomeController < ApplicationController
80
- include TurbolinksAnimateHelper
81
-
82
86
  def index
83
87
  turbolinks_animate 'fadein'
84
88
  end
@@ -94,6 +98,7 @@ end
94
98
  ## To Do
95
99
 
96
100
  [Here](https://github.com/jonhue/turbolinks-animate/projects/1) is the full list of current projects.
101
+
97
102
  To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/turbolinks-animate/issues/new).
98
103
 
99
104
  ---
@@ -1,6 +1,8 @@
1
1
  require 'turbolinks-animate/version'
2
2
 
3
3
  module TurbolinksAnimate
4
- class Engine < ::Rails::Engine
5
- end
4
+
5
+ require 'turbolinks-animate/engine'
6
+ require 'turbolinks-animate/railtie'
7
+
6
8
  end
@@ -0,0 +1,6 @@
1
+ require 'rails/railtie'
2
+
3
+ module TurbolinksAnimate
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
@@ -0,0 +1,13 @@
1
+ require 'rails/railtie'
2
+
3
+ module TurbolinksAnimate
4
+ class Railtie < Rails::Railtie
5
+
6
+ initializer 'turbolinks-animate.action_controller' do
7
+ ActiveSupport.on_load :action_controller do
8
+ include TurbolinksAnimateHelper
9
+ end
10
+ end
11
+
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module TurbolinksAnimate
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
@@ -1,10 +1,10 @@
1
1
  /**!
2
2
  * @fileOverview turbolinks-animate.js - Animations extending Turbolinks
3
- * @version 1.3.4
3
+ * @version 1.3.8
4
4
  * @license
5
5
  * MIT License
6
6
  *
7
- * Copyright (c) 2017 Slooob
7
+ * Copyright (c) 2017 Jonas Hübotter
8
8
  *
9
9
  * Permission is hereby granted, free of charge, to any person obtaining a copy
10
10
  * of this software and associated documentation files (the "Software"), to deal
@@ -42,7 +42,7 @@ $.fn.extend({
42
42
  });
43
43
 
44
44
 
45
- var turbolinksAnimateData = {}, turbolinksAnimateInline = false, turbolinksAnimateElement;
45
+ var turbolinksAnimateData = {}, turbolinksAnimateInline = false, turbolinksAnimateElement, turbolinksAnimateElements;
46
46
 
47
47
  function turbolinksAnimateInit( el, options ) {
48
48
  var turbolinksAnimatePreviousType = turbolinksAnimateData['type'],
@@ -57,11 +57,11 @@ function turbolinksAnimateInit( el, options ) {
57
57
  turbolinksAnimateData['appear'] = turbolinksAnimateAppear;
58
58
  turbolinksAnimateData['previousType'] = turbolinksAnimatePreviousType;
59
59
  $('a, button').click( function() {
60
- turbolinksAnimateData['animation'] = $(this).data('turbolinks-animate-animation');
61
60
  if ( $(this).data('turbolinks-animate-animation') !== undefined ) { turbolinksAnimateInline = true };
61
+ turbolinksAnimateData['animation'] = $(this).data('turbolinks-animate-animation') || options.animation;
62
62
  turbolinksAnimateData['appear'] = $(this).data('turbolinks-animate-appear');
63
- turbolinksAnimateData['duration'] = $(this).data('turbolinks-animate-duration');
64
- turbolinksAnimateData['delay'] = $(this).data('turbolinks-animate-delay');
63
+ turbolinksAnimateData['duration'] = $(this).data('turbolinks-animate-duration') || options.duration;
64
+ turbolinksAnimateData['delay'] = $(this).data('turbolinks-animate-delay') || options.delay;
65
65
  turbolinksAnimateData['type'] = $(this).data('turbolinks-animate-type');
66
66
  });
67
67
  };
@@ -82,7 +82,7 @@ function turbolinksAnimateToggle(disappears) {
82
82
  turbolinksAnimateReset();
83
83
  turbolinksAnimateOptions();
84
84
 
85
- Turbolinks.clearCache() // fix for cache issues
85
+ Turbolinks.clearCache() // fix cache issues
86
86
  turbolinksAnimateAnimateElements(disappears);
87
87
  };
88
88
  };
@@ -90,31 +90,63 @@ function turbolinksAnimateToggle(disappears) {
90
90
 
91
91
 
92
92
  function turbolinksAnimateGetAnimation(disappears) {
93
- return ( disappears == false ? turbolinksAnimateData['appear'] : undefined ) || ( turbolinksAnimateInline ? turbolinksAnimateData['animation'] : ( turbolinksAnimateElement.data('turbolinks-animate-animation') || turbolinksAnimateData['animation'] ) );
93
+ var animation;
94
+ if (!disappears) { animation = turbolinksAnimateData['appear'] };
95
+ if (turbolinksAnimateInline) {
96
+ animation = turbolinksAnimateData['animation']
97
+ } else if ( typeof turbolinksAnimateElement.data('turbolinks-animate-animation') !== 'undefined' ) {
98
+ animation = turbolinksAnimateElement.data('turbolinks-animate-animation')
99
+ } else {
100
+ animation = turbolinksAnimateData['animation'];
101
+ };
102
+ return animation;
94
103
  };
95
104
 
96
105
  function turbolinksAnimateOptions() {
97
- turbolinksAnimateElement.css({ 'animation-duration': turbolinksAnimateData['duration'] });
106
+ turbolinksAnimateElement.css('animationDuration', turbolinksAnimateData['duration']);
98
107
  if (turbolinksAnimateData['delay'] != false) {
99
- turbolinksAnimateElement.css({ 'animation-delay': turbolinksAnimateData['delay'] });
108
+ turbolinksAnimateElement.css('animationDelay', turbolinksAnimateData['delay']);
109
+ };
110
+ if ( typeof turbolinksAnimateElements !== 'undefined' ) {
111
+ $(turbolinksAnimateElements).each(function() {
112
+ $(this).css('animationDuration', turbolinksAnimateData['duration']);
113
+ if (turbolinksAnimateData['delay'] != false) {
114
+ $(this).css('animationDelay', turbolinksAnimateData['delay']);
115
+ };
116
+ });
100
117
  };
101
118
  };
102
119
 
103
120
  function turbolinksAnimateReset() {
104
- turbolinksAnimateElement.removeClass('fadeIn fadeInUp fadeInDown fadeInLeft fadeInRightfadeOut fadeOutUp fadeOutDown fadeOutLeft fadeOutRight');
121
+ var classes = 'fadeIn fadeInUp fadeInDown fadeInLeft fadeInRightfadeOut fadeOutUp fadeOutDown fadeOutLeft fadeOutRight';
122
+ if ( typeof turbolinksAnimateElements !== 'undefined' ) {
123
+ $(turbolinksAnimateElements).each(function() {
124
+ $(this).removeClass(classes);
125
+ });
126
+ };
127
+ turbolinksAnimateElement.removeClass(classes);
105
128
  };
106
129
 
107
130
 
108
131
 
109
132
  function turbolinksAnimateAnimateElements(disappears) {
110
133
  if ( turbolinksAnimateElement.find('[data-turbolinks-animate-persist]').length > 0 || turbolinksAnimateElement.find('[data-turbolinks-animate-persist-itself]').length > 0 ) {
111
- var turbolinksAnimateElements = turbolinksAnimateGetElements();
134
+ turbolinksAnimateElements = turbolinksAnimateGetElements();
112
135
  $(turbolinksAnimateElements).each(function() {
136
+ $(this).one( 'webkitAnimationEnd mozAnimationEnd oAnimationEnd oanimationend animationend', function() {
137
+ setTimeout(function() {
138
+ turbolinksAnimateReset();
139
+ }, 250);
140
+ });
113
141
  $(this).addClass(turbolinksAnimateGetClassListFor( turbolinksAnimateGetAnimation(disappears), disappears ));
114
142
  });
115
- } else {
116
- turbolinksAnimateElement.addClass(turbolinksAnimateGetClassListFor( turbolinksAnimateGetAnimation(disappears), disappears ));
117
143
  };
144
+ turbolinksAnimateElement.one( 'webkitAnimationEnd mozAnimationEnd oAnimationEnd oanimationend animationend', function() {
145
+ setTimeout(function() {
146
+ turbolinksAnimateReset();
147
+ }, 250);
148
+ });
149
+ turbolinksAnimateElement.addClass(turbolinksAnimateGetClassListFor( turbolinksAnimateGetAnimation(disappears), disappears ));
118
150
 
119
151
  delete turbolinksAnimateData['previousType'];
120
152
  turbolinksAnimateInline = false;
@@ -1,10 +1,10 @@
1
1
  /**!
2
2
  * @fileOverview turbolinks-animate.js - Animations extending Turbolinks
3
- * @version 1.3.4
3
+ * @version 1.3.8
4
4
  * @license
5
5
  * MIT License
6
6
  *
7
- * Copyright (c) 2017 Slooob
7
+ * Copyright (c) 2017 Jonas Hübotter
8
8
  *
9
9
  * Permission is hereby granted, free of charge, to any person obtaining a copy
10
10
  * of this software and associated documentation files (the "Software"), to deal
@@ -24,4 +24,4 @@
24
24
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
25
  * SOFTWARE.
26
26
  */
27
- $.fn.extend({turbolinksAnimate:function(a){var b={animation:"fadein",duration:"0.3s",delay:false,reversedDisappearing:true,mobileMedia:"500",tabletMedia:"1024"};a=$.extend(b,a);turbolinksAnimateInit($(this),a)}});var turbolinksAnimateData={},turbolinksAnimateInline=false,turbolinksAnimateElement;function turbolinksAnimateInit(c,b){var d=turbolinksAnimateData.type,a=turbolinksAnimateData.appear;turbolinksAnimateData={};turbolinksAnimateElement=c;turbolinksAnimateData.animation=b.animation;turbolinksAnimateData.duration=b.duration;turbolinksAnimateData.delay=b.delay;turbolinksAnimateData.mobileMedia=b.mobileMedia;turbolinksAnimateData.tabletMedia=b.tabletMedia;turbolinksAnimateData.appear=a;turbolinksAnimateData.previousType=d;$("a, button").click(function(){turbolinksAnimateData.animation=$(this).data("turbolinks-animate-animation");if($(this).data("turbolinks-animate-animation")!==undefined){turbolinksAnimateInline=true}turbolinksAnimateData.appear=$(this).data("turbolinks-animate-appear");turbolinksAnimateData.duration=$(this).data("turbolinks-animate-duration");turbolinksAnimateData.delay=$(this).data("turbolinks-animate-delay");turbolinksAnimateData.type=$(this).data("turbolinks-animate-type")})}function turbolinksAnimateAppear(){turbolinksAnimateToggle(false);delete turbolinksAnimateData.appear}function turbolinksAnimateDisappear(){turbolinksAnimateToggle(true)}function turbolinksAnimateToggle(a){if(turbolinksAnimateData.animation!="false"){turbolinksAnimateReset();turbolinksAnimateOptions();Turbolinks.clearCache();turbolinksAnimateAnimateElements(a)}}function turbolinksAnimateGetAnimation(a){return(a==false?turbolinksAnimateData.appear:undefined)||(turbolinksAnimateInline?turbolinksAnimateData.animation:(turbolinksAnimateElement.data("turbolinks-animate-animation")||turbolinksAnimateData.animation))}function turbolinksAnimateOptions(){turbolinksAnimateElement.css({"animation-duration":turbolinksAnimateData.duration});if(turbolinksAnimateData.delay!=false){turbolinksAnimateElement.css({"animation-delay":turbolinksAnimateData.delay})}}function turbolinksAnimateReset(){turbolinksAnimateElement.removeClass("fadeIn fadeInUp fadeInDown fadeInLeft fadeInRightfadeOut fadeOutUp fadeOutDown fadeOutLeft fadeOutRight")}function turbolinksAnimateAnimateElements(a){if(turbolinksAnimateElement.find("[data-turbolinks-animate-persist]").length>0||turbolinksAnimateElement.find("[data-turbolinks-animate-persist-itself]").length>0){var b=turbolinksAnimateGetElements();$(b).each(function(){$(this).addClass(turbolinksAnimateGetClassListFor(turbolinksAnimateGetAnimation(a),a))})}else{turbolinksAnimateElement.addClass(turbolinksAnimateGetClassListFor(turbolinksAnimateGetAnimation(a),a))}delete turbolinksAnimateData.previousType;turbolinksAnimateInline=false}function turbolinksAnimateGetElements(){var a=[];b(turbolinksAnimateElement);function b(c){var d=turbolinksAnimateData.type||turbolinksAnimateData.previousType||"true";if(c.attr("data-turbolinks-animate-persist")==d){return}else{if(c.attr("data-turbolinks-animate-persist-itself")==d||c.find("[data-turbolinks-animate-persist]").length>0||c.find("[data-turbolinks-animate-persist-itself]").length>0){c.children().each(function(){b($(this))})}else{a.push(c)}}}return a}function turbolinksAnimateGetClassListFor(e,a){var d="animated",c=$(window).width();if(c<=turbolinksAnimateData.mobileMedia){var b=e.mobile||e.tablet||e.desktop||e}else{if(c<=turbolinksAnimateData.tabletMedia){var b=e.tablet||e.desktop||e}else{var b=e.desktop||e}}b.toLowerCase();if(b=="fadein"){d+=(a?" fadeOut":" fadeIn")}else{if(b=="fadeinup"){d+=(a?(turbolinksAnimateData.reversedDisappearing?" fadeOutDown":" fadeOutUp"):" fadeInUp")}else{if(b=="fadeindown"){d+=(a?(turbolinksAnimateData.reversedDisappearing?" fadeOutUp":" fadeOutDown"):" fadeInDown")}else{if(b=="fadeinleft"){d+=(a?" fadeOutLeft":" fadeInLeft")}else{if(b=="fadeinright"){d+=(a?" fadeOutRight":" fadeInRight")}else{if(b=="fadeout"){d+=" fadeOut"}else{if(b=="fadeoutup"){d+=(turbolinksAnimateData.reversedDisappearing?" fadeOutDown":" fadeOutUp")}else{if(b=="fadeoutdown"){d+=(turbolinksAnimateData.reversedDisappearing?" fadeOutUp":" fadeOutDown")}else{if(b=="fadeoutleft"){d+=" fadeOutLeft"}else{if(b=="fadeoutright"){d+=" fadeOutRight"}}}}}}}}}}return d};
27
+ $.fn.extend({turbolinksAnimate:function(a){var b={animation:"fadein",duration:"0.3s",delay:false,reversedDisappearing:true,mobileMedia:"500",tabletMedia:"1024"};a=$.extend(b,a);turbolinksAnimateInit($(this),a)}});var turbolinksAnimateData={},turbolinksAnimateInline=false,turbolinksAnimateElement,turbolinksAnimateElements;function turbolinksAnimateInit(c,b){var d=turbolinksAnimateData.type,a=turbolinksAnimateData.appear;turbolinksAnimateData={};turbolinksAnimateElement=c;turbolinksAnimateData.animation=b.animation;turbolinksAnimateData.duration=b.duration;turbolinksAnimateData.delay=b.delay;turbolinksAnimateData.mobileMedia=b.mobileMedia;turbolinksAnimateData.tabletMedia=b.tabletMedia;turbolinksAnimateData.appear=a;turbolinksAnimateData.previousType=d;$("a, button").click(function(){if($(this).data("turbolinks-animate-animation")!==undefined){turbolinksAnimateInline=true}turbolinksAnimateData.animation=$(this).data("turbolinks-animate-animation")||b.animation;turbolinksAnimateData.appear=$(this).data("turbolinks-animate-appear");turbolinksAnimateData.duration=$(this).data("turbolinks-animate-duration")||b.duration;turbolinksAnimateData.delay=$(this).data("turbolinks-animate-delay")||b.delay;turbolinksAnimateData.type=$(this).data("turbolinks-animate-type")})}function turbolinksAnimateAppear(){turbolinksAnimateToggle(false);delete turbolinksAnimateData.appear}function turbolinksAnimateDisappear(){turbolinksAnimateToggle(true)}function turbolinksAnimateToggle(a){if(turbolinksAnimateData.animation!="false"){turbolinksAnimateReset();turbolinksAnimateOptions();Turbolinks.clearCache();turbolinksAnimateAnimateElements(a)}}function turbolinksAnimateGetAnimation(a){var b;if(!a){b=turbolinksAnimateData.appear}if(turbolinksAnimateInline){b=turbolinksAnimateData.animation}else{if(typeof turbolinksAnimateElement.data("turbolinks-animate-animation")!=="undefined"){b=turbolinksAnimateElement.data("turbolinks-animate-animation")}else{b=turbolinksAnimateData.animation}}return b}function turbolinksAnimateOptions(){turbolinksAnimateElement.css("animationDuration",turbolinksAnimateData.duration);if(turbolinksAnimateData.delay!=false){turbolinksAnimateElement.css("animationDelay",turbolinksAnimateData.delay)}if(typeof turbolinksAnimateElements!=="undefined"){$(turbolinksAnimateElements).each(function(){$(this).css("animationDuration",turbolinksAnimateData.duration);if(turbolinksAnimateData.delay!=false){$(this).css("animationDelay",turbolinksAnimateData.delay)}})}}function turbolinksAnimateReset(){if(typeof turbolinksAnimateElements!=="undefined"){$(turbolinksAnimateElements).each(function(){$(this).removeClass("fadeIn fadeInUp fadeInDown fadeInLeft fadeInRightfadeOut fadeOutUp fadeOutDown fadeOutLeft fadeOutRight")})}turbolinksAnimateElement.removeClass("fadeIn fadeInUp fadeInDown fadeInLeft fadeInRightfadeOut fadeOutUp fadeOutDown fadeOutLeft fadeOutRight")}function turbolinksAnimateAnimateElements(a){if(turbolinksAnimateElement.find("[data-turbolinks-animate-persist]").length>0||turbolinksAnimateElement.find("[data-turbolinks-animate-persist-itself]").length>0){turbolinksAnimateElements=turbolinksAnimateGetElements();$(turbolinksAnimateElements).each(function(){$(this).one("webkitAnimationEnd mozAnimationEnd oAnimationEnd oanimationend animationend",function(){setTimeout(function(){turbolinksAnimateReset()},250)});$(this).addClass(turbolinksAnimateGetClassListFor(turbolinksAnimateGetAnimation(a),a))})}turbolinksAnimateElement.one("webkitAnimationEnd mozAnimationEnd oAnimationEnd oanimationend animationend",function(){setTimeout(function(){turbolinksAnimateReset()},250)});turbolinksAnimateElement.addClass(turbolinksAnimateGetClassListFor(turbolinksAnimateGetAnimation(a),a));delete turbolinksAnimateData.previousType;turbolinksAnimateInline=false}function turbolinksAnimateGetElements(){var a=[];b(turbolinksAnimateElement);function b(c){var d=turbolinksAnimateData.type||turbolinksAnimateData.previousType||"true";if(c.attr("data-turbolinks-animate-persist")==d){return}else{if(c.attr("data-turbolinks-animate-persist-itself")==d||c.find("[data-turbolinks-animate-persist]").length>0||c.find("[data-turbolinks-animate-persist-itself]").length>0){c.children().each(function(){b($(this))})}else{a.push(c)}}}return a}function turbolinksAnimateGetClassListFor(e,a){var d="animated",c=$(window).width();if(c<=turbolinksAnimateData.mobileMedia){var b=e.mobile||e.tablet||e.desktop||e}else{if(c<=turbolinksAnimateData.tabletMedia){var b=e.tablet||e.desktop||e}else{var b=e.desktop||e}}b.toLowerCase();if(b=="fadein"){d+=(a?" fadeOut":" fadeIn")}else{if(b=="fadeinup"){d+=(a?(turbolinksAnimateData.reversedDisappearing?" fadeOutDown":" fadeOutUp"):" fadeInUp")}else{if(b=="fadeindown"){d+=(a?(turbolinksAnimateData.reversedDisappearing?" fadeOutUp":" fadeOutDown"):" fadeInDown")}else{if(b=="fadeinleft"){d+=(a?" fadeOutLeft":" fadeInLeft")}else{if(b=="fadeinright"){d+=(a?" fadeOutRight":" fadeInRight")}else{if(b=="fadeout"){d+=" fadeOut"}else{if(b=="fadeoutup"){d+=(turbolinksAnimateData.reversedDisappearing?" fadeOutDown":" fadeOutUp")}else{if(b=="fadeoutdown"){d+=(turbolinksAnimateData.reversedDisappearing?" fadeOutUp":" fadeOutDown")}else{if(b=="fadeoutleft"){d+=" fadeOutLeft"}else{if(b=="fadeoutright"){d+=" fadeOutRight"}}}}}}}}}}return d};
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbolinks-animate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-17 00:00:00.000000000 Z
11
+ date: 2018-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
20
- type: :development
19
+ version: '5.0'
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: '1.16'
26
+ version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '3.7'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '3.7'
41
41
  - !ruby/object:Gem::Dependency
42
- name: railties
42
+ name: rubocop
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4.0'
48
- type: :runtime
47
+ version: '0.52'
48
+ type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '4.0'
54
+ version: '0.52'
55
55
  description: A dead simple & powerful way of adding rich & adaptive animations to
56
56
  your Rails app which is already using Turbolinks™.
57
57
  email:
@@ -60,21 +60,14 @@ executables: []
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - ".gitignore"
64
- - ".travis.yml"
65
63
  - CHANGELOG.md
66
- - CODE_OF_CONDUCT.md
67
- - CONTRIBUTING.md
68
- - DEPRECATIONS.md
69
- - Gemfile
70
- - Gemfile.lock
71
64
  - LICENSE
72
65
  - README.md
73
- - Rakefile
74
66
  - app/helpers/turbolinks_animate_helper.rb
75
67
  - lib/turbolinks-animate.rb
68
+ - lib/turbolinks-animate/engine.rb
69
+ - lib/turbolinks-animate/railtie.rb
76
70
  - lib/turbolinks-animate/version.rb
77
- - turbolinks-animate.gemspec
78
71
  - vendor/assets/javascripts/turbolinks-animate.js
79
72
  - vendor/assets/javascripts/turbolinks-animate.min.js
80
73
  - vendor/assets/stylesheets/animate.css
@@ -98,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
91
  version: '0'
99
92
  requirements: []
100
93
  rubyforge_project:
101
- rubygems_version: 2.7.3
94
+ rubygems_version: 2.7.4
102
95
  signing_key:
103
96
  specification_version: 4
104
97
  summary: Rich & adaptive animations for apps using Rails w/ Turbolinks™
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- /*.gem
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.3
@@ -1,46 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- ## Our Standards
8
-
9
- Examples of behavior that contributes to creating a positive environment include:
10
-
11
- * Using welcoming and inclusive language
12
- * Being respectful of differing viewpoints and experiences
13
- * Gracefully accepting constructive criticism
14
- * Focusing on what is best for the community
15
- * Showing empathy towards other community members
16
-
17
- Examples of unacceptable behavior by participants include:
18
-
19
- * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
- * Trolling, insulting/derogatory comments, and personal or political attacks
21
- * Public or private harassment
22
- * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
- * Other conduct which could reasonably be considered inappropriate in a professional setting
24
-
25
- ## Our Responsibilities
26
-
27
- Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
-
29
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
-
31
- ## Scope
32
-
33
- This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
-
35
- ## Enforcement
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at help@slooob.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
-
39
- Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
-
41
- ## Attribution
42
-
43
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
-
45
- [homepage]: http://contributor-covenant.org
46
- [version]: http://contributor-covenant.org/version/1/4/
@@ -1 +0,0 @@
1
- # Contributing
@@ -1,3 +0,0 @@
1
- # Deprecations
2
-
3
- No deprecations
data/Gemfile DELETED
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- git_source :github do |repo_name|
4
- "https://github.com/#{repo_name}"
5
- end
6
-
7
- gemspec
@@ -1,71 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- turbolinks-animate (1.0.0)
5
- railties (>= 4.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionpack (5.1.4)
11
- actionview (= 5.1.4)
12
- activesupport (= 5.1.4)
13
- rack (~> 2.0)
14
- rack-test (>= 0.6.3)
15
- rails-dom-testing (~> 2.0)
16
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
- actionview (5.1.4)
18
- activesupport (= 5.1.4)
19
- builder (~> 3.1)
20
- erubi (~> 1.4)
21
- rails-dom-testing (~> 2.0)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
23
- activesupport (5.1.4)
24
- concurrent-ruby (~> 1.0, >= 1.0.2)
25
- i18n (~> 0.7)
26
- minitest (~> 5.1)
27
- tzinfo (~> 1.1)
28
- builder (3.2.3)
29
- concurrent-ruby (1.0.5)
30
- crass (1.0.3)
31
- erubi (1.7.0)
32
- i18n (0.9.1)
33
- concurrent-ruby (~> 1.0)
34
- loofah (2.1.1)
35
- crass (~> 1.0.2)
36
- nokogiri (>= 1.5.9)
37
- method_source (0.9.0)
38
- mini_portile2 (2.3.0)
39
- minitest (5.10.3)
40
- nokogiri (1.8.1-x86-mingw32)
41
- mini_portile2 (~> 2.3.0)
42
- rack (2.0.3)
43
- rack-test (0.8.2)
44
- rack (>= 1.0, < 3)
45
- rails-dom-testing (2.0.3)
46
- activesupport (>= 4.2.0)
47
- nokogiri (>= 1.6)
48
- rails-html-sanitizer (1.0.3)
49
- loofah (~> 2.0)
50
- railties (5.1.4)
51
- actionpack (= 5.1.4)
52
- activesupport (= 5.1.4)
53
- method_source
54
- rake (>= 0.8.7)
55
- thor (>= 0.18.1, < 2.0)
56
- rake (10.5.0)
57
- thor (0.20.0)
58
- thread_safe (0.3.6)
59
- tzinfo (1.2.4)
60
- thread_safe (~> 0.1)
61
-
62
- PLATFORMS
63
- x86-mingw32
64
-
65
- DEPENDENCIES
66
- bundler (~> 1.16)
67
- rake (~> 10.0)
68
- turbolinks-animate!
69
-
70
- BUNDLED WITH
71
- 1.16.0
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- task default: :spec
@@ -1,22 +0,0 @@
1
- lib = File.expand_path '../lib', __FILE__
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require 'turbolinks-animate/version'
4
-
5
- Gem::Specification.new do |gem|
6
- gem.name = 'turbolinks-animate'
7
- gem.version = TurbolinksAnimate::VERSION
8
- gem.authors = ['Jonas Hübotter']
9
- gem.email = ['jonas.huebotter@gmail.com']
10
-
11
- gem.summary = 'Rich & adaptive animations for apps using Rails w/ Turbolinks™'
12
- gem.description = 'A dead simple & powerful way of adding rich & adaptive animations to your Rails app which is already using Turbolinks™.'
13
- gem.homepage = 'https://github.com/jonhue/turbolinks-animate'
14
-
15
- gem.files = `git ls-files`.split("\n")
16
- gem.require_paths = ['lib']
17
-
18
- gem.add_development_dependency 'bundler', '~> 1.16'
19
- gem.add_development_dependency 'rake', '~> 10.0'
20
- gem.add_dependency 'railties', '>= 4.0'
21
- gem.required_ruby_version = '>= 2.3'
22
- end