jeweler 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/.semver +1 -1
  3. data/.travis.yml +5 -1
  4. data/ChangeLog.markdown +4 -0
  5. data/Gemfile +23 -23
  6. data/Gemfile.lock +142 -0
  7. data/Gemfile.orig +54 -0
  8. data/README.markdown +3 -0
  9. data/Rakefile +13 -14
  10. data/Rakefile.orig +88 -0
  11. data/features/generator/test.feature +2 -2
  12. data/features/step_definitions/debug_steps.rb +0 -1
  13. data/features/step_definitions/filesystem_steps.rb +2 -3
  14. data/features/step_definitions/generator_steps.rb +44 -64
  15. data/features/step_definitions/task_steps.rb +1 -2
  16. data/features/support/env.rb +21 -7
  17. data/jeweler.gemspec +11 -6
  18. data/jeweler.gemspec.orig +464 -0
  19. data/lib/jeweler.rb +18 -19
  20. data/lib/jeweler/commands/build_gem.rb +2 -2
  21. data/lib/jeweler/commands/check_dependencies.rb +3 -3
  22. data/lib/jeweler/commands/install_gem.rb +1 -1
  23. data/lib/jeweler/commands/release_gemspec.rb +8 -10
  24. data/lib/jeweler/commands/release_to_git.rb +9 -5
  25. data/lib/jeweler/commands/validate_gemspec.rb +5 -7
  26. data/lib/jeweler/commands/version/base.rb +8 -13
  27. data/lib/jeweler/commands/version/bump_major.rb +1 -3
  28. data/lib/jeweler/commands/version/bump_minor.rb +1 -2
  29. data/lib/jeweler/commands/version/bump_patch.rb +1 -4
  30. data/lib/jeweler/commands/write_gemspec.rb +4 -3
  31. data/lib/jeweler/gemspec_helper.rb +15 -15
  32. data/lib/jeweler/gemspec_helper.rb.orig +91 -0
  33. data/lib/jeweler/generator.rb +39 -41
  34. data/lib/jeweler/generator/application.rb +5 -7
  35. data/lib/jeweler/generator/bacon_mixin.rb +2 -4
  36. data/lib/jeweler/generator/github_mixin.rb +1 -3
  37. data/lib/jeweler/generator/micronaut_mixin.rb +3 -3
  38. data/lib/jeweler/generator/minitest_mixin.rb +2 -3
  39. data/lib/jeweler/generator/options.rb +15 -19
  40. data/lib/jeweler/generator/rdoc_mixin.rb +1 -1
  41. data/lib/jeweler/generator/riot_mixin.rb +2 -3
  42. data/lib/jeweler/generator/rspec_mixin.rb +2 -3
  43. data/lib/jeweler/generator/shindo_mixin.rb +2 -3
  44. data/lib/jeweler/generator/shoulda_mixin.rb +2 -3
  45. data/lib/jeweler/generator/testspec_mixin.rb +2 -3
  46. data/lib/jeweler/generator/testunit_mixin.rb +1 -3
  47. data/lib/jeweler/generator/yard_mixin.rb +3 -4
  48. data/lib/jeweler/rubyforge_tasks.rb +13 -13
  49. data/lib/jeweler/rubygems_dot_org_tasks.rb +3 -3
  50. data/lib/jeweler/rubygems_tasks.rb +3 -3
  51. data/lib/jeweler/specification.rb +22 -11
  52. data/lib/jeweler/tasks.rb +57 -57
  53. data/lib/jeweler/templates/bacon/flunking.rb +3 -3
  54. data/lib/jeweler/templates/micronaut/flunking.rb +3 -3
  55. data/lib/jeweler/templates/minitest/flunking.rb +1 -1
  56. data/lib/jeweler/templates/minitest/helper.rb +3 -3
  57. data/lib/jeweler/templates/riot/flunking.rb +1 -1
  58. data/lib/jeweler/templates/rspec/flunking.rb +3 -3
  59. data/lib/jeweler/templates/shindo/flunking.rb +3 -3
  60. data/lib/jeweler/templates/testspec/flunking.rb +3 -3
  61. data/lib/jeweler/version_helper.rb +18 -15
  62. data/test/fixtures/bar/lib/foo_the_ultimate_lib.rb +1 -1
  63. data/test/fixtures/existing-project-with-version-constant/Rakefile +18 -20
  64. data/test/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec +15 -17
  65. data/test/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb +2 -2
  66. data/test/fixtures/existing-project-with-version-plaintext/Rakefile +17 -19
  67. data/test/fixtures/existing-project-with-version-plaintext/existing-project-with-version.gemspec +15 -17
  68. data/test/fixtures/existing-project-with-version-plaintext/test/existing_project_with_version_test.rb +2 -2
  69. data/test/fixtures/existing-project-with-version-yaml/Rakefile +17 -19
  70. data/test/fixtures/existing-project-with-version-yaml/existing-project-with-version.gemspec +15 -17
  71. data/test/fixtures/existing-project-with-version-yaml/test/existing_project_with_version_test.rb +2 -2
  72. data/test/jeweler/commands/test_build_gem.rb +25 -28
  73. data/test/jeweler/commands/test_install_gem.rb +7 -7
  74. data/test/jeweler/commands/test_release_to_gemcutter.rb +6 -7
  75. data/test/jeweler/commands/test_release_to_git.rb +52 -57
  76. data/test/jeweler/commands/test_release_to_github.rb +112 -119
  77. data/test/jeweler/commands/test_validate_gemspec.rb +4 -6
  78. data/test/jeweler/commands/test_write_gemspec.rb +21 -24
  79. data/test/jeweler/commands/version/test_base.rb +9 -10
  80. data/test/jeweler/commands/version/test_bump_major.rb +1 -5
  81. data/test/jeweler/commands/version/test_bump_minor.rb +1 -2
  82. data/test/jeweler/commands/version/test_bump_patch.rb +1 -3
  83. data/test/jeweler/commands/version/test_write.rb +1 -3
  84. data/test/jeweler/generator/test_application.rb +22 -26
  85. data/test/jeweler/generator/test_options.rb +26 -27
  86. data/test/jeweler/test_gemspec_helper.rb +7 -7
  87. data/test/jeweler/test_generator.rb +31 -32
  88. data/test/jeweler/test_generator_initialization.rb +40 -43
  89. data/test/jeweler/test_generator_mixins.rb +6 -7
  90. data/test/jeweler/test_specification.rb +36 -43
  91. data/test/jeweler/test_tasks.rb +2 -3
  92. data/test/jeweler/test_version_helper.rb +33 -35
  93. data/test/shoulda_macros/jeweler_macros.rb +5 -5
  94. data/test/test_helper.rb +23 -25
  95. data/test/test_jeweler.rb +22 -25
  96. metadata +11 -6
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe "<%= constant_name %>" do
4
- it "fails" do
5
- should.flunk "hey buddy, you should probably rename this file and start specing for real"
3
+ describe '<%= constant_name %>' do
4
+ it 'fails' do
5
+ should.flunk 'hey buddy, you should probably rename this file and start specing for real'
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  require 'example_helper'
2
2
 
3
- describe "<%= constant_name %>" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
3
+ describe '<%= constant_name %>' do
4
+ it 'fails' do
5
+ fail 'hey buddy, you should probably rename this file and start specing for real'
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- class Test<%= constant_name %> < MiniTest::Unit::TestCase
3
+ class Test<%= constant_name %> < MiniTest::Test
4
4
  def test_something_for_real
5
5
  flunk "hey buddy, you should probably rename this file and start testing for real"
6
6
  end
@@ -1,13 +1,13 @@
1
1
  <%= render_template 'simplecov.erb' %>
2
2
  require 'rubygems'
3
3
  <%= render_template 'bundler_setup.erb' %>
4
- require 'minitest/unit'
4
+ require 'minitest/test'
5
5
 
6
6
  $LOAD_PATH.unshift(File.dirname(__FILE__))
7
7
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
8
8
  require '<%= require_name %>'
9
9
 
10
- class MiniTest::Unit::TestCase
10
+ class MiniTest::Test
11
11
  end
12
12
 
13
- MiniTest::Unit.autorun
13
+ require 'minitest/autorun'
@@ -1,6 +1,6 @@
1
1
  require 'teststrap'
2
2
 
3
- context "<%= require_name %>" do
3
+ context '<%= require_name %>' do
4
4
  setup do
5
5
  false
6
6
  end
@@ -1,7 +1,7 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
- describe "<%= constant_name %>" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
3
+ describe '<%= constant_name %>' do
4
+ it 'fails' do
5
+ fail 'hey buddy, you should probably rename this file and start specing for real'
6
6
  end
7
7
  end
@@ -1,8 +1,8 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/tests_helper')
2
2
 
3
- Shindo.tests("<%= constant_name %>") do
4
- test("fails") do
5
- "hey buddy, you should probably rename this file and start specing for real"
3
+ Shindo.tests('<%= constant_name %>') do
4
+ test('fails') do
5
+ 'hey buddy, you should probably rename this file and start specing for real'
6
6
  false
7
7
  end
8
8
  end
@@ -1,7 +1,7 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/test_helper')
2
2
 
3
- describe "<%= constant_name %>" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
3
+ describe '<%= constant_name %>' do
4
+ it 'fails' do
5
+ fail 'hey buddy, you should probably rename this file and start specing for real'
6
6
  end
7
7
  end
@@ -13,16 +13,16 @@ class Jeweler
13
13
  module YamlExtension
14
14
  def write
15
15
  File.open(yaml_path, 'w+') do |f|
16
- YAML.dump(self.to_hash, f)
16
+ YAML.dump(to_hash, f)
17
17
  end
18
18
  end
19
19
 
20
20
  def to_hash
21
21
  {
22
- :major => major,
23
- :minor => minor,
24
- :patch => patch,
25
- :build => build
22
+ major: major,
23
+ minor: minor,
24
+ patch: patch,
25
+ build: build
26
26
  }
27
27
  end
28
28
 
@@ -39,7 +39,7 @@ class Jeweler
39
39
  end
40
40
 
41
41
  def read_yaml
42
- if File.exists?(yaml_path)
42
+ if File.exist?(yaml_path)
43
43
  YAML.load_file(yaml_path)
44
44
  else
45
45
  raise VersionYmlError, "#{yaml_path} does not exist!"
@@ -86,14 +86,12 @@ class Jeweler
86
86
  def initialize(base_dir)
87
87
  self.base_dir = base_dir
88
88
 
89
- if File.exists?(yaml_path)
89
+ if File.exist?(yaml_path)
90
90
  extend YamlExtension
91
91
  parse_yaml
92
92
  else
93
93
  extend PlaintextExtension
94
- if File.exists?(plaintext_path)
95
- parse_plaintext
96
- end
94
+ parse_plaintext if File.exist?(plaintext_path)
97
95
  end
98
96
  end
99
97
 
@@ -115,7 +113,7 @@ class Jeweler
115
113
  @build = nil
116
114
  end
117
115
 
118
- def update_to(major, minor, patch, build=nil)
116
+ def update_to(major, minor, patch, build = nil)
119
117
  @major = major
120
118
  @minor = minor
121
119
  @patch = patch
@@ -127,15 +125,20 @@ class Jeweler
127
125
  end
128
126
 
129
127
  def yaml_path
130
- denormalized_path = File.join(@base_dir, 'VERSION.yml')
131
- absolute_path = File.expand_path(denormalized_path)
132
- absolute_path.gsub(Dir.getwd + File::SEPARATOR, '')
128
+ path_to_version_file('VERSION.yml')
133
129
  end
134
130
 
135
131
  def plaintext_path
136
- denormalized_path = File.join(@base_dir, 'VERSION')
132
+ path_to_version_file('VERSION')
133
+ end
134
+
135
+ private
136
+
137
+ def path_to_version_file(filename)
138
+ denormalized_path = File.join(@base_dir, filename)
137
139
  absolute_path = File.expand_path(denormalized_path)
138
140
  absolute_path.gsub(Dir.getwd + File::SEPARATOR, '')
139
141
  end
142
+
140
143
  end
141
144
  end
@@ -1 +1 @@
1
- # Uhuh
1
+ # Uhuh
@@ -4,16 +4,16 @@ require 'rake'
4
4
  begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
- gem.version = "1.0.0"
8
- gem.name = "existing-project-with-version"
9
- gem.summary = %Q{Summarize your gem}
10
- gem.email = "josh@technicalpickles.com"
11
- gem.homepage = "http://github.com/technicalpickles/existing-project-with-version"
12
- gem.authors = ["Josh Nichols"]
7
+ gem.version = '1.0.0'
8
+ gem.name = 'existing-project-with-version'
9
+ gem.summary = %(Summarize your gem)
10
+ gem.email = 'josh@technicalpickles.com'
11
+ gem.homepage = 'http://github.com/technicalpickles/existing-project-with-version'
12
+ gem.authors = ['Josh Nichols']
13
13
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
14
14
  end
15
15
  rescue LoadError
16
- puts "Jeweler not available. Install it with: gem install technicalpickles-jeweler -s http://gems.github.com"
16
+ puts 'Jeweler not available. Install it with: gem install technicalpickles-jeweler -s http://gems.github.com'
17
17
  end
18
18
 
19
19
  require 'rake/testtask'
@@ -32,12 +32,11 @@ begin
32
32
  end
33
33
  rescue LoadError
34
34
  task :rcov do
35
- abort "RCov is not available. In order to run rcov, you must: gem install spicycode-rcov"
35
+ abort 'RCov is not available. In order to run rcov, you must: gem install spicycode-rcov'
36
36
  end
37
37
  end
38
38
 
39
-
40
- task :default => :test
39
+ task default: :test
41
40
 
42
41
  require 'rdoc/task'
43
42
  Rake::RDocTask.new do |rdoc|
@@ -46,7 +45,7 @@ Rake::RDocTask.new do |rdoc|
46
45
  config = YAML.load(File.read('VERSION.yml'))
47
46
  version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
48
47
  else
49
- version = ""
48
+ version = ''
50
49
  end
51
50
 
52
51
  rdoc.rdoc_dir = 'rdoc'
@@ -60,20 +59,19 @@ end
60
59
  begin
61
60
  require 'rake/contrib/sshpublisher'
62
61
  namespace :rubyforge do
63
-
64
- desc "Release gem and RDoc documentation to RubyForge"
65
- task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
66
-
62
+ desc 'Release gem and RDoc documentation to RubyForge'
63
+ task release: ['rubyforge:release:gem', 'rubyforge:release:docs']
64
+
67
65
  namespace :release do
68
- desc "Publish RDoc to RubyForge."
69
- task :docs => [:rdoc] do
66
+ desc 'Publish RDoc to RubyForge.'
67
+ task docs: [:rdoc] do
70
68
  require 'yaml'
71
69
  config = YAML.load(
72
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
70
+ File.read(File.expand_path('~/.rubyforge/user-config.yml'))
73
71
  )
74
72
 
75
73
  host = "#{config['username']}@rubyforge.org"
76
- remote_dir = "/var/www/gforge-projects/existing-project-with-version/"
74
+ remote_dir = '/var/www/gforge-projects/existing-project-with-version/'
77
75
  local_dir = 'rdoc'
78
76
 
79
77
  Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
@@ -81,5 +79,5 @@ begin
81
79
  end
82
80
  end
83
81
  rescue LoadError
84
- puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
82
+ puts 'Rake SshDirPublisher is unavailable or your rubyforge environment is not configured.'
85
83
  end
@@ -1,29 +1,27 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = %q{existing-project-with-version}
5
- s.version = "1.5.3"
4
+ s.name = 'existing-project-with-version'
5
+ s.version = '1.5.3'
6
6
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Josh Nichols"]
9
- s.date = %q{2009-03-13}
10
- s.email = %q{josh@technicalpickles.com}
11
- s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
12
- s.files = ["README.rdoc", "VERSION.yml", "lib/existing_project_with_version.rb", "test/existing_project_with_version_test.rb", "test/test_helper.rb", "LICENSE"]
7
+ s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
8
+ s.authors = ['Josh Nichols']
9
+ s.date = '2009-03-13'
10
+ s.email = 'josh@technicalpickles.com'
11
+ s.extra_rdoc_files = ['README.rdoc', 'LICENSE']
12
+ s.files = ['README.rdoc', 'VERSION.yml', 'lib/existing_project_with_version.rb', 'test/existing_project_with_version_test.rb', 'test/test_helper.rb', 'LICENSE']
13
13
  s.has_rdoc = true
14
- s.homepage = %q{http://github.com/technicalpickles/existing-project-with-version}
15
- s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
16
- s.require_paths = ["lib"]
17
- s.rubygems_version = %q{1.3.1}
18
- s.summary = %q{Summarize your gem}
14
+ s.homepage = 'http://github.com/technicalpickles/existing-project-with-version'
15
+ s.rdoc_options = ['--inline-source', '--charset=UTF-8']
16
+ s.require_paths = ['lib']
17
+ s.rubygems_version = '1.3.1'
18
+ s.summary = 'Summarize your gem'
19
19
 
20
- if s.respond_to? :specification_version then
20
+ if s.respond_to? :specification_version
21
21
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
22
22
  s.specification_version = 2
23
23
 
24
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
25
- else
24
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0')
26
25
  end
27
- else
28
26
  end
29
27
  end
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class ExistingProjectWithVersionTest < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
4
+ should 'probably rename this file and start testing for real' do
5
+ flunk 'hey buddy, you should probably rename this file and start testing for real'
6
6
  end
7
7
  end
@@ -4,15 +4,15 @@ require 'rake'
4
4
  begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
- gem.name = "existing-project-with-version"
8
- gem.summary = %Q{Summarize your gem}
9
- gem.email = "josh@technicalpickles.com"
10
- gem.homepage = "http://github.com/technicalpickles/existing-project-with-version"
11
- gem.authors = ["Josh Nichols"]
7
+ gem.name = 'existing-project-with-version'
8
+ gem.summary = %(Summarize your gem)
9
+ gem.email = 'josh@technicalpickles.com'
10
+ gem.homepage = 'http://github.com/technicalpickles/existing-project-with-version'
11
+ gem.authors = ['Josh Nichols']
12
12
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
13
13
  end
14
14
  rescue LoadError
15
- puts "Jeweler not available. Install it with: gem install technicalpickles-jeweler -s http://gems.github.com"
15
+ puts 'Jeweler not available. Install it with: gem install technicalpickles-jeweler -s http://gems.github.com'
16
16
  end
17
17
 
18
18
  require 'rake/testtask'
@@ -31,12 +31,11 @@ begin
31
31
  end
32
32
  rescue LoadError
33
33
  task :rcov do
34
- abort "RCov is not available. In order to run rcov, you must: gem install spicycode-rcov"
34
+ abort 'RCov is not available. In order to run rcov, you must: gem install spicycode-rcov'
35
35
  end
36
36
  end
37
37
 
38
-
39
- task :default => :test
38
+ task default: :test
40
39
 
41
40
  require 'rdoc/task'
42
41
  Rake::RDocTask.new do |rdoc|
@@ -45,7 +44,7 @@ Rake::RDocTask.new do |rdoc|
45
44
  config = YAML.load(File.read('VERSION.yml'))
46
45
  version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
47
46
  else
48
- version = ""
47
+ version = ''
49
48
  end
50
49
 
51
50
  rdoc.rdoc_dir = 'rdoc'
@@ -59,20 +58,19 @@ end
59
58
  begin
60
59
  require 'rake/contrib/sshpublisher'
61
60
  namespace :rubyforge do
62
-
63
- desc "Release gem and RDoc documentation to RubyForge"
64
- task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
65
-
61
+ desc 'Release gem and RDoc documentation to RubyForge'
62
+ task release: ['rubyforge:release:gem', 'rubyforge:release:docs']
63
+
66
64
  namespace :release do
67
- desc "Publish RDoc to RubyForge."
68
- task :docs => [:rdoc] do
65
+ desc 'Publish RDoc to RubyForge.'
66
+ task docs: [:rdoc] do
69
67
  require 'yaml'
70
68
  config = YAML.load(
71
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
69
+ File.read(File.expand_path('~/.rubyforge/user-config.yml'))
72
70
  )
73
71
 
74
72
  host = "#{config['username']}@rubyforge.org"
75
- remote_dir = "/var/www/gforge-projects/existing-project-with-version/"
73
+ remote_dir = '/var/www/gforge-projects/existing-project-with-version/'
76
74
  local_dir = 'rdoc'
77
75
 
78
76
  Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
@@ -80,5 +78,5 @@ begin
80
78
  end
81
79
  end
82
80
  rescue LoadError
83
- puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
81
+ puts 'Rake SshDirPublisher is unavailable or your rubyforge environment is not configured.'
84
82
  end
@@ -1,29 +1,27 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = %q{existing-project-with-version}
5
- s.version = "1.5.3"
4
+ s.name = 'existing-project-with-version'
5
+ s.version = '1.5.3'
6
6
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Josh Nichols"]
9
- s.date = %q{2009-03-13}
10
- s.email = %q{josh@technicalpickles.com}
11
- s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
12
- s.files = ["README.rdoc", "VERSION.yml", "lib/existing_project_with_version.rb", "test/existing_project_with_version_test.rb", "test/test_helper.rb", "LICENSE"]
7
+ s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
8
+ s.authors = ['Josh Nichols']
9
+ s.date = '2009-03-13'
10
+ s.email = 'josh@technicalpickles.com'
11
+ s.extra_rdoc_files = ['README.rdoc', 'LICENSE']
12
+ s.files = ['README.rdoc', 'VERSION.yml', 'lib/existing_project_with_version.rb', 'test/existing_project_with_version_test.rb', 'test/test_helper.rb', 'LICENSE']
13
13
  s.has_rdoc = true
14
- s.homepage = %q{http://github.com/technicalpickles/existing-project-with-version}
15
- s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
16
- s.require_paths = ["lib"]
17
- s.rubygems_version = %q{1.3.1}
18
- s.summary = %q{Summarize your gem}
14
+ s.homepage = 'http://github.com/technicalpickles/existing-project-with-version'
15
+ s.rdoc_options = ['--inline-source', '--charset=UTF-8']
16
+ s.require_paths = ['lib']
17
+ s.rubygems_version = '1.3.1'
18
+ s.summary = 'Summarize your gem'
19
19
 
20
- if s.respond_to? :specification_version then
20
+ if s.respond_to? :specification_version
21
21
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
22
22
  s.specification_version = 2
23
23
 
24
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
25
- else
24
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0')
26
25
  end
27
- else
28
26
  end
29
27
  end
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class ExistingProjectWithVersionTest < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
4
+ should 'probably rename this file and start testing for real' do
5
+ flunk 'hey buddy, you should probably rename this file and start testing for real'
6
6
  end
7
7
  end