firespring_dev_commands 2.1.10.pre.alpha.5 → 2.1.11.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: 56bf08e32560ceaa334b8d40fca0488b851527a472b36e5338b49084d3da295b
|
4
|
+
data.tar.gz: a54b0aaa2fd492e7a8ac2564fddec64458a0b2c742759b67ea8fc3758d7704ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c319501a7c3dbad17908f5d1af9c7b63835a676eefc182cf11a054912dcda5b2b2b3430df4dcfeabed834c5146572d63bd5aaca99158c8cf2a64632112e13874
|
7
|
+
data.tar.gz: bc6544562f620053912cc68772892c24d20dbcea9d171132518ec8f1a81adc9344ae8fc4d2bdfaf4712bbe7d57fe02d26e97828f5ba0ab0752fa5bb4a6f1f0c3
|
@@ -100,6 +100,11 @@ module Dev
|
|
100
100
|
def filter_by_entity_ids(entity_ids)
|
101
101
|
self << "(Assignable.Id in ('#{entity_ids.join("', '")}'))" unless entity_ids.nil? || entity_ids.empty?
|
102
102
|
end
|
103
|
+
|
104
|
+
def filter_by_deploy_date(start_date, end_date = nil)
|
105
|
+
self << "('CustomFields.Deploy Date' gt '#{start_date}')" if start_date
|
106
|
+
self << "('CustomFields.Deploy Date' lt '#{end_date}')" if end_date
|
107
|
+
end
|
103
108
|
end
|
104
109
|
end
|
105
110
|
end
|
@@ -2,12 +2,28 @@ module Dev
|
|
2
2
|
class TargetProcess
|
3
3
|
# Class containing release information
|
4
4
|
class Release
|
5
|
-
|
5
|
+
# The resource type for the api endpoint
|
6
|
+
RESOURCE_TYPE = 'Release'.freeze
|
7
|
+
|
8
|
+
# The api path for release requests
|
9
|
+
PATH = '/Releases'.freeze
|
10
|
+
|
11
|
+
attr_accessor :id, :type, :name, :start_date, :end_date, :custom_fields
|
6
12
|
|
7
13
|
def initialize(data)
|
8
14
|
@id = data['Id']
|
9
15
|
@type = data['ResourceType']
|
10
16
|
@name = data['Name']
|
17
|
+
@start_date = parse_time(data['StartDate'])
|
18
|
+
@end_date = parse_time(data['EndDate'])
|
19
|
+
@custom_fields = data['CustomFields']
|
20
|
+
end
|
21
|
+
|
22
|
+
# Parse the dot net time representation into something that ruby can use
|
23
|
+
def parse_time(string)
|
24
|
+
return nil unless string && !string.empty?
|
25
|
+
|
26
|
+
Time.at(string.slice(6, 10).to_i)
|
11
27
|
end
|
12
28
|
end
|
13
29
|
end
|
@@ -61,6 +61,18 @@ module Dev
|
|
61
61
|
}
|
62
62
|
end
|
63
63
|
|
64
|
+
# Perform a query to the release api path
|
65
|
+
# Call the given block (if present) with each release
|
66
|
+
# Return all releases
|
67
|
+
def releases(query, &)
|
68
|
+
[].tap do |ary|
|
69
|
+
get(Release::PATH, query) do |result|
|
70
|
+
ary << Release.new(result)
|
71
|
+
end
|
72
|
+
ary.each(&)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
64
76
|
# Perform a query to the user story api path
|
65
77
|
# Call the given block (if present) with each user story
|
66
78
|
# Return all user stories
|
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.11.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: 2023-10-
|
11
|
+
date: 2023-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|