sfctl 0.0.3 → 0.0.4

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: f1109b58130d490175bb38ccb1db428be1c02d377b8faf0f509a783468028f68
4
- data.tar.gz: 3e1b593dac5dcea2aa4cba66d4a918b375db86cd91a491be58b2254034295e60
3
+ metadata.gz: 43943ce5d78b2cf30c6f6e171bd5ba8568adbce169ee8a9f66a64f1162b80ff8
4
+ data.tar.gz: 8960aea77d4cd2d90170005d275625435497a6685a835729728523d62d81ee4a
5
5
  SHA512:
6
- metadata.gz: 3db0dae715ec0afafc5aaa6439025f41d9f52433298d27161686ef1fe8d4ecc66b04fef0b2662694796506f8c92d7f752829148ad8d8687c59eb631a821e8e6f
7
- data.tar.gz: 7391aa72c018bb25f28a1aa999e72892a9412d9e9964c8903954382a19148f31164ebf9d677995ea08536a2addba70315e162bb0bf3d77bcc329e07e0bfcf05d
6
+ metadata.gz: b48ecdfda4052022ad25b1e8008de8148c29e3a88e5b36b33261a597d58fcb49e6ee98b7d41c63443d01ed652d7c304e68a4622a119e707b1a8afe427f4271f2
7
+ data.tar.gz: 332ce44447b8f1d2b020eda9b3f47c982a63a8bc4c119432446e93d101b19516fe34934e970dbfd5123cd3365fd4cb98d784b55e30f67011599095688d8e983f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sfctl (0.0.2)
4
+ sfctl (0.0.4)
5
5
  faraday (~> 1.0)
6
6
  pastel (~> 0.7)
7
7
  rake (~> 12.0)
@@ -47,6 +47,9 @@ module Sfctl
47
47
 
48
48
  def assignments_to_sync
49
49
  assignments = assignments_from_connections
50
+
51
+ return assignments if @options['all']
52
+
50
53
  assignment_id = select_assignment(assignments)
51
54
 
52
55
  return assignments if assignment_id == 'all'
@@ -12,6 +12,8 @@ module Sfctl
12
12
  desc: 'Check the data first respectively prevent data from being overwritten'
13
13
  method_option :touchy, aliases: '-touchy', type: :boolean, default: false,
14
14
  desc: 'The synchronizsation will be skipped if there is preexisting data.'
15
+ method_option :all, aliases: '-all', type: :boolean, default: false,
16
+ desc: 'Skip selecting assignments and sync all of them.'
15
17
  long_desc <<~HEREDOC
16
18
  It will gets for each assignment the next reporting segment from starfish.team
17
19
  and loads the corresponding time reports from the provider.
data/lib/sfctl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sfctl
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sfctl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serhii Rudik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-04-15 00:00:00.000000000 Z
12
+ date: 2020-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday