initjs 2.0.0 → 2.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
2
  SHA1:
3
- metadata.gz: 2205b572504e209d38aca1869ca8b5a04982a8d0
4
- data.tar.gz: 2f80882b07392e1f4cf301464b67990383f8bf30
3
+ metadata.gz: 4191ab24005ed983a99ddd13a1e485fe3a7ca88c
4
+ data.tar.gz: f276bd6d116b5d80072d7de4c631b168fc4ea9a3
5
5
  SHA512:
6
- metadata.gz: 2880be469d1a0a294ed373ea474f7c4e63af668e8834e89b72f8af79893bd4b8dfa26c99ad380ae1bb838bf073410cae5bb2d46b1f0af247a04116c63ba9a39a
7
- data.tar.gz: 2e5f5f9da3c232fea7978f9c12fb813a17e098584848308a25a90484f83e0bd7f8a38754920204f145a1bf4c676efcd9ae215030dbb6366d8cfbc1ca21db279e
6
+ metadata.gz: f3fbb031229174782e3020efcd8016f0fa6d50de11f6c5be2ae61277c044c93979537a4003f564088cf709b6b605b92195989e1258f03326e5cd11e3604ec665
7
+ data.tar.gz: d2f1eb49fa9c26aafd095680060832affff0dc455a770df26f086b8e6931b7cba54246f1f3cd5431b28e2b0b888131e0207aca9adbabd108358c1e7d5244feba
data/README.md CHANGED
@@ -298,6 +298,9 @@ rails g initjs:add [namespace]/[controllers] [action_1] [action_2] ... [action_n
298
298
 
299
299
  ## Changelog
300
300
 
301
+ ### 2.1.0
302
+ - Fix duplicated initialization with Turbolinks 2.x (It will break your app if you are using Turbolinks 1.x)
303
+
301
304
  ### 2.0.0
302
305
 
303
306
  - Add support for objects instead of only fuctions
data/initjs.gemspec CHANGED
@@ -23,7 +23,6 @@ Gem::Specification.new do |gem|
23
23
  gem.add_development_dependency 'rspec-rails', '~> 2.14.0'
24
24
  gem.add_development_dependency 'generator_spec', '~> 0.9.0'
25
25
  gem.add_development_dependency 'capybara', '~> 2.0.2'
26
- gem.add_development_dependency 'jquery-rails'
27
26
  gem.add_development_dependency 'coffee-rails'
28
27
  gem.add_development_dependency 'turbolinks'
29
28
  end
@@ -83,7 +83,7 @@ window.Initjs =
83
83
  initApp: ->
84
84
  @appName(@$infos())
85
85
  Initjs.execFilter('initPage')
86
- @initialize()
86
+ @initialize() if !window.Turbolinks? || !Initjs.config('turbolinks') is true
87
87
 
88
88
  jQuery ->
89
89
  Initjs.initApp()
@@ -1,3 +1,3 @@
1
1
  module Initjs
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: initjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josemar Davi Luedke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-11 00:00:00.000000000 Z
11
+ date: 2014-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: 2.0.2
83
- - !ruby/object:Gem::Dependency
84
- name: jquery-rails
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: coffee-rails
99
85
  requirement: !ruby/object:Gem::Requirement