release-gem 0.1.14 → 0.1.16
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 +4 -4
- data/Gemfile.lock +1 -1
- data/exe/release-gem-infect +2 -0
- data/lib/release/gem/release_infector.rb +8 -8
- data/lib/release/gem/version.rb +1 -1
- data/templates/standard_cli_flow.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2fdd5812b4826585c223a182864b12e6270688f1ac6157ceb9febfd63f6436d
|
4
|
+
data.tar.gz: 0dfc931a7f316ed244673ca1f28a4555d2730b5746598c101d768a34f43c4b8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1cfc176dbcad9ebd383bf074b3015e1fe300a783066b61b17f0b055da56e6c06309caed02f3751519fc62f004563cb41d3702e2e80ed9c71fd0b2544f3b385b
|
7
|
+
data.tar.gz: dac885279b99098f7b7d46eab1d165d7cbd773a25b0be2e7d392b1b8aeeb0da39f3d300eae8e4b482ce0fbf3af6147bfc316aa6b634a25599bcfeb1f1d7c56cd
|
data/Gemfile.lock
CHANGED
data/exe/release-gem-infect
CHANGED
@@ -22,7 +22,7 @@ module Release
|
|
22
22
|
if not is_release_gem_installed?
|
23
23
|
add_to_gemspec(&block)
|
24
24
|
Bundler.with_clean_env do
|
25
|
-
res = `cd #{@root} && bundle`
|
25
|
+
res = `cd #{@root} && bundle update 2>&1`
|
26
26
|
puts res
|
27
27
|
end
|
28
28
|
end
|
@@ -42,19 +42,19 @@ module Release
|
|
42
42
|
terminal = ""
|
43
43
|
Bundler.with_clean_env do
|
44
44
|
|
45
|
-
cmd = "cd #{@root} &&
|
45
|
+
cmd = "cd #{@root} && rake gem:release"
|
46
46
|
if block
|
47
|
-
terminal = block.call(:select_terminal, name: @name, options: poss)
|
47
|
+
terminal = block.call(:select_terminal, name: @name, options: poss) if block
|
48
48
|
if terminal != :skip
|
49
49
|
terminal = poss.first if is_empty?(terminal)
|
50
50
|
|
51
|
-
block.call(:new_terminal_launching, name: @name, terminal: terminal)
|
51
|
+
block.call(:new_terminal_launching, name: @name, terminal: terminal) if block
|
52
52
|
tu_new_terminal(terminal, cmd)
|
53
53
|
end
|
54
54
|
|
55
55
|
else
|
56
56
|
terminal = poss.first
|
57
|
-
block.call(:new_terminal_launching, name: @name, terminal: terminal)
|
57
|
+
block.call(:new_terminal_launching, name: @name, terminal: terminal) if block
|
58
58
|
tu_new_terminal(terminal, cmd)
|
59
59
|
end
|
60
60
|
|
@@ -121,7 +121,7 @@ module Release
|
|
121
121
|
f.puts " spec.add_development_dependency 'release-gem'"
|
122
122
|
f.puts "end"
|
123
123
|
end
|
124
|
-
block.call(:gemspec_updated, name: @name, gemspec: gs )
|
124
|
+
block.call(:gemspec_updated, name: @name, gemspec: gs ) if block
|
125
125
|
|
126
126
|
end # add_to_gemspec
|
127
127
|
|
@@ -141,13 +141,13 @@ RSpec::Core::RakeTask.new(:spec)
|
|
141
141
|
|
142
142
|
task default: :spec
|
143
143
|
END
|
144
|
-
block.call(:creating_new_rakefile, rakefile: rf )
|
144
|
+
block.call(:creating_new_rakefile, rakefile: rf ) if block
|
145
145
|
File.open(rf,"w") do |f|
|
146
146
|
f.write rfCont
|
147
147
|
end
|
148
148
|
else
|
149
149
|
|
150
|
-
block.call(:adding_to_rakefile, rakefile: rf )
|
150
|
+
block.call(:adding_to_rakefile, rakefile: rf ) if block
|
151
151
|
|
152
152
|
cont = File.read(rf)
|
153
153
|
FileUtils.mv(rf, "#{rf}.bak")
|
data/lib/release/gem/version.rb
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
require 'release/gem'
|
4
4
|
|
5
|
-
puts "\n Standard GEM CLI release flow version #{Release::Gem::VERSION}
|
5
|
+
puts "\n Standard GEM CLI release flow version #{Release::Gem::VERSION}".yellow
|
6
|
+
puts "\n Your current location : #{Dir.getwd}\n".yellow
|
6
7
|
|
7
8
|
Release::Gem.engine(:gem, root: Dir.getwd) do
|
8
9
|
|