devops_assist 0.3.4 → 0.3.5

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: 6b5575312117dafd5eca9cae17c2671652bd9ed3bfd1a82441a972267aa6da04
4
- data.tar.gz: c54728232443d37e0de8b723bb92c63463fb873353501efdfb89965ecd84f997
3
+ metadata.gz: 25dcd969f150b40b494562e4a2f4247fa93839857452687d84dce8727fdc12cf
4
+ data.tar.gz: 2ba0fc856e8dc5aacbaa63119a81f8d686321e6766fc1894ae2a1e7298ac3327
5
5
  SHA512:
6
- metadata.gz: 8a2cb7d4992b9faa39f34e905b8d3ac077d70147553f9f54c3e4917e49cfd58048d3a5f3a137a6560a626204cd318c66950ee40643a5ca56ca72e674892ede04
7
- data.tar.gz: 833da63cc73361babc7a0dcbe1374d46a7d55d0fc08cb957f53b45420f39e7c2e6b63eb07fea7f53afeabb3461aa9d49a1f6ddf1e81cf6e22fb01c300b197d89
6
+ metadata.gz: 3d2102fef7458504a64dec4a66f776127d9d712d2507a005327bd4e27085da9638eb22d343b96035ef36e567067f782c2b9a3d04bae8174f5a73f9e0fcdef94d
7
+ data.tar.gz: 448b1b76f9f4faa3dc9e66096cd681b087dc3e74a590da0a557d0ef58acf7be10602cf6557831a09f4f9de07df8cec48bd24a74730df0b4f849011e31950d3d4
data/.release_history.yml CHANGED
@@ -24,3 +24,5 @@ devops_assist:
24
24
  :timestamp: 1679814741.9125335
25
25
  - :version: 0.3.4
26
26
  :timestamp: 1679814912.2051551
27
+ - :version: 0.3.4
28
+ :timestamp: 1679814952.708086
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devops_assist (0.3.1)
4
+ devops_assist (0.3.5)
5
5
  git_cli
6
6
  git_cli_prompt
7
7
  gvcs
@@ -14,35 +14,35 @@ GEM
14
14
  specs:
15
15
  base58 (0.2.3)
16
16
  diff-lcs (1.5.0)
17
- git_cli (0.10.0)
17
+ git_cli (0.11.2)
18
18
  gvcs
19
19
  ptools (~> 1.4.0)
20
20
  teLogger
21
21
  toolrack
22
- git_cli_prompt (0.3.1)
22
+ git_cli_prompt (0.3.2)
23
23
  teLogger
24
24
  toolrack
25
25
  tty-prompt
26
- gvcs (0.1.0)
26
+ gvcs (0.1.1)
27
27
  pastel (0.8.0)
28
28
  tty-color (~> 0.5)
29
- ptools (1.4.2)
29
+ ptools (1.4.3)
30
30
  rake (13.0.6)
31
- rspec (3.11.0)
32
- rspec-core (~> 3.11.0)
33
- rspec-expectations (~> 3.11.0)
34
- rspec-mocks (~> 3.11.0)
35
- rspec-core (3.11.0)
36
- rspec-support (~> 3.11.0)
37
- rspec-expectations (3.11.1)
31
+ rspec (3.12.0)
32
+ rspec-core (~> 3.12.0)
33
+ rspec-expectations (~> 3.12.0)
34
+ rspec-mocks (~> 3.12.0)
35
+ rspec-core (3.12.1)
36
+ rspec-support (~> 3.12.0)
37
+ rspec-expectations (3.12.2)
38
38
  diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.11.0)
40
- rspec-mocks (3.11.1)
39
+ rspec-support (~> 3.12.0)
40
+ rspec-mocks (3.12.4)
41
41
  diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.11.0)
43
- rspec-support (3.11.1)
44
- teLogger (0.2.0)
45
- toolrack (0.19.1)
42
+ rspec-support (~> 3.12.0)
43
+ rspec-support (3.12.0)
44
+ teLogger (0.2.2)
45
+ toolrack (0.20.2)
46
46
  base58
47
47
  tty-color (0.6.0)
48
48
  tty-cursor (0.7.1)
@@ -1,5 +1,5 @@
1
1
 
2
2
 
3
3
  module DevopsAssist
4
- VERSION = "0.3.4"
4
+ VERSION = "0.3.5"
5
5
  end
@@ -19,27 +19,28 @@ module DevopsAssist
19
19
  vv << vers[1]
20
20
  vv << vers[0]
21
21
 
22
- vv << "Custom"
23
- vv << "Quit"
22
+ #vv << "Custom"
23
+ #vv << "Quit"
24
24
  #vers << [ \
25
25
  # "Maybe not now..." \
26
26
  # ,"Nah, forget it..." \
27
27
  #].sample
28
28
 
29
29
  vsel = pmt.select(" Please select one of the versions below:") do |menu|
30
- menu.choice "#{last_version} (current version - no change in version)", :no_change
31
30
  #vers.each do |v|
32
31
  vv.each do |v|
33
32
  menu.choice v
34
33
  end
34
+
35
+ menu.choice "#{last_version} (current version - no change in version)", last_version
36
+ menu.choice "Custom version number", :custom
37
+ menu.choice "Abort", :abort
35
38
  end
36
39
 
37
40
  case vsel
38
- when :no_change
39
- vsel = last_version
40
- when "Custom"
41
+ when :custom
41
42
  vsel = pmt.ask(" Please provide custom version no:", required: true)
42
- when vv[-1]
43
+ when :abort
43
44
  raise DevopsAssist::Error, " Aborted. Have a nice day! "
44
45
  end
45
46
 
@@ -25,7 +25,6 @@ namespace :devops do
25
25
 
26
26
  pmt = TTY::Prompt.new
27
27
 
28
-
29
28
  # let's mark the session to allow automated context switching
30
29
  ENV[DevopsAssist::EnvKeyGemReleasing] = "true"
31
30
 
@@ -36,7 +35,7 @@ namespace :devops do
36
35
  # select version
37
36
  #ver = DevopsAssist::VersionManager.prompt_version(gemName, rl.last_version_number(gemName))
38
37
  ver = DevopsAssist::VersionManager.prompt_version(gemName, gu.gem_version_string)
39
- pmt.say " Version no. '#{ver}' chosen", color: :yellow
38
+ pmt.say " Version '#{ver}' is chosen", color: :yellow
40
39
 
41
40
  selVerFile = gu.update_gem_version(ver) do |*args|
42
41
  ops = args.first
@@ -57,7 +56,7 @@ namespace :devops do
57
56
  res = Rake::Task["devops:vcs:checkin_changes"].execute
58
57
  pmt.say " Workspace check in done\n", color: :yellow
59
58
 
60
- proceed = pmt.yes?(" Proceed to build the gem? ")
59
+ proceed = pmt.yes?(" Proceed to build the gem? ", color: :yellow)
61
60
  raise GitCliPrompt::UserAborted if not proceed
62
61
 
63
62
 
@@ -115,6 +114,13 @@ namespace :devops do
115
114
 
116
115
  Rake::Task["devops:vcs:push_source_code"].execute({ root: root, pmt: pmt })
117
116
 
117
+ install = pmt.yes?(" Install the released gem to local environment? ")
118
+ if install
119
+ STDOUT.puts `gem install pkg/#{gemName}-#{ver}.gem`
120
+ end
121
+
122
+ pmt.say " Gem #{gemName} version #{ver} released successfully ", color: :green
123
+
118
124
  rescue GitCliPrompt::UserAborted, GitCliPrompt::UserChangedMind, TTY::Reader::InputInterrupt
119
125
  STDOUT.puts
120
126
  rescue Exception => ex
data/tasks/vcs.rake CHANGED
@@ -7,7 +7,12 @@ namespace :devops do
7
7
  desc "Checking in changes of source code"
8
8
  task :checkin_changes do
9
9
  cli = DevopsAssist::Vcs::Git::CliPrompt.new
10
- cli.commit(Dir.getwd)
10
+ cli.commit(Dir.getwd) do |ops|
11
+ case ops
12
+ when :raise_to_parent
13
+ true
14
+ end
15
+ end
11
16
  end
12
17
 
13
18
  desc "Checking in files generated by devops assist"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devops_assist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Liaw