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 +4 -4
- data/.rubocop.yml +33 -17
- data/.tool-versions +1 -0
- data/.travis.yml +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +62 -55
- data/Rakefile +3 -3
- data/lib/webtrap/version.rb +1 -1
- data/webtrap.gemspec +12 -16
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53ef57f1274a8eb754f4250c0fab575396d88c0b
|
4
|
+
data.tar.gz: 16cc39785ae1c2d08808d1d261d3087f487e9874
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
19
|
-
|
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
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,129 +1,136 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
webtrap (0.
|
4
|
+
webtrap (0.1.1)
|
5
5
|
equivalent-xml (~> 0.6.0)
|
6
6
|
rack (~> 2.0)
|
7
7
|
rspec (~> 3.0)
|
8
|
-
webmock (~>
|
8
|
+
webmock (~> 3.0)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
addressable (2.5.
|
14
|
-
public_suffix (
|
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.
|
21
|
+
coderay (1.1.2)
|
21
22
|
crack (0.4.3)
|
22
23
|
safe_yaml (~> 1.0.0)
|
23
|
-
cucumber (
|
24
|
+
cucumber (3.1.0)
|
24
25
|
builder (>= 2.1.2)
|
25
|
-
cucumber-core (~> 1.
|
26
|
+
cucumber-core (~> 3.1.0)
|
27
|
+
cucumber-expressions (~> 5.0.4)
|
26
28
|
cucumber-wire (~> 0.0.1)
|
27
|
-
diff-lcs (
|
28
|
-
gherkin (~>
|
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.
|
32
|
-
|
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.
|
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 (
|
40
|
-
hashdiff (0.3.
|
41
|
-
hashie (3.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
|
45
|
-
method_source (0.
|
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.
|
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.
|
60
|
+
multi_json (1.12.2)
|
55
61
|
multi_test (0.1.2)
|
56
62
|
netrc (0.11.0)
|
57
|
-
nokogiri (1.
|
58
|
-
mini_portile2 (~> 2.
|
59
|
-
|
60
|
-
|
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.
|
71
|
+
pry (0.11.3)
|
65
72
|
coderay (~> 1.1.0)
|
66
|
-
method_source (~> 0.
|
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 (
|
72
|
-
rack (2.0.
|
73
|
-
rainbow (
|
74
|
-
rake (12.
|
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.
|
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.
|
84
|
-
rspec-core (~> 3.
|
85
|
-
rspec-expectations (~> 3.
|
86
|
-
rspec-mocks (~> 3.
|
87
|
-
rspec-core (3.
|
88
|
-
rspec-support (~> 3.
|
89
|
-
rspec-expectations (3.
|
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.
|
92
|
-
rspec-mocks (3.
|
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.
|
95
|
-
rspec-support (3.
|
96
|
-
rubocop (0.
|
97
|
-
|
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 (>=
|
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.
|
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.
|
108
|
-
unicode-display_width (1.
|
109
|
-
webmock (
|
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.
|
120
|
+
yard (0.9.12)
|
114
121
|
|
115
122
|
PLATFORMS
|
116
123
|
ruby
|
117
124
|
|
118
125
|
DEPENDENCIES
|
119
|
-
bundler (~> 1.
|
120
|
-
cucumber (~>
|
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.
|
131
|
+
rubocop (~> 0.52.0)
|
125
132
|
webtrap!
|
126
|
-
yard (~> 0.9.
|
133
|
+
yard (~> 0.9.12)
|
127
134
|
|
128
135
|
BUNDLED WITH
|
129
|
-
1.
|
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
|
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
|
13
|
+
task test: %i[test:acceptance]
|
14
14
|
|
15
|
-
task default: %i
|
15
|
+
task default: %i[lint test]
|
data/lib/webtrap/version.rb
CHANGED
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 = <<-
|
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
|
-
|
16
|
+
DESC
|
18
17
|
spec.homepage = "https://github.com/pfac/webtrap"
|
19
18
|
spec.license = "MIT"
|
20
19
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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", "~>
|
37
|
+
spec.add_dependency "webmock", "~> 3.0"
|
42
38
|
|
43
|
-
spec.add_development_dependency "bundler", "~> 1.
|
44
|
-
spec.add_development_dependency "cucumber", "~>
|
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.
|
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.
|
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-
|
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: '
|
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: '
|
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.
|
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.
|
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: '
|
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: '
|
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.
|
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.
|
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:
|
187
|
+
version: 2.2.0
|
187
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
189
|
requirements:
|
189
190
|
- - ">="
|