rsmart_toolbox 0.7 → 0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rsmart_toolbox/etl/grm.rb +2 -2
- data/lib/rsmart_toolbox/version.rb +1 -1
- data/rsmart_toolbox.gemspec +1 -1
- data/spec/rsmart_toolbox/etl/grm_spec.rb +3 -3
- metadata +3 -3
- metadata.gz.sig +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abbda02f2c8266dfb8a83e97e6d2b190d4309bae
|
4
|
+
data.tar.gz: f6050fef1314ff36a4600018a9c96b08d915dc4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e9cd33dcfd90c35437f32c3e0f8c1aa03a3e66dc7967b9a42a14f77e83a024c3690fef9ba0c1ec7f983ba71498f16ff14bb369796a8af1eefe467e21dfb1996
|
7
|
+
data.tar.gz: b3b87eb93d7832685d5ee20b84f32fddc61f58885eb02494dcd17fd2d8d3b3954d3c71bec4e4db3468e82fb00b94c2c895e10c442923115f5bd0d62117d90a78
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -69,10 +69,10 @@ module Rsmart::ETL::GRM
|
|
69
69
|
# @param opt [Hash] options Hash will be passed through to {Rsmart::ETL.parse_string!}.
|
70
70
|
# @return [void]
|
71
71
|
# @see parse_string!
|
72
|
-
def self.parse_sponsor_code!(row, insert_str, values_str, opt={ name: 'SPONSOR_CODE', required:
|
72
|
+
def self.parse_sponsor_code!(row, insert_str, values_str, opt={ name: 'SPONSOR_CODE', required: false, length: 6 })
|
73
73
|
# `SPONSOR_CODE` char(6) COLLATE utf8_bin NOT NULL DEFAULT '',
|
74
74
|
opt[:name] = "SPONSOR_CODE" if opt[:name].nil?
|
75
|
-
opt[:required] =
|
75
|
+
opt[:required] = false if opt[:required].nil?
|
76
76
|
opt[:length] = 6 if opt[:length].nil?
|
77
77
|
Rsmart::ETL::parse_string! row, insert_str, values_str, opt
|
78
78
|
end
|
data/rsmart_toolbox.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.email = ["lspeelmon@rsmart.com"]
|
27
27
|
spec.summary = %q{Client library and command-line tools to help interact with rSmart's cloud APIs.}
|
28
28
|
# spec.description = %q{TODO: Write a longer description. Optional.}
|
29
|
-
spec.homepage = "
|
29
|
+
spec.homepage = "http://rsmart.github.io/rsmart_toolbox/"
|
30
30
|
spec.metadata = { "issue_tracker" => "https://github.com/rSmart/rsmart_toolbox/issues" }
|
31
31
|
spec.license = "AGPL-3.0"
|
32
32
|
|
@@ -111,12 +111,12 @@ RSpec.describe "Rsmart::ETL::GRM" do
|
|
111
111
|
expect(values_str).to eq("'000001',")
|
112
112
|
end
|
113
113
|
|
114
|
-
it "
|
114
|
+
it "does not raise a TextParseError if nil or empty" do
|
115
115
|
insert_str = ""; values_str = "";
|
116
116
|
row = CSV::Row.new(['sponsor_code'.to_sym], [nil], true)
|
117
|
-
expect { GRM.parse_sponsor_code!(row, insert_str, values_str) }.
|
117
|
+
expect { GRM.parse_sponsor_code!(row, insert_str, values_str) }.not_to raise_error
|
118
118
|
row = CSV::Row.new(['sponsor_code'.to_sym], [""], true)
|
119
|
-
expect { GRM.parse_sponsor_code!(row, insert_str, values_str) }.
|
119
|
+
expect { GRM.parse_sponsor_code!(row, insert_str, values_str) }.not_to raise_error
|
120
120
|
end
|
121
121
|
|
122
122
|
it "Raises an TextParseError if length exceeds 6 characters" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsmart_toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.8'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lance Speelmon
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
sKRWzEtHFamxQaIspOja5O4oQKiCbWa90fEuIoCtwyy1rQtL9VKoDTs4vZASXNuc
|
31
31
|
F/lEyekXSjN36uTtlt4LkKLn/k7k5gRbt4+C9Q==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2014-08
|
33
|
+
date: 2014-09-08 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: builder
|
@@ -154,7 +154,7 @@ files:
|
|
154
154
|
- spec/rsmart_toolbox/etl_spec.rb
|
155
155
|
- spec/rsmart_toolbox_spec.rb
|
156
156
|
- spec/spec_helper.rb
|
157
|
-
homepage:
|
157
|
+
homepage: http://rsmart.github.io/rsmart_toolbox/
|
158
158
|
licenses:
|
159
159
|
- AGPL-3.0
|
160
160
|
metadata:
|
metadata.gz.sig
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
�
|
4
|
-
�9�)���,b"F[���t
|
1
|
+
�
|
2
|
+
GX�,c��6�mX�;�1Z�L�kS�B��U���z�Sf���ua�@��>+Q��Zдf
|
3
|
+
��m�C�ӭW���CF`z5}[�t�Ey�$�U���3
|