release-gem 0.1.13 → 0.1.15

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: b4286f345ee7df0ed770374d2488df1860426068cdea02468fc0fe1da069bbb7
4
- data.tar.gz: 2f32cd20a4d9705b6946333bcd28c5b0ab2b611a1d1308c4c7c5436ff8ef15e3
3
+ metadata.gz: 4090fe5f71d25f1cb3c85877ea4a4f6de50e30c913c0a79b3d719101047f4ab8
4
+ data.tar.gz: 9104b2f87fc98ce93be70c8c3a25c40146e1aefe5afee2131cdf6a751ad53575
5
5
  SHA512:
6
- metadata.gz: 0ee9282a8651bb6494ffa84e1875cca2198753477bf227fac76c961f78314e13e7d52ae493876f22ecaa8477d5ddbd0c9f52db30aee00ec2f3d2868e45d7daf9
7
- data.tar.gz: 3fe6a59ca34537d85cd7a6094b73331defa696a181626e9b8092d86a20a3e84f1b36bf8bb6e9b77dcb07094afa7d1967acd83396b65d150bb7064ca1efefc062
6
+ metadata.gz: 786d16b03c161c23b438ae98e12a49d4dbdad267473e840b15a5ddbc43703bba21b2b42a304b869cf73aaba21457284735d926a3b634eab0c8c7752af88eab9e
7
+ data.tar.gz: 194affb282bdd5ff84af1a9b6246b55d897dac27e1039314c377abf220fe6cc3965d28a94fb1254c5b3079e160df773bb428613c3109244d48c2bf6a42994e0f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- release-gem (0.1.13)
4
+ release-gem (0.1.15)
5
5
  colorize
6
6
  git_cli
7
7
  gvcs
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'release/gem'
4
+
5
+ if ARGV.length == 0
6
+ STDERR.puts "<location of the gem>"
7
+ else
8
+ root = ARGV.first
9
+ if File.directory?(root)
10
+ name = File.basename(root)
11
+ ri = Release::Gem::ReleaseInfector.new(root, name)
12
+ ri.infect
13
+ ri.trigger_release_gem
14
+ else
15
+ STDERR.puts "Given path '#{root}' not a directory"
16
+ end
17
+ end
@@ -23,6 +23,7 @@ module Release
23
23
  add_to_gemspec(&block)
24
24
  Bundler.with_clean_env do
25
25
  res = `cd #{@root} && bundle`
26
+ puts res
26
27
  end
27
28
  end
28
29
 
@@ -43,17 +44,17 @@ module Release
43
44
 
44
45
  cmd = "cd #{@root} && bundle update 2>&1 && rake gem:release"
45
46
  if block
46
- terminal = block.call(:select_terminal, name: @name, options: poss)
47
+ terminal = block.call(:select_terminal, name: @name, options: poss) if block
47
48
  if terminal != :skip
48
49
  terminal = poss.first if is_empty?(terminal)
49
50
 
50
- block.call(:new_terminal_launching, name: @name, terminal: terminal)
51
+ block.call(:new_terminal_launching, name: @name, terminal: terminal) if block
51
52
  tu_new_terminal(terminal, cmd)
52
53
  end
53
54
 
54
55
  else
55
56
  terminal = poss.first
56
- block.call(:new_terminal_launching, name: @name, terminal: terminal)
57
+ block.call(:new_terminal_launching, name: @name, terminal: terminal) if block
57
58
  tu_new_terminal(terminal, cmd)
58
59
  end
59
60
 
@@ -120,7 +121,7 @@ module Release
120
121
  f.puts " spec.add_development_dependency 'release-gem'"
121
122
  f.puts "end"
122
123
  end
123
- block.call(:gemspec_updated, name: @name, gemspec: gs )
124
+ block.call(:gemspec_updated, name: @name, gemspec: gs ) if block
124
125
 
125
126
  end # add_to_gemspec
126
127
 
@@ -140,13 +141,13 @@ RSpec::Core::RakeTask.new(:spec)
140
141
 
141
142
  task default: :spec
142
143
  END
143
- block.call(:creating_new_rakefile, rakefile: rf )
144
+ block.call(:creating_new_rakefile, rakefile: rf ) if block
144
145
  File.open(rf,"w") do |f|
145
146
  f.write rfCont
146
147
  end
147
148
  else
148
149
 
149
- block.call(:adding_to_rakefile, rakefile: rf )
150
+ block.call(:adding_to_rakefile, rakefile: rf ) if block
150
151
 
151
152
  cont = File.read(rf)
152
153
  FileUtils.mv(rf, "#{rf}.bak")
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Release
4
4
  module Gem
5
- VERSION = "0.1.13"
5
+ VERSION = "0.1.15"
6
6
  end
7
7
  end
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.13
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris
@@ -111,7 +111,8 @@ dependencies:
111
111
  description: ''
112
112
  email:
113
113
  - chris@antrapol.com
114
- executables: []
114
+ executables:
115
+ - release-gem-infect
115
116
  extensions: []
116
117
  extra_rdoc_files: []
117
118
  files:
@@ -120,6 +121,7 @@ files:
120
121
  - Gemfile.lock
121
122
  - README.md
122
123
  - Rakefile
124
+ - exe/release-gem-infect
123
125
  - lib/release/Rakefile
124
126
  - lib/release/gem.rb
125
127
  - lib/release/gem/gem_action.rb