buildmeister 3.0.2 → 3.0.4
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/VERSION +1 -1
- data/lib/buildmeister/project.rb +1 -1
- data/lib/lighthouse/project.rb +3 -2
- data/lib/lighthouse/ticket.rb +19 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDRkODhiZmQzNTI1MzRjOTlmMDViMDBhNzc3NDE2ZGUwYWI4MDdjZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzZlODRkZDg2ZWRkZTIxOTY5NzBmYzdiMzBlMTJkZGRhNTk1M2QzMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODFmMWRlNTgxZDIwMDM2Njk5ZTg3ODA5NzY0NWZkYjRjODQxMDVlYWQ1YjI2
|
10
|
+
YTQ4OWExZTIzODJmMTI5YWVjYmMyYjUxNzczZDYxNjQ1OWM1YmY2YTA0ZWYw
|
11
|
+
N2RjY2Q4M2JkZDBmZjYyYjdmZjllMmRhZDYwMDEyZTZhODg5ZmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2NlN2YwZDI3MDMzM2NjZjkxMzBlNjMyNzE4ODQ1YzUxOGRlODU1M2QxODJj
|
14
|
+
ZGVkZDE5OGRkYTQ0MWViMjUwNWMxZGQ3YjUzYThmM2IyZThkYzMwZjViZjUz
|
15
|
+
NTZlMjcxMGEyMzRjNDJiYWIwNjc0ODdhY2UyYmY4ZjUwZDhjZTU=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.4
|
data/lib/buildmeister/project.rb
CHANGED
data/lib/lighthouse/project.rb
CHANGED
@@ -46,8 +46,9 @@ module Lighthouse
|
|
46
46
|
with_json_response( tickets_resource.get(params: {q: query}, accept: 'json') ) do |r|
|
47
47
|
(r['tickets'] || []).map do |t|
|
48
48
|
attrs = t['ticket']
|
49
|
+
id = attrs['number']
|
49
50
|
|
50
|
-
Lighthouse::Ticket.new(attrs)
|
51
|
+
Lighthouse::Ticket.new(tickets_resource[id], attrs)
|
51
52
|
end
|
52
53
|
end
|
53
54
|
end
|
@@ -56,7 +57,7 @@ module Lighthouse
|
|
56
57
|
# easy to write.
|
57
58
|
def find_tickets(*ids)
|
58
59
|
ids.map do |id|
|
59
|
-
|
60
|
+
tickets(id).first
|
60
61
|
end.compact
|
61
62
|
end
|
62
63
|
|
data/lib/lighthouse/ticket.rb
CHANGED
@@ -1,15 +1,30 @@
|
|
1
1
|
module Lighthouse
|
2
2
|
class Ticket
|
3
3
|
attr_reader :id, :name
|
4
|
+
attr_accessor :state
|
4
5
|
|
5
|
-
def initialize(attrs)
|
6
|
-
@
|
7
|
-
|
8
|
-
@
|
6
|
+
def initialize(resource, attrs)
|
7
|
+
@resource = resource
|
8
|
+
|
9
|
+
@id = attrs['number']
|
10
|
+
@name = attrs['name']
|
11
|
+
@tag = attrs['tag']
|
12
|
+
@state = attrs['state']
|
9
13
|
end
|
10
14
|
|
11
15
|
def tags
|
12
16
|
(@tag || '').split(',')
|
13
17
|
end
|
18
|
+
|
19
|
+
# For now, only allow state update
|
20
|
+
def to_json
|
21
|
+
{ticket: {
|
22
|
+
state: @state
|
23
|
+
}}
|
24
|
+
end
|
25
|
+
|
26
|
+
def save
|
27
|
+
@resource.put(to_json, content_type: 'text/json', accept: 'json')
|
28
|
+
end
|
14
29
|
end
|
15
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildmeister
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leigh Caplan
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
118
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.1.
|
119
|
+
rubygems_version: 2.1.9
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Dead simple tools for managing Lighthouse and Git deployment workflow
|