4me-sdk 2.0.1 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0891ee58287a20d56f1fd9277dca725846b4fb3bba930e45ad13be6bf15a701
4
- data.tar.gz: 0c22cb2a4439ab4b1464a06b07ea10aa34ae07cce83fc5ac3de7d8a570a310c7
3
+ metadata.gz: b1e79341f006b8b4c2b7298c9d5e571acfaaa0c405e4b19b33357385935f805d
4
+ data.tar.gz: 1560ad1534d1b0a57d57de3f980be7e2d3c6892cb98950e9ad597eee70da68d5
5
5
  SHA512:
6
- metadata.gz: '086e9a48872135a2c8ec64de29b80130ea27e930e1be101e464640bfcd3affe02c0dcc44968dcac7812034770981fcc5bb81361977f23169411eb3daaba7d2e3'
7
- data.tar.gz: a8831105d536d71369b79b1809e70a0627ae2bb143d3b4e06cf0483651967987d1414ee44aa47850ed7c678d6cd707f5f0b364c73ccebd14ce78759045f7a3b2
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', '~> 1'
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.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.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.4)
23
- diff-lcs (1.3)
24
- docile (1.3.1)
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.7)
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.2020.1104)
33
- minitest (5.14.3)
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.1)
40
- regexp_parser (2.0.3)
39
+ rake (12.3.3)
40
+ regexp_parser (2.1.1)
41
41
  rexml (3.2.4)
42
- rspec (3.8.0)
43
- rspec-core (~> 3.8.0)
44
- rspec-expectations (~> 3.8.0)
45
- rspec-mocks (~> 3.8.0)
46
- rspec-core (3.8.0)
47
- rspec-support (~> 3.8.0)
48
- rspec-expectations (3.8.2)
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.8.0)
51
- rspec-mocks (3.8.0)
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.8.0)
54
- rspec-support (3.8.0)
55
- rubocop (1.8.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.16.1)
67
+ simplecov (0.21.2)
68
68
  docile (~> 1.1)
69
- json (>= 1.8, < 3)
70
- simplecov-html (~> 0.10.0)
71
- simplecov-html (0.10.2)
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.9.1)
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
- ruby
83
+ x86_64-darwin-19
83
84
 
84
85
  DEPENDENCIES
85
86
  4me-sdk!
86
- bundler (~> 1)
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
- 1.17.3
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\nContent-Type: #{mime_type.simplified}\r\n\r\n#{content}\r\n)
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
@@ -1,5 +1,5 @@
1
1
  module Sdk4me
2
2
  class Client
3
- VERSION = '2.0.1'.freeze
3
+ VERSION = '2.0.2'.freeze
4
4
  end
5
5
  end
@@ -311,7 +311,7 @@ describe Sdk4me::Attachments do
311
311
  end
312
312
 
313
313
  it 'should upload a file from disk' do
314
- Tempfile.create('4me_attachments_spec.txt') do |file|
314
+ Tempfile.create('4me_我attáchments_spec.txt') do |file|
315
315
  file << 'foobar'
316
316
  file.flush
317
317
 
@@ -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 eq('401: Bad credentials')
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 eq('401: Bad credentials')
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.1
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-01-27 00:00:00.000000000 Z
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: '1'
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: '1'
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.0.9
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