rallytastic 1.2.8 → 1.3.0
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.
- data/.bundle/config +2 -0
- data/.rvmrc +1 -0
- data/VERSION +1 -1
- data/lib/story.rb +19 -2
- data/lib/tasks/scraper.thor +1 -1
- data/rallytastic.gemspec +5 -3
- metadata +7 -5
data/.bundle/config
ADDED
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm ruby-1.9.2-head@rallytastic
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/lib/story.rb
CHANGED
@@ -15,6 +15,8 @@ class Story
|
|
15
15
|
field :updated_on, :type => Date
|
16
16
|
field :description
|
17
17
|
field :notes
|
18
|
+
field :initiative
|
19
|
+
field :size
|
18
20
|
field :formatted_id
|
19
21
|
field :accepted_on, :type => DateTime
|
20
22
|
field :blocked, :type => Boolean
|
@@ -26,11 +28,13 @@ class Story
|
|
26
28
|
field :theme
|
27
29
|
field :revision_history_uri
|
28
30
|
field :rally_hash, :type => Hash
|
29
|
-
|
31
|
+
field :is_mmf, :type => Boolean
|
30
32
|
field :sized_on, :type => DateTime
|
31
33
|
field :prioritized_on, :type => DateTime
|
32
34
|
field :started_on, :type => DateTime
|
33
35
|
field :completed_on, :type => DateTime
|
36
|
+
field :cycle_time
|
37
|
+
field :deploy_cycle_time
|
34
38
|
|
35
39
|
field :accepted_points
|
36
40
|
field :unaccepted_points
|
@@ -41,6 +45,15 @@ class Story
|
|
41
45
|
referenced_in :parent, :class_name => "Story", :inverse_of => :children
|
42
46
|
references_many :children, :class_name => "Story", :inverse_of => :parent
|
43
47
|
|
48
|
+
def actionable_children
|
49
|
+
children = self.children
|
50
|
+
if children.size > 0
|
51
|
+
children.collect{|s| s.actionable_children}
|
52
|
+
else
|
53
|
+
[self]
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
44
57
|
def epic
|
45
58
|
if self.parent
|
46
59
|
return parent.epic
|
@@ -114,6 +127,7 @@ class Story
|
|
114
127
|
from_rally :rally_uri, :_ref
|
115
128
|
from_rally :name
|
116
129
|
from_rally :notes
|
130
|
+
from_rally :is_mmf, :IsMMF
|
117
131
|
from_rally :created_on, :CreationDate
|
118
132
|
from_rally :description
|
119
133
|
from_rally :formatted_id, :FormattedID
|
@@ -122,10 +136,13 @@ class Story
|
|
122
136
|
from_rally :blocked
|
123
137
|
from_rally :plan_estimate, :PlanEstimate
|
124
138
|
from_rally :rank
|
139
|
+
from_rally :size
|
125
140
|
from_rally :schedule_state, :ScheduleState
|
126
141
|
from_rally :requested_due_date, :RequestedDueDate
|
142
|
+
from_rally :cycle_time, :DevCycleTime
|
143
|
+
from_rally :deploy_cycle_time, :DeployCycleTime
|
127
144
|
from_rally :theme
|
128
|
-
|
145
|
+
p @rally_hash
|
129
146
|
parse_ref :revision_history_uri, @rally_hash["RevisionHistory"]
|
130
147
|
self.refresh_points
|
131
148
|
self.save
|
data/lib/tasks/scraper.thor
CHANGED
@@ -22,7 +22,7 @@ class Scraper < Thor
|
|
22
22
|
desc "update_non_stories", "The scrape:stroies task creates shell iterations and projects for any that it doesn't know about yet. This task looks for those, and pull their information down from Rally"
|
23
23
|
def update_non_stories
|
24
24
|
Iteration.all(:conditions => {:name => nil, :rally_uri.ne => nil}).each{|i| i.refresh; i.associate}
|
25
|
-
Project.all(:conditions => {:name => nil, :rally_uri.ne => nil}).each{|s| s.refresh;
|
25
|
+
Project.all(:conditions => {:name => nil, :rally_uri.ne => nil}).each{|s| s.refresh; s.associate}
|
26
26
|
end
|
27
27
|
|
28
28
|
desc "revisions iteration_name", "Get the revisions for stories hanging off an iteration"
|
data/rallytastic.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rallytastic}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Matt Clark"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-14}
|
13
13
|
s.description = %q{longer description of your gem}
|
14
14
|
s.email = %q{winescout@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -17,8 +17,10 @@ Gem::Specification.new do |s|
|
|
17
17
|
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
-
".
|
20
|
+
".bundle/config",
|
21
|
+
".document",
|
21
22
|
".gitignore",
|
23
|
+
".rvmrc",
|
22
24
|
"Gemfile",
|
23
25
|
"Gemfile.lock",
|
24
26
|
"LICENSE",
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 1
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 1.
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
version: 1.3.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Matt Clark
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-09-14 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -107,8 +107,10 @@ extra_rdoc_files:
|
|
107
107
|
- LICENSE
|
108
108
|
- README.rdoc
|
109
109
|
files:
|
110
|
+
- .bundle/config
|
110
111
|
- .document
|
111
112
|
- .gitignore
|
113
|
+
- .rvmrc
|
112
114
|
- Gemfile
|
113
115
|
- Gemfile.lock
|
114
116
|
- LICENSE
|
@@ -160,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
162
|
requirements:
|
161
163
|
- - ">="
|
162
164
|
- !ruby/object:Gem::Version
|
163
|
-
hash:
|
165
|
+
hash: 453335844523497959
|
164
166
|
segments:
|
165
167
|
- 0
|
166
168
|
version: "0"
|