firespring_dev_commands 2.1.30 → 2.1.31.pre.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f8def75b65efe4ae6fa093c1454ebe33fab521fbf073d9de8aa95b240de76bd
|
4
|
+
data.tar.gz: 44f8e25c71193439ae26d7c71bb7dd0beb3245a0727b79016322d753744e9e92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 710f2c34fc81e046453c53cd60474b0057f8f32ff073c7d8e54c1837d051307fa78bf8b2897f125ebffc476bde16f74c072222f3c034cd9095efa9df9a2557e3
|
7
|
+
data.tar.gz: 56eb12f5c3fd36be619c8a9014a86a9a55fb868ba848ee5f25dff03436dee5f1070cebf95427be454ef86b1d85b1cc15319f2f51d0724be5b900a9428f74d8d5
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Dev
|
2
|
+
class TargetProcess
|
3
|
+
class Time
|
4
|
+
# The resource type for the api endpoint
|
5
|
+
RESOURCE_TYPE = 'Time'.freeze
|
6
|
+
|
7
|
+
# The api path for team assignment requests
|
8
|
+
PATH = '/Time'.freeze
|
9
|
+
|
10
|
+
attr_accessor :data, :id, :type, :description, :hours, :date, :story, :user
|
11
|
+
|
12
|
+
def initialize(data)
|
13
|
+
@data = data
|
14
|
+
@id = data['Id']
|
15
|
+
@type = data['ResourceType']
|
16
|
+
@description = data['Description']
|
17
|
+
@hours = data['Spent']
|
18
|
+
@date = parse_time(data['Date'])
|
19
|
+
@story = UserStory.new(data['Assignable']) if data['Assignable']
|
20
|
+
@user = User.new(data['User']) if data['User']
|
21
|
+
end
|
22
|
+
|
23
|
+
# Parse the dot net time representation into something that ruby can use
|
24
|
+
def parse_time(string)
|
25
|
+
return nil unless string && !string.empty?
|
26
|
+
|
27
|
+
::Time.at(string.slice(6, 10).to_i)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -113,6 +113,15 @@ module Dev
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
+
def times(query, &)
|
117
|
+
[].tap do |ary|
|
118
|
+
get(Time::PATH, query) do |result|
|
119
|
+
ary << Time.new(result)
|
120
|
+
end
|
121
|
+
ary.each(&)
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
116
125
|
# Perform a get request to the given path using the given query
|
117
126
|
# Call the given block (if present) with each piece of data
|
118
127
|
# Return all pieces of data
|
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.31.pre.alpha.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -380,6 +380,7 @@ files:
|
|
380
380
|
- lib/firespring_dev_commands/target_process/release.rb
|
381
381
|
- lib/firespring_dev_commands/target_process/team.rb
|
382
382
|
- lib/firespring_dev_commands/target_process/team_assignment.rb
|
383
|
+
- lib/firespring_dev_commands/target_process/time.rb
|
383
384
|
- lib/firespring_dev_commands/target_process/user.rb
|
384
385
|
- lib/firespring_dev_commands/target_process/user_story.rb
|
385
386
|
- lib/firespring_dev_commands/target_process/user_story_history.rb
|
@@ -412,9 +413,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
412
413
|
version: '3.1'
|
413
414
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
414
415
|
requirements:
|
415
|
-
- - "
|
416
|
+
- - ">"
|
416
417
|
- !ruby/object:Gem::Version
|
417
|
-
version:
|
418
|
+
version: 1.3.1
|
418
419
|
requirements: []
|
419
420
|
rubygems_version: 3.4.10
|
420
421
|
signing_key:
|