jquery-watcher 0.3.0 → 0.3.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: 12721398d3d9d15fb67d691a30defa64e9d22f84
4
- data.tar.gz: cb3ad13148e07691d6067d3d0d74b0119dc00174
3
+ metadata.gz: 0cc0d59b74aa5ae6e1b8cf873abc4767936fa559
4
+ data.tar.gz: ed339080034d89226053056b08fb74d9e48606a2
5
5
  SHA512:
6
- metadata.gz: 33581fd3500092ddde5383582a93ab17ceac6b17d3dc797144e75b5823437febf8e4276d1db1e2de21314e1f23e97e04b5a95e7c6780f174e19e76507d3a91a8
7
- data.tar.gz: 757b1b5b1635c602cb8a76fb9113db0a2f363c56105bc7ba1e34eb524355cf6da5912a72067ea15bc05206d59c303f4b1753ed5df7ff7fa83fbfc0a7c37f975f
6
+ metadata.gz: 4e355df9875e97c9bff4d038c321fd960fc3efcf3504b6a245ab70318f37a08567211eb873b9a89a4338823d9c97a6f4e378c058854474e8f141f6590806e965
7
+ data.tar.gz: b58bdbc33ecdc911314bbc2dded747fa3c8a1e3d4923002d4bb4df1acdf2992f32d344a713ca66f1b8e8b38fbe9d2b0e9e11baa5d7373038f86d54bb7d2a3847
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.3.1 (2017-05-28)
4
+ ### Changes
5
+ - ensure callback with jQuery object
6
+
3
7
  ## 0.3.0 (2017-02-03)
4
8
  ### Changes
5
9
  - Prefilter callback elements
@@ -10,7 +10,11 @@ class @JqueryWatcher
10
10
 
11
11
  element.data(('jquery-watcher-id-' + id + '-watching'), 'true')
12
12
 
13
- $.each(element, callback)
13
+ $.each element, (i, e) ->
14
+ elem = $(e)
15
+
16
+ if elem.length
17
+ callback(elem)
14
18
 
15
19
  $(document).ready ->
16
20
  $(selector).each ->
@@ -25,6 +25,6 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_runtime_dependency 'coffee-rails', '>= 4.0'
27
27
 
28
- spec.add_development_dependency 'bundler', '~> 1.14'
29
- spec.add_development_dependency 'rake', '~> 10.0'
28
+ spec.add_development_dependency 'bundler'
29
+ spec.add_development_dependency 'rake'
30
30
  end
@@ -1,5 +1,5 @@
1
1
  module Jquery
2
2
  module Watcher
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-watcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Schwab
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-03 00:00:00.000000000 Z
11
+ date: 2017-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-rails
@@ -28,30 +28,30 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.14'
33
+ version: '0'
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: '1.14'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '0'
48
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: '10.0'
54
+ version: '0'
55
55
  description: Allow initialization of javascript code regardless of document.ready,
56
56
  turbolinks or dom changes (e.g. Ajax).
57
57
  email:
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.6.8
98
+ rubygems_version: 2.6.12
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Allow initialization of javascript code regardless of document.ready, turbolinks