activemodel-datastore 0.2.3 → 0.2.4
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/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/active_model/datastore/connection.rb +1 -4
- data/lib/active_model/datastore/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7cd72c0b2cf1855d6318ed72469e49010f79e30d
|
|
4
|
+
data.tar.gz: 3ce0b65d84b608e041a155154d36b70d8d566ce2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 196767913b8dc1fa292feca091217c3f6b518efdfddb0b28641d29a10309461058994281d310eca6fba81dc747de204db25657cdd56a9e98d6166c3ca7e59ec1
|
|
7
|
+
data.tar.gz: 3b747dc5d543ab8a358473328bb459c531ea486a29c60fd8493b1461ef2e033ccbfaa430e6b96a78f203a3bd745114c13687507cd4b7b77bcbb391ff0c3249ee
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -126,8 +126,8 @@ end
|
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
Callbacks work as you would expect. We have also added the ability to set default values through
|
|
129
|
-
[`default_property_value`](http://www.rubydoc.info/gems/activemodel-datastore/ActiveModel
|
|
130
|
-
and type cast the format of values through [`format_property_value`](http://www.rubydoc.info/gems/activemodel-datastore/ActiveModel
|
|
129
|
+
[`default_property_value`](http://www.rubydoc.info/gems/activemodel-datastore/ActiveModel/Datastore/PropertyValues#default_property_value-instance_method)
|
|
130
|
+
and type cast the format of values through [`format_property_value`](http://www.rubydoc.info/gems/activemodel-datastore/ActiveModel/Datastore/PropertyValues#format_property_value-instance_method):
|
|
131
131
|
|
|
132
132
|
```ruby
|
|
133
133
|
class User
|
|
@@ -24,13 +24,10 @@ module CloudDatastore
|
|
|
24
24
|
ENV['GCLOUD_KEYFILE_JSON'] = '{"private_key": "' + ENV['SERVICE_ACCOUNT_PRIVATE_KEY'] + '",
|
|
25
25
|
"client_email": "' + ENV['SERVICE_ACCOUNT_CLIENT_EMAIL'] + '"}'
|
|
26
26
|
end
|
|
27
|
-
else
|
|
28
|
-
ENV['DATASTORE_EMULATOR_HOST'] = 'localhost:8181'
|
|
29
|
-
ENV['GCLOUD_PROJECT'] = 'test-datastore'
|
|
30
27
|
end
|
|
31
28
|
|
|
32
29
|
def self.dataset
|
|
33
|
-
@dataset ||= Google::Cloud.datastore
|
|
30
|
+
@dataset ||= Google::Cloud.datastore
|
|
34
31
|
end
|
|
35
32
|
|
|
36
33
|
def self.reset_dataset
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activemodel-datastore
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bryce McLean
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
216
216
|
version: '0'
|
|
217
217
|
requirements: []
|
|
218
218
|
rubyforge_project:
|
|
219
|
-
rubygems_version: 2.6.
|
|
219
|
+
rubygems_version: 2.6.13
|
|
220
220
|
signing_key:
|
|
221
221
|
specification_version: 4
|
|
222
222
|
summary: Cloud Datastore integration with Active Model
|