kolo 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c41cdc2fdd32d1fe1e6e3b0be1ae03f28e8b46ea
4
- data.tar.gz: 3ce59f3415667218596199cc700bbe53ec1f592f
3
+ metadata.gz: b837bf96d64564d1f92140836fd6b96558c33d98
4
+ data.tar.gz: cd29468e00684b4a99c5348cfad437f03e729af4
5
5
  SHA512:
6
- metadata.gz: 5ce16976d63072c5a2802bb2223b4b2e146627b6b46ee7dbf5ba95216ad02cb1f4624483c2bcc3ff19f670d29e539e5df4bbf4b646413949d49c230c7fc203a1
7
- data.tar.gz: c28ba06a9a1518b588c9c2602151e58abb9337595ef246f7122cc26876b14b9743a0f4c6b36c0599fa8dc82dd91b956d570e9a76724f0e9da36c28c0978035a6
6
+ metadata.gz: 788c7755deeaedb1c1d27c3d0f9d3860c1afa58c55cde38e463a9822a78ef7fc25a2498803808d1ddab76bf2d76a7375f483ff4595a646937799e8e00d4059b4
7
+ data.tar.gz: ae5010aecc4eee9beaad68a72e6052b2a80db320e3a69791b81bf4a35733f7045905d09b19ab839b336d44bf21d4a39a0a383c127a5406586c654f565f899069
@@ -144,7 +144,9 @@ class Db
144
144
  doLoad: (data)=>
145
145
  for itemData in @itemDataFrom(data)
146
146
  item = @findOrCreate itemData.id
147
+ item.updating true
147
148
  item.updateAttributes itemData
149
+ item.updating false
148
150
  if @sortFunction?
149
151
  @items.sort @sortFunction
150
152
 
@@ -225,6 +227,7 @@ class Model
225
227
  constructor: (@id, @db)->
226
228
  @editing = ko.observable false
227
229
  @deleting = ko.observable false
230
+ @updating = ko.observable false
228
231
 
229
232
  viewModel: =>
230
233
  @db.viewModel
data/lib/kolo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kolo
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kolo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rahoul Baruah
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-19 00:00:00.000000000 Z
11
+ date: 2014-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.0.3
96
+ rubygems_version: 2.2.1
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: A quick way to set up a Rails app with Bootstrap and KnockoutJS