bulkforce 1.0.1 → 1.0.2

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: 54775fd3b90a539a604bc061d625f46b16b94c81
4
- data.tar.gz: 6d788cd867f65cfaccfdb3d3e6112ebba3dc47f5
3
+ metadata.gz: 307ddfd9a24c7edba5e0cf4cbfcce8d4f7baff25
4
+ data.tar.gz: 18919319cb19ad8d0d0c333cd8e361ea2ec047e5
5
5
  SHA512:
6
- metadata.gz: 500adb4c1b4db87c306ebbefc44a80966e82fac8ebae31fc423f0c1e13520ef23a3b7f177c73c278e7bf2a92d409455450055f19a25659528a8b4fb541e7cb14
7
- data.tar.gz: 23663bd25870c6e1bfbece9252db8e95618533eecf698849051c5620c4d1cfe454bf3f009834728b649de3067d3960c8c17a24959b39c29af5dd427a3a67c329
6
+ metadata.gz: 2be11d9c30982203a092cda2c4a6eb8001aea7f5e41ed669bd7d20bc0492cc9799de94e300b5f40f761c5901abd52b511960c3dd0a86083d5a9d022bba7b452f
7
+ data.tar.gz: 487c2fbd26ecca0a13a36542fbda1321f20f4fc7a530d2886899af04df10b3db2b887276522b03fc7ae72f7c45a6827ac3ea8edaedb4411fa469c47201fe43b3
@@ -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.7
6
- - 2.2.3
7
- - rbx
8
- - jruby-9000
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Bulkforce
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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: 2015-10-14 00:00:00.000000000 Z
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: