soaspec 0.0.37 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab1cb8ee1d09d0721eb978f4ac7e40b6f33f7151
4
- data.tar.gz: 77236d1a6feac34f99571fcabbfa4487df14ce82
3
+ metadata.gz: 49098321c361f4bb95c10c5eb204986e9595848a
4
+ data.tar.gz: 0bb08c64d7b9ca33f807227d1e0f4b02751d7271
5
5
  SHA512:
6
- metadata.gz: b69397b682d8fa139f22ae921b6cb1497bd444acd821b9a79ac1c116bf963d9e59c1645e9f0faf02a946d14358f30ba79d7061e45905191b349f4c677866e284
7
- data.tar.gz: 2cbfefe2deb59e4c582ca0012d118ae68afad55681859d408175c00c8d6494a988844da044f52a96df2c965f35597cb0b1cb2ffa9aa62a25eb27fd839181c3bc
6
+ metadata.gz: eb427fdc9820aabe14be289f8dc6f36cfefe2c1acdadfa2cc129153a852f53066d6a55648c9d3305f966ae0e73a9e18c2999ff51fc1c4564326653645c8aa6eb
7
+ data.tar.gz: a64e8a28b2661e26038d72910c7965c60edadd38d7486ad2d017c03f5bc43b1d6e968234afce959af3269e2ab23f7d169a15df9170db6e943e77eb13b771aca3
data/.gitignore CHANGED
@@ -9,6 +9,7 @@
9
9
  /tmp/
10
10
  /.idea/
11
11
  /credentials/
12
+ coverage
12
13
 
13
14
  # rspec failure tracking
14
15
  .rspec_status
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
@@ -1,3 +1,7 @@
1
+ Version 0.0.38 / 2018-3-15
2
+ * Bug fix
3
+ * Fixed error in soaspec-generate. TODO: Test this in CI
4
+
1
5
  Version 0.0.37 / 2018-3-16
2
6
  * Enhancements
3
7
  * Made retry_for_success method to keep making request until 200 status code if set on exchange
data/Gemfile CHANGED
@@ -15,3 +15,4 @@ gem 'rspec-its'
15
15
  gem 'rspec_junit_formatter'
16
16
  gem 'xml-simple'
17
17
  gem 'jsonpath'
18
+ gem 'simplecov'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- soaspec (0.0.37)
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
@@ -1,3 +1,3 @@
1
1
  module Soaspec
2
- VERSION = '0.0.37'
2
+ VERSION = '0.0.38'
3
3
  end
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.37
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-15 00:00:00.000000000 Z
11
+ date: 2018-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler