turbolinks-animate 2.0.0 → 2.0.1

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: 2a42f0eee4169f65ca01863b1bf0281586f1e0c4981e5d8acd003c43ecbfba30
4
- data.tar.gz: 6ff710395cce0e0feb8829d182c0136d47204ba997d8228db6eaa1f58edb410b
3
+ metadata.gz: 4b6edd9fd88bd6a84bab1e4187425e70f381b5a8fdc5d895a56d8182b2c57209
4
+ data.tar.gz: c607ffa939cd9f6ef63c9f62b4df5b6bdb64eb5983a4e2b2759238a7379b824a
5
5
  SHA512:
6
- metadata.gz: 99bb355687edf4c8c747b946391323241083707dda420cd6ef3be0e415dc8d62cb6c54db9c2da3aca5fdebc444ef8b6d4090e7fffd967d4ff90ef6aaba56e154
7
- data.tar.gz: adb494b447bdbb6e07672b1c948ab4cbb110020670231f547b8068a08772dbae388dbfaee0df6828f59dcb688a2f80d2d39ea6e556e2192ab48df34c1564b289
6
+ metadata.gz: f16f23e1a59679980fa0ae5359a391c20a777e001229fc70dbb9d8e6e2a9311f55f2d348ef5a344ffe7f894ddb672e05e2d31fe9386ece87680dc05c7092ede5
7
+ data.tar.gz: 328f28d6f402d15cb90e9db3a9afe119d7bf1a7489a92118b12c851a38c4b8917b835b3d563841ed64991e6ce70819b00958fa4e1f8a2c67dd7e4fd21a37e6ce
@@ -1,32 +1,32 @@
1
- # Changelog
2
-
3
- ### master
4
-
5
- * nothing yet
6
-
7
- ### 2.0.0 - 2018/02/17
8
-
9
- * features
10
- * support webpack
11
- * added `'turbolinks-animate'` mozaic component
12
-
13
- ### 1.3.0 - 2018/01/19
14
-
15
- * enhancements
16
- * updated [turbolinks-animate.js](https://github.com/jonhue/turbolinks-animate.js) to `2.0.0`
17
-
18
- ### 1.2.0 - 2018/01/06
19
-
20
- * enhancements
21
- * automatically include `TurbolinksAnimateHelper` in controllers
22
- * updated [turbolinks-animate.js](https://github.com/jonhue/turbolinks-animate.js) to `1.3.8`
23
-
24
- ### 1.1.0 - 2017/12/17
25
-
26
- * enhancements
27
- * add animate.css to asset pipeline
28
- * bugfixes
29
-
30
- ### 1.0.0 - 2017/12/17
31
-
32
- * initial release
1
+ # Changelog
2
+
3
+ ### master
4
+
5
+ * nothing yet
6
+
7
+ ### 2.0.0 - 2018/02/17
8
+
9
+ * features
10
+ * support webpack
11
+ * added `'turbolinks-animate'` mozaic component
12
+
13
+ ### 1.3.0 - 2018/01/19
14
+
15
+ * enhancements
16
+ * updated [turbolinks-animate.js](https://github.com/jonhue/turbolinks-animate.js) to `2.0.0`
17
+
18
+ ### 1.2.0 - 2018/01/06
19
+
20
+ * enhancements
21
+ * automatically include `TurbolinksAnimateHelper` in controllers
22
+ * updated [turbolinks-animate.js](https://github.com/jonhue/turbolinks-animate.js) to `1.3.8`
23
+
24
+ ### 1.1.0 - 2017/12/17
25
+
26
+ * enhancements
27
+ * add animate.css to asset pipeline
28
+ * bugfixes
29
+
30
+ ### 1.0.0 - 2017/12/17
31
+
32
+ * initial release
data/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2017 Jonas Hübotter
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Jonas Hübotter
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,146 +1,146 @@
1
- # Turbolinks Animate
2
-
3
- [![Gem Version](https://badge.fury.io/rb/turbolinks-animate.svg)](https://badge.fury.io/rb/turbolinks-animate) <img src="https://travis-ci.org/jonhue/turbolinks-animate.svg?branch=master" />
4
-
5
- A dead simple & powerful way of adding rich & adaptive animations to your Rails app which is already using Turbolinks™.
6
-
7
- This gem extends the [turbolinks-animate.js](https://github.com/jonhue/turbolinks-animate.js) library to work better within Rails apps.
8
-
9
- [**Demo**](https://phylator.com)
10
-
11
- ---
12
-
13
- ## Table of Contents
14
-
15
- * [Installation](#installation)
16
- * [Usage](#usage)
17
- * [Views](#views)
18
- * [Controllers](#controllers)
19
- * [To Do](#to-do)
20
- * [Contributing](#contributing)
21
- * [Contributors](#contributors)
22
- * [Semantic versioning](#semantic-versioning)
23
- * [License](#license)
24
-
25
- ---
26
-
27
- ## Installation
28
-
29
- Turbolinks Animate works with Rails 5 onwards. You can add it to your `Gemfile` with:
30
-
31
- ```ruby
32
- gem 'turbolinks-animate'
33
- ```
34
-
35
- And then execute:
36
-
37
- $ bundle
38
-
39
- Or install it yourself as:
40
-
41
- $ gem install turbolinks-animate
42
-
43
- If you always want to be up to date fetch the latest from GitHub in your `Gemfile`:
44
-
45
- ```ruby
46
- gem 'turbolinks-animate', github: 'jonhue/turbolinks-animate'
47
- ```
48
-
49
- Now add the `turbolinks-animate` NPM package and import + initialize it:
50
-
51
- ```js
52
- import 'turbolinks-animate';
53
- document.addEventListener( 'turbolinks:load', function() {
54
- TurbolinksAnimate.init({ element: document.querySelector('body.turbolinks-animate') });
55
- });
56
- ```
57
-
58
- ```scss
59
- @import "animate.css"
60
- ```
61
-
62
- ## Usage
63
-
64
- ### Views
65
-
66
- You can use Turbolinks Animate for any element on your page (just one at a time). For the most basic implementation, you should replace your body tag:
67
-
68
- ```haml
69
- = component 'turbolinks-animate', animation: @turbolinks_animate_animation, class: 'custom-class' do
70
- = yield
71
- ```
72
-
73
- You can also use a `div` or other elements:
74
-
75
- ```haml
76
- = component 'turbolinks-animate', animation: @turbolinks_animate_animation, element: 'div' do
77
- ...
78
- ```
79
-
80
- ### Controllers
81
-
82
- In your controller simply specify the animation:
83
-
84
- ```ruby
85
- class WelcomeController < ApplicationController
86
-
87
- def index
88
- turbolinks_animate 'fadein'
89
- end
90
-
91
- def more
92
- turbolinks_animate({ desktop: 'fadein', mobile: 'fadeinright' })
93
- end
94
-
95
- end
96
- ```
97
-
98
- [Here](https://github.com/jonhue/turbolinks-animate.js) are more details about the usage of turbolinks-animate.js.
99
-
100
- ## To Do
101
-
102
- [Here](https://github.com/jonhue/turbolinks-animate/projects/1) is the full list of current projects.
103
-
104
- To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/turbolinks-animate/issues/new).
105
-
106
- ---
107
-
108
- ## Contributing
109
-
110
- We hope that you will consider contributing to turbolinks-animate. Please read this short overview for some information about how to get started:
111
-
112
- [Learn more about contributing to this repository](https://github.com/jonhue/turbolinks-animate/blob/master/CONTRIBUTING.md), [Code of Conduct](https://github.com/jonhue/turbolinks-animate/blob/master/CODE_OF_CONDUCT.md)
113
-
114
- ### Contributors
115
-
116
- Give the people some :heart: who are working on this project. See them all at:
117
-
118
- https://github.com/jonhue/turbolinks-animate/graphs/contributors
119
-
120
- ### Semantic Versioning
121
-
122
- turbolinks-animate follows Semantic Versioning 2.0 as defined at http://semver.org.
123
-
124
- ## License
125
-
126
- MIT License
127
-
128
- Copyright (c) 2017 Jonas Hübotter
129
-
130
- Permission is hereby granted, free of charge, to any person obtaining a copy
131
- of this software and associated documentation files (the "Software"), to deal
132
- in the Software without restriction, including without limitation the rights
133
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
134
- copies of the Software, and to permit persons to whom the Software is
135
- furnished to do so, subject to the following conditions:
136
-
137
- The above copyright notice and this permission notice shall be included in all
138
- copies or substantial portions of the Software.
139
-
140
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
141
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
142
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
143
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
144
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
145
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
146
- SOFTWARE.
1
+ # Turbolinks Animate
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/turbolinks-animate.svg)](https://badge.fury.io/rb/turbolinks-animate) <img src="https://travis-ci.org/jonhue/turbolinks-animate.svg?branch=master" />
4
+
5
+ A dead simple & powerful way of adding rich & adaptive animations to your Rails app which is already using Turbolinks™.
6
+
7
+ This gem extends the [turbolinks-animate.js](https://github.com/jonhue/turbolinks-animate.js) library to work better within Rails apps.
8
+
9
+ [**Demo**](https://phylator.com)
10
+
11
+ ---
12
+
13
+ ## Table of Contents
14
+
15
+ * [Installation](#installation)
16
+ * [Usage](#usage)
17
+ * [Views](#views)
18
+ * [Controllers](#controllers)
19
+ * [To Do](#to-do)
20
+ * [Contributing](#contributing)
21
+ * [Contributors](#contributors)
22
+ * [Semantic versioning](#semantic-versioning)
23
+ * [License](#license)
24
+
25
+ ---
26
+
27
+ ## Installation
28
+
29
+ Turbolinks Animate works with Rails 5 onwards. You can add it to your `Gemfile` with:
30
+
31
+ ```ruby
32
+ gem 'turbolinks-animate'
33
+ ```
34
+
35
+ And then execute:
36
+
37
+ $ bundle
38
+
39
+ Or install it yourself as:
40
+
41
+ $ gem install turbolinks-animate
42
+
43
+ If you always want to be up to date fetch the latest from GitHub in your `Gemfile`:
44
+
45
+ ```ruby
46
+ gem 'turbolinks-animate', github: 'jonhue/turbolinks-animate'
47
+ ```
48
+
49
+ Now add the `turbolinks-animate` NPM package and import + initialize it:
50
+
51
+ ```js
52
+ import 'turbolinks-animate';
53
+ document.addEventListener( 'turbolinks:load', function() {
54
+ TurbolinksAnimate.init({ element: document.querySelector('body.turbolinks-animate') });
55
+ });
56
+ ```
57
+
58
+ ```scss
59
+ @import "animate.css"
60
+ ```
61
+
62
+ ## Usage
63
+
64
+ ### Views
65
+
66
+ You can use Turbolinks Animate for any element on your page (just one at a time). For the most basic implementation, you should replace your body tag:
67
+
68
+ ```haml
69
+ = component 'turbolinks-animate', animation: @turbolinks_animate_animation, class: 'custom-class' do
70
+ = yield
71
+ ```
72
+
73
+ You can also use a `div` or other elements:
74
+
75
+ ```haml
76
+ = component 'turbolinks-animate', animation: @turbolinks_animate_animation, element: 'div' do
77
+ ...
78
+ ```
79
+
80
+ ### Controllers
81
+
82
+ In your controller simply specify the animation:
83
+
84
+ ```ruby
85
+ class WelcomeController < ApplicationController
86
+
87
+ def index
88
+ turbolinks_animate 'fadein'
89
+ end
90
+
91
+ def more
92
+ turbolinks_animate({ desktop: 'fadein', mobile: 'fadeinright' })
93
+ end
94
+
95
+ end
96
+ ```
97
+
98
+ [Here](https://github.com/jonhue/turbolinks-animate.js) are more details about the usage of turbolinks-animate.js.
99
+
100
+ ## To Do
101
+
102
+ [Here](https://github.com/jonhue/turbolinks-animate/projects/1) is the full list of current projects.
103
+
104
+ To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/turbolinks-animate/issues/new).
105
+
106
+ ---
107
+
108
+ ## Contributing
109
+
110
+ We hope that you will consider contributing to turbolinks-animate. Please read this short overview for some information about how to get started:
111
+
112
+ [Learn more about contributing to this repository](https://github.com/jonhue/turbolinks-animate/blob/master/CONTRIBUTING.md), [Code of Conduct](https://github.com/jonhue/turbolinks-animate/blob/master/CODE_OF_CONDUCT.md)
113
+
114
+ ### Contributors
115
+
116
+ Give the people some :heart: who are working on this project. See them all at:
117
+
118
+ https://github.com/jonhue/turbolinks-animate/graphs/contributors
119
+
120
+ ### Semantic Versioning
121
+
122
+ turbolinks-animate follows Semantic Versioning 2.0 as defined at http://semver.org.
123
+
124
+ ## License
125
+
126
+ MIT License
127
+
128
+ Copyright (c) 2017 Jonas Hübotter
129
+
130
+ Permission is hereby granted, free of charge, to any person obtaining a copy
131
+ of this software and associated documentation files (the "Software"), to deal
132
+ in the Software without restriction, including without limitation the rights
133
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
134
+ copies of the Software, and to permit persons to whom the Software is
135
+ furnished to do so, subject to the following conditions:
136
+
137
+ The above copyright notice and this permission notice shall be included in all
138
+ copies or substantial portions of the Software.
139
+
140
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
141
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
142
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
143
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
144
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
145
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
146
+ SOFTWARE.
@@ -1,7 +1,7 @@
1
- module TurbolinksAnimateHelper
2
-
3
- def turbolinks_animate animation
4
- @turbolinks_animate_animation = animation.is_a?(Hash) ? animation.to_json : animation
5
- end
6
-
7
- end
1
+ module TurbolinksAnimateHelper
2
+
3
+ def turbolinks_animate animation
4
+ @turbolinks_animate_animation = animation.is_a?(Hash) ? animation.to_json : animation
5
+ end
6
+
7
+ end
@@ -1,4 +1,4 @@
1
- <% element = options.delete :element %>
2
- <%= content_tag element, options do %>
3
- <%= block %>
4
- <% end %>
1
+ <% element = options.delete :element %>
2
+ <%= content_tag element, options do %>
3
+ <%= block %>
4
+ <% end %>
File without changes
@@ -1,6 +1,6 @@
1
- require 'rails/railtie'
2
-
3
- module TurbolinksAnimate
4
- class Engine < ::Rails::Engine
5
- end
6
- end
1
+ require 'rails/railtie'
2
+
3
+ module TurbolinksAnimate
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
@@ -1,27 +1,28 @@
1
- require 'rails/railtie'
2
-
3
- module TurbolinksAnimate
4
- class Railtie < Rails::Railtie
5
-
6
- initializer 'turbolinks-animate.mozaic' do
7
- Mozaic.configure do |config|
8
- config.define_component 'turbolinks-animate', element: 'body' do |options|
9
- animation = options.delete :animation
10
- if animation
11
- options[:class] += ( options[:class].length > 0 ? ' turbolinks-animate' : 'turbolinks-animate' )
12
- options[:data] ||= {}
13
- options[:data][:turbolinks_animate_animation] = animation
14
- end
15
- options
16
- end
17
- end
18
- end
19
-
20
- initializer 'turbolinks-animate.action_controller' do
21
- ActiveSupport.on_load :action_controller do
22
- include TurbolinksAnimateHelper
23
- end
24
- end
25
-
26
- end
27
- end
1
+ require 'rails/railtie'
2
+ require 'mozaic'
3
+
4
+ module TurbolinksAnimate
5
+ class Railtie < Rails::Railtie
6
+
7
+ initializer 'turbolinks-animate.mozaic' do
8
+ Mozaic.configure do |config|
9
+ config.define_component 'turbolinks-animate', element: 'body' do |options|
10
+ animation = options.delete :animation
11
+ if animation
12
+ options[:class] += ( options[:class].length > 0 ? ' turbolinks-animate' : 'turbolinks-animate' )
13
+ options[:data] ||= {}
14
+ options[:data][:turbolinks_animate_animation] = animation
15
+ end
16
+ options
17
+ end
18
+ end
19
+ end
20
+
21
+ initializer 'turbolinks-animate.action_controller' do
22
+ ActiveSupport.on_load :action_controller do
23
+ include TurbolinksAnimateHelper
24
+ end
25
+ end
26
+
27
+ end
28
+ end
@@ -1,3 +1,3 @@
1
1
  module TurbolinksAnimate
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbolinks-animate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
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: 2018-02-17 00:00:00.000000000 Z
11
+ date: 2018-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.7.4
105
+ rubygems_version: 2.7.6
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Rich & adaptive animations for apps using Rails w/ Turbolinks™