rox-client-rspec 0.3.0 → 0.3.1
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 +8 -8
- data/README.md +4 -24
- data/VERSION +1 -1
- data/lib/rox-client-rspec.rb +1 -1
- data/lib/rox-client-rspec/config.rb +14 -18
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzNhOWE3OTM3ZGQxNTEzZWE4YmE2ODQ1NWFmZGE4ODE0NDM3MzZiZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2Q5MGU2ZmMzM2NkM2VjMzZiYTNlOTJkYTYwMzFiNzM5YzIyOTFhNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzRkN2E5OTcyNTE0MTczMTMyYjhkOGY1NDg1ODFjMzA2MzU4OTRkYjQ1NWY2
|
10
|
+
OGUxNWFhMWI0MzdkZjBmNzk1NmZjMDYzMzhkZDJiOWFlN2Q2MGFmMzgyOWY2
|
11
|
+
OGY3Mjk4Nzc1NzhhOWI4ZWJkNDMwMzJhN2YxZjU2Y2E1YjU2NzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGJjNTk5YzQ1YjExZTQ0ZmJhZDMyMjI2YmM2ZjlkOWI0ZTAzNmQwZDQ1NmRk
|
14
|
+
MTI3NzUzZWY3MzAyNzNkOWNkY2EzYmI1OTExOGZjYzU5ZDE1ZmFjM2ExMmJj
|
15
|
+
OTcxNmM3ZWFiOTZjZGZkZjgzN2E3MzU1NGZjMjZkYjM1NzA4Y2M=
|
data/README.md
CHANGED
@@ -49,7 +49,7 @@ In your home folder, you must create the `~/.rox/config.yml` configuration file.
|
|
49
49
|
```yml
|
50
50
|
# List of ROX Center servers you can submit test results to.
|
51
51
|
servers:
|
52
|
-
|
52
|
+
rox.example.com: # A custom name for your ROX Center server.
|
53
53
|
# You will use this in the client configuration file.
|
54
54
|
# We recommend using the domain name where you deployed it.
|
55
55
|
|
@@ -71,9 +71,8 @@ In the project directory where you run RSpec, you must add the `rox.yml` client
|
|
71
71
|
```yml
|
72
72
|
# Configuration specific to your project.
|
73
73
|
project:
|
74
|
-
name: My Project
|
75
|
-
version: 1.2.3
|
76
74
|
apiId: 154sic93pxs0 # The API key of your project in the ROX Center server.
|
75
|
+
version: 1.2.3
|
77
76
|
|
78
77
|
# Where the client should store its temporary files.
|
79
78
|
# The client will work without it but it is required for some advanced features.
|
@@ -121,28 +120,9 @@ The next time you run your test suite, the RSpec ROX Client will send the result
|
|
121
120
|
* Push to your branch - `git push origin my_feature`
|
122
121
|
* Create a [pull request](http://help.github.com/pull-requests/) from your branch
|
123
122
|
|
124
|
-
Please add a changelog entry with your name for new features and bug fixes.
|
123
|
+
Please add a [changelog](CHANGELOG.md) entry with your name for new features and bug fixes.
|
125
124
|
|
126
125
|
## License
|
127
126
|
|
128
127
|
The RSpec ROX Client is licensed under the [MIT License](http://opensource.org/licenses/MIT).
|
129
|
-
|
130
|
-
Copyright (c) 2012-2013 Lotaris SA
|
131
|
-
|
132
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
133
|
-
of this software and associated documentation files (the "Software"), to deal
|
134
|
-
in the Software without restriction, including without limitation the rights
|
135
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
136
|
-
copies of the Software, and to permit persons to whom the Software is
|
137
|
-
furnished to do so, subject to the following conditions:
|
138
|
-
|
139
|
-
The above copyright notice and this permission notice shall be included in
|
140
|
-
all copies or substantial portions of the Software.
|
141
|
-
|
142
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
143
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
144
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
145
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
146
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
147
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
148
|
-
THE SOFTWARE.
|
128
|
+
See [LICENSE.txt](LICENSE.txt) for the full license.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/lib/rox-client-rspec.rb
CHANGED
@@ -92,25 +92,12 @@ module RoxClient::RSpec
|
|
92
92
|
|
93
93
|
def build_servers config
|
94
94
|
|
95
|
-
servers = {}
|
96
|
-
|
97
95
|
default_server_options = { project_api_id: config[:project][:api_id] }
|
98
|
-
config[:servers].
|
99
|
-
|
100
|
-
|
101
|
-
if name.empty?
|
102
|
-
@load_warnings << "Ignoring unnamed server"
|
103
|
-
next
|
104
|
-
elsif servers[name]
|
105
|
-
servers[name].merge! server_options
|
106
|
-
next
|
107
|
-
end
|
108
|
-
|
109
|
-
servers[name] = server_options
|
96
|
+
servers = config[:servers].inject({}) do |memo,(name, options)|
|
97
|
+
memo[name] = Server.new default_server_options.merge(options).merge(name: name)
|
98
|
+
memo
|
110
99
|
end
|
111
100
|
|
112
|
-
servers.each_key{ |name| servers[name] = Server.new default_server_options.merge(servers[name]) }
|
113
|
-
|
114
101
|
[ servers.values, servers[@server_name.to_s.strip] ]
|
115
102
|
end
|
116
103
|
|
@@ -126,11 +113,20 @@ module RoxClient::RSpec
|
|
126
113
|
|
127
114
|
actual_configs.collect!{ |f| YAML.load_file f }
|
128
115
|
|
129
|
-
actual_configs.inject({}) do |memo,yml|
|
116
|
+
actual_configs.inject({ servers: {} }) do |memo,yml|
|
130
117
|
memo.merge! parse_general_options(yml)
|
131
|
-
|
118
|
+
|
119
|
+
if yml['servers'].kind_of? Hash
|
120
|
+
yml['servers'].each_pair do |k,v|
|
121
|
+
if v.kind_of? Hash
|
122
|
+
memo[:servers][k] = (memo[:servers][k] || {}).merge(parse_server_options(v))
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
132
127
|
memo[:payload] = (memo[:payload] || {}).merge parse_payload_options(yml['payload'])
|
133
128
|
memo[:project] = (memo[:project] || {}).merge parse_project_options(yml['project'])
|
129
|
+
|
134
130
|
memo
|
135
131
|
end
|
136
132
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rox-client-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Oulevay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
version: '0'
|
209
209
|
requirements: []
|
210
210
|
rubyforge_project:
|
211
|
-
rubygems_version: 2.1.
|
211
|
+
rubygems_version: 2.1.10
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: RSpec extensions to send results to ROX Center.
|