webspicy 0.15.0.pre.rc2 → 0.15.0.pre.rc3

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
- SHA256:
3
- metadata.gz: 9a1f3616fdd2fca569a6d93f4f36fd54cc36d30ddd048a402b4c63d8ada790b7
4
- data.tar.gz: cc729bf194561f90306074b31575a32e6b8b60408b20d5669b7646e66cf410b1
2
+ SHA1:
3
+ metadata.gz: 222cc1c80258b2bd59ce4edefa8b285f80925068
4
+ data.tar.gz: a82857e3980587d55fb2a4d8e6181eb0a4ad862b
5
5
  SHA512:
6
- metadata.gz: 47770374f2fbfa34f2ed4317f2b9956d25a09753ef257c0148ad53dd0b7fd37aae7463750df554f6999b7b31285cfe914b44d50db4de1343e5ae22511d6165af
7
- data.tar.gz: a8ccca7ac1b998e0da24b167b7ae3cf75bb42c0b2ce4c33d50abe3efc7de566bca24d3ec095dcbcc23ef243c607d7b7c4e9b003df2cea30df5ed31bcc2bc96e1
6
+ metadata.gz: 7b698eda5f1f9fb470f1dc6474977cc345620614ed80d1a21b78da881b51d2b84a97fe4668caa18c62da2269a58ff0a6aecbec9b72f8cc40ae8387033e6386fa
7
+ data.tar.gz: e5856852f35ba415f45b8096c20079075519d6d2adcde981e1c2a3feff2a156512e3e026ace0a35bd0f190489e8ecc71730961ac5e7dffc5fa17abcb9f0cb54d
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # The MIT Licence
2
2
 
3
- Copyright (c) 2017 - Enspirit SPRL (Bernard Lambeau)
3
+ Copyright (c) 2020 - Enspirit SPRL (Bernard Lambeau)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -12,7 +12,11 @@ box software operations.
12
12
 
13
13
  * Black box testing: Webspicy focuses on web services seen as blackboxes. It has
14
14
  no knowledge of the implementation, and focuses on HTTP and input/output data
15
- instead. Investing in such testing makes those tests stables and your API better.
15
+ instead. Investing in such testing makes those tests more stable and your API
16
+ better.
17
+
18
+ * Test instrumentation and generation, based on declarative PRE & POST
19
+ conditions.
16
20
 
17
21
  * Extra goodness for Rubyists: being written in ruby, Webspicy also supports
18
22
  testing Rack applications directly (through rack/test)
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env ruby
2
+ #/ Document and test RESTful webservices
3
+ #/ (c) Enspirit SPRL. Distributed under MIT licence.
4
+ #/ Usage: webspicy [options] path/to/config.rb
5
+ #/
6
+ #/ Recognized env vars:
7
+ #/ - ROBUST=no do not execute counterexamples
8
+ #/ - LOG_LEVEL=INFO|DEBUG|... set log level to the appropriate level
9
+ #/ - RESOURCE=... restrict to .yml test files matching the pattern
10
+ #/ - METHOD=GET|POST|DELETE... execute only tests matching the verb
11
+ #/ - TAG=... execute only tests matching the given tag
12
+ #/ - FAILFAST=yes|no stop executing tests on first failure
13
+ require 'webspicy'
14
+ require 'webspicy/tester'
15
+ require 'optparse'
16
+
17
+ def showhelp
18
+ file = __FILE__
19
+ exec "grep ^#/<'#{file}'|cut -c4-"
20
+ end
21
+
22
+ ARGV.options do |opts|
23
+ opts.on_tail("-h", "--help"){ showhelp }
24
+ opts.parse!
25
+ end
26
+
27
+ if ARGV.size != 1
28
+ showhelp
29
+ exit(-1)
30
+ elsif (p = Path(ARGV.first)).exists?
31
+ config = Webspicy::Configuration.dress(p)
32
+ Webspicy::Tester.new(config).call
33
+ else
34
+ puts "No such file or directory `#{ARGV.first}`"
35
+ showhelp
36
+ exit(-1)
37
+ end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- webspicy (0.15.0.pre.rc2)
4
+ webspicy (0.15.0.pre.rc3)
5
5
  finitio (>= 0.8.0)
6
6
  http (~> 2)
7
7
  mustermann (~> 1.0)
@@ -53,7 +53,7 @@ GEM
53
53
  rspec-mocks (~> 3.9.0)
54
54
  rspec-core (3.9.1)
55
55
  rspec-support (~> 3.9.1)
56
- rspec-expectations (3.9.0)
56
+ rspec-expectations (3.9.1)
57
57
  diff-lcs (>= 1.2.0, < 2.0)
58
58
  rspec-support (~> 3.9.0)
59
59
  rspec-mocks (3.9.1)
@@ -2,7 +2,7 @@ module Webspicy
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 15
5
- TINY = "0-rc2"
5
+ TINY = "0-rc3"
6
6
  end
7
7
  VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::TINY}"
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webspicy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0.pre.rc2
4
+ version: 0.15.0.pre.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernard Lambeau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-04 00:00:00.000000000 Z
11
+ date: 2020-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -186,6 +186,7 @@ files:
186
186
  - LICENSE.md
187
187
  - README.md
188
188
  - Rakefile
189
+ - bin/webspicy
189
190
  - examples/restful/Gemfile
190
191
  - examples/restful/Gemfile.lock
191
192
  - examples/restful/Rakefile
@@ -261,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
262
  version: 1.3.1
262
263
  requirements: []
263
264
  rubyforge_project:
264
- rubygems_version: 2.7.6
265
+ rubygems_version: 2.6.11
265
266
  signing_key:
266
267
  specification_version: 4
267
268
  summary: Webspicy helps testing web services as software operation black boxes!