gistyle 1.0.0 → 1.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
  SHA1:
3
- metadata.gz: 3fd19f46c9f7d2023379e55af6c68883aad62c86
4
- data.tar.gz: 3b5707dce50625627c55f53510aba5c1382f00ed
3
+ metadata.gz: 9982cf03a09806cca6ee70d6d152430530cfee3a
4
+ data.tar.gz: 2c303f7611fb6685f7da2f1578a0850142ab13d8
5
5
  SHA512:
6
- metadata.gz: 1a19bb305ec91ff63f3307471494a82c43760715f86379b27ac64537dfd747f635901c424dd1fa4548d539e5cd8bbec1a986bf625e7b09df3c6f7cc99e0fb526
7
- data.tar.gz: 9c81951c44a4c233e778f41395f0d2e932d3477b644a72babf6b478c42e1216850f957cace3bbe6ebd6af8b7c64ca12e024409fd43ffd9220a759c15675d9e5d
6
+ metadata.gz: c07307f395e930578b8429779a6ddc98942bb9de55353da57646c86afa18f73e4caa6d97a43cc6e1ab37d21d0799b45087cf5fc349561c2066b41ee1dcffc92d
7
+ data.tar.gz: b38eb3c364628742956ba79616fcb2c4c62088584199ae9d0e9bcce80b3c8a76f6ab01287ae15f9685c1e9720fa47f1d3997a3c3e6df077cb45484484ddb4960
data/README.md CHANGED
@@ -98,4 +98,8 @@ A few general aliases are included by default:
98
98
 
99
99
  Aliases can be cleared by calling either:
100
100
  * `GIStyle.clear_aliases_for_controller(controller)` or
101
- * `GIStyle.clear_all_aliases()`.
101
+ * `GIStyle.clear_all_aliases()`.
102
+
103
+ ## Turbolinks Compatibility
104
+
105
+ It dosen't support turbolinks with version 1.x, please upgrade to 2.x if you want to make it work.
@@ -1,3 +1,3 @@
1
1
  module Gistyle
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -64,4 +64,5 @@ GIStyle.alias(undefined, 'edit', '_edit_update');
64
64
  GIStyle.alias(undefined, 'update', '_edit_update');
65
65
  GIStyle.alias(undefined, '_edit_update', '_form');
66
66
 
67
- $(document).on(typeof(Turbolinks) == 'undefined' ? 'ready' : 'page:change', GIStyle.init) // support Turbolinks
67
+ var turbolinkSupported = typeof(Turbolinks) !== "undefined" && Turbolinks !== null && Turbolinks.supported;
68
+ $(document).on(turbolinkSupported ? 'page:change' : 'ready', GIStyle.init);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gistyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Jian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-16 00:00:00.000000000 Z
11
+ date: 2014-11-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: GIStyle is a Rails plug-in for DOM-based routing of Javascript, inspired
14
14
  from Paul Irish and Jason Garber.
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.3.0
88
+ rubygems_version: 2.4.2
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: GIStyle is a Rails plug-in for DOM-based routing of Javascript.