jenkins-builder 0.1.5 → 0.1.6

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
  SHA256:
3
- metadata.gz: ac6853704b49650d7fcc0aea65472c83d73caa2021b395ce4bbc76c5702bd5be
4
- data.tar.gz: 61a216a6375e66a00ab6054a8a7a2f55bd67846449dd774bb12579df4bae1af1
3
+ metadata.gz: f8b209297de2b2cd6d62f0bf706183c9e3bee95afb241c414b9d4f36a6212245
4
+ data.tar.gz: 5cb72fead99328e598dbe12de2d63bc6e99a0d527ccd926880863721ac3e0ba0
5
5
  SHA512:
6
- metadata.gz: 858baeb43ab21458cb942f7d74cf94198af95b6625ec1270ad15fc5b7be890c8a585e6f19bfb05ca4ce0215d87002db54122b647b9e151e16b1f4940fb44fbb6
7
- data.tar.gz: 870b366c39210fd66a31d7ea2518116c7588c186b1906abf2cfa94eba4ff50cf6fcc230aed17c317ae9033c262037bd104a082f925fd8eecee3c13ca8958c523
6
+ metadata.gz: 238a4c4613fef743649e793fa2add8bee79c667cf26fd3077d67921c8266633a4f78ea5b5053319a76ffe3540e28e52e3ee7ef0b88e026e24b0847bd9fc9cae5
7
+ data.tar.gz: 34720b7470b71d88cb9c742f0976a2cf1c4827d48b4956c219fb4c6d8cc33143f49de92d83a6c1f92b674f267772f043cccd306fff88de800f5c3d76a076f1e2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jenkins-builder (0.1.5)
4
+ jenkins-builder (0.1.6)
5
5
  jenkins_api_client (~> 1.5.3)
6
6
  pastel (~> 0.7.2)
7
7
  security (~> 0.1.3)
@@ -24,10 +24,10 @@ GEM
24
24
  thor (>= 0.16.0)
25
25
  json (2.1.0)
26
26
  method_source (0.9.1)
27
- mini_portile2 (2.3.0)
27
+ mini_portile2 (2.4.0)
28
28
  mixlib-shellout (2.4.0)
29
- nokogiri (1.8.5)
30
- mini_portile2 (~> 2.3.0)
29
+ nokogiri (1.10.3)
30
+ mini_portile2 (~> 2.4.0)
31
31
  pastel (0.7.2)
32
32
  equatable (~> 0.5.0)
33
33
  tty-color (~> 0.4.0)
@@ -58,7 +58,7 @@ GEM
58
58
  socksify (1.7.1)
59
59
  terminal-table (1.8.0)
60
60
  unicode-display_width (~> 1.1, >= 1.1.1)
61
- thor (0.20.0)
61
+ thor (0.20.3)
62
62
  tty-color (0.4.3)
63
63
  tty-cursor (0.6.0)
64
64
  tty-spinner (0.8.0)
@@ -79,4 +79,4 @@ DEPENDENCIES
79
79
  rspec (~> 3.0)
80
80
 
81
81
  BUNDLED WITH
82
- 1.16.2
82
+ 1.17.2
@@ -153,12 +153,13 @@ module Jenkins
153
153
  all_console_output = ''
154
154
 
155
155
  loop do
156
- console_output = @client.job.get_console_output(job_name, build_no, printed_size, 'text')
157
- all_console_output << console_output['output']
158
- print console_output['output'].gsub("\r", '') unless @options[:silent]
159
- printed_size += console_output['size'].to_i
156
+ # require 'pry'; binding.pry;
157
+ console_output = @client.job.get_console_output(job_name, build_no, 0, 'text')
158
+ all_console_output = console_output['output']
159
+ print console_output['output'][printed_size..-1] unless @options[:silent]
160
+ printed_size = console_output['output'].size
160
161
  break unless console_output['more']
161
- sleep 2
162
+ sleep 0.5
162
163
  end
163
164
  if @options[:silent]
164
165
  spinner.stop
@@ -1,5 +1,5 @@
1
1
  module Jenkins
2
2
  module Builder
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkins-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Xiang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-19 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -211,8 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  - !ruby/object:Gem::Version
212
212
  version: '0'
213
213
  requirements: []
214
- rubyforge_project:
215
- rubygems_version: 2.7.7
214
+ rubygems_version: 3.0.3
216
215
  signing_key:
217
216
  specification_version: 4
218
217
  summary: Build Jenkins Jobs