release-gem 0.1.14 → 0.1.16

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: bf9c3c021566df9bd40e2806b3a2a7fb42675adaf55ee59e9382f23d94fb1e29
4
- data.tar.gz: 0fc2b9946640ee1d736bcca13f2e63917ef3f98e1ac8db032717f9560a1477a7
3
+ metadata.gz: c2fdd5812b4826585c223a182864b12e6270688f1ac6157ceb9febfd63f6436d
4
+ data.tar.gz: 0dfc931a7f316ed244673ca1f28a4555d2730b5746598c101d768a34f43c4b8b
5
5
  SHA512:
6
- metadata.gz: a64db00ae8c10cce7a0044f1db6097687d34dd5180fb30cf24b7321d374e377664b741607c92c5fdb0caa44586216b5656dd22073bae04a3c9344f1378180acc
7
- data.tar.gz: ea93ba4159bf18e2c69552c9cc504eadc78c8b31107967cdae920df5c84ae8760cadb750b4162af80f18d1d980fff4b97d4cddf006b9a83e7667e656c0e390a7
6
+ metadata.gz: e1cfc176dbcad9ebd383bf074b3015e1fe300a783066b61b17f0b055da56e6c06309caed02f3751519fc62f004563cb41d3702e2e80ed9c71fd0b2544f3b385b
7
+ data.tar.gz: dac885279b99098f7b7d46eab1d165d7cbd773a25b0be2e7d392b1b8aeeb0da39f3d300eae8e4b482ce0fbf3af6147bfc316aa6b634a25599bcfeb1f1d7c56cd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- release-gem (0.1.14)
4
+ release-gem (0.1.16)
5
5
  colorize
6
6
  git_cli
7
7
  gvcs
@@ -11,6 +11,8 @@ else
11
11
  ri = Release::Gem::ReleaseInfector.new(root, name)
12
12
  ri.infect
13
13
  ri.trigger_release_gem
14
+
15
+ STDOUT.puts " Done. release-gem should be enabled for gem under '#{root}'"
14
16
  else
15
17
  STDERR.puts "Given path '#{root}' not a directory"
16
18
  end
@@ -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} && bundle update 2>&1 && rake gem:release"
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")
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Release
4
4
  module Gem
5
- VERSION = "0.1.14"
5
+ VERSION = "0.1.16"
6
6
  end
7
7
  end
@@ -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}\n".yellow
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: release-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris