activemodel-datastore 0.2.3 → 0.2.4

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: 43c4bfc5e295411cd88d6bdff0897e564dea9e23
4
- data.tar.gz: 4ed3b3a28213026e2c99cb0f616372c82958d78f
3
+ metadata.gz: 7cd72c0b2cf1855d6318ed72469e49010f79e30d
4
+ data.tar.gz: 3ce0b65d84b608e041a155154d36b70d8d566ce2
5
5
  SHA512:
6
- metadata.gz: ebe8bb990217d55648209e66be3114176d83e85c81fdecf3f4b1396346f1b063cb823e8aed2e7599e9568e1bd0c92bb4e5ae0dd7c2801a8114eeaf6513e41fb1
7
- data.tar.gz: 6b623ad9ccc3094e96b19969df904e844c4659f9b7dbbabebfd97ae6c8e98311c437c9b3ee4cbdaa2b6733ff2ceb085b0d242baf0be8e5a67802dea83d5043dd
6
+ metadata.gz: 196767913b8dc1fa292feca091217c3f6b518efdfddb0b28641d29a10309461058994281d310eca6fba81dc747de204db25657cdd56a9e98d6166c3ca7e59ec1
7
+ data.tar.gz: 3b747dc5d543ab8a358473328bb459c531ea486a29c60fd8493b1461ef2e033ccbfaa430e6b96a78f203a3bd745114c13687507cd4b7b77bcbb391ff0c3249ee
@@ -1,3 +1,7 @@
1
+ ### 0.2.4 / 2017-10-31
2
+ * non-Rails projects now source client authentication settings automatically (rjmooney)
3
+ * documentation improvements
4
+
1
5
  ### 0.2.3 / 2017-05-24
2
6
  * adding CarrierWave file upload support
3
7
  * updating example Cloud Datastore Rails app to 5.1
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%2FDatastore:default_property_value)
130
- and type cast the format of values through [`format_property_value`](http://www.rubydoc.info/gems/activemodel-datastore/ActiveModel%2FDatastore:format_property_value):
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(ENV['GCLOUD_PROJECT'])
30
+ @dataset ||= Google::Cloud.datastore
34
31
  end
35
32
 
36
33
  def self.reset_dataset
@@ -1,5 +1,5 @@
1
1
  module ActiveModel
2
2
  module Datastore
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.4'
4
4
  end
5
5
  end
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.3
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-05-24 00:00:00.000000000 Z
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.11
219
+ rubygems_version: 2.6.13
220
220
  signing_key:
221
221
  specification_version: 4
222
222
  summary: Cloud Datastore integration with Active Model