jeweler 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown
CHANGED
@@ -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
|
-
|
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
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
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
|
|
data/jeweler.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{jeweler}
|
8
|
-
s.version = "1.5.
|
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-
|
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}
|
data/lib/jeweler/version.rb
CHANGED
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:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
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-
|
18
|
+
date: 2010-12-20 00:00:00 -05:00
|
19
19
|
default_executable: jeweler
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|