refine-ruby 0.3.2 → 0.3.3

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: b8c0a3692d179722844d3cf2887c0126567b0a60
4
- data.tar.gz: fb1b55f5ca97b3f5707763042ef263c874af84fc
3
+ metadata.gz: a47519514b8ca03a9afc1c6ea89d9b91bdcdc867
4
+ data.tar.gz: 616c60139e5fd9809897c92b0fb6baf268d411ef
5
5
  SHA512:
6
- metadata.gz: 920a43823a656d7a2d2ae3c8f0e49430f2401dec8be46e546d25150eab388e667180e1a628ab83353d525790398c24194d108b6380fe5f4ccda418fd7ad60345
7
- data.tar.gz: b9f40806fe03f94baff8ec97d02b6ebd8fa20d9590e8ab0d5b5af31512aa2955756b9c8a8ecd6643e3efb20bb29b51c45d0ed9117688d0e1dd1a58b100e99a7f
6
+ metadata.gz: 2c83ab32fa133f3591d85121212cb4ef628c4893445fcc40a8bc930e4c2ca3fcb3254c491904dc8fd556ca7896a9620674cf49694f9498dde21c146c33cfcfe1
7
+ data.tar.gz: 06a5cf9eaacc3cb34f13d384fc5c14a16aa3181bb25a75ab7f0a1a2e3bc5bdfce62cf51b20cbd90dc9fbfb920e2789c81cbbd2ae5f0b40c825cd7192b7821a87
@@ -39,7 +39,9 @@ class Refine
39
39
  'project-file' => file,
40
40
  'project-name' => project_name
41
41
  }
42
- response = client.post(uri, body)
42
+
43
+ response = client.post(uri, body: body, header: {"Content-Type" => "multipart/form-data; charset=utf-8; boundary=#{create_boundary}"})
44
+
43
45
  url = response.header['Location']
44
46
  unless url == []
45
47
  project_id = CGI.parse(url[0].split('?')[1])['project'][0]
@@ -200,6 +202,11 @@ class Refine
200
202
  end
201
203
 
202
204
  protected
205
+
206
+ def create_boundary
207
+ Digest::SHA1.hexdigest(Time.now.to_s)
208
+ end
209
+
203
210
  def facet_opts(opts_array)
204
211
  if opts_array.is_a? String
205
212
  expression_present = opts_array.include? "value"
@@ -1,3 +1,3 @@
1
1
  class Refine
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refine-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Buxton
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-07-23 00:00:00.000000000 Z
14
+ date: 2018-08-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: addressable
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  version: '0'
159
159
  requirements: []
160
160
  rubyforge_project:
161
- rubygems_version: 2.6.13
161
+ rubygems_version: 2.4.5.1
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Client library for interacting with Google Refine instances