release-gem 0.1.12 → 0.1.14

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: 99c7cefe59fb822873db6f3a10309038c29f51128774092fdfd5577a4f4b72de
4
- data.tar.gz: 862e80b22b529b505139cc3e1af19becf86526830cd0f8a5e08c1d39a20c750a
3
+ metadata.gz: bf9c3c021566df9bd40e2806b3a2a7fb42675adaf55ee59e9382f23d94fb1e29
4
+ data.tar.gz: 0fc2b9946640ee1d736bcca13f2e63917ef3f98e1ac8db032717f9560a1477a7
5
5
  SHA512:
6
- metadata.gz: 9fb87964e09ada8bd998b73e0bc44a9bd1965c1c620f8063f59bb073f2a7102e03fa1111a526e531d7bc7c3ae20135c477c6056993757dc49e0ca3577a6b8ece
7
- data.tar.gz: f9249553d25b2bdcfc750d251cd8c71e0b22321b994ac4d9154de8b1a10b352d91b540a3999289dab2b2a1c6af358cddf59e9dc4339b863d2b03ea85e567ccf2
6
+ metadata.gz: a64db00ae8c10cce7a0044f1db6097687d34dd5180fb30cf24b7321d374e377664b741607c92c5fdb0caa44586216b5656dd22073bae04a3c9344f1378180acc
7
+ data.tar.gz: ea93ba4159bf18e2c69552c9cc504eadc78c8b31107967cdae920df5c84ae8760cadb750b4162af80f18d1d980fff4b97d4cddf006b9a83e7667e656c0e390a7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- release-gem (0.1.12)
4
+ release-gem (0.1.14)
5
5
  colorize
6
6
  git_cli
7
7
  gvcs
@@ -39,7 +39,7 @@ GEM
39
39
  rspec-support (~> 3.12.0)
40
40
  rspec-support (3.12.0)
41
41
  teLogger (0.2.2)
42
- toolrack (0.22.0)
42
+ toolrack (0.22.1)
43
43
  tty-color (0.6.0)
44
44
  tty-command (0.10.1)
45
45
  pastel (~> 0.8)
@@ -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
 
@@ -41,7 +42,7 @@ module Release
41
42
  terminal = ""
42
43
  Bundler.with_clean_env do
43
44
 
44
- cmd = "cd #{@root} && rake gem:release"
45
+ cmd = "cd #{@root} && bundle update 2>&1 && rake gem:release"
45
46
  if block
46
47
  terminal = block.call(:select_terminal, name: @name, options: poss)
47
48
  if terminal != :skip
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Release
4
4
  module Gem
5
- VERSION = "0.1.12"
5
+ VERSION = "0.1.14"
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.12
4
+ version: 0.1.14
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