soaspec 0.0.37 → 0.0.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.gitlab-ci.yml +18 -1
- data/ChangeLog +4 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +9 -1
- data/README.md +2 -0
- data/exe/soaspec-generate +2 -2
- data/lib/soaspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49098321c361f4bb95c10c5eb204986e9595848a
|
4
|
+
data.tar.gz: 0bb08c64d7b9ca33f807227d1e0f4b02751d7271
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb427fdc9820aabe14be289f8dc6f36cfefe2c1acdadfa2cc129153a852f53066d6a55648c9d3305f966ae0e73a9e18c2999ff51fc1c4564326653645c8aa6eb
|
7
|
+
data.tar.gz: a64e8a28b2661e26038d72910c7965c60edadd38d7486ad2d017c03f5bc43b1d6e968234afce959af3269e2ab23f7d169a15df9170db6e943e77eb13b771aca3
|
data/.gitignore
CHANGED
data/.gitlab-ci.yml
CHANGED
@@ -6,5 +6,22 @@ before_script:
|
|
6
6
|
- bundle install --jobs $(nproc) "${FLAGS[@]}"
|
7
7
|
|
8
8
|
rspec:
|
9
|
+
stage: test
|
9
10
|
script:
|
10
|
-
- bundle exec rake spec
|
11
|
+
- bundle exec rake spec
|
12
|
+
artifacts:
|
13
|
+
paths:
|
14
|
+
- coverage/
|
15
|
+
|
16
|
+
pages:
|
17
|
+
stage: deploy
|
18
|
+
dependencies:
|
19
|
+
- rspec
|
20
|
+
script:
|
21
|
+
- mv coverage/ public/
|
22
|
+
artifacts:
|
23
|
+
paths:
|
24
|
+
- public
|
25
|
+
expire_in: 30 days
|
26
|
+
only:
|
27
|
+
- master
|
data/ChangeLog
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
soaspec (0.0.
|
4
|
+
soaspec (0.0.38)
|
5
5
|
jsonpath
|
6
6
|
rest-client (>= 2.0)
|
7
7
|
rspec (~> 3.0)
|
@@ -21,6 +21,7 @@ GEM
|
|
21
21
|
faker (>= 1.1.2)
|
22
22
|
yml_reader (>= 0.6)
|
23
23
|
diff-lcs (1.3)
|
24
|
+
docile (1.3.0)
|
24
25
|
domain_name (0.5.20170404)
|
25
26
|
unf (>= 0.0.5, < 1.0.0)
|
26
27
|
faker (1.8.5)
|
@@ -35,6 +36,7 @@ GEM
|
|
35
36
|
socksify
|
36
37
|
i18n (0.9.1)
|
37
38
|
concurrent-ruby (~> 1.0)
|
39
|
+
json (2.1.0)
|
38
40
|
jsonpath (0.8.11)
|
39
41
|
multi_json
|
40
42
|
to_regexp (~> 0.2.1)
|
@@ -87,6 +89,11 @@ GEM
|
|
87
89
|
nokogiri (>= 1.8.1)
|
88
90
|
nori (~> 2.4)
|
89
91
|
wasabi (~> 3.4)
|
92
|
+
simplecov (0.16.0)
|
93
|
+
docile (~> 1.1)
|
94
|
+
json (>= 1.8, < 3)
|
95
|
+
simplecov-html (~> 0.10.0)
|
96
|
+
simplecov-html (0.10.2)
|
90
97
|
socksify (1.7.1)
|
91
98
|
to_regexp (0.2.1)
|
92
99
|
unf (0.1.4)
|
@@ -115,6 +122,7 @@ DEPENDENCIES
|
|
115
122
|
rspec-its
|
116
123
|
rspec_junit_formatter
|
117
124
|
savon
|
125
|
+
simplecov
|
118
126
|
soaspec!
|
119
127
|
xml-simple
|
120
128
|
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
+
|
1
2
|
# Soaspec
|
2
3
|
|
3
4
|
This gem helps to represent multiple API tests against a backend briefly, concisely and clearly. It is essentially a wrapper around the Savon and RestClient gems. Note it is still in early stages of development.
|
4
5
|
|
6
|
+
[![Build Status](https://gitlab.com/samuel-garratt/soaspec/badges/master/build.svg)](https://gitlab.com/samuel-garratt/soaspec/pipelines)
|
5
7
|
|
6
8
|
## Installation
|
7
9
|
|
data/exe/soaspec-generate
CHANGED
@@ -151,7 +151,7 @@ create_folder 'logs'
|
|
151
151
|
create_folder 'config'
|
152
152
|
create_folder 'config/data'
|
153
153
|
create_folder 'lib'
|
154
|
-
create_file filename: "lib/#{@name.snakecase}.rb", content: ERB.new(@class_content).result(binding)
|
154
|
+
create_file filename: "lib/#{@name.to_s.snakecase}.rb", content: ERB.new(@class_content).result(binding)
|
155
155
|
# Files according to WSDL
|
156
156
|
@wsdl_doc.operations.each do |operation, details|
|
157
157
|
puts "Creating files for operation: #{operation}"
|
@@ -162,7 +162,7 @@ create_file filename: "lib/#{@name.snakecase}.rb", content: ERB.new(@class_conte
|
|
162
162
|
if details[:parameters]
|
163
163
|
details[:parameters].each do |element, details|
|
164
164
|
@use_camel_case = true if (/[[:upper:]]/.match(element.to_s[0]) != nil)
|
165
|
-
@content += " #{element.snakecase}: #{fill_in_field_from_type(details[:type])} # #{details[:type]} \n"
|
165
|
+
@content += " #{element.to_s.snakecase}: #{fill_in_field_from_type(details[:type])} # #{details[:type]} \n"
|
166
166
|
# TODO: If details is a Hash need to loop again
|
167
167
|
end
|
168
168
|
end
|
data/lib/soaspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soaspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SamuelGarrattIQA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|