firespring_dev_commands 2.1.27.pre.alpha.3 → 2.1.28.pre.alpha.1
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: 7cdbf7bd3018268faebfd9301f055ea1ab48c2c98bb6a1327000f6677f45f3da
|
4
|
+
data.tar.gz: 7b4cf7884dd2bbc167f4ec8434f5e07aaa6c8ee503a5fb3ac9fd13460deec80a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30e7bc37e599f73d3f01287600466ce84fdf8ec2bc5da20f99b50c6cea26c3d4ee6b8c156749ea89739b2ee96cee44ade8c53f079076bb3d455d31750e38e6ac
|
7
|
+
data.tar.gz: 6c619223341b4379007a3c4826d9b2c6684a67c740847a528520931534b31d1296e871665b939c0ae99481fec6eff2e554afc7049901a832da6524fc3e8ece42
|
@@ -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
|
@@ -31,3 +31,17 @@ module Dev
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
34
|
+
|
35
|
+
module Dev
|
36
|
+
class Common
|
37
|
+
# Class which returns information about the current platform
|
38
|
+
class Platform < Platform
|
39
|
+
# Initializer for the deprecated class
|
40
|
+
# @deprecated Please use {Dev::Platform#new} instead
|
41
|
+
def initialize
|
42
|
+
warn '[DEPRECATION] `Dev::Common::Platform#new` is deprecated. Please use `Dev::Platform#new` instead.'
|
43
|
+
super
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
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: 2.1.
|
4
|
+
version: 2.1.28.pre.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -353,6 +353,7 @@ files:
|
|
353
353
|
- lib/firespring_dev_commands/jira/histories.rb
|
354
354
|
- lib/firespring_dev_commands/jira/history.rb
|
355
355
|
- lib/firespring_dev_commands/jira/issue.rb
|
356
|
+
- lib/firespring_dev_commands/jira/parent.rb
|
356
357
|
- lib/firespring_dev_commands/jira/project.rb
|
357
358
|
- lib/firespring_dev_commands/jira/user.rb
|
358
359
|
- lib/firespring_dev_commands/jira/user/type.rb
|