cider_ci-support 1.3.0 → 2.0.0.pre.beta.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99a611df8ab3151ff13d77e96912b7803f651f5d
4
- data.tar.gz: f9c9a168000e167609352ae8e27f720cb295e3a0
3
+ metadata.gz: e2e5f106cc834be4f4b8f9e86149e2b35c203992
4
+ data.tar.gz: cb9ef2acf24bb8d5fad9c04f9b2c81afe0421f2f
5
5
  SHA512:
6
- metadata.gz: 76087952d94846b3b7c3855cc71ee3a9bc93475b57c6c2eea7b3925585d12c1f839b06468056d3283d91ebeae0dfd9e5e9b8188c77a73457587c0f413be6eb90
7
- data.tar.gz: c536294ffa17dcba0fe0754aae20c536cd3ca873efa105ab04cb1797a112b397036158b952b8d67d8572a95d232a254eb771c0c470f5379d99e71b83cff4fafb
6
+ metadata.gz: f507091c231b706a836cce4f8323e480b61d44f4a6177508599c9a8acf3538e8688d8c8d922f434d15b991617bf0575600ca594cf381163d6eb98a8384ecad03
7
+ data.tar.gz: d49c0d2422a3acb5ded4b123ee4053d597757269b3191fb17faa320191481b2a4b6ecc1c01c589de5f07977aeb971751d73097cedc7de429ab8619f1d8d31ccb
@@ -40,8 +40,8 @@ def connect(base_url, username, password)
40
40
  end
41
41
  end
42
42
 
43
- def get_execution_resource(root, execution_id)
44
- root.relation('execution').get('id' => execution_id)
43
+ def get_job_resource(root, job_id)
44
+ root.relation('job').get('id' => job_id)
45
45
  end
46
46
 
47
47
  def print_progress_and_debug(separator = '.', msg = '')
@@ -56,9 +56,9 @@ end
56
56
  def get_and_convert_resultset_attachments(root, tree_id)
57
57
  print 'download_resultset_attachments'; STDOUT.flush
58
58
 
59
- root.relation('executions').get('treeid' => tree_id).collection \
60
- .map(&:get).map do |execution|
61
- execution.relation('tasks').get('state' => 'passed').collection\
59
+ root.relation('jobs').get('treeid' => tree_id).collection \
60
+ .map(&:get).map do |job|
61
+ job.relation('tasks').get('state' => 'passed').collection\
62
62
  .map do |task_relation|
63
63
  Thread.future @pool do
64
64
  print_progress_and_debug('', task_relation)
@@ -167,9 +167,9 @@ end
167
167
  # Git
168
168
  ###############################################################################
169
169
 
170
- def assert_correct_tree_id(execution)
171
- if execution.data['tree_id'] != `git log -n 1 --pretty=%T`.strip
172
- fail ScriptError, 'you must be on the same tree_id as the execution'
170
+ def assert_correct_tree_id(job)
171
+ if job.data['tree_id'] != `git log -n 1 --pretty=%T`.strip
172
+ fail ScriptError, 'you must be on the same tree_id as the job'
173
173
  end
174
174
  end
175
175
 
@@ -207,9 +207,9 @@ def parse_options(options)
207
207
  options.api_url = url
208
208
  end
209
209
 
210
- opts.on('-e', '--execution EXECUTION_ID',
210
+ opts.on('-e', '--job JOB_ID',
211
211
  'Execution ID to retrieve coverage for') do |exid|
212
- options.execution_id = exid
212
+ options.job_id = exid
213
213
  end
214
214
 
215
215
  opts.on('-t', '--thread-pool-size N', Integer) do |t|
@@ -1,5 +1,5 @@
1
1
  module Cider_CI
2
2
  module Support
3
- VERSION = '1.3.0'
3
+ VERSION = '2.0.0-beta.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cider_ci-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 2.0.0.pre.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Schank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-06 00:00:00.000000000 Z
11
+ date: 2015-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -159,9 +159,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  requirements:
162
- - - ">="
162
+ - - ">"
163
163
  - !ruby/object:Gem::Version
164
- version: '0'
164
+ version: 1.3.1
165
165
  requirements: []
166
166
  rubyforge_project:
167
167
  rubygems_version: 2.2.2