anonymous_active_record 1.0.1 → 1.0.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
  SHA256:
3
- metadata.gz: 94ccab5f507787082888f5a4d3b0e858157d4bd3cc32a8e705a2f77ea3175780
4
- data.tar.gz: 2b318d3c952f5e743b9313ec66367410cc858c61aea41514c3006242612390ad
3
+ metadata.gz: 1902988838c6ae1533726ada1fcd5d708c37caa7afea6bbafc84f0b3ada4c77d
4
+ data.tar.gz: c223e3d53de54e44058cb574f07bc9deb77959de1278b1cf799371f1a1ebc87b
5
5
  SHA512:
6
- metadata.gz: 2e7d02aebe3a9cdd0680d65f2a47c04f9dfafd2731d0cfaad8284b16e0ecd2189cda5d738359f298036c62f16cccb18456194da1c3bdc4878f90670f43eb7e3f
7
- data.tar.gz: 8ab2c97394a88cb8de4cf6ef62c766d30d2b09fc6a021b65543689fccaf4c1173f1e6e07588bbe4873bf6f414e4e5104ebe90bb805a3d182ab0926e1197855a8
6
+ metadata.gz: 10cea43713751bfdd6e888821f89ef65b90fb482895ff2950c65d934278f73565f7a90c084692b6362b17f047ea098ccefacd26fb28077ed420095d3bc59df9f
7
+ data.tar.gz: 767e23e51229dba5fdaab7014f241121b67bf17ea6acd84f7b39192df3d9e2d27c3ae324d1a5d6daced603ed8a2cfef4b269061bb65b96decbffe9f6aee8939f
@@ -53,7 +53,11 @@ module AnonymousActiveRecord
53
53
  # :name and :type are required at minimum
54
54
  name = col.delete(:name)
55
55
  type = col.delete(:type)
56
- t.column(name, type, **col)
56
+ if col.empty?
57
+ t.column(name, type)
58
+ else
59
+ t.column(name, type, **col)
60
+ end
57
61
  else
58
62
  t.column col, :string
59
63
  end
@@ -1,3 +1,3 @@
1
1
  module AnonymousActiveRecord
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anonymous_active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-10 00:00:00.000000000 Z
11
+ date: 2019-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  - !ruby/object:Gem::Version
164
164
  version: '0'
165
165
  requirements: []
166
- rubygems_version: 3.0.1
166
+ rubygems_version: 3.0.3
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Almost Anonymous ActiveRecord classes