jeweler 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -145,14 +145,14 @@ If that's not enough, you can just set `gem.files` outright
145
145
 
146
146
  Dependencies let you define other gems that your gem needs to function. `gem install your-gem` will install your-gem's dependencies along with it, and when you use your-gem in an application, the dependencies will be made available. Use `gem.add_dependency` to register them. [Reference](http://docs.rubygems.org/read/chapter/20#dependencies)
147
147
 
148
- gem.add_dependency 'nokogiri'
148
+ gem.add_dependency 'nokogiri'
149
149
 
150
150
  This will ensure a version of `nokogiri` is installed, but it doesn't require anything more than that. You can provide extra args to be more specific:
151
151
 
152
- gem.add_dependency 'nokogiri', '= 1.2.1' # exactly version 1.2.1
153
- gem.add_dependency 'nokogiri', '>= 1.2.1' # greater than or equal to 1.2.1, ie, 1.2.1, 1.2.2, 1.3.0, 2.0.0, etc
154
- gem.add_dependency 'nokogiri', '>= 1.2.1', '< 1.3.0' # greater than or equal to 1.2.1, but less than 1.3.0
155
- gem.add_dependency 'nokogiri', '~> 1.2.1' # same thing, but more concise
152
+ gem.add_dependency 'nokogiri', '= 1.2.1' # exactly version 1.2.1
153
+ gem.add_dependency 'nokogiri', '>= 1.2.1' # greater than or equal to 1.2.1, ie, 1.2.1, 1.2.2, 1.3.0, 2.0.0, etc
154
+ gem.add_dependency 'nokogiri', '>= 1.2.1', '< 1.3.0' # greater than or equal to 1.2.1, but less than 1.3.0
155
+ gem.add_dependency 'nokogiri', '~> 1.2.1' # same thing, but more concise
156
156
 
157
157
  When specifying which version is required, there's a bit of the condunrum. You want to allow the most versions possible, but you want to be sure they are compatible. Using `>= 1.2.1` is fine most of the time, except until the point that 2.0.0 comes out and totally breaks backwards the API. That's when it's good to use `~> 1.2.1`, which requires any version in the `1.2` family, starting with `1.2.1`.
158
158
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jeweler}
8
- s.version = "1.5.1"
8
+ s.version = "1.5.2"
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"]
12
- s.date = %q{2010-11-13}
12
+ s.date = %q{2010-12-20}
13
13
  s.default_executable = %q{jeweler}
14
14
  s.description = %q{Simple and opinionated helper for creating Rubygem projects on GitHub}
15
15
  s.email = %q{josh@technicalpickles.com}
@@ -13,7 +13,6 @@ class Jeweler
13
13
  version_helper.to_s
14
14
  end
15
15
 
16
- gemspec_helper.spec.date = Time.now
17
16
  gemspec_helper.write
18
17
 
19
18
  output.puts "Generated: #{gemspec_helper.path}"
@@ -2,7 +2,7 @@ class Jeweler
2
2
  class Generator
3
3
  module RspecMixin
4
4
  def self.extended(generator)
5
- generator.development_dependencies << ["rspec", "~> 2.1.0"]
5
+ generator.development_dependencies << ["rspec", "~> 2.3.0"]
6
6
  end
7
7
 
8
8
  def default_task
@@ -69,8 +69,6 @@ class Jeweler
69
69
  self.extensions = FileList['ext/**/{extconf,mkrf_conf}.rb']
70
70
  end
71
71
 
72
- self.has_rdoc = true
73
-
74
72
  if blank?(extra_rdoc_files)
75
73
  self.extra_rdoc_files = FileList['README*', 'ChangeLog*', 'LICENSE*', 'TODO']
76
74
  end
@@ -2,7 +2,7 @@ class Jeweler
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 5
5
- PATCH = 1
5
+ PATCH = 2
6
6
  BUILD = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -43,9 +43,6 @@ class TestSpecification < Test::Unit::TestCase
43
43
  assert_equal FileList, @gemspec.extra_rdoc_files.class
44
44
  end
45
45
 
46
- should "enable rdoc" do
47
- assert @gemspec.has_rdoc
48
- end
49
46
  end
50
47
 
51
48
  context "there aren't any executables in the project directory" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeweler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 1
10
- version: 1.5.1
9
+ - 2
10
+ version: 1.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Nichols
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-13 00:00:00 -06:00
18
+ date: 2010-12-20 00:00:00 -05:00
19
19
  default_executable: jeweler
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency