gem-release 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gem_release/helpers.rb +5 -1
- data/lib/gem_release/version.rb +1 -1
- data/lib/rubygems/commands/bump_command.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dde408b1538add2a584a5fa325a367cc59bc9bb
|
4
|
+
data.tar.gz: 093bd74e2686a152681a41b15639e84b306c5659
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7762f52f8a9637d1fe630d9dd4fb4d163dabde8c691f77f976c09eafa8c5dd8a2bc0fd5b48d691f48121d707543fb9dbc56d55f2760f8836f4f51ee1561f9625
|
7
|
+
data.tar.gz: aa717d1b1ee5f070d61d5f7df871a41de45c1208c3b1052d1338045cf5c59d966ffac641c5f8f01470b9157451f580ec01785a272e20763427e8a047b5b96f9c
|
data/lib/gem_release/helpers.rb
CHANGED
@@ -57,7 +57,11 @@ module GemRelease
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def gemspec_dirs
|
60
|
-
Dir.glob('**/*.gemspec')
|
60
|
+
filter_gemspecs(Dir.glob('**/*.gemspec'))
|
61
|
+
end
|
62
|
+
|
63
|
+
def filter_gemspecs(files)
|
64
|
+
files.reject { |i| i[/^vendor/i] }.map { |spec| File.dirname(spec) }
|
61
65
|
end
|
62
66
|
|
63
67
|
def in_bootstrapped_dir
|
data/lib/gem_release/version.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'gem_release'
|
2
2
|
require 'rubygems/commands/tag_command'
|
3
3
|
require 'rubygems/commands/release_command'
|
4
|
+
require 'shellwords'
|
4
5
|
|
5
6
|
class Gem::Commands::BumpCommand < Gem::Command
|
6
7
|
include GemRelease, Gem::Commands
|
@@ -65,13 +66,17 @@ class Gem::Commands::BumpCommand < Gem::Command
|
|
65
66
|
@new_version_number ||= version.new_number
|
66
67
|
say "Bumping #{gem_name} from #{version.old_number} to version #{version.new_number}" unless quiet?
|
67
68
|
version.bump!
|
68
|
-
return system("git add #{version.filename}") if options[:commit]
|
69
|
+
return system("git add #{escape(version.filename)}") if options[:commit]
|
69
70
|
else
|
70
71
|
say "Ignoring #{gem_name}. Version file #{version.filename} not found" unless quiet?
|
71
72
|
end
|
72
73
|
true
|
73
74
|
end
|
74
75
|
|
76
|
+
def escape(string)
|
77
|
+
Shellwords.escape(string)
|
78
|
+
end
|
79
|
+
|
75
80
|
def commit
|
76
81
|
say "Creating commit" unless quiet?
|
77
82
|
system("git commit -m \"Bump to #{@new_version_number}\"")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-release
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Fuchs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test_declarative
|