bulkforce 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +9 -4
- data/lib/bulkforce/helper.rb +4 -1
- data/lib/bulkforce/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 307ddfd9a24c7edba5e0cf4cbfcce8d4f7baff25
|
4
|
+
data.tar.gz: 18919319cb19ad8d0d0c333cd8e361ea2ec047e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2be11d9c30982203a092cda2c4a6eb8001aea7f5e41ed669bd7d20bc0492cc9799de94e300b5f40f761c5901abd52b511960c3dd0a86083d5a9d022bba7b452f
|
7
|
+
data.tar.gz: 487c2fbd26ecca0a13a36542fbda1321f20f4fc7a530d2886899af04df10b3db2b887276522b03fc7ae72f7c45a6827ac3ea8edaedb4411fa469c47201fe43b3
|
data/.travis.yml
CHANGED
@@ -1,17 +1,22 @@
|
|
1
1
|
language: ruby
|
2
|
+
sudo: false
|
2
3
|
cache: bundler
|
3
4
|
bundler_args: --without documentation production
|
4
5
|
rvm:
|
5
|
-
- 2.1.
|
6
|
-
- 2.2.
|
7
|
-
-
|
8
|
-
-
|
6
|
+
- 2.1.8
|
7
|
+
- 2.2.4
|
8
|
+
- 2.3.0
|
9
|
+
- rbx-2.11
|
10
|
+
- rbx-3.14
|
11
|
+
- jruby-9.0.5.0
|
9
12
|
- ruby-head
|
10
13
|
- jruby-head
|
11
14
|
matrix:
|
12
15
|
allow_failures:
|
13
16
|
- rvm: ruby-head
|
14
17
|
- rvm: jruby-head
|
18
|
+
- rvm: rbx-2.11
|
19
|
+
- rvm: rbx-3.14
|
15
20
|
fast_finish: true
|
16
21
|
script:
|
17
22
|
- bundle exec rspec --tag ~type:integration
|
data/lib/bulkforce/helper.rb
CHANGED
@@ -4,10 +4,13 @@ class Bulkforce
|
|
4
4
|
module Helper
|
5
5
|
extend self
|
6
6
|
|
7
|
+
ENCODING = "utf-8"
|
8
|
+
|
7
9
|
CSV_OPTIONS = {
|
8
10
|
col_sep: ",",
|
9
11
|
quote_char: "\"",
|
10
12
|
force_quotes: true,
|
13
|
+
encoding: ENCODING,
|
11
14
|
}
|
12
15
|
|
13
16
|
def records_to_csv records
|
@@ -71,7 +74,7 @@ class Bulkforce
|
|
71
74
|
end
|
72
75
|
|
73
76
|
def parse_csv csv_string
|
74
|
-
CSV.parse(csv_string, headers: true).map{|r| r.to_hash}
|
77
|
+
CSV.parse(csv_string.force_encoding(ENCODING), headers: true).map{|r| r.to_hash}
|
75
78
|
end
|
76
79
|
end
|
77
80
|
end
|
data/lib/bulkforce/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bulkforce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Valdivia
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-02-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -197,4 +197,3 @@ test_files:
|
|
197
197
|
- spec/spec_helper.rb
|
198
198
|
- spec/support/integration_helpers.rb
|
199
199
|
- spec/support/shared_examples.rb
|
200
|
-
has_rdoc:
|