webtrap 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: a15e9e6f37a30d98232e8f3d32903ae6a8bc6a90
4
- data.tar.gz: 8b30c18bed81414f5ee9fcc77eba9960ab0b37ae
3
+ metadata.gz: 53ef57f1274a8eb754f4250c0fab575396d88c0b
4
+ data.tar.gz: 16cc39785ae1c2d08808d1d261d3087f487e9874
5
5
  SHA512:
6
- metadata.gz: 147dafeaf072c3603589c96954649695afe74fad643fd7664531b998fc3f404620695990a14ecbeab3ddf7361c6ef3a5bb0c61f8243b72ac8b840e8e680aa4b4
7
- data.tar.gz: ed986d9cae9ca4bd8f98457a38948eb7d316e97065c2cfe3dce6737f10bffa6553a2ecc5e1867bd1592bbb25ed231dfa3cd828c4608ee38493bfa32f057b3bf9
6
+ metadata.gz: 56c39b3693fd7b4dbad5120c6e4de687d635ae19460f8f93507a8df10cff79bf98cd1d418a98d1e8d1c478445bcad4b4d2cfff79081e480758b95dd965d7fb01
7
+ data.tar.gz: 269256eb37b07f2f42bca42e983261a549d63ae2707423f7c7cbe8086f278983280b71d81044baf34ebb70331a0adf709eee5688e65eb2d4c54a39393f42734c
data/.rubocop.yml CHANGED
@@ -10,13 +10,43 @@ AllCops:
10
10
  - "vendor/**/*"
11
11
  - "node_modules/**/*"
12
12
  - "spec/factories.rb"
13
- TargetRubyVersion: 2.3
13
+ TargetRubyVersion: 2.2
14
+
15
+ Layout/AlignParameters:
16
+ EnforcedStyle: with_fixed_indentation
17
+
18
+ Layout/DotPosition:
19
+ EnforcedStyle: trailing
20
+
21
+ Layout/ExtraSpacing:
22
+ Exclude:
23
+ - "webtrap.gemspec"
24
+
25
+ Layout/MultilineOperationIndentation:
26
+ EnforcedStyle: indented
27
+
28
+ Layout/MultilineMethodCallIndentation:
29
+ EnforcedStyle: indented
30
+
31
+ Layout/SpaceAroundOperators:
32
+ Exclude:
33
+ - "webtrap.gemspec"
34
+
35
+ Metrics/BlockLength:
36
+ Exclude:
37
+ - "webtrap.gemspec"
14
38
 
15
39
  Metrics/LineLength:
16
40
  Enabled: false
17
41
 
18
- Style/AlignParameters:
19
- EnforcedStyle: with_fixed_indentation
42
+ Naming/FileName:
43
+ Exclude:
44
+ - "Gemfile"
45
+
46
+ Naming/PredicateName:
47
+ NamePrefixBlacklist:
48
+ - is_
49
+ - have_
20
50
 
21
51
  Style/ClassAndModuleChildren:
22
52
  Enabled: false
@@ -24,17 +54,9 @@ Style/ClassAndModuleChildren:
24
54
  Style/Documentation:
25
55
  Enabled: false
26
56
 
27
- Style/DotPosition:
28
- EnforcedStyle: trailing
29
-
30
57
  Style/IfUnlessModifier:
31
58
  Enabled: false
32
59
 
33
- Style/PredicateName:
34
- NamePrefixBlacklist:
35
- - is_
36
- - have_
37
-
38
60
  Style/StringLiterals:
39
61
  EnforcedStyle: double_quotes
40
62
 
@@ -44,12 +66,6 @@ Style/NumericLiterals:
44
66
  Style/SingleLineBlockParams:
45
67
  Enabled: false
46
68
 
47
- Style/MultilineOperationIndentation:
48
- EnforcedStyle: indented
49
-
50
- Style/MultilineMethodCallIndentation:
51
- EnforcedStyle: indented
52
-
53
69
  Style/TrailingCommaInArguments:
54
70
  EnforcedStyleForMultiline: comma
55
71
 
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.3.3
data/.travis.yml CHANGED
@@ -7,7 +7,7 @@ bundler_args: "--standalone --path ../bundle"
7
7
  rvm:
8
8
  - 2.2.5
9
9
  - 2.3.3
10
- - 2.4.0
10
+ - 2.4.3
11
11
  - ruby-head
12
12
  before_install: gem install bundler
13
13
  script:
data/Gemfile CHANGED
@@ -6,5 +6,5 @@ gemspec
6
6
 
7
7
  group :documentation do
8
8
  gem "relish", "~> 0.7.1"
9
- gem "yard", "~> 0.9.8"
9
+ gem "yard", "~> 0.9.12"
10
10
  end
data/Gemfile.lock CHANGED
@@ -1,129 +1,136 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webtrap (0.0.1)
4
+ webtrap (0.1.1)
5
5
  equivalent-xml (~> 0.6.0)
6
6
  rack (~> 2.0)
7
7
  rspec (~> 3.0)
8
- webmock (~> 2.0)
8
+ webmock (~> 3.0)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- addressable (2.5.0)
14
- public_suffix (~> 2.0, >= 2.0.2)
13
+ addressable (2.5.2)
14
+ public_suffix (>= 2.0.2, < 4.0)
15
15
  archive-tar-minitar (0.6.1)
16
16
  minitar (~> 0.6)
17
17
  minitar-cli (~> 0.6)
18
18
  ast (2.3.0)
19
+ backports (3.10.3)
19
20
  builder (3.2.3)
20
- coderay (1.1.1)
21
+ coderay (1.1.2)
21
22
  crack (0.4.3)
22
23
  safe_yaml (~> 1.0.0)
23
- cucumber (2.4.0)
24
+ cucumber (3.1.0)
24
25
  builder (>= 2.1.2)
25
- cucumber-core (~> 1.5.0)
26
+ cucumber-core (~> 3.1.0)
27
+ cucumber-expressions (~> 5.0.4)
26
28
  cucumber-wire (~> 0.0.1)
27
- diff-lcs (>= 1.1.3)
28
- gherkin (~> 4.0)
29
+ diff-lcs (~> 1.3)
30
+ gherkin (~> 5.0)
29
31
  multi_json (>= 1.7.5, < 2.0)
30
32
  multi_test (>= 0.1.2)
31
- cucumber-core (1.5.0)
32
- gherkin (~> 4.0)
33
+ cucumber-core (3.1.0)
34
+ backports (>= 3.8.0)
35
+ cucumber-tag_expressions (~> 1.1.0)
36
+ gherkin (>= 5.0.0)
37
+ cucumber-expressions (5.0.7)
38
+ cucumber-tag_expressions (1.1.1)
33
39
  cucumber-wire (0.0.1)
34
40
  diff-lcs (1.3)
35
- domain_name (0.5.20170223)
41
+ domain_name (0.5.20170404)
36
42
  unf (>= 0.0.5, < 1.0.0)
37
43
  equivalent-xml (0.6.0)
38
44
  nokogiri (>= 1.4.3)
39
- gherkin (4.0.0)
40
- hashdiff (0.3.2)
41
- hashie (3.5.5)
45
+ gherkin (5.0.0)
46
+ hashdiff (0.3.7)
47
+ hashie (3.5.7)
42
48
  http-cookie (1.0.3)
43
49
  domain_name (~> 0.5)
44
- json (2.0.3)
45
- method_source (0.8.2)
50
+ json (2.1.0)
51
+ method_source (0.9.0)
46
52
  mime-types (3.1)
47
53
  mime-types-data (~> 3.2015)
48
54
  mime-types-data (3.2016.0521)
49
- mini_portile2 (2.1.0)
55
+ mini_portile2 (2.3.0)
50
56
  minitar (0.6.1)
51
57
  minitar-cli (0.6.1)
52
58
  minitar (~> 0.6.0)
53
59
  powerbar (~> 1.0)
54
- multi_json (1.12.1)
60
+ multi_json (1.12.2)
55
61
  multi_test (0.1.2)
56
62
  netrc (0.11.0)
57
- nokogiri (1.6.8.1)
58
- mini_portile2 (~> 2.1.0)
59
- parser (2.4.0.0)
60
- ast (~> 2.2)
63
+ nokogiri (1.8.1)
64
+ mini_portile2 (~> 2.3.0)
65
+ parallel (1.12.1)
66
+ parser (2.4.0.2)
67
+ ast (~> 2.3)
61
68
  powerbar (1.0.18)
62
69
  hashie (>= 1.1.0)
63
70
  powerpack (0.1.1)
64
- pry (0.10.4)
71
+ pry (0.11.3)
65
72
  coderay (~> 1.1.0)
66
- method_source (~> 0.8.1)
67
- slop (~> 3.4)
73
+ method_source (~> 0.9.0)
68
74
  pry-remote (0.1.8)
69
75
  pry (~> 0.9)
70
76
  slop (~> 3.0)
71
- public_suffix (2.0.5)
72
- rack (2.0.1)
73
- rainbow (2.2.1)
74
- rake (12.0.0)
77
+ public_suffix (3.0.1)
78
+ rack (2.0.3)
79
+ rainbow (3.0.0)
80
+ rake (12.3.0)
75
81
  relish (0.7.1)
76
82
  archive-tar-minitar (>= 0.5.2)
77
83
  json (>= 1.4.6)
78
84
  rest-client (>= 1.7.2)
79
- rest-client (2.0.1)
85
+ rest-client (2.0.2)
80
86
  http-cookie (>= 1.0.2, < 2.0)
81
87
  mime-types (>= 1.16, < 4.0)
82
88
  netrc (~> 0.8)
83
- rspec (3.5.0)
84
- rspec-core (~> 3.5.0)
85
- rspec-expectations (~> 3.5.0)
86
- rspec-mocks (~> 3.5.0)
87
- rspec-core (3.5.4)
88
- rspec-support (~> 3.5.0)
89
- rspec-expectations (3.5.0)
89
+ rspec (3.7.0)
90
+ rspec-core (~> 3.7.0)
91
+ rspec-expectations (~> 3.7.0)
92
+ rspec-mocks (~> 3.7.0)
93
+ rspec-core (3.7.0)
94
+ rspec-support (~> 3.7.0)
95
+ rspec-expectations (3.7.0)
90
96
  diff-lcs (>= 1.2.0, < 2.0)
91
- rspec-support (~> 3.5.0)
92
- rspec-mocks (3.5.0)
97
+ rspec-support (~> 3.7.0)
98
+ rspec-mocks (3.7.0)
93
99
  diff-lcs (>= 1.2.0, < 2.0)
94
- rspec-support (~> 3.5.0)
95
- rspec-support (3.5.0)
96
- rubocop (0.47.1)
97
- parser (>= 2.3.3.1, < 3.0)
100
+ rspec-support (~> 3.7.0)
101
+ rspec-support (3.7.0)
102
+ rubocop (0.52.0)
103
+ parallel (~> 1.10)
104
+ parser (>= 2.4.0.2, < 3.0)
98
105
  powerpack (~> 0.1)
99
- rainbow (>= 1.99.1, < 3.0)
106
+ rainbow (>= 2.2.2, < 4.0)
100
107
  ruby-progressbar (~> 1.7)
101
108
  unicode-display_width (~> 1.0, >= 1.0.1)
102
- ruby-progressbar (1.8.1)
109
+ ruby-progressbar (1.9.0)
103
110
  safe_yaml (1.0.4)
104
111
  slop (3.6.0)
105
112
  unf (0.1.4)
106
113
  unf_ext
107
- unf_ext (0.0.7.2)
108
- unicode-display_width (1.1.3)
109
- webmock (2.3.2)
114
+ unf_ext (0.0.7.4)
115
+ unicode-display_width (1.3.0)
116
+ webmock (3.1.1)
110
117
  addressable (>= 2.3.6)
111
118
  crack (>= 0.3.2)
112
119
  hashdiff
113
- yard (0.9.8)
120
+ yard (0.9.12)
114
121
 
115
122
  PLATFORMS
116
123
  ruby
117
124
 
118
125
  DEPENDENCIES
119
- bundler (~> 1.13)
120
- cucumber (~> 2.0)
126
+ bundler (~> 1.14)
127
+ cucumber (~> 3.0)
121
128
  pry-remote (~> 0.1.8)
122
129
  rake (~> 12.0)
123
130
  relish (~> 0.7.1)
124
- rubocop (~> 0.47.1)
131
+ rubocop (~> 0.52.0)
125
132
  webtrap!
126
- yard (~> 0.9.8)
133
+ yard (~> 0.9.12)
127
134
 
128
135
  BUNDLED WITH
129
- 1.14.5
136
+ 1.16.0
data/Rakefile CHANGED
@@ -4,12 +4,12 @@ namespace :lint do
4
4
  require "rubocop/rake_task"
5
5
  RuboCop::RakeTask.new(:ruby)
6
6
  end
7
- task lint: %i(lint:ruby)
7
+ task lint: %i[lint:ruby]
8
8
 
9
9
  namespace :test do
10
10
  require "cucumber/rake/task"
11
11
  Cucumber::Rake::Task.new(:acceptance)
12
12
  end
13
- task test: %i(test:acceptance)
13
+ task test: %i[test:acceptance]
14
14
 
15
- task default: %i(lint test)
15
+ task default: %i[lint test]
@@ -2,5 +2,5 @@
2
2
 
3
3
  module WebTrap
4
4
  # Current version of the WebTrap gem.
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1".freeze
6
6
  end
data/webtrap.gemspec CHANGED
@@ -1,4 +1,3 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path("../lib", __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require "webtrap/version"
@@ -10,23 +9,19 @@ Gem::Specification.new do |spec|
10
9
  spec.email = ["pedro@subvisual.co"]
11
10
 
12
11
  spec.summary = %(Test your outgoing requests.)
13
- spec.description = <<-EOS
12
+ spec.description = <<-DESC
14
13
  WebTrap allows you to write tests that assert on outgoing requests. This
15
14
  allows you to verify that such requests match the documentation of external
16
15
  services without actually having to hit them.
17
- EOS
16
+ DESC
18
17
  spec.homepage = "https://github.com/pfac/webtrap"
19
18
  spec.license = "MIT"
20
19
 
21
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
22
- # to allow pushing to a single host or delete this section to allow pushing to any host.
23
- if spec.respond_to?(:metadata)
24
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
25
- else
26
- raise <<-EOS
27
- RubyGems 2.0 or newer is required to protect against public gem pushes.
28
- EOS
29
- end
20
+ raise <<-ERROR unless spec.respond_to?(:metadata)
21
+ RubyGems 2.0 or newer is required to protect against public gem pushes.
22
+ ERROR
23
+
24
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
30
25
 
31
26
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
32
27
  f.match(%r{^(test|spec|features)/})
@@ -34,15 +29,16 @@ Gem::Specification.new do |spec|
34
29
  spec.bindir = "exe"
35
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
36
31
  spec.require_paths = ["lib"]
32
+ spec.required_ruby_version = ">= 2.2.0"
37
33
 
38
34
  spec.add_dependency "equivalent-xml", "~> 0.6.0"
39
35
  spec.add_dependency "rack", "~> 2.0"
40
36
  spec.add_dependency "rspec", "~> 3.0"
41
- spec.add_dependency "webmock", "~> 2.0"
37
+ spec.add_dependency "webmock", "~> 3.0"
42
38
 
43
- spec.add_development_dependency "bundler", "~> 1.13"
44
- spec.add_development_dependency "cucumber", "~> 2.0"
39
+ spec.add_development_dependency "bundler", "~> 1.14"
40
+ spec.add_development_dependency "cucumber", "~> 3.0"
45
41
  spec.add_development_dependency "pry-remote", "~> 0.1.8"
46
42
  spec.add_development_dependency "rake", "~> 12.0"
47
- spec.add_development_dependency "rubocop", "~> 0.47.1"
43
+ spec.add_development_dependency "rubocop", "~> 0.52.0"
48
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webtrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Costa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-11 00:00:00.000000000 Z
11
+ date: 2017-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml
@@ -58,42 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.0'
61
+ version: '3.0'
62
62
  type: :runtime
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: '2.0'
68
+ version: '3.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.13'
75
+ version: '1.14'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.13'
82
+ version: '1.14'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: cucumber
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2.0'
89
+ version: '3.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '2.0'
96
+ version: '3.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry-remote
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.47.1
131
+ version: 0.52.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 0.47.1
138
+ version: 0.52.0
139
139
  description: |2
140
140
  WebTrap allows you to write tests that assert on outgoing requests. This
141
141
  allows you to verify that such requests match the documentation of external
@@ -149,6 +149,7 @@ files:
149
149
  - ".gitignore"
150
150
  - ".rubocop.yml"
151
151
  - ".ruby-version"
152
+ - ".tool-versions"
152
153
  - ".travis.yml"
153
154
  - CONTRIBUTING.md
154
155
  - Gemfile
@@ -183,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
184
  requirements:
184
185
  - - ">="
185
186
  - !ruby/object:Gem::Version
186
- version: '0'
187
+ version: 2.2.0
187
188
  required_rubygems_version: !ruby/object:Gem::Requirement
188
189
  requirements:
189
190
  - - ">="