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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8df8ae09435c7a5b1e5020d14b9d25cd8139eab0
4
- data.tar.gz: 2a344b354dab13174e72ef5ecf07965be1cc7847
3
+ metadata.gz: abbda02f2c8266dfb8a83e97e6d2b190d4309bae
4
+ data.tar.gz: f6050fef1314ff36a4600018a9c96b08d915dc4e
5
5
  SHA512:
6
- metadata.gz: 401fc57dff32377887e72ee52c6438828da22abc8dd60f3dcd5cff9f5bcfbefc5643f8ac4e5911ef93a2aa1257a61be5de470467ffb104373d9bb5a53b41a342
7
- data.tar.gz: 4547735ef1c185689c2fb76d2e38caf4e373292e30bcba2aa65563aece83a090821f6929beb897e574354229d527be7a057cfe72a05f5b4e860d6497afed2f37
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: true, length: 6 })
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] = true if opt[:required].nil?
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
@@ -16,5 +16,5 @@
16
16
 
17
17
  module Rsmart
18
18
  # The gem version number.
19
- VERSION = "0.7"
19
+ VERSION = "0.8"
20
20
  end
@@ -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 = "https://github.com/rSmart/rsmart_toolbox"
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 "Raises an TextParseError if nil or empty" do
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) }.to raise_error(TextParseError)
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) }.to raise_error(TextParseError)
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.7'
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-20 00:00:00.000000000 Z
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: https://github.com/rSmart/rsmart_toolbox
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
- �蔱�P��)
2
- ��.��)��藲�:�ܣwYO��KL�-�r
3
- 7>����{a86U�̘�E^`�Mu�$� y����1.�\d`i�lw�WBs,���
4
- �9�)���,b"F[���t
1
+
2
+ GX�,c��6�mX�;�1ZL�kSB��U���zSf���ua�@��>+Q��Zдf
3
+ ��m�C�ӭW���CF`z5}[tEy�$�U���3