dynamoid 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/dynamoid/persistence.rb +1 -1
- data/lib/dynamoid/tasks/database.rake +3 -4
- data/lib/dynamoid/version.rb +1 -1
- 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: 483c6653898e4eee69d97f7bc59531c15fcebc9a
|
4
|
+
data.tar.gz: ef1a31b3fbad480de6bb782a818067bb8daff5d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68c24b5f84bf8afd6375f2637a6395aa1d222bcfbf1e8669bb29b864114ece17c5f3bc3d8a4fc92b3548276fd234f94dcdd64ab96bc694bf24449417c2069f8f
|
7
|
+
data.tar.gz: dbcaf6a31a6ee2a50cf658a07287b7e037698dd39898d792832c3c0587fba1167525f61373d857b069f28414e543f8c3f547cf3dde9796787f2a8df6cb8c302c
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
# HEAD
|
2
2
|
|
3
|
+
# 1.3.2
|
4
|
+
|
5
|
+
* Fix migrations by stopping the loading of all rails models outside the rails env.
|
6
|
+
|
3
7
|
# 1.3.1
|
4
8
|
|
9
|
+
* Implements #135
|
10
|
+
* dump values for :integer, :string, :boolean fields passed to where query
|
11
|
+
* e.g. You can search for booleans with any of: `[true, false, "t", "f", "true", "false"]`
|
5
12
|
* Adds support for Rails 5 without warnings.
|
6
13
|
* Adds rake tasks for working with a DynamoDB database:
|
7
14
|
* rake dynamoid:create_tables
|
data/lib/dynamoid/persistence.rb
CHANGED
@@ -93,7 +93,7 @@ module Dynamoid
|
|
93
93
|
end
|
94
94
|
else
|
95
95
|
if value.nil? && (default_value = options[:default])
|
96
|
-
value = default_value.respond_to?(:call) ? default_value.call : default_value
|
96
|
+
value = default_value.respond_to?(:call) ? default_value.call : default_value.dup
|
97
97
|
end
|
98
98
|
|
99
99
|
unless value.nil?
|
@@ -1,14 +1,13 @@
|
|
1
1
|
require 'dynamoid'
|
2
2
|
require 'dynamoid/tasks/database'
|
3
3
|
|
4
|
-
MODELS
|
5
|
-
|
6
|
-
Dir[ File.join(MODELS, "*.rb") ].sort.each { |file| require file }
|
7
|
-
|
4
|
+
MODELS ||= File.join(Rails.root, "app/models")
|
8
5
|
|
9
6
|
namespace :dynamoid do
|
10
7
|
desc "Creates DynamoDB tables, one for each of your Dynamoid models - does not modify pre-existing tables"
|
11
8
|
task :create_tables => :environment do
|
9
|
+
# Load models so Dynamoid will be able to discover tables expected.
|
10
|
+
Dir[ File.join(MODELS, "*.rb") ].sort.each { |file| require file }
|
12
11
|
tables = Dynamoid::Tasks::Database.create_tables
|
13
12
|
result = tables[:created].map{ |c| "#{c} created" } + tables[:existing].map{ |e| "#{e} already exists" }
|
14
13
|
result.sort.each{ |r| puts r }
|
data/lib/dynamoid/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Symonds
|
@@ -20,7 +20,7 @@ authors:
|
|
20
20
|
autorequire:
|
21
21
|
bindir: exe
|
22
22
|
cert_chain: []
|
23
|
-
date: 2017-
|
23
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activemodel
|