jeweler 1.8.7 → 1.8.8

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: cd32f410f286d31c1c8c2e86375977c81f35dd68
4
- data.tar.gz: 7c6fa29ac81830678fbe964c73bfdcbcc5224b83
3
+ metadata.gz: 155993a21b30a9fff64eaa374e8338ec9b154e4b
4
+ data.tar.gz: aa5eadbc8a8982ed0da2774806ed61a794d1b862
5
5
  SHA512:
6
- metadata.gz: 05464060cf73d3ba3e6a4368a04e53ee07bfb08c8c0beccca3bfadc44c674ca589757d41c3c11bbbcc079d10f5c7a3c34dac021916de25a9fd320ef30a791a70
7
- data.tar.gz: 8f29b7718a067c3461b057964dea9853ec316b438aadc6837f690818cb9bbed78174af66839a40596052d120b48a4036b1f5b7771d651ca553293e779bac14f6
6
+ metadata.gz: a826ef79324e9cd5662f3ec854cdbcdfd1d01fcb81784812835c6c02b7d0e8f247e1457fd9a95600c8e6dfca33f1ee608b0bd645aa6a6f8c46c4a89e4e10b47a
7
+ data.tar.gz: 31886c9d266b9dbfae2892e3169b560443bb8e3947695432301cb7e071ef8b5d30c4f13486c5338d665850ac8bacafe297647966fe981011f66bfd09f0dd48db
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "jeweler"
8
- s.version = "1.8.7"
8
+ s.version = "1.8.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Josh Nichols", "Yusuke Murata"]
12
- s.date = "2013-08-12"
12
+ s.date = "2013-10-08"
13
13
  s.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
14
14
  s.email = ["josh@technicalpickles.com", "info@muratayusuke.com"]
15
15
  s.executables = ["jeweler"]
@@ -1,13 +1,13 @@
1
1
  class Jeweler
2
2
  module Commands
3
- autoload :BuildGem, 'jeweler/commands/build_gem'
4
- autoload :InstallGem, 'jeweler/commands/install_gem'
3
+ autoload :BuildGem, 'jeweler/commands/build_gem'
4
+ autoload :InstallGem, 'jeweler/commands/install_gem'
5
5
  autoload :CheckDependencies, 'jeweler/commands/check_dependencies'
6
- autoload :ReleaseToGit, 'jeweler/commands/release_to_git'
7
- autoload :ReleaseGemspec, 'jeweler/commands/release_gemspec'
6
+ autoload :ReleaseToGit, 'jeweler/commands/release_to_git'
7
+ autoload :ReleaseGemspec, 'jeweler/commands/release_gemspec'
8
8
  autoload :ReleaseToRubygems, 'jeweler/commands/release_to_rubygems'
9
- autoload :ValidateGemspec, 'jeweler/commands/validate_gemspec'
10
- autoload :WriteGemspec, 'jeweler/commands/write_gemspec'
9
+ autoload :ValidateGemspec, 'jeweler/commands/validate_gemspec'
10
+ autoload :WriteGemspec, 'jeweler/commands/write_gemspec'
11
11
 
12
12
  module Version
13
13
  autoload :Base, 'jeweler/commands/version/base'
@@ -22,7 +22,7 @@ class Jeweler
22
22
 
23
23
  def commit_version
24
24
  if self.repo
25
- self.repo.add(working_subdir.join(version_helper.path))
25
+ self.repo.add(working_subdir.join(version_helper.path).to_s)
26
26
  self.repo.commit("Version bump to #{self.version_helper.to_s}")
27
27
  end
28
28
  end
@@ -20,7 +20,7 @@ class Jeweler
20
20
  o.banner = "Usage: #{File.basename($0)} [options] reponame\ne.g. #{File.basename($0)} the-perfect-gem"
21
21
 
22
22
  o.on('--directory [DIRECTORY]', 'specify the directory to generate into (deprecated)') do |directory|
23
- warn "--directory is deprecated and will be removed in 2.0.0. Please specify an absolute path to a directoy as the last argument instead" # DEPRECATE
23
+ warn "--directory is deprecated and will be removed in 2.0.0. Please specify an absolute path to a directory as the last argument instead" # DEPRECATE
24
24
  self[:directory] = directory
25
25
  end
26
26
 
@@ -130,7 +130,7 @@ class Jeweler
130
130
  o.on('--rdoc', 'use rdoc for documentation') do
131
131
  self[:documentation_framework] = :rdoc
132
132
  end
133
-
133
+
134
134
  o.on('-v', '--version', 'show version') do
135
135
  self[:show_version] = true
136
136
  end
@@ -21,9 +21,30 @@ class Jeweler
21
21
  assert_equal @gemspec, @command.gemspec
22
22
  end
23
23
 
24
- should"assign commit" do
24
+ should "assign commit" do
25
25
  assert_equal @commit, @command.commit
26
26
  end
27
+
28
+ context "commit_version" do
29
+ setup do
30
+ @dir = Object.new
31
+ stub(@repo).dir { @dir }
32
+ stub(@dir).path { Dir.pwd }
33
+ stub(@version_helper).path { Pathname.new 'VERSION' }
34
+ stub(@version_helper).to_s { '1.0.0' }
35
+ stub(@repo) do
36
+ add(anything)
37
+ commit(anything)
38
+ end
39
+ @command.base_dir = Dir.pwd
40
+ @command.commit_version
41
+ end
42
+
43
+ should "add VERSION" do
44
+ assert_received(@repo) {|repo| repo.add('VERSION')}
45
+ assert_received(@repo) {|repo| repo.commit('Version bump to 1.0.0')}
46
+ end
47
+ end
27
48
  end
28
49
  end
29
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeweler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.7
4
+ version: 1.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Nichols
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-12 00:00:00.000000000 Z
12
+ date: 2013-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake