firespring_dev_commands 3.0.0.pre.alpha.4 → 3.0.0.pre.alpha.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74a37674c322ba4923bcc2c3a71e1f092f8d6f7c8fed161ec75de3b59abd9fb6
|
4
|
+
data.tar.gz: 5f8172b903826380c524d6c8538064ef0873425924a978fb7bcc55565875070d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c142bc163404cb7aeb66a9311744a144b6700cb6bb1221ae9b6154b0092d9bd130e56bda0ef3580d3ca42f9118f83d1a3278db5ec53e5c84c3ac81803b645cd
|
7
|
+
data.tar.gz: 4adeb0e47c6e5df27836412d1e169093394d5f0c7d9b3a643318ae9312560890997b292a979d1556540bcfce81da42ef02d0628a65080742ec7b2a26d03dd3f8
|
@@ -5,11 +5,13 @@ module Dev
|
|
5
5
|
# Issue subtypes which do not map to a story type
|
6
6
|
NON_STORY_TYPES = ['epic', 'review', 'sub-task', 'code review sub-task', 'pre-deploy sub-task', 'deploy sub-task', 'devops sub-task'].freeze
|
7
7
|
|
8
|
-
attr_accessor :data, :project, :id, :title, :points, :assignee, :resolved_date, :histories,
|
8
|
+
attr_accessor :data, :project, :parent, :id, :title, :points, :assignee, :resolved_date, :histories,
|
9
|
+
:last_in_progress_history, :first_in_review_history, :last_closed_history
|
9
10
|
|
10
11
|
def initialize(data)
|
11
12
|
@data = data
|
12
13
|
@project = Jira::Project.new(data)
|
14
|
+
@parent = Jira::Parent.new(data) if data.respond_to?(:parent)
|
13
15
|
@id = data.key
|
14
16
|
@title = data.summary
|
15
17
|
@points = calculate_points(data)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Dev
|
2
|
+
class Jira
|
3
|
+
# Contains information on the Jira parent issue
|
4
|
+
class Parent
|
5
|
+
attr_accessor :data, :id, :title
|
6
|
+
|
7
|
+
def initialize(data)
|
8
|
+
@data = data.parent
|
9
|
+
@id = data.parent['key']
|
10
|
+
@title = data.parent['fields']['summary']
|
11
|
+
end
|
12
|
+
|
13
|
+
# Converts the jira parent object to a string representation
|
14
|
+
def to_s
|
15
|
+
"[#{id}] #{title}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firespring_dev_commands
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.pre.alpha.
|
4
|
+
version: 3.0.0.pre.alpha.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -354,6 +354,7 @@ files:
|
|
354
354
|
- lib/firespring_dev_commands/jira/histories.rb
|
355
355
|
- lib/firespring_dev_commands/jira/history.rb
|
356
356
|
- lib/firespring_dev_commands/jira/issue.rb
|
357
|
+
- lib/firespring_dev_commands/jira/parent.rb
|
357
358
|
- lib/firespring_dev_commands/jira/project.rb
|
358
359
|
- lib/firespring_dev_commands/jira/user.rb
|
359
360
|
- lib/firespring_dev_commands/jira/user/type.rb
|