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: 74cb8d292f6a24d8229db1785ba9911e31b88a73dd102fb192266ed12834cdfb
4
- data.tar.gz: 533e6747c1b5262c3a417f4bff11297dc9401fb116cd3c4dc142c3b1c0e13540
3
+ metadata.gz: 7cdbf7bd3018268faebfd9301f055ea1ab48c2c98bb6a1327000f6677f45f3da
4
+ data.tar.gz: 7b4cf7884dd2bbc167f4ec8434f5e07aaa6c8ee503a5fb3ac9fd13460deec80a
5
5
  SHA512:
6
- metadata.gz: 525c93fe98d0301a321b1fbfa6c0133be6fdab762943d46d751cb5d50ed8ec59ee563c292afee118c66aa72c71cdd000e4dcff20b82de68aa9c33012c9203252
7
- data.tar.gz: 7e8be2aa9d3f174d77a49a70430a7282203beadb12ac3672ccf4e1220a8091084c5a433308d96da413f2212e1f4196ae4a54970635b216d4fe98b7cba60d01f4
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, :last_in_progress_history, :first_in_review_history, :last_closed_history
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
@@ -6,6 +6,6 @@ module Dev
6
6
  # Use 'v.v.v.pre.alpha.v' for pre-release vesions
7
7
  # Use 'v.v.v.beta.v for beta versions
8
8
  # Use semantic versioning for any releases (https://semver.org/)
9
- VERSION = '2.1.27.pre.alpha.3'.freeze
9
+ VERSION = '2.1.28.pre.alpha.1'.freeze
10
10
  end
11
11
  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.27.pre.alpha.3
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-02-26 00:00:00.000000000 Z
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