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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2f3deb3428b54d65da226e7faf3bce9628465dd
4
- data.tar.gz: 4a3f1aa849ef98c86feb127e0b1ebb9069a1fc71
3
+ metadata.gz: 3dde408b1538add2a584a5fa325a367cc59bc9bb
4
+ data.tar.gz: 093bd74e2686a152681a41b15639e84b306c5659
5
5
  SHA512:
6
- metadata.gz: 8343738b55836215a997c29f79132c5116478cac8aa8d6ef46a4e739b4a5d7ffe9e7af5e9ec155c76c290d70c3fa3a4fd967e0d33588cfda9e79187304ba1b93
7
- data.tar.gz: 1fc8293b0512e62e9d90ce1abb4fab9d91dc1bf21bc790f490bbb8044eaf5f2de58fb08511b46441f83dd440123f63f6029273dcc553a36abfed989cc072c311
6
+ metadata.gz: 7762f52f8a9637d1fe630d9dd4fb4d163dabde8c691f77f976c09eafa8c5dd8a2bc0fd5b48d691f48121d707543fb9dbc56d55f2760f8836f4f51ee1561f9625
7
+ data.tar.gz: aa717d1b1ee5f070d61d5f7df871a41de45c1208c3b1052d1338045cf5c59d966ffac641c5f8f01470b9157451f580ec01785a272e20763427e8a047b5b96f9c
@@ -57,7 +57,11 @@ module GemRelease
57
57
  end
58
58
 
59
59
  def gemspec_dirs
60
- Dir.glob('**/*.gemspec').map { |spec| File.dirname(spec) }
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
@@ -1,3 +1,3 @@
1
1
  module GemRelease
2
- VERSION = '0.7.2'
2
+ VERSION = '0.7.3'
3
3
  end
@@ -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.2
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-04-26 00:00:00.000000000 Z
11
+ date: 2014-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test_declarative