superstore 2.1.3 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/superstore/types.rb +1 -0
- data/superstore.gemspec +1 -1
- data/test/unit/persistence_test.rb +1 -12
- 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: 5693d8b8ef6d996873be8b90469953d6d43da3d9
|
4
|
+
data.tar.gz: 3441e366eb68a131363c9d8376905bc3c4dfd68a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9b800bb4f54c8e9bda088ebc7dbe97fb64eea4bc84f3e601658495b0d9afeb897a03738de445bf55c4527128f1d8a7fa2845663df1164deb68aef1d973054bf
|
7
|
+
data.tar.gz: 2324d4e9d7cff4f03db292828eee93973e138b38637a206eae00f9b04889e595b0656d6711abf3456586159f6550eb8a8e53cf55fbc1134b7b406df722956cf9
|
data/lib/superstore/types.rb
CHANGED
@@ -2,6 +2,7 @@ Superstore::Type.register(:array, Superstore::Types::ArrayType)
|
|
2
2
|
Superstore::Type.register(:boolean, Superstore::Types::BooleanType)
|
3
3
|
Superstore::Type.register(:date, Superstore::Types::DateType)
|
4
4
|
Superstore::Type.register(:float, Superstore::Types::FloatType)
|
5
|
+
Superstore::Type.register(:geo_point, Superstore::Types::JsonType)
|
5
6
|
Superstore::Type.register(:integer, Superstore::Types::IntegerType)
|
6
7
|
Superstore::Type.register(:json, Superstore::Types::JsonType)
|
7
8
|
Superstore::Type.register(:time, Superstore::Types::TimeType)
|
data/superstore.gemspec
CHANGED
@@ -47,7 +47,7 @@ class Superstore::PersistenceTest < Superstore::TestCase
|
|
47
47
|
assert_nothing_raised(Superstore::RecordNotFound) { Issue.find(second_issue.id) }
|
48
48
|
end
|
49
49
|
|
50
|
-
test '
|
50
|
+
test 'persistence inquiries' do
|
51
51
|
issue = Issue.new
|
52
52
|
assert issue.new_record?
|
53
53
|
assert !issue.persisted?
|
@@ -160,17 +160,6 @@ class Superstore::PersistenceTest < Superstore::TestCase
|
|
160
160
|
assert_equal persisted_issue, reloaded_issue
|
161
161
|
end
|
162
162
|
|
163
|
-
test 'allow CQL keyword in column name' do
|
164
|
-
assert_nothing_raised do
|
165
|
-
Issue.string :text
|
166
|
-
issue = Issue.create :text => 'hello'
|
167
|
-
issue.text = 'world'
|
168
|
-
issue.save!
|
169
|
-
issue.text = nil
|
170
|
-
issue.save!
|
171
|
-
end
|
172
|
-
end
|
173
|
-
|
174
163
|
test 'quote_columns' do
|
175
164
|
klass = Class.new { include Superstore::Persistence }
|
176
165
|
assert_equal %w{'a' 'b'}, klass.__send__(:quote_columns, %w{a b})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superstore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Koziarski
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-06-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|