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: 27d90489f25464c895ec072920e9822f6e38586c5dfcdd8621cfbecf4838429b
4
- data.tar.gz: 31f7ecdba94899aacb1cdab3f073b3a30982bf4f566ce860836e72a179e87d6c
3
+ metadata.gz: 74a37674c322ba4923bcc2c3a71e1f092f8d6f7c8fed161ec75de3b59abd9fb6
4
+ data.tar.gz: 5f8172b903826380c524d6c8538064ef0873425924a978fb7bcc55565875070d
5
5
  SHA512:
6
- metadata.gz: 9af3d66c489c01f8dc486ed55630761fe1e960979090694164cff63939ca254fc5e53bab01ff833d24ed15aa62a5764aa8d647ba65f3374d3b37d55be5501e06
7
- data.tar.gz: e616f81c891cb6feb623f8e4004ca16181dfd6e4073bcc01fd4b4b38781fccd803983aa73d85889360ec08aed7de40e26f4747863f939e9c4b2c1accebcdb401
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, :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
@@ -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 = '3.0.0.pre.alpha.4'.freeze
9
+ VERSION = '3.0.0.pre.alpha.5'.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: 3.0.0.pre.alpha.4
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-13 00:00:00.000000000 Z
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