vigia 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NDYwMThkZDk2ZDI3NDFhYzc5ZWUyNzQ4NzA0NmRjMjgyNmFjZGM4Nw==
5
- data.tar.gz: !binary |-
6
- MDk2NWU5YTkyMTg0NzE2YzFiNmRlMDY2Yzg3NmNkMDU1NmFiNmJkOQ==
2
+ SHA1:
3
+ metadata.gz: a7222d06de2ca3a765f9e0e7a95d55dba86fcf2c
4
+ data.tar.gz: 9682733199c872a48488ebff5bab234af8bc9602
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZjA0N2FmOTg2ODRiN2Y1Y2FiMzEwYzcyNDBkNGMwNzQ2ZWNhZmMwZjc4OWZl
10
- MDNiYzU3MDE0MTQxMzNkNWFjNWY3NzhiYWQyNWVhZDhiMzllZDMzMDY3MWQ1
11
- MzM0ZjJjNTgxYWU4ZWU5ODZlZTExYzFlZDdjZDFlZWYzYzQxODY=
12
- data.tar.gz: !binary |-
13
- OWMyMDQyZTViMWNkZTMzZmM5OGRlM2E1OTk2MmUwYTI5ZGY0MjEwMzM1NTZj
14
- NTQ1YjgxMTVmMTBiODk2YTM1YWUxNDIzNDRlNDNmMTljM2QwYWNlOWMwOTE2
15
- NTc1YTVhZDcwMDMzNzM2NTI4MGY3YWI2OWYyYjIyZjgzODcxZjA=
6
+ metadata.gz: 2d7a990aa5867d01f729792a334cdcee1534340d7346fa26efc56b870477cdf98e749fb0e1d0b1da096aa81c241b3b3fcc52dabbde2855c68ee00cbe62ac34ac
7
+ data.tar.gz: 91206c7fce603e5674dab0a8b5d6fa3f105a608876aaacc3c278bf8fb083037754fbe3a877be61050f6d467d2981d2c59fc641847aa6fa2b1210ea91d8facc77
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Vigia
2
2
  ========
3
3
 
4
- [![Build Status](https://travis-ci.org/lonelyplanet/vigia.svg?branch=master)](https://travis-ci.org/lonelyplanet/vigia)
4
+ [![Build Status](https://travis-ci.org/nogates/vigia.svg?branch=master)](https://travis-ci.org/nogates/vigia)
5
5
  [![Code Climate](https://codeclimate.com/github/nogates/vigia/badges/gpa.svg)](https://codeclimate.com/github/nogates/vigia)
6
6
  [![Test Coverage](https://codeclimate.com/github/nogates/vigia/badges/coverage.svg)](https://codeclimate.com/github/nogates/vigia)
7
7
 
@@ -9,7 +9,7 @@ Vigia
9
9
 
10
10
  <img src="http://singularities.org/vigia.png" width="96" height="96" class="right" alt="Vigia logo" />
11
11
 
12
- Vigia is a gem to perform integration tests on an API server using RSpec and a compatible adapter (See [Adapters](https://github.com/lonelyplanet/vigia/wiki/Adapters)). The adapter creates the structure of the test (groups and context) and sets up all the variables (See [Context variables](https://github.com/lonelyplanet/vigia/wiki/Context-variables)) used to perform the http request.
12
+ Vigia is a gem to perform integration tests on an API server using RSpec and a compatible adapter. The adapter creates the structure of the test (groups and context) and sets up all the variables (See [Context variables](https://github.com/lonelyplanet/vigia/wiki/Context-variables)) used to perform the http request.
13
13
 
14
14
  These results and expectations objects can be used to run examples that will compare the expected value with the server response value. Vigia allows to use a variety of different ways to execute these comparisons (See [Vigia Examples](https://github.com/lonelyplanet/vigia/wiki/Expectations---Examples) and [Custom Shared Examples](https://github.com/lonelyplanet/vigia/wiki/Shared-examples))
15
15
 
@@ -58,3 +58,32 @@ namespace :spec do
58
58
  end
59
59
  ```
60
60
 
61
+ # Adapters
62
+
63
+ Currently, Vigia supports [API Blueprint](https://apiblueprint.org/) and [RAML](http://raml.org/) definition files. By default, Vigia uses the Blueprint Adapter. To configure Vigia to use the RAML adapter, just pass the `adapter` class to the config block
64
+
65
+ ```ruby
66
+
67
+ Vigia.configure do |config|
68
+ config.adapter = Vigia::Adapters::Raml
69
+ config.source_file = 'my_api_definition.raml'
70
+ # extra config
71
+ end
72
+ ```
73
+
74
+ (See [Adapters](https://github.com/lonelyplanet/vigia/wiki/Adapters)) to see more information about custom adapters.
75
+
76
+ ## Contributing
77
+
78
+ 1. Fork it
79
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
80
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
81
+ 4. Push to the branch (`git push origin my-new-feature`)
82
+ 5. Create new Pull Request
83
+
84
+ ## License
85
+
86
+ See [LICENSE](https://raw.githubusercontent.com/lonelyplanet/vigia/master/LICENSE).
87
+
88
+
89
+
@@ -1,6 +1,4 @@
1
- # encoding: utf-8
2
-
3
- describe Vigia::Rspec do
1
+ RSpec.describe Vigia::Rspec do
4
2
 
5
3
  described_class.include_shared_folders
6
4
  described_class.new.start_tests(self)
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Vigia
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vigia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Tapiador
@@ -9,188 +9,188 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-03 00:00:00.000000000 Z
12
+ date: 2016-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ! '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ! '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: redsnow
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ! '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rest-client
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ! '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ! '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rspec
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ! '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ! '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: addressable
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ! '>='
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ! '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: raml_ruby
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ! '>='
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ! '>='
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: bundler
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ! '>='
102
+ - - ">="
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ! '>='
109
+ - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: sinatra
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ! '>='
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ! '>='
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: celluloid
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ! '>='
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ! '>='
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: json
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - ! '>='
144
+ - - ">="
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  type: :development
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - ! '>='
151
+ - - ">="
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
154
  - !ruby/object:Gem::Dependency
155
- name: pry-debugger
155
+ name: pry-byebug
156
156
  requirement: !ruby/object:Gem::Requirement
157
157
  requirements:
158
- - - ! '>='
158
+ - - ">="
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  type: :development
162
162
  prerelease: false
163
163
  version_requirements: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - ! '>='
165
+ - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: simplecov
170
170
  requirement: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - ! '>='
172
+ - - ">="
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
175
  type: :development
176
176
  prerelease: false
177
177
  version_requirements: !ruby/object:Gem::Requirement
178
178
  requirements:
179
- - - ! '>='
179
+ - - ">="
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  - !ruby/object:Gem::Dependency
183
183
  name: cucumber
184
184
  requirement: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - ! '>='
186
+ - - ">="
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  type: :development
190
190
  prerelease: false
191
191
  version_requirements: !ruby/object:Gem::Requirement
192
192
  requirements:
193
- - - ! '>='
193
+ - - ">="
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
196
  description: Test your Apiary Blueprint specification on ruby
@@ -201,31 +201,31 @@ executables: []
201
201
  extensions: []
202
202
  extra_rdoc_files: []
203
203
  files:
204
- - Rakefile
205
204
  - Gemfile
205
+ - README.md
206
+ - Rakefile
207
+ - lib/vigia.rb
206
208
  - lib/vigia/adapter.rb
207
209
  - lib/vigia/adapters/blueprint.rb
208
210
  - lib/vigia/adapters/raml.rb
211
+ - lib/vigia/config.rb
209
212
  - lib/vigia/formatter.rb
210
213
  - lib/vigia/hooks.rb
211
214
  - lib/vigia/http_client/options.rb
212
215
  - lib/vigia/http_client/requests.rb
213
216
  - lib/vigia/http_client/rest_client.rb
217
+ - lib/vigia/parameters.rb
218
+ - lib/vigia/rspec.rb
219
+ - lib/vigia/sail/context.rb
214
220
  - lib/vigia/sail/example.rb
215
221
  - lib/vigia/sail/examples/default.rb
216
- - lib/vigia/sail/context.rb
217
222
  - lib/vigia/sail/group.rb
218
223
  - lib/vigia/sail/group_instance.rb
219
224
  - lib/vigia/sail/rspec_object.rb
220
- - lib/vigia/spec/support/utils.rb
221
225
  - lib/vigia/spec/api_spec.rb
222
- - lib/vigia/rspec.rb
223
- - lib/vigia/config.rb
224
- - lib/vigia/parameters.rb
226
+ - lib/vigia/spec/support/utils.rb
225
227
  - lib/vigia/url.rb
226
228
  - lib/vigia/version.rb
227
- - lib/vigia.rb
228
- - README.md
229
229
  homepage: https://github.com/nogates/vigia
230
230
  licenses:
231
231
  - MIT
@@ -236,17 +236,17 @@ require_paths:
236
236
  - lib
237
237
  required_ruby_version: !ruby/object:Gem::Requirement
238
238
  requirements:
239
- - - ! '>='
239
+ - - ">="
240
240
  - !ruby/object:Gem::Version
241
241
  version: '0'
242
242
  required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  requirements:
244
- - - ! '>='
244
+ - - ">="
245
245
  - !ruby/object:Gem::Version
246
246
  version: '0'
247
247
  requirements: []
248
248
  rubyforge_project:
249
- rubygems_version: 2.1.11
249
+ rubygems_version: 2.4.5.1
250
250
  signing_key:
251
251
  specification_version: 4
252
252
  summary: Test your Apiary Blueprint specification on ruby