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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '04313866f14532a020f286b09a32b7c27745aa56'
4
- data.tar.gz: fbd6aef851145aa731ea684a0a5ccfadc1f71659
3
+ metadata.gz: 483c6653898e4eee69d97f7bc59531c15fcebc9a
4
+ data.tar.gz: ef1a31b3fbad480de6bb782a818067bb8daff5d8
5
5
  SHA512:
6
- metadata.gz: 5f71ed0b06f92ce3d296732a839f14778a841754a3856c889a0693b9bf81986fb43762f1b45bc9ddc998a11e9e4ab6ff44a1295ebef36b1c83d6004378624b1c
7
- data.tar.gz: 8e34652d0b05adbd2a6b30c405140acec063a31a42c41580edfd8bb2a51b792f572f651baf6f136e752ff860b774d777ce4914b28149a7ed39b49db404632b9d
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
@@ -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 = File.join(Rails.root, "app/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 }
@@ -1,3 +1,3 @@
1
1
  module Dynamoid
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
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.1
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-03-27 00:00:00.000000000 Z
23
+ date: 2017-05-15 00:00:00.000000000 Z
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activemodel