gem-release 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,13 +11,14 @@ module GemRelease
11
11
 
12
12
  @summary ||= '[summary]'
13
13
  @description ||= '[description]'
14
+ @strategy = options[:strategy]
14
15
  end
15
16
 
16
17
  def files
17
- case @strategy || :git
18
- when :glob
19
- "Dir['{lib/**/*,[A-Z]*}']"
20
- when :git
18
+ case @strategy || 'git'
19
+ when 'glob'
20
+ 'Dir.glob("lib/**/**")'
21
+ when 'git'
21
22
  '`git ls-files {app,lib}`.split("\n")'
22
23
  end
23
24
  end
@@ -30,4 +31,4 @@ module GemRelease
30
31
  'gemspec.erb'
31
32
  end
32
33
  end
33
- end
34
+ end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- $: << File.expand_path('../lib', __FILE__)
3
+ $:.unshift File.expand_path('../lib', __FILE__)
4
4
  require '<%= module_path %>/version'
5
5
 
6
6
  Gem::Specification.new do |s|
@@ -1,5 +1,5 @@
1
1
  module GemRelease
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
 
4
4
  class Version < Template
5
5
  attr_reader :version
@@ -33,6 +33,7 @@ class Gem::Commands::BootstrapCommand < Gem::Command
33
33
  `mkdir lib test`
34
34
  `touch README`
35
35
  write_version
36
+ write_rakefile
36
37
  end
37
38
 
38
39
  def write_version
@@ -41,6 +42,22 @@ class Gem::Commands::BootstrapCommand < Gem::Command
41
42
  version.write
42
43
  end
43
44
 
45
+ def write_rakefile
46
+ rakefile = <<RAKEFILE
47
+ require 'rake'
48
+ require 'rake/testtask'
49
+
50
+ Rake::TestTask.new do |t|
51
+ t.libs << 'lib'
52
+ t.pattern = 'test/**/*_test.rb'
53
+ t.verbose = false
54
+ end
55
+
56
+ task :default => :test
57
+ RAKEFILE
58
+ File.open('Rakefile', 'w').write(rakefile)
59
+ end
60
+
44
61
  def create_repo
45
62
  options = { :login => github_user, :token => github_token, :name => gem_name }
46
63
  options = options.map { |name, value| "-F '#{name}=#{value}'" }.join(' ')
@@ -63,4 +80,4 @@ class Gem::Commands::BootstrapCommand < Gem::Command
63
80
  say 'Pushing to Github'
64
81
  `git push origin master`
65
82
  end
66
- end
83
+ end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-release
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 9
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 10
9
- version: 0.0.10
9
+ - 11
10
+ version: 0.0.11
10
11
  platform: ruby
11
12
  authors:
12
13
  - Sven Fuchs
@@ -14,10 +15,57 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-04-05 00:00:00 +02:00
18
+ date: 2010-07-17 00:00:00 +02:00
18
19
  default_executable:
19
- dependencies: []
20
-
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: minitest
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 15
30
+ segments:
31
+ - 1
32
+ - 6
33
+ - 0
34
+ version: 1.6.0
35
+ type: :development
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: test_declarative
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 27
46
+ segments:
47
+ - 0
48
+ - 0
49
+ - 2
50
+ version: 0.0.2
51
+ type: :development
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: mocha
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ hash: 43
62
+ segments:
63
+ - 0
64
+ - 9
65
+ - 8
66
+ version: 0.9.8
67
+ type: :development
68
+ version_requirements: *id003
21
69
  description: Release your ruby gems with ease. (What a bold statement for such a tiny plugin ...)
22
70
  email: svenfuchs@artweb-design.de
23
71
  executables: []
@@ -52,16 +100,20 @@ rdoc_options: []
52
100
  require_paths:
53
101
  - lib
54
102
  required_ruby_version: !ruby/object:Gem::Requirement
103
+ none: false
55
104
  requirements:
56
105
  - - ">="
57
106
  - !ruby/object:Gem::Version
107
+ hash: 3
58
108
  segments:
59
109
  - 0
60
110
  version: "0"
61
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
+ none: false
62
113
  requirements:
63
114
  - - ">="
64
115
  - !ruby/object:Gem::Version
116
+ hash: 23
65
117
  segments:
66
118
  - 1
67
119
  - 3
@@ -70,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
122
  requirements: []
71
123
 
72
124
  rubyforge_project: "[none]"
73
- rubygems_version: 1.3.6
125
+ rubygems_version: 1.3.7
74
126
  signing_key:
75
127
  specification_version: 3
76
128
  summary: Release your ruby gems with ease