material_raingular 0.6.8 → 0.6.9

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: d10186a1abfb7d1446a8bb860be88b0ff5300e6a
4
- data.tar.gz: f563dac7c25528fbcdb7623fa9829d529cf2d483
3
+ metadata.gz: 8346d29258e1d5ad0f1b7930b6c1e7870e9ee01f
4
+ data.tar.gz: ec8c63f01ac31aeb9a3f5b85aaf075dfb1472530
5
5
  SHA512:
6
- metadata.gz: 068012a91a413558799d904996bc94542d7eebe3b65cf828ff9f7c3d56605cda71b85e41533f5346dfa9eb9cd841a32fc9aa54d14446563fcf0925e9981d00ab
7
- data.tar.gz: fa607eda3ad053e2c38c4c937241620707531c0beb46516a3a2e1ad9be336777be6a7037a44c0e4f8e850ea7fd265e071795aa158f02613999e43ff5d5713a77
6
+ metadata.gz: 74e0b12b2c314baf83a9427daf8487ade0161000de10488b1d8d05e31d60fbe51039257320120c3a8aeae95fedb078b75ef2198f629ad3b70956c4fbca1ede00
7
+ data.tar.gz: 9cd489aca8a5ccefb7713be41b21fccc87f14a5a740e07fe0e70af41a669b236c852fe81ba36f2d4b1ea11bd3a0339fda0179161655df711969c640cba22086f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- material_raingular (0.6.7)
4
+ material_raingular (0.6.9)
5
5
  js-routes
6
6
 
7
7
  GEM
@@ -49,6 +49,18 @@ class ActiveRecord.$Resource extends Module
49
49
  else
50
50
  @$promise = @_save.bind(@)().then(callback,error)
51
51
  return @$promise
52
+ $reload: (callback,error)->
53
+ if @$promise
54
+ @$promise = @$promise.then(@_reload.bind(@)).then(callback,error) if (@$promise.$$state.status != 0 || !@$resolved)
55
+ else
56
+ @$promise = @_reload.bind(@)().then(callback,error)
57
+ return @$promise
58
+ _reload: ->
59
+ return unless @id
60
+ res = @$paramSerializer.create(@)
61
+ @["$" + key + "_was"] = val for key,val of res
62
+ return @$http.get(@$updateUrl()).then(@$deferProcessResponse.bind(@))
63
+
52
64
  _save: ->
53
65
  if @id
54
66
  res = @$paramSerializer.update(@)
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.6.8"
2
+ VERSION = "0.6.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-28 00:00:00.000000000 Z
11
+ date: 2017-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  requirements: []
187
187
  rubyforge_project:
188
- rubygems_version: 2.4.3
188
+ rubygems_version: 2.6.11
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: Angular v1.4 for rails. Angular Material v0.9.8.