devops_assist 0.3.6 → 0.3.8

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: d4333f8e311a05e478f0720775350f05e557014a7e64ac1c8176d9a2742a1d5e
4
- data.tar.gz: 1333d87b97be084a3213810f51fea601389c9b0d56f5eb4a6f9c1e016f68be74
3
+ metadata.gz: b375ac72940991bf558a2549d49c28791b45cc1af4ec2ad94f4ab61e7b445463
4
+ data.tar.gz: 5537c6060845090b0f3fc25a57ea6c373eac4b3581b1f32272de11dd87c495ab
5
5
  SHA512:
6
- metadata.gz: 02f42dac3f70baabb42f623ffb46c6d06c3facb9837c183bb0709c3f4cb6989d334a431f65971151980cdc36c81c269a04023afc009e0f2f734032cf7b6f416e
7
- data.tar.gz: 04cc0bfb01201d31a3fa936fc660d17e4cb494ce40ce30d1ac3e2c09bcc939af24c0ef85e267ceda4c3bafe313b4634a1375ee14b625dd0f5bbeae383fab5286
6
+ metadata.gz: 778e1d42342f77f56579250dc10b2ce8fc45dd81f4b311e4865c80a81be3f6bc6d087ac7cab8a739fd965f5aebad9377904a419b72547b8a54666920f48b97f6
7
+ data.tar.gz: eef636112801d365f3185d97c1d8dcfb7f7e6bb5ecc2ce0f1138218770d5518857c5cbccecdf479d858b9da6a89512d7bcffe2b899274e8688beb1d30b611162
data/.release_history.yml CHANGED
@@ -28,3 +28,7 @@ devops_assist:
28
28
  :timestamp: 1679814952.708086
29
29
  - :version: 0.3.5
30
30
  :timestamp: 1679817289.8002794
31
+ - :version: 0.3.6
32
+ :timestamp: 1679894660.0175862
33
+ - :version: 0.3.7
34
+ :timestamp: 1679896577.1906195
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devops_assist (0.3.6)
4
+ devops_assist (0.3.8)
5
5
  git_cli
6
6
  git_cli_prompt
7
7
  gvcs
@@ -1,5 +1,5 @@
1
1
 
2
2
 
3
3
  module DevopsAssist
4
- VERSION = "0.3.6"
4
+ VERSION = "0.3.8"
5
5
  end
@@ -14,6 +14,20 @@ namespace :devops do
14
14
 
15
15
  gu = GemUtils.new(root)
16
16
 
17
+ begin
18
+
19
+ pmt = TTY::Prompt.new
20
+
21
+ pmt.puts "\n\n DevopsAssist version #{DevopsAssist::VERSION}"
22
+ pmt.puts " Initialization of workspace"
23
+ pmt.puts
24
+
25
+
26
+ rescue TTY::Reader::InputInterrupt
27
+ rescue Exception => ex
28
+ pmt.puts "\n Aborted"
29
+ end
30
+
17
31
  end
18
32
 
19
33
  desc "Release gem file project"
@@ -35,7 +49,7 @@ namespace :devops do
35
49
  # select version
36
50
  #ver = DevopsAssist::VersionManager.prompt_version(gemName, rl.last_version_number(gemName))
37
51
  ver = DevopsAssist::VersionManager.prompt_version(gemName, gu.gem_version_string)
38
- pmt.say " Version '#{ver}' is chosen", color: :yellow
52
+ pmt.say " Version '#{ver}' is chosen\n", color: :yellow
39
53
 
40
54
  selVerFile = gu.update_gem_version(ver) do |*args|
41
55
  ops = args.first
@@ -51,7 +65,7 @@ namespace :devops do
51
65
  # Add file changed by system into git first
52
66
  miscFiles = []
53
67
  miscFiles << selVerFile # version.rb
54
- #miscFiles << DevopsAssist::ReleaseLogger::LOG_NAME # release_history.yml
68
+ miscFiles << DevopsAssist::ReleaseLogger::LOG_NAME # release_history.yml
55
69
  #miscFiles << 'Gemfile.lock'
56
70
  Rake::Task["devops:vcs:checkin_misc_files"].execute({ root: root, files: miscFiles, version: ver })
57
71
  #pmt.say " Updated files during release prep have committed into version control", color: :yellow
@@ -63,7 +77,7 @@ namespace :devops do
63
77
  # the build will failed to find the files and throw exception
64
78
  # However, there are files that will changed after build i.e Gemfile.lock
65
79
  res = Rake::Task["devops:vcs:checkin_changes"].execute
66
- pmt.say " Workspace check in done\n", color: :yellow
80
+ pmt.say " Workspace check in done\n\n", color: :yellow
67
81
 
68
82
  proceed = pmt.yes?(" Proceed to build the gem? ", color: :yellow)
69
83
  raise GitCliPrompt::UserAborted if not proceed
data/tasks/gem.rake CHANGED
@@ -64,9 +64,9 @@ namespace :devops do
64
64
 
65
65
  if res.respond_to?(:success?)
66
66
  if res.success?
67
- pmt.puts
68
- pmt.puts out, color: :yellow
69
- pmt.puts
67
+ pmt.puts "\n"
68
+ pmt.say out, color: :yellow
69
+ pmt.puts "\n"
70
70
  pmt.say " Gem published!\n", color: :yellow
71
71
  else
72
72
  pmt.say " Gem publishing failed. Return message :\n#{out}", color: :red
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.6
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Liaw