sheets_db 0.2.0 → 0.3.0
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 +4 -4
- data/lib/sheets_db/version.rb +1 -1
- data/lib/sheets_db/worksheet/row.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45b4476491dc99a617979e6a3de7a0ecdf92505b
|
|
4
|
+
data.tar.gz: 63b96089d34abe4b12ec2bced19f9f634f0e4a84
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7736d676c52d70438455f844902a05dde151f83b341e888bb793b86c79018c70d859b0bda862921b96f8b6206419d830c64d4dc93407f3bad0bbc1e182a777e
|
|
7
|
+
data.tar.gz: 83a80a42108a28d05a98b66e94fbc9a196e5f7f75615538293997ba4e86f92a1e150e9d7f45d0fad09f63f1140c7557ebe4660fbae6fd5a30ac11abc539aa67a
|
data/lib/sheets_db/version.rb
CHANGED
|
@@ -125,6 +125,17 @@ module SheetsDB
|
|
|
125
125
|
loaded_attributes[name][:changed] = value
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
+
def stage_attributes(new_attribute_set)
|
|
129
|
+
new_attribute_set.each do |name, value|
|
|
130
|
+
send(:"#{name}=", value)
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
def update_attributes!(new_attribute_set)
|
|
135
|
+
stage_attributes(new_attribute_set)
|
|
136
|
+
save!
|
|
137
|
+
end
|
|
138
|
+
|
|
128
139
|
def modify_collection_attribute(name, value, remove:)
|
|
129
140
|
attribute_definition = self.class.attribute_definitions.fetch(name, {})
|
|
130
141
|
existing_value = Array(send(name))
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sheets_db
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ravi Gadad
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11-
|
|
11
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google_drive
|