4me-sdk 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/4me-sdk.gemspec +1 -1
- data/Gemfile.lock +32 -31
- data/lib/sdk4me/client/multipart.rb +2 -1
- data/lib/sdk4me/client/version.rb +1 -1
- data/spec/lib/sdk4me/attachments_spec.rb +1 -1
- data/spec/lib/sdk4me/certificate_spec.rb +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1e79341f006b8b4c2b7298c9d5e571acfaaa0c405e4b19b33357385935f805d
|
4
|
+
data.tar.gz: 1560ad1534d1b0a57d57de3f980be7e2d3c6892cb98950e9ad597eee70da68d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ae58f939ad53857fc35676818476bfefdc57ca687f70958a792bb15297e2e18068ed320347f9c80d506a49bcb3a307459c2b1338e1afc75d76694609c180db5
|
7
|
+
data.tar.gz: 3becf25a73045be2c246ac1903443e6418d4c8ac196e4f537e6bba4863dccd903478728d6438901263a529565fdba4ecbea781e5e083ca31df1ba3cf34445152
|
data/4me-sdk.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_runtime_dependency 'gem_config', '>=0.3'
|
31
31
|
spec.add_runtime_dependency 'mime-types', '>= 3.0'
|
32
32
|
|
33
|
-
spec.add_development_dependency 'bundler'
|
33
|
+
spec.add_development_dependency 'bundler'
|
34
34
|
spec.add_development_dependency 'rake', '~> 12'
|
35
35
|
spec.add_development_dependency 'rspec', '~> 3.3'
|
36
36
|
spec.add_development_dependency 'rubocop', '>= 0.49.0'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
4me-sdk (2.0.
|
4
|
+
4me-sdk (2.0.1)
|
5
5
|
activesupport (>= 4.2)
|
6
6
|
gem_config (>= 0.3)
|
7
7
|
mime-types (>= 3.0)
|
@@ -9,7 +9,7 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activesupport (6.1.
|
12
|
+
activesupport (6.1.3)
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
14
|
i18n (>= 1.6, < 2)
|
15
15
|
minitest (>= 5.1)
|
@@ -19,40 +19,40 @@ GEM
|
|
19
19
|
public_suffix (>= 2.0.2, < 5.0)
|
20
20
|
ast (2.4.2)
|
21
21
|
concurrent-ruby (1.1.8)
|
22
|
-
crack (0.4.
|
23
|
-
|
24
|
-
|
22
|
+
crack (0.4.5)
|
23
|
+
rexml
|
24
|
+
diff-lcs (1.4.4)
|
25
|
+
docile (1.3.5)
|
25
26
|
gem_config (0.3.2)
|
26
27
|
hashdiff (1.0.1)
|
27
|
-
i18n (1.8.
|
28
|
+
i18n (1.8.9)
|
28
29
|
concurrent-ruby (~> 1.0)
|
29
|
-
json (2.1.0)
|
30
30
|
mime-types (3.3.1)
|
31
31
|
mime-types-data (~> 3.2015)
|
32
|
-
mime-types-data (3.
|
33
|
-
minitest (5.14.
|
32
|
+
mime-types-data (3.2021.0225)
|
33
|
+
minitest (5.14.4)
|
34
34
|
parallel (1.20.1)
|
35
35
|
parser (3.0.0.0)
|
36
36
|
ast (~> 2.4.1)
|
37
37
|
public_suffix (4.0.6)
|
38
38
|
rainbow (3.0.0)
|
39
|
-
rake (12.3.
|
40
|
-
regexp_parser (2.
|
39
|
+
rake (12.3.3)
|
40
|
+
regexp_parser (2.1.1)
|
41
41
|
rexml (3.2.4)
|
42
|
-
rspec (3.
|
43
|
-
rspec-core (~> 3.
|
44
|
-
rspec-expectations (~> 3.
|
45
|
-
rspec-mocks (~> 3.
|
46
|
-
rspec-core (3.
|
47
|
-
rspec-support (~> 3.
|
48
|
-
rspec-expectations (3.
|
42
|
+
rspec (3.10.0)
|
43
|
+
rspec-core (~> 3.10.0)
|
44
|
+
rspec-expectations (~> 3.10.0)
|
45
|
+
rspec-mocks (~> 3.10.0)
|
46
|
+
rspec-core (3.10.1)
|
47
|
+
rspec-support (~> 3.10.0)
|
48
|
+
rspec-expectations (3.10.1)
|
49
49
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.
|
51
|
-
rspec-mocks (3.
|
50
|
+
rspec-support (~> 3.10.0)
|
51
|
+
rspec-mocks (3.10.2)
|
52
52
|
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
-
rspec-support (~> 3.
|
54
|
-
rspec-support (3.
|
55
|
-
rubocop (1.
|
53
|
+
rspec-support (~> 3.10.0)
|
54
|
+
rspec-support (3.10.2)
|
55
|
+
rubocop (1.11.0)
|
56
56
|
parallel (~> 1.10)
|
57
57
|
parser (>= 3.0.0.0)
|
58
58
|
rainbow (>= 2.2.2, < 4.0)
|
@@ -64,26 +64,27 @@ GEM
|
|
64
64
|
rubocop-ast (1.4.1)
|
65
65
|
parser (>= 2.7.1.5)
|
66
66
|
ruby-progressbar (1.11.0)
|
67
|
-
simplecov (0.
|
67
|
+
simplecov (0.21.2)
|
68
68
|
docile (~> 1.1)
|
69
|
-
|
70
|
-
|
71
|
-
simplecov-html (0.
|
69
|
+
simplecov-html (~> 0.11)
|
70
|
+
simplecov_json_formatter (~> 0.1)
|
71
|
+
simplecov-html (0.12.3)
|
72
|
+
simplecov_json_formatter (0.1.2)
|
72
73
|
tzinfo (2.0.4)
|
73
74
|
concurrent-ruby (~> 1.0)
|
74
75
|
unicode-display_width (2.0.0)
|
75
|
-
webmock (3.
|
76
|
+
webmock (3.12.1)
|
76
77
|
addressable (>= 2.3.6)
|
77
78
|
crack (>= 0.3.2)
|
78
79
|
hashdiff (>= 0.4.0, < 2.0.0)
|
79
80
|
zeitwerk (2.4.2)
|
80
81
|
|
81
82
|
PLATFORMS
|
82
|
-
|
83
|
+
x86_64-darwin-19
|
83
84
|
|
84
85
|
DEPENDENCIES
|
85
86
|
4me-sdk!
|
86
|
-
bundler
|
87
|
+
bundler
|
87
88
|
rake (~> 12)
|
88
89
|
rspec (~> 3.3)
|
89
90
|
rubocop (>= 0.49.0)
|
@@ -91,4 +92,4 @@ DEPENDENCIES
|
|
91
92
|
webmock (~> 3)
|
92
93
|
|
93
94
|
BUNDLED WITH
|
94
|
-
|
95
|
+
2.2.14
|
@@ -66,7 +66,8 @@ module Sdk4me
|
|
66
66
|
def to_multipart
|
67
67
|
# If we can tell the possible mime-type from the filename, use the first in the list; otherwise, use "application/octet-stream"
|
68
68
|
mime_type = MIME::Types.type_for(filename)[0] || MIME::Types['application/octet-stream'][0]
|
69
|
-
%(Content-Disposition: form-data; name="#{CGI.escape(k.to_s)}"; filename="#{filename}"\r\
|
69
|
+
%(Content-Disposition: form-data; name="#{CGI.escape(k.to_s)}"; filename="#{filename}"\r\n) +
|
70
|
+
%(Content-Type: #{mime_type.simplified}\r\n\r\n#{content.force_encoding('UTF-8')}\r\n)
|
70
71
|
end
|
71
72
|
end
|
72
73
|
end
|
@@ -12,7 +12,7 @@ describe 'ca-bundle.crt' do
|
|
12
12
|
expect(response.valid?).to be_falsey
|
13
13
|
|
14
14
|
# expecting 401 error
|
15
|
-
expect(response.message).to
|
15
|
+
expect(response.message).to start_with('401:')
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'should be able to connect to the 4me REST API (access token)' do
|
@@ -26,7 +26,7 @@ describe 'ca-bundle.crt' do
|
|
26
26
|
expect(response.valid?).to be_falsey
|
27
27
|
|
28
28
|
# expecting 401 error
|
29
|
-
expect(response.message).to
|
29
|
+
expect(response.message).to start_with('401:')
|
30
30
|
end
|
31
31
|
|
32
32
|
it 'should be able to connect to S3' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: 4me-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 4me
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
184
|
- !ruby/object:Gem::Version
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
187
|
+
rubygems_version: 3.2.14
|
188
188
|
signing_key:
|
189
189
|
specification_version: 4
|
190
190
|
summary: The official 4me SDK for Ruby. Provides easy access to the REST APIs found
|