batman-rails-flo 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
2
  SHA1:
3
- metadata.gz: 7b963aa70fbe6d0e335308c9e2567c459ce8e0f6
4
- data.tar.gz: 84d2cd65dc7d25e1e8b8dc2bceede3c65d5e6c32
3
+ metadata.gz: b2dd57e65a26f4cd0836c1c24f1dcb449dc86897
4
+ data.tar.gz: 0b6b59c95896c52c7d6d7f434a1bb2c3823f82c8
5
5
  SHA512:
6
- metadata.gz: e1439e8e65e778441bbe4af2375bbb33013c350398e467d39db6d2dbc1ed9f77a50643e88a52d628015688843c020734d6e8090236d1a8f58013c1dac2b34f75
7
- data.tar.gz: e2483f3d3b10459b82631d20f35cee2e853ee886a2e78ce6cf1517b396f949ebf20e4074a4aa43ee668e9994c1d4e2bab6dbf62823ad9917da7f00fe3fda9e9e
6
+ metadata.gz: 72a1c425002ccfe743505c848f49d4a6e52b2cf13557a7923887c7d9a08163d7622da62e22d9edd35fb022049625dc0c90049f07c1d75361abe56b5fd09480c1
7
+ data.tar.gz: fe4b1b0305b3bad0852b107f73ef5be087fe44b0c80e555dc3992a44085db84aa2e350e76073ac24a9103d9a153dd729e90749c336d312f63b2a796167629242
@@ -1,3 +1,3 @@
1
1
  module BatmanRailsFlo
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -60,6 +60,7 @@ function resolver(filepath, callback) {
60
60
  contents: contents,
61
61
  match: "indexOf",
62
62
  });
63
+ console.log("--> success")
63
64
  }
64
65
  catch (err) {
65
66
  console.log(err);
@@ -52,4 +52,5 @@ handleLiveReloadEvent = (ev) ->
52
52
 
53
53
  if !window._batmanLiveReload
54
54
  window.addEventListener('fb-flo-reload', handleLiveReloadEvent)
55
+ console.log("batman-rails-flo is listening for changes!")
55
56
  window._batmanLiveReload = true # only attach the listener once, just in case
@@ -8,12 +8,15 @@ Batman.Object::liveReload = (newConstructor) ->
8
8
  Batman.initializeObject(@)
9
9
  @refreshProperties()
10
10
 
11
+ Batman.Property::forceRefresh = ->
12
+ @_accessor = false
13
+ @refresh()
11
14
 
12
15
  Batman.Object::refreshProperties = ->
13
16
  @_batman.properties.forEach (name, property) ->
14
17
  if property instanceof Batman.Keypath
15
- property.terminalProperty().refresh()
16
- property.refresh()
18
+ property.terminalProperty().forceRefresh()
19
+ property.forceRefresh()
17
20
 
18
21
  ###
19
22
  This will force reload of class accessors that are rendered in views.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: batman-rails-flo
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
  - Robert Mosolgo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-31 00:00:00.000000000 Z
11
+ date: 2014-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler