masamune 0.17.14 → 0.17.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/masamune.rb +2 -0
- data/lib/masamune/environment.rb +0 -1
- data/lib/masamune/schema/column.rb +1 -1
- data/lib/masamune/version.rb +1 -1
- data/spec/masamune/schema/column_spec.rb +11 -1
- data/spec/spec_helper.rb +0 -3
- 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: 0ecd8682fd1fc01a49affd8d28d3e299c601c75c
|
4
|
+
data.tar.gz: 45f3801d782a6cb2d2dc07e3a72a2f3286925bdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f8ee35378be875d5e37154757a471d09f5364375a9330b105744ed2093ec4e1280b0ae1dfe0118b1b656bb18fc797353b438532aa57d97718420b8c72ee1406
|
7
|
+
data.tar.gz: ec1c92befce218f594d0688f4e801f80554f8470895b8dc616e6d4013b93d52cdc6b3005caec0d6ccc9173447cd43cfea12756c74d1ad4e3c16f50e55ef94cb9
|
data/lib/masamune.rb
CHANGED
data/lib/masamune/environment.rb
CHANGED
data/lib/masamune/version.rb
CHANGED
@@ -471,13 +471,23 @@ describe Masamune::Schema::Column do
|
|
471
471
|
|
472
472
|
context 'when scalar' do
|
473
473
|
let(:value) { '1' }
|
474
|
-
it {
|
474
|
+
it { expect { result }.to raise_error ArgumentError, "Could not coerce '1' into :json for column 'json'" }
|
475
475
|
end
|
476
476
|
|
477
477
|
context 'when array' do
|
478
|
+
let(:value) { '["1","2","3"]' }
|
479
|
+
it { is_expected.to eq(%w(1 2 3)) }
|
480
|
+
end
|
481
|
+
|
482
|
+
context 'when hash' do
|
478
483
|
let(:value) { '{"k":"v"}' }
|
479
484
|
it { is_expected.to eq('k' => 'v') }
|
480
485
|
end
|
486
|
+
|
487
|
+
context 'when hash with UTF-8' do
|
488
|
+
let(:value) { '{"k":"£340.3m"}' }
|
489
|
+
it { is_expected.to eq('k' => '£340.3m') }
|
490
|
+
end
|
481
491
|
end
|
482
492
|
end
|
483
493
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: masamune
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Andrews
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|