mrkt 0.11.0 → 0.11.1

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
  SHA256:
3
- metadata.gz: 34dfc8094a0255c4319a97e68c0dcdc82cf37b14dc69f2fdf7d82b294c68928e
4
- data.tar.gz: 397c0742e14b8d66bb7d88cb8c4560d25b1bc6d95df350be0c1904158de311cb
3
+ metadata.gz: a4afe9d929b2a7e354c66e2d436bcea2e4669c695b197ccaa52cc9e45960d196
4
+ data.tar.gz: 6651391c102d4ba3c6a3cc9618f353f4010f6776f6e6ea67be9844a0015f0a75
5
5
  SHA512:
6
- metadata.gz: 1facd66a3aefe58fb704d0d9851c681983b3cef751a8add539ed8f5380b2e24554bd1e38cac15aa5bfc0af50f0c51164975601b743c2641f9dbec7fa8d35a985
7
- data.tar.gz: 9733940bd3342322818ba1172a863aa6d3c5c737b85ce7c7b82dfa72ec48430dd01cce111e2adda79c57ec74d78b7fa298d9bae1be051b0212b085c7d5d679bf
6
+ metadata.gz: 293c546786b122c1d1fc1228aa62b69df78934644f702f4de5cf471665db6f3e1838cb5d386193eb551b664713ed30b073352706c9d43859672d3f390965aff3
7
+ data.tar.gz: 5d69cc1a0a96152bcd3e333f2ede6e2de206ea4f8441f5455d94f2f61212acadb7f27985318390f0822f42de4c692a0a9dec46df5c2cfa374da09dc43a88b5a0
@@ -2,30 +2,35 @@ AllCops:
2
2
  TargetRubyVersion: 2.3
3
3
  Exclude:
4
4
  - 'bin/**/*'
5
- Documentation:
6
- Enabled: false
7
- LineLength:
8
- Enabled: true
9
- Max: 128
10
- MethodLength:
11
- Max: 20
12
- IndentHash:
13
- Enabled: false
5
+ - 'vendor/**/*'
14
6
 
15
- Layout/AlignHash:
16
- Enabled: false
17
7
  Layout/EmptyLineAfterGuardClause:
18
8
  Enabled: false
9
+ Layout/FirstHashElementIndentation:
10
+ Enabled: false
11
+ Layout/HashAlignment:
12
+ Enabled: false
13
+ Layout/LineLength:
14
+ Max: 128
19
15
  Layout/MultilineMethodCallIndentation:
20
16
  EnforcedStyle: indented
21
- Naming/AccessorMethodName:
22
- Enabled: false
17
+
18
+ Metrics/AbcSize:
19
+ Max: 17
23
20
  Metrics/BlockLength:
24
21
  Exclude:
25
22
  - 'spec/**/*'
23
+ Metrics/MethodLength:
24
+ Max: 20
26
25
  Metrics/ParameterLists:
27
26
  Max: 6
27
+
28
+ Naming/AccessorMethodName:
29
+ Enabled: false
30
+
28
31
  Style/ClassAndModuleChildren:
29
32
  Enabled: false
33
+ Style/Documentation:
34
+ Enabled: false
30
35
  Style/FrozenStringLiteralComment:
31
36
  Enabled: false
@@ -1,13 +1,22 @@
1
+ env:
2
+ global:
3
+ - CC_TEST_REPORTER_ID=45cd2174f49b570406e294ff393d456c4ae8532cf16dd6430abb06d8a0722a28
4
+ - COVERAGE=on
1
5
  language: ruby
2
6
  rvm:
3
7
  - 2.3.6
4
8
  - 2.4.3
5
9
  - 2.5.0
6
10
  - 2.6.0
7
- addons:
8
- code_climate:
9
- repo_token: 45cd2174f49b570406e294ff393d456c4ae8532cf16dd6430abb06d8a0722a28
10
11
  before_install:
11
12
  - gem update --system
12
- after_success:
13
- - bundle exec codeclimate-test-reporter
13
+ - bundle update --bundler
14
+ before_script:
15
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
16
+ - chmod +x ./cc-test-reporter
17
+ - ./cc-test-reporter before-build
18
+ script:
19
+ - bundle exec rspec
20
+ - bundle exec rubocop
21
+ after_script:
22
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mrkt (0.11.0)
5
- faraday (> 0.9.0, < 0.16.0)
6
- faraday_middleware (> 0.9.0, < 0.16.0)
4
+ mrkt (0.11.1)
5
+ faraday (> 0.9.0, <= 0.17.3)
6
+ faraday_middleware (> 0.9.0, <= 0.13.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -12,24 +12,22 @@ GEM
12
12
  public_suffix (>= 2.0.2, < 5.0)
13
13
  ast (2.4.0)
14
14
  byebug (11.0.1)
15
- codeclimate-test-reporter (1.0.9)
16
- simplecov (<= 0.13)
17
15
  coderay (1.1.2)
18
16
  crack (0.4.3)
19
17
  safe_yaml (~> 1.0.0)
20
18
  diff-lcs (1.3)
21
- docile (1.1.5)
22
- faraday (0.15.4)
19
+ docile (1.3.2)
20
+ faraday (0.17.3)
23
21
  multipart-post (>= 1.2, < 3)
24
22
  faraday_middleware (0.13.1)
25
23
  faraday (>= 0.7.4, < 1.0)
26
24
  hashdiff (1.0.0)
27
25
  jaro_winkler (1.5.4)
28
- json (2.2.0)
26
+ json (2.3.0)
29
27
  method_source (0.9.2)
30
28
  multipart-post (2.1.1)
31
29
  parallel (1.19.1)
32
- parser (2.6.5.0)
30
+ parser (2.7.0.2)
33
31
  ast (~> 2.4.0)
34
32
  pry (0.12.2)
35
33
  coderay (~> 1.1.0)
@@ -37,39 +35,37 @@ GEM
37
35
  pry-byebug (3.7.0)
38
36
  byebug (~> 11.0)
39
37
  pry (~> 0.10)
40
- psych (3.1.0)
41
- public_suffix (4.0.1)
38
+ public_suffix (4.0.3)
42
39
  rainbow (3.0.0)
43
40
  rake (12.3.3)
44
41
  rspec (3.9.0)
45
42
  rspec-core (~> 3.9.0)
46
43
  rspec-expectations (~> 3.9.0)
47
44
  rspec-mocks (~> 3.9.0)
48
- rspec-core (3.9.0)
49
- rspec-support (~> 3.9.0)
45
+ rspec-core (3.9.1)
46
+ rspec-support (~> 3.9.1)
50
47
  rspec-expectations (3.9.0)
51
48
  diff-lcs (>= 1.2.0, < 2.0)
52
49
  rspec-support (~> 3.9.0)
53
- rspec-mocks (3.9.0)
50
+ rspec-mocks (3.9.1)
54
51
  diff-lcs (>= 1.2.0, < 2.0)
55
52
  rspec-support (~> 3.9.0)
56
- rspec-support (3.9.0)
57
- rubocop (0.66.0)
53
+ rspec-support (3.9.2)
54
+ rubocop (0.78.0)
58
55
  jaro_winkler (~> 1.5.1)
59
56
  parallel (~> 1.10)
60
- parser (>= 2.5, != 2.5.1.1)
61
- psych (>= 3.1.0)
57
+ parser (>= 2.6)
62
58
  rainbow (>= 2.2.2, < 4.0)
63
59
  ruby-progressbar (~> 1.7)
64
- unicode-display_width (>= 1.4.0, < 1.6)
60
+ unicode-display_width (>= 1.4.0, < 1.7)
65
61
  ruby-progressbar (1.10.1)
66
62
  safe_yaml (1.0.5)
67
- simplecov (0.13.0)
68
- docile (~> 1.1.0)
63
+ simplecov (0.17.1)
64
+ docile (~> 1.1)
69
65
  json (>= 1.8, < 3)
70
66
  simplecov-html (~> 0.10.0)
71
67
  simplecov-html (0.10.2)
72
- unicode-display_width (1.5.0)
68
+ unicode-display_width (1.6.0)
73
69
  webmock (3.7.6)
74
70
  addressable (>= 2.3.6)
75
71
  crack (>= 0.3.2)
@@ -80,12 +76,12 @@ PLATFORMS
80
76
 
81
77
  DEPENDENCIES
82
78
  bundler (~> 1.3)
83
- codeclimate-test-reporter (~> 1.0)
84
79
  mrkt!
85
80
  pry-byebug (~> 3.7)
86
81
  rake (~> 12.3)
87
82
  rspec (~> 3.2)
88
- rubocop (~> 0.66.0)
83
+ rubocop (~> 0.78.0)
84
+ simplecov (~> 0.17.1)
89
85
  webmock (~> 3.1)
90
86
 
91
87
  BUNDLED WITH
@@ -1,3 +1,3 @@
1
1
  module Mrkt
2
- VERSION = '0.11.0'.freeze
2
+ VERSION = '0.11.1'.freeze
3
3
  end
@@ -19,14 +19,14 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.required_ruby_version = '~> 2.3'
21
21
 
22
- spec.add_dependency 'faraday', '> 0.9.0', '< 0.16.0'
23
- spec.add_dependency 'faraday_middleware', '> 0.9.0', '< 0.16.0'
22
+ spec.add_dependency 'faraday', '> 0.9.0', '<= 0.17.3'
23
+ spec.add_dependency 'faraday_middleware', '> 0.9.0', '<= 0.13.1'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.3'
26
- spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0'
27
26
  spec.add_development_dependency 'pry-byebug', '~> 3.7'
28
27
  spec.add_development_dependency 'rake', '~> 12.3'
29
28
  spec.add_development_dependency 'rspec', '~> 3.2'
30
- spec.add_development_dependency 'rubocop', '~> 0.66.0'
29
+ spec.add_development_dependency 'rubocop', '~> 0.78.0'
30
+ spec.add_development_dependency 'simplecov', '~> 0.17.1'
31
31
  spec.add_development_dependency 'webmock', '~> 3.1'
32
32
  end
@@ -5,7 +5,7 @@ describe Mrkt::ImportLeads do
5
5
  include_context 'initialized client'
6
6
 
7
7
  describe '#import_lead' do
8
- let(:tempfile) { Tempfile.new(['import-leads', 'csv']) }
8
+ let(:tempfile) { Tempfile.new(%w[import-leads csv]) }
9
9
  let(:response_stub) do
10
10
  {
11
11
  requestId: 'c245#14cd6830ae2',
@@ -8,7 +8,9 @@ Bundler.setup
8
8
 
9
9
  require 'mrkt'
10
10
 
11
- Dir[File.expand_path('spec/support/**/*.rb')].each { |f| require f }
11
+ Dir[File.expand_path('spec/support/**/*.rb')].sort.each do |file|
12
+ require file
13
+ end
12
14
 
13
15
  RSpec.configure do |config|
14
16
  config.default_formatter = :doc if config.files_to_run.one?
@@ -1,16 +1,10 @@
1
1
  require 'webmock/rspec'
2
2
 
3
- RSpec.configure do |config|
3
+ RSpec.configure do
4
4
  def json_stub(content_stub)
5
5
  {
6
6
  headers: { content_type: 'application/json' },
7
7
  body: JSON.generate(content_stub)
8
8
  }
9
9
  end
10
-
11
- if ENV['CODECLIMATE_REPO_TOKEN']
12
- config.after(:suite) do
13
- WebMock.disable_net_connect!(allow: 'codeclimate.com')
14
- end
15
- end
16
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mrkt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - KARASZI István
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-01 00:00:00.000000000 Z
12
+ date: 2020-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -18,9 +18,9 @@ dependencies:
18
18
  - - ">"
19
19
  - !ruby/object:Gem::Version
20
20
  version: 0.9.0
21
- - - "<"
21
+ - - "<="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.16.0
23
+ version: 0.17.3
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,9 +28,9 @@ dependencies:
28
28
  - - ">"
29
29
  - !ruby/object:Gem::Version
30
30
  version: 0.9.0
31
- - - "<"
31
+ - - "<="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.16.0
33
+ version: 0.17.3
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: faraday_middleware
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -38,9 +38,9 @@ dependencies:
38
38
  - - ">"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.9.0
41
- - - "<"
41
+ - - "<="
42
42
  - !ruby/object:Gem::Version
43
- version: 0.16.0
43
+ version: 0.13.1
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
@@ -48,9 +48,9 @@ dependencies:
48
48
  - - ">"
49
49
  - !ruby/object:Gem::Version
50
50
  version: 0.9.0
51
- - - "<"
51
+ - - "<="
52
52
  - !ruby/object:Gem::Version
53
- version: 0.16.0
53
+ version: 0.13.1
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: bundler
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -66,75 +66,75 @@ dependencies:
66
66
  - !ruby/object:Gem::Version
67
67
  version: '1.3'
68
68
  - !ruby/object:Gem::Dependency
69
- name: codeclimate-test-reporter
69
+ name: pry-byebug
70
70
  requirement: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '1.0'
74
+ version: '3.7'
75
75
  type: :development
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '1.0'
81
+ version: '3.7'
82
82
  - !ruby/object:Gem::Dependency
83
- name: pry-byebug
83
+ name: rake
84
84
  requirement: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '3.7'
88
+ version: '12.3'
89
89
  type: :development
90
90
  prerelease: false
91
91
  version_requirements: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '3.7'
95
+ version: '12.3'
96
96
  - !ruby/object:Gem::Dependency
97
- name: rake
97
+ name: rspec
98
98
  requirement: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '12.3'
102
+ version: '3.2'
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '12.3'
109
+ version: '3.2'
110
110
  - !ruby/object:Gem::Dependency
111
- name: rspec
111
+ name: rubocop
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '3.2'
116
+ version: 0.78.0
117
117
  type: :development
118
118
  prerelease: false
119
119
  version_requirements: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '3.2'
123
+ version: 0.78.0
124
124
  - !ruby/object:Gem::Dependency
125
- name: rubocop
125
+ name: simplecov
126
126
  requirement: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: 0.66.0
130
+ version: 0.17.1
131
131
  type: :development
132
132
  prerelease: false
133
133
  version_requirements: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: 0.66.0
137
+ version: 0.17.1
138
138
  - !ruby/object:Gem::Dependency
139
139
  name: webmock
140
140
  requirement: !ruby/object:Gem::Requirement