firespring_dev_commands 2.1.29 → 2.1.31.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: 3c906f4f5c8fba67de28e014fcd8cd890f7e87e2ca1860029352787085a6833e
|
4
|
+
data.tar.gz: fffeb6dde56810021bb1d93923a7c6db6852520cab10375a82beed31fefc48e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3830fe0dae0eb406cee7a0ac7b2d669ae09255ab7c0c52b4895894e8e7e8125bbc88495c02acfd990992526aee3051f3dbbe2b848e814eb858e94f8e46e9da77
|
7
|
+
data.tar.gz: fe13bf7766b333ac5cf4f912bf753ac88cf78503224a3abfc9d5751ca0301885bb08b0ff97508afc9491a1f537dbb2962519e6dd5890e28672fbe99a486192ce
|
@@ -100,8 +100,8 @@ module Dev
|
|
100
100
|
# Receive a string from the user on stdin unless non_interactive is set to true
|
101
101
|
# If a default value was specified and no answer was given, return the default
|
102
102
|
def gather_input(default: nil)
|
103
|
-
answer = $stdin.gets
|
104
|
-
answer.to_s.strip
|
103
|
+
answer = $stdin.gets unless ENV['NON_INTERACTIVE'] == 'true'
|
104
|
+
answer = answer.to_s.strip
|
105
105
|
return default if default && answer.empty?
|
106
106
|
|
107
107
|
answer
|
@@ -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,17 @@ 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
|
+
puts ary.first.inspect
|
121
|
+
exit 1
|
122
|
+
end
|
123
|
+
ary.each(&)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
116
127
|
# Perform a get request to the given path using the given query
|
117
128
|
# Call the given block (if present) with each piece of data
|
118
129
|
# 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.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-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:
|