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 +4 -4
- data/jeweler.gemspec +2 -2
- data/lib/jeweler/commands.rb +6 -6
- data/lib/jeweler/commands/version/base.rb +1 -1
- data/lib/jeweler/generator/options.rb +2 -2
- data/test/jeweler/commands/version/test_base.rb +22 -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: 155993a21b30a9fff64eaa374e8338ec9b154e4b
|
4
|
+
data.tar.gz: aa5eadbc8a8982ed0da2774806ed61a794d1b862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a826ef79324e9cd5662f3ec854cdbcdfd1d01fcb81784812835c6c02b7d0e8f247e1457fd9a95600c8e6dfca33f1ee608b0bd645aa6a6f8c46c4a89e4e10b47a
|
7
|
+
data.tar.gz: 31886c9d266b9dbfae2892e3169b560443bb8e3947695432301cb7e071ef8b5d30c4f13486c5338d665850ac8bacafe297647966fe981011f66bfd09f0dd48db
|
data/jeweler.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "jeweler"
|
8
|
-
s.version = "1.8.
|
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
|
+
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"]
|
data/lib/jeweler/commands.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
class Jeweler
|
2
2
|
module Commands
|
3
|
-
autoload :BuildGem,
|
4
|
-
autoload :InstallGem,
|
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,
|
7
|
-
autoload :ReleaseGemspec,
|
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,
|
10
|
-
autoload :WriteGemspec,
|
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'
|
@@ -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
|
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.
|
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
|
+
date: 2013-10-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|