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 +4 -4
- data/lib/refine.rb +8 -1
- data/lib/refine/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a47519514b8ca03a9afc1c6ea89d9b91bdcdc867
|
4
|
+
data.tar.gz: 616c60139e5fd9809897c92b0fb6baf268d411ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c83ab32fa133f3591d85121212cb4ef628c4893445fcc40a8bc930e4c2ca3fcb3254c491904dc8fd556ca7896a9620674cf49694f9498dde21c146c33cfcfe1
|
7
|
+
data.tar.gz: 06a5cf9eaacc3cb34f13d384fc5c14a16aa3181bb25a75ab7f0a1a2e3bc5bdfce62cf51b20cbd90dc9fbfb920e2789c81cbbd2ae5f0b40c825cd7192b7821a87
|
data/lib/refine.rb
CHANGED
@@ -39,7 +39,9 @@ class Refine
|
|
39
39
|
'project-file' => file,
|
40
40
|
'project-name' => project_name
|
41
41
|
}
|
42
|
-
|
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"
|
data/lib/refine/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|