jquery-watcher 0.1.0 → 0.2.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: bc63721acbf0056d9617f0ce3a09236010152319
4
- data.tar.gz: ccdbc55f39df6b848b37d4f37b4ed4fbf2a6f9ab
3
+ metadata.gz: 3f9d4a88022661e9f453d660283905ad1d370b1f
4
+ data.tar.gz: dd29de9393779f0c343aa1e3e5e1df6481703234
5
5
  SHA512:
6
- metadata.gz: dec719e0adcf85681cb7873d1a3f851b88098a5237328ac8d388bb0bd6b41a6054e722c8e651faec34d85cf546b2d0bd978a6d52507ae60cb7e68fb9ded67693
7
- data.tar.gz: 6c6b9887a419040c2c3a60805da72a6fe0484a62638feb434c0a20d55a79de221433c4aa07b010ac53b15d4517beea4ba6e2112fe33d0ad9546fc71615d4ca4e
6
+ metadata.gz: fcd5d32d227bdcad3291ffe57b0516bfdd370b747033f0df2248781c675b8dccc03eedfe23026d586650f57eacc7f1b68154c7bdcb384a0d06fb14bd55747d85
7
+ data.tar.gz: 4426b8694592cc9367a917de6bd7ef2d50817862e1a05d6087e2ba4217c3462f487992960cc63d56b38100f34b012d3c954c0a5297408f659779279d2d691b56
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Change Log
2
+
3
+ ## 0.2.0 (2017-01-31)
4
+ ### Changes
5
+ - Refactored to a more future-proof api
6
+
7
+ ## 0.1.0 (2017-01-30) (Initial Release)
data/README.md CHANGED
@@ -29,9 +29,11 @@ Finally add it to your _application.js_:
29
29
 
30
30
  ## Usage
31
31
 
32
- $.watch 'a.fancy', (elem) ->
33
- elem.click ->
34
- alert('Awesome')
32
+ ```coffeescript
33
+ $.watcher.add 'a.fancy', (element) ->
34
+ element.click ->
35
+ alert('Awesome')
36
+ ```
35
37
 
36
38
  ## Contributing
37
39
 
@@ -1,7 +1,7 @@
1
1
  class @JqueryWatcher
2
- @observer: new JqueryDOMObserver
2
+ observer: new JqueryDOMObserver
3
3
 
4
- @watch: (selector, callback) ->
4
+ add: (selector, callback) ->
5
5
  id = Math.floor(Math.random() * 10000000000000001)
6
6
 
7
7
  register = (element) ->
@@ -23,5 +23,4 @@ class @JqueryWatcher
23
23
  register(element)
24
24
 
25
25
 
26
- jQuery['watch'] = (selector, callback) ->
27
- JqueryWatcher.watch(selector, callback)
26
+ jQuery['watcher'] = new JqueryWatcher
@@ -1,5 +1,5 @@
1
1
  module Jquery
2
2
  module Watcher
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
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.1.0
4
+ version: 0.2.0
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-01-30 00:00:00.000000000 Z
11
+ date: 2017-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-rails
@@ -61,6 +61,7 @@ extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
63
  - ".gitignore"
64
+ - CHANGELOG.md
64
65
  - Gemfile
65
66
  - LICENSE.txt
66
67
  - README.md