jeweler 1.5.0.pre3 → 1.5.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,208 +1,215 @@
1
1
  # Jeweler: Craft the perfect RubyGem
2
2
 
3
- Jeweler provides two things:
3
+ Jeweler provides the noble ruby developer with two primary features:
4
4
 
5
- * Rake tasks for managing gems and versioning of a <a href="http://github.com">GitHub</a> project
6
- * A generator for creating/kickstarting a new project
5
+ * a library for managing and releasing RubyGem projects
6
+ * a scaffold generator for starting new RubyGem projects
7
7
 
8
- ## Quick Links
8
+ ## Hello, world
9
9
 
10
- * [Wiki](http://wiki.github.com/technicalpickles/jeweler)
11
- * [Mailing List](http://groups.google.com/group/jeweler-rb)
12
- * [Bugs](http://github.com/technicalpickles/jeweler/issues)
13
- * [Donate](http://pledgie.org/campaigns/2604)
10
+ Use RubyGems to install the heck out of jeweler to get started:
14
11
 
15
- ## Installing
12
+ $ gem install jeweler
16
13
 
17
- # Install the gem:
18
- gem install jeweler
14
+ With jeweler installed, you can use the `jeweler` command to generate a new project. For the most basic use, just give it a name:
19
15
 
20
- ## Using in an existing project
16
+ $ jeweler hello-gem
21
17
 
22
- It's easy to get up and running. Update your Rakefile to instantiate a `Jeweler::Tasks`, and give it a block with details about your project.
18
+ This requires some Git configuration (like name, email, GitHub account, etc), but `jeweler` will prompt along the way.
23
19
 
24
- begin
25
- require 'jeweler'
26
- Jeweler::Tasks.new do |gemspec|
27
- gemspec.name = "the-perfect-gem"
28
- gemspec.summary = "One line summary of your gem"
29
- gemspec.description = "A different and possibly longer explanation of"
30
- gemspec.email = "josh@technicalpickles.com"
31
- gemspec.homepage = "http://github.com/technicalpickles/the-perfect-gem"
32
- gemspec.authors = ["Josh Nichols"]
33
- end
34
- rescue LoadError
35
- puts "Jeweler not available. Install it with: gem install jeweler"
36
- end
20
+ Your new `hello-gem` gem is ready in the `hello-gem` directory. Take a peek, and you'll see several files and directories
37
21
 
38
- The yield object here, `gemspec`, is a `Gem::Specification` object. See the [Customizing your project's gem specification](http://wiki.github.com/technicalpickles/jeweler/customizing-your-projects-gem-specification) for more details about how you can customize your gemspec.
22
+ * `Rakefile` setup for jeweler, running tests, generating documentation, and releasing to [rubygems.org](http://rubygems.org/)
23
+ * `README.rdoc` with contribution guidelines and copyright info crediting you
24
+ * `LICENSE` with the MIT licensed crediting you
25
+ * `Gemfile` with development dependencies filled in
26
+ * `lib/hello-gem.rb` waiting for you to code
27
+ * `test/` containing a (failing) shoulda test suite [shoulda](http://github.com/thoughtbot/shoulda)
39
28
 
40
- ## Using to start a new project
41
29
 
42
- Jeweler provides a generator. It requires you to [setup your name and email for git](http://help.github.com/git-email-settings/) and [your username and token for GitHub](http://github.com/guides/local-github-config).
30
+ ### More `jeweler` options
43
31
 
44
- jeweler the-perfect-gem
32
+ The `jeweler` command supports a lot of options. Mostly, they are for generating baked in support for this test framework, or that.
45
33
 
46
- This will prepare a project in the 'the-perfect-gem' directory, setup to use Jeweler.
34
+ Check out `jeweler --help` for the most up to date options.
47
35
 
48
- It supports a number of options. Here's a taste, but `jeweler --help` will give you the most up-to-date listing:
36
+ ## Hello, rake tasks
49
37
 
50
- * --create-repo: in addition to preparing a project, it create an repo up on GitHub and enable RubyGem generation
51
- * --testunit: generate test_helper.rb and test ready for test/unit
52
- * --minitest: generate test_helper.rb and test ready for minitest
53
- * --shoulda: generate test_helper.rb and test ready for shoulda (this is the default)
54
- * --rspec: generate spec_helper.rb and spec ready for rspec
55
- * --bacon: generate spec_helper.rb and spec ready for bacon
56
- * --gemcutter: setup releasing to gemcutter
57
- * --rubyforge: setup releasing to rubyforge
38
+ Beyond just editing source code, you'll be interacting with your gem using `rake` a lot. To see all the tasks available with a brief description, you can run:
58
39
 
59
- ### Default options
40
+ $ rake -T
60
41
 
61
- Jeweler respects the JEWELER_OPTS environment variable. Want to always use RSpec, and you're using bash? Add this to ~/.bashrc:
42
+ You'll need a version before you can start installing your gem locally. The easiest way is with the `version:write` Rake task. Let's imagine you start with 0.1.0
62
43
 
63
- export JEWELER_OPTS="--rspec"
44
+ $ rake version:write MAJOR=0 MINOR=1 PATCH=0
64
45
 
65
- ## Gemspec
46
+ You can now go forth and develop, now that there's an initial version defined. Eventually, you should install and test the gem:
66
47
 
67
- Jeweler handles generating a gemspec file for your project:
48
+ $ rake install
68
49
 
69
- rake gemspec
50
+ The `install` rake task builds the gem and `gem install`s it. You're all set if you're using [RVM](http://rvm.beginrescueend.com/), but you may need to run it with sudo if you have a system-installed ruby:
70
51
 
71
- This creates a gemspec for your project. It's based on the info you give `Jeweler::Tasks`, the current version of your project, and some defaults that Jeweler provides.
52
+ $ sudo rake install
72
53
 
73
- ## Gem
54
+ ### Releasing
74
55
 
75
- Jeweler gives you tasks for building and installing your gem.
56
+ At last, it's time to [ship it](http://img.skitch.com/20100310-nrgxbwqm58tibiq2un6mujqmm5.png)! Make sure you have everything committed and pushed, then go wild:
76
57
 
77
- rake install
58
+ $ rake release
78
59
 
79
- To build the gem (which will end up in `pkg`), run:
60
+ This will automatically:
80
61
 
81
- rake build
62
+ * Generate `hello-gem.gemspec` and commit it
63
+ * Use `git` to tag `v0.1.0` and push it
64
+ * Build `hello-gem-0.1.0.gem` and push it to [rubygems.org](http://rubygems.org/gems/)
82
65
 
83
- To install the gem (and build if necessary), i.e. using gem install, run:
66
+ ### Version bumping
84
67
 
85
- rake install
68
+ It feels good to release code. Do it, do it often. But before that, bump the version. Then release it. There's a few ways to update the version:
86
69
 
87
- Note, this does not use `sudo` to install it, so if your ruby setup needs that, you should prefix it with sudo:
70
+ # version:write like before
71
+ $ rake version:write MAJOR=0 MINOR=3 PATCH=0
88
72
 
89
- sudo rake install
73
+ # bump just major, ie 0.1.0 -> 1.0.0
74
+ $ rake version:bump:major
90
75
 
91
- ## Versioning
76
+ # bump just minor, ie 0.1.0 -> 0.2.0
77
+ $ rake version:bump:minor
92
78
 
93
- Jeweler tracks the version of your project. It assumes you will be using a version in the format `x.y.z`. `x` is the 'major' version, `y` is the 'minor' version, and `z` is the patch version.
79
+ # bump just patch, ie 0.1.0 -> 0.1.1
80
+ $ rake version:bump:patch
94
81
 
95
- Initially, your project starts out at 0.0.0. Jeweler provides Rake tasks for bumping the version:
82
+ Then it's the same `release` we used before:
96
83
 
97
- rake version:bump:major
98
- rake version:bump:minor
99
- rake version:bump:patch
84
+ $ rake release
100
85
 
101
- You can also programmatically set the version if you wish. Typically, you use this to have a module with the version info so clients can access it. The only downside here is you no longer can use the version:bump tasks.
86
+ ## Customizing your gem
102
87
 
103
- require File.dirname(__FILE__) + "/lib/my_project/version.rb"
88
+ If you've been following along so far, your gem is just a blank slate. You're going to need to make it colorful and full of metadata.
104
89
 
105
- Jeweler::Tasks.new do |gemspec|
106
- gemspec.version = MyProject::VERSION
107
- # more stuff
90
+ You can customize your gem by updating your `Rakefile`. With a newly generated project, it will look something like this:
91
+
92
+ require 'jeweler'
93
+ Jeweler::Tasks.new do |gem|
94
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
95
+ gem.name = "whatwhatwhat"
96
+ gem.summary = %Q{TODO: one-line summary of your gem}
97
+ gem.description = %Q{TODO: longer description of your gem}
98
+ gem.email = "josh@technicalpickles.com"
99
+ gem.homepage = "http://github.com/technicalpickles/whatwhatwhat"
100
+ gem.authors = ["Joshua Nichols"]
108
101
  end
109
102
 
110
- ### Prerelease versioning
103
+ It's crucial to understand the `gem` object is just a Gem::Specification. You can read up about it at [docs.rubygems.org/read/chapter/20](http://docs.rubygems.org/read/chapter/20). This is the most basic way of specifying a gem, Jeweler-managed or not. Jeweler just exposes this to you, in addition to providing some reasonable defaults, which we'll explore now.
111
104
 
112
- Major, minor, and patch versions have a distant cousin: build. You can use this to add an arbitrary (or you know, regular type) version. This is particularly useful for prereleases.
105
+ ### Project information
113
106
 
114
- You have two ways of doing this:
107
+ gem.name = "whatwhatwhat"
115
108
 
116
- * Use `version:write` and specify `BUILD=pre1`
117
- * Edit VERSION by hand to add a fourth version segment
109
+ Every gem has a name. Among other things, the gem name is how you are able to `gem install` it. [Reference](http://docs.rubygems.org/read/chapter/20#name)
118
110
 
119
- Jeweler does not provide a `version:bump:build` because the build version can really be anything, so it's hard to know what should be the next bump.
111
+ gem.summary = %Q{TODO: longer description of your gem}
120
112
 
121
- ## Releasing
113
+ This is a one line summary of your gem. This is displayed, for example, when you use `gem list --details` or view it on [rubygems.org](http://rubygems.org/gems/).
122
114
 
123
- Jeweler handles releasing your gem into the wild:
115
+ gem.description = %Q{TODO: longer description of your gem}
124
116
 
125
- rake release
117
+ Description is a longer description. Scholars ascertain that knowledge of where the description is used was lost centuries ago.
126
118
 
127
- It does the following for you:
119
+ gem.email = "josh@technicalpickles.com"
128
120
 
129
- * Regenerate the gemspec to the latest version of your project
130
- * git pushes to origin/master branch
131
- * git tags the version and pushes to the origin remote
121
+ This should be a way to get a hold of you regarding the gem.
132
122
 
133
- As is though, it doesn't actually get your gem anywhere. To do that, you'll need to use rubyforge or gemcutter.
123
+ gem.homepage = "http://github.com/technicalpickles/whatwhatwhat"
134
124
 
135
- ### Releasing to Gemcutter
125
+ The homepage should have more information about your gem. The jeweler generator guesses this based on the assumption your code lives on [GitHub](http://github.com/), using your Git configuration to find your GitHub username. This is displayed by `gem list --details` and on rubygems.org.
136
126
 
137
- Jeweler can also handle releasing to [Gemcutter](http://gemcutter.org). There are a few steps you need to do before doing any Gemcutter releases with Jeweler:
127
+ gem.authors = ["Joshua Nichols"]
138
128
 
139
- * [Create an account on Gemcutter](http://gemcutter.org/sign_up)
140
- * Install the Gemcutter gem: gem install gemcutter
141
- * Run 'gem tumble' to set up RubyGems to use gemcutter as the default source if you haven't already
142
- * Update your Rakefile to make an instance of `Jeweler::GemcutterTasks`
129
+ Hey, this is you, the author (or me in this case). The `jeweler` generator also guesses this from your Git configuration. This is displayed by `gem list --details` and on rubygems.org.
143
130
 
131
+ ### Files
144
132
 
145
- A Rakefile setup for gemcutter would include something like this:
133
+ The quickest way to add more files is to `git add` them. Jeweler uses your Git repository to populate your gem's files by including added and committed and excluding `.gitignore`d. In most cases, this is reasonable enough.
146
134
 
147
- begin
148
- require 'jeweler'
149
- Jeweler::Tasks.new do |gemspec|
150
- # omitted for brevity
151
- end
152
- Jeweler::GemcutterTasks.new
153
- rescue LoadError
154
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
155
- end
135
+ If you need to tweak the files, that's cool. Jeweler populates `gem.files` as a `Rake::FileList`. It's like a normal array, except you can `include` and `exclude` file globs:
156
136
 
137
+ gem.files.exclude 'tmp' # exclude temporary directory
138
+ gem.files.include 'lib/foo/bar.rb' # explicitly include lib/foo/bar.rb
157
139
 
158
- After you have configured this, `rake release` will now also release to Gemcutter.
140
+ If that's not enough, you can just set `gem.files` outright
159
141
 
160
- If you need to release it without the rest of the release task, you can run:
142
+ gem.files = Dir.glob('lib/**/*.rb')
161
143
 
162
- $ rake gemcutter:release
144
+ ### Dependencies
163
145
 
164
- ### Releasing to RubyForge
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)
165
147
 
166
- Jeweler can also handle releasing to [RubyForge](http://rubyforge.org). There are a few steps you need to do before doing any RubyForge releases with Jeweler:
148
+ gem.add_dependency 'nokogiri'
167
149
 
168
- * [Create an account on RubyForge](http://rubyforge.org/account/register.php)
169
- * Request a project on RubyForge.
170
- * Install the RubyForge gem: gem install rubyforge
171
- * Run 'rubyforge setup' and fill in your username and password for RubyForge
172
- * Run 'rubyforge config' to pull down information about your projects
173
- * Run 'rubyforge login' to make sure you are able to login
174
- * In Jeweler::Tasks, you must set `rubyforge_project` to the project you just created
175
- * Add Jeweler::RubyforgeTasks to bring in the appropriate tasks.
176
- * Note, using `jeweler --rubyforge` when generating the project does this for you automatically.
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:
177
151
 
178
- A Rakefile setup for rubyforge would include something like this:
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
179
156
 
180
- begin
181
- require 'jeweler'
182
- Jeweler::Tasks.new do |gemspec|
183
- # ommitted for brevity
184
- gemspec.rubyforge_project = 'the-perfect-gem' # This line would be new
185
- end
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
+
159
+ ### Executables
160
+
161
+ Executables let your gem install shell commands. Just put any executable scripts in the `bin/` directory, make sure they are added using `git`, and Jeweler will take care of the rest.
186
162
 
187
- Jeweler::RubyforgeTasks.new do |rubyforge|
188
- rubyforge.doc_task = "rdoc"
163
+ When you need more finely grained control over it, you can set it yourself:
164
+
165
+ gem.executables = ['foo'] # note, it's the file name relative to `bin/`, not the project root
166
+
167
+ ### Versioning
168
+
169
+ We discussed earlier how to bump the version. The rake tasks are really just convience methods for manipulating the `VERSION` file. It just contains a version string, like `1.2.3`.
170
+
171
+ `VERSION` is a convention used by Jeweler, and is used to populate `gem.version`. You can actually set this yourself, and Jeweler won't try to override it:
172
+
173
+ gem.version = '1.2.3'
174
+
175
+ A common pattern is to have this in a version constant in your library. This is convenient, because users of the library can query the version they are using at runtime.
176
+
177
+ # in lib/foo/version.rb
178
+ class Foo
179
+ module Version
180
+ MAJOR = 1
181
+ MINOR = 2
182
+ PATCH = 3
183
+ BUILD = 'pre3'
184
+
185
+ STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
189
186
  end
190
- rescue LoadError
191
- puts "Jeweler, or a dependency, not available. Install it with: gem install jeweler"
192
187
  end
193
188
 
194
- Now you must initially create a 'package' for your gem in your RubyForge 'project':
189
+ # in Rakefile
190
+ require 'jeweler'
191
+ require './lib/foo/version.rb'
192
+ Jeweler::Tasks.new do |gem|
193
+ # snip
194
+ gem.version = Foo::Version::STRING
195
+ end
195
196
 
196
- $ rake rubyforge:setup
197
+ ### Rake tasks
197
198
 
198
- After you have configured this, `rake release` will now also release to RubyForge.
199
+ Jeweler lives inside of Rake. As a result, they are dear friends. But, that friendship doesn't interfere with typical Rake operations.
199
200
 
200
- If you need to release it without the rest of the release task, you can run:
201
+ That means you can define your own namespaces, tasks, or use third party Rake libraries without cause for concern.
202
+
203
+ ## Contributing to Jeweler
201
204
 
202
- $ rake rubyforge:release
205
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
206
+ * Check out the [issue tracker](http://github.com/technicalpickles/jeweler/issues) to make sure someone already hasn't requested it and/or contributed it
207
+ * Fork the project
208
+ * Start a feature/bugfix branch
209
+ * Commit and push until you are happy with your contribution
210
+ * Make sure to add tests for the feature/bugfix. This is important so I don't break it in a future version unintentionally.
211
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate it to its own commit so I can cherry-pick around it.
203
212
 
204
- ## Development and Release Workflow
213
+ ## Copyright
205
214
 
206
- * Hack, commit, hack, commit, etc, etc
207
- * `rake version:bump:patch release` to do the actual version bump and release
208
- * Have a delicious beverage (I suggest scotch)
215
+ Copyright (c) 2008-2010 Josh Nichols. See LICENSE for details.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jeweler}
8
- s.version = "1.5.0.pre3"
8
+ s.version = "1.5.0.pre4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Josh Nichols"]
12
- s.date = %q{2010-09-07}
12
+ s.date = %q{2010-10-12}
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}
@@ -21,7 +21,6 @@ Gem::Specification.new do |s|
21
21
  ]
22
22
  s.files = [
23
23
  ".document",
24
- ".gitignore",
25
24
  "ChangeLog.markdown",
26
25
  "Gemfile",
27
26
  "Gemfile.lock",
@@ -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.0.0.beta.19"]
5
+ generator.development_dependencies << ["rspec", "~> 2.0.0"]
6
6
  end
7
7
 
8
8
  def default_task
@@ -49,7 +49,8 @@ class Jeweler
49
49
  if blank?(files) && repo
50
50
  base_dir_with_trailing_separator = File.join(base_dir, "")
51
51
 
52
- self.files = (repo.ls_files(base_dir).keys - repo.lib.ignored_files).compact.map do |file|
52
+ ignored_files = repo.lib.ignored_files + [".gitignore"]
53
+ self.files = (repo.ls_files(base_dir).keys - ignored_files).compact.map do |file|
53
54
  File.expand_path(file).sub(base_dir_with_trailing_separator, "")
54
55
  end
55
56
  end
@@ -65,7 +66,7 @@ class Jeweler
65
66
  end
66
67
 
67
68
  if blank?(extensions)
68
- self.extensions = FileList['ext/**/extconf.rb']
69
+ self.extensions = FileList['ext/**/{extconf,mkrf_conf}.rb']
69
70
  end
70
71
 
71
72
  self.has_rdoc = true
@@ -2,15 +2,15 @@
2
2
 
3
3
  Description goes here.
4
4
 
5
- == Note on Patches/Pull Requests
5
+ == Contributing to <%= project_name %>
6
6
 
7
- * Fork the project.
8
- * Make your feature addition or bug fix.
9
- * Add tests for it. This is important so I don't break it in a
10
- future version unintentionally.
11
- * Commit, do not mess with rakefile, version, or history.
12
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
13
- * Send me a pull request. Bonus points for topic branches.
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
+ * Fork the project
10
+ * Start a feature/bugfix branch
11
+ * Commit and push until you are happy with your contribution
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
14
 
15
15
  == Copyright
16
16
 
@@ -1,4 +1,3 @@
1
- <%= render_template 'bundler_setup.erb' %>
2
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
3
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
4
3
  require '<%= require_name %>'
@@ -3,7 +3,7 @@ class Jeweler
3
3
  MAJOR = 1
4
4
  MINOR = 5
5
5
  PATCH = 0
6
- BUILD = 'pre3'
6
+ BUILD = 'pre4'
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
9
  end
@@ -113,12 +113,14 @@ class TestSpecification < Test::Unit::TestCase
113
113
  end
114
114
  end
115
115
 
116
- context "there are mutiple extconf.rb in the project directory" do
116
+ context "there are mutiple extconf.rb and mkrf_conf.rb in the project directory" do
117
117
  setup do
118
118
  @project.directory('ext') do |ext|
119
119
  ext.file 'extconf.rb'
120
+ ext.file 'mkrf_conf.rb'
120
121
  ext.directory('trogdor_native') do |trogdor_native|
121
122
  trogdor_native.file 'extconf.rb'
123
+ trogdor_native.file 'mkrf_conf.rb'
122
124
  end
123
125
  end
124
126
  end
@@ -129,8 +131,8 @@ class TestSpecification < Test::Unit::TestCase
129
131
  @gemspec.set_jeweler_defaults(@project)
130
132
  end
131
133
 
132
- should "have all the extconf.rb files in extensions" do
133
- assert_equal %w(ext/extconf.rb ext/trogdor_native/extconf.rb), @gemspec.extensions
134
+ should "have all the extconf.rb and mkrf_config.rb files in extensions" do
135
+ assert_equal %w(ext/mkrf_conf.rb ext/trogdor_native/mkrf_conf.rb ext/extconf.rb ext/trogdor_native/extconf.rb).sort, @gemspec.extensions.sort
134
136
  end
135
137
 
136
138
  end
@@ -193,8 +195,8 @@ class TestSpecification < Test::Unit::TestCase
193
195
  @gemspec.set_jeweler_defaults(@project, @project)
194
196
  end
195
197
 
196
- should "populate files from git excluding ignored" do
197
- assert_equal %w(.gitignore Rakefile lib/example.rb), @gemspec.files.sort
198
+ should "populate files from git excluding ignored and .gitignore" do
199
+ assert_equal %w(Rakefile lib/example.rb), @gemspec.files.sort
198
200
  end
199
201
  end
200
202
 
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 5
8
8
  - 0
9
- - pre3
10
- version: 1.5.0.pre3
9
+ - pre4
10
+ version: 1.5.0.pre4
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-09-07 00:00:00 -04:00
18
+ date: 2010-10-12 00:00:00 -04:00
19
19
  default_executable: jeweler
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -230,7 +230,6 @@ extra_rdoc_files:
230
230
  - README.markdown
231
231
  files:
232
232
  - .document
233
- - .gitignore
234
233
  - ChangeLog.markdown
235
234
  - Gemfile
236
235
  - Gemfile.lock
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- # bundler
2
- .bundle
3
-
4
- # rcov generated
5
- coverage
6
-
7
- # jeweler generated
8
- pkg
9
-
10
- # yard generated
11
- doc
12
- .yardoc
13
-
14
- # ctags generated
15
- tags
16
-
17
- # tmp directories used during testing
18
- test/tmp
19
- test/jeweler/version_tmp
20
- test/version_tmp
21
- tmp