another_brick 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  s.require_paths = ["lib"]
18
18
 
19
- s.add_development_dependency "rspec", "~> 2.6"
19
+ s.add_development_dependency "rake"
20
20
 
21
21
  s.add_runtime_dependency "slop", "~> 2.1"
22
22
  s.add_runtime_dependency "json", "~> 1.5"
data/bin/brick CHANGED
@@ -3,6 +3,8 @@
3
3
  require "another_brick"
4
4
 
5
5
  options = Slop.parse help: true do
6
+ banner 'Another Brick'
7
+
6
8
  on :v, :verbose, "Verbose mode"
7
9
  on :b, :bricklayer, "Bricklayer host", true
8
10
  on :n, :name, "Project name", true
@@ -12,7 +12,7 @@ module AnotherBrick
12
12
  result = ""
13
13
 
14
14
  AnotherBrick.bricklayer_tries.times do
15
- result = RestClient.get(log_uri % build).lines.to_a.last
15
+ result = RestClient.get(log_uri(build))
16
16
  break if result =~ SUCCESS or result =~ ERROR
17
17
  sleep 2
18
18
  end
@@ -75,8 +75,8 @@ module AnotherBrick
75
75
  end
76
76
  end
77
77
 
78
- def log_uri
79
- ("#{base_uri % "log"}/%s").tap do |uri|
78
+ def log_uri(build)
79
+ ("#{base_uri % "log"}/#{build}").tap do |uri|
80
80
  puts "log_uri: #{uri}" if AnotherBrick.verbose?
81
81
  end
82
82
  end
@@ -1,3 +1,3 @@
1
1
  module AnotherBrick
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: another_brick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,24 +10,24 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-26 00:00:00.000000000 Z
13
+ date: 2013-03-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rspec
16
+ name: rake
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
- - - ~>
20
+ - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
- version: '2.6'
22
+ version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
28
- - - ~>
28
+ - - ! '>='
29
29
  - !ruby/object:Gem::Version
30
- version: '2.6'
30
+ version: '0'
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: slop
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -126,12 +126,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
126
  - - ! '>='
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
+ segments:
130
+ - 0
131
+ hash: 1648754517863908441
129
132
  required_rubygems_version: !ruby/object:Gem::Requirement
130
133
  none: false
131
134
  requirements:
132
135
  - - ! '>='
133
136
  - !ruby/object:Gem::Version
134
137
  version: '0'
138
+ segments:
139
+ - 0
140
+ hash: 1648754517863908441
135
141
  requirements: []
136
142
  rubyforge_project:
137
143
  rubygems_version: 1.8.23