reins 0.0.5 → 0.1.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
- SHA1:
3
- metadata.gz: a1af0eeaf611a0c430bb05eef27b354f126a50b9
4
- data.tar.gz: 648ccd2171cbf03f3a44db40647c3f3b35440000
2
+ SHA256:
3
+ metadata.gz: 137f4565dcf589231dfb8739385d468e729daa12025bed971669bd970f444af7
4
+ data.tar.gz: 5625e356655c0d77f38a6b2f955540020a21b72c480218c06979f641b789c302
5
5
  SHA512:
6
- metadata.gz: 52fa48f4129ee24a7ea6d40eb72f56bdab5462f65c463f1bf833a7f7e31d0ea5b71da053e4dddf42a59c094627a29e9d2c0abcddd86ca945979d06466db2e1ac
7
- data.tar.gz: '0681b9869d9b7b0931a22bff3a10e3332e5dd078c43d2238a9f6acae7e144bffd424ddda785a4af797dda366ee4b73d1aef50ea9a7e183f44be5c40d5f72c4e7'
6
+ metadata.gz: 2d63c9481a40df5ab560f10936109e58401c77298502c0daba171687f6ac32f4f4859db4bbc3831583f909cd5a2d7534ce95767a5b69d434baf7c2ec0cadd28b
7
+ data.tar.gz: 543f427e6a4a765ab4574aaea210ed1f018751bc04bfe28627a12f5b97da25eab0c2d87c9e4da885060e4469493d6d08241622b1eb5a9ffb09c14fbf5ac67e24
@@ -1,3 +1,3 @@
1
1
  module Reins
2
- VERSION = '0.0.5'
2
+ VERSION = '0.1.0'
3
3
  end
@@ -47,4 +47,7 @@ var r = {
47
47
  * When page is ready, run javascript controller#action that corresponds to
48
48
  * current rails controller#action.
49
49
  */
50
- $(document).on('page:load ready', r.call_js_controller);
50
+ if (Turbolinks !== null && Turbolinks.supported)
51
+ $(document).on('turbolinks:load', r.call_js_controller);
52
+ else
53
+ $(document).on('ready', r.call_js_controller);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Goncalves
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-20 00:00:00.000000000 Z
11
+ date: 2018-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.6.8
95
+ rubygems_version: 2.7.3
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Reins! Rein in your javascript