technicalpickles / jeweler
- Source
- Commits
- Network (72)
- Issues (28)
- Downloads (27)
- Wiki (10)
- Graphs
-
Branch:
master
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
Opinionated tool for creating and managing Rubygem projects
-
Pushing a new version to Gemcutter doesn't tag the version
4 comments Created 22 days ago by PeejaUnless I'm doing something wrong. This isn't necessarily a bug, but it was nice to have when I was hosting gems on GitHub, and it would be nice to have again.
Comments
-
When I use
rake install, why doesn't jeweler automatically install dependencies? I've reverted to just doingrake build;gem install pkg/___.gem, and things work, but then I have to add a bunch of logic to find the right gem file. Can't jeweler just do this out of the box?Comments
This should be resolved with http://github.com/technicalpickles/jeweler/commit/4659f338f182fc62ee4f69aabd1e1e823a8de655
technicalpickles
Sun Nov 08 10:50:25 -0800 2009
| link
Yep, it's as snsnu said.
-
Don't pass the --local flag to 'gem install'
2 comments Created about 1 month ago by snusnuWhile still allowing local gem installs, this automatically pulls in the dependencies when rake install is called.
Patch can be found at: http://github.com/snusnu/jeweler/tree/no_local_flag
Comments
technicalpickles
Sat Nov 07 10:09:32 -0800 2009
| link
Merged... thanks!
technicalpickles
Sat Nov 07 10:19:09 -0800 2009
| link
... and closed.
-
Rake FileList members in gemspec block should uniq their content
1 comment Created about 1 month ago by snusnuIf I include a file to a FileList that is already present in that list, then the file will end up multiple times in the gemspec.
Example:
gemspec.extra_rdoc_files.include 'TODO'will lead to 'TODO' being present two times in the relevant gemspec section.
Comments
technicalpickles
Sat Nov 07 10:22:37 -0800 2009
| link
Fixed in f50055e
-
The awesome http://rvm.beginrescueend.com/ doesn't like it when gems are installed with sudo. The reason behind that is explained on the homepage. I think jeweler should at least respect an ENV var to turn sudo usage off. I know that probably sudo rake install is no good choice either, because the package task gets invoked with root privileges too, which leads to root owned pkg/ folder. So some ENV var is probably a good option?
Comments
technicalpickles
Tue Nov 03 09:49:41 -0800 2009
| link
argh, so many angels!
I've been thinking about this too, because I'm doing nonprilveged gem installs myself. I'm not sure what the best option is to configure it though.
ENV is probably the simplest. JEWELER_NO_SUDO perhaps?
An environment variable seems to make sense -- but I would make the ENV variable called JEWELER_SUDO. Therefore optional for those not needing sudo. And necessary for those who want to sudo. Make them feel the pain every time they rip wings off angels.
Agree with the JEWELER_SUDO option :-). I think the community is starting to see the light and switching over to not using sudo to install gems. Jeweler should help encourage that a bit.
technicalpickles
Tue Nov 03 13:13:39 -0800 2009
| link
Yeah, about inflicting pain... I'm definitely NOT going to do that. I'll have to think about this a little bit.
If anyone were to make patches in a fork in the meantime though...
Agreed. Pain is bad. But a little error message saying "permission denied... please use set JEWELER_SUDO=true, or sudo rake install" wouldn't be too painful.
technicalpickles
Wed Nov 04 07:37:10 -0800 2009
| link
This is what I'd propose:
- A new env variable that is respected,
JEWELER_INSTALL_COMMAND - This would determine what to call 'install' with
- It will default to
sudo gemfor now to maintain backwards compatibility - This will allow for privileged, unprivileged, and jruby installs
- Perhaps warn that the default has been used, and direct to set the environment variable to avoid the warning.
technicalpickles
Thu Nov 05 08:36:25 -0800 2009
| link
Partially implemented here, at least the basics of introducing an ENV variable. It'd need some work to be in line with what I proposed.
http://github.com/vintrepid/jeweler/commit/a978642e223ea86ff4fd42f445845ba1dd12ba97
It still seems completely crazy to me to use "sudo gem" by default. sudo is meant to be an override. You can't unoverride it easily (you have to invent a random ENV workaround).
If sudo wasn't the default behavior and I wanted to sudo, i would just run 'sudo rake install'.
Why not get rid of this complexity...?
technicalpickles
Sun Nov 08 10:52:37 -0800 2009
| link
Well, I'm glad you think my past work is completely crazy, but as is evidence by this ticket, I'm trying to move into the realm of sanity. I hope to see you there soon.
Nah, your past work isn't crazy. It is very helpful. We're all learning as we go (at least I am). I would only classify continuing on with the sudo as default as a wee bit of craziness :-).
technicalpickles
Tue Nov 17 23:29:56 -0800 2009
| link
So, I reversed my stance a bit. People who need to sudo, will have to run
sudo rake install.Committed at bae6f6c.
- A new env variable that is respected,
-
2 comments Created 2 months ago by saksit not uses ruby | rake | gem 1.9.1 if i run it with itwaiting for releasexit runs
gem installeven if i use rake1.9.1 tu run rake taskrake1.9.1 installComments
technicalpickles
Sun Nov 01 17:49:31 -0800 2009
| link
Hmm, this is a little interesting.
I'm not sure how I'd reliably guess what 'gem' command to use.
technicalpickles
Sun Nov 01 18:08:09 -0800 2009
| link
Ah, nevermind. I figured out a way to use RbConfig to figure it out.
FIxed in 873f376.
-
Jeweler does not do its magic if gem not in the git root directory.
2 comments Created 2 months ago by bryanlarsenFor example, git://github.com:/tablatom/hobo.git contains three gems in three subdirectories.
I could make it work by specifying the files manually, but it would be very nice if Jeweler could figure it out from git like it can for everybody else.
I've added this support in git://github.com/bryanlarsen/jeweler.git. A required change is also in git://github.com/bryanlarsen/ruby-git.git
Comments
technicalpickles
Sat Oct 17 08:02:30 -0700 2009
| link
Merged into master. Sidenote: it's a little easier for me to merge stuff in if they're in feature branches which only include the relevant commits.
technicalpickles
Mon Oct 19 22:00:36 -0700 2009
| link
Fixed in 1.3.0.
-
Rakefile specified version doesn't work with "build"
3 comments Created 2 months ago by bryanlarsenbegin require 'jeweler' Jeweler::Tasks.new do |gemspec| gemspec.version = Hobo::VERSION...
$ rake build WARNING: no description specified Successfully built RubyGem Name: hobo Version: File: hobo-.gemgem specificationindicates that the version is missing inside the gem too.I'll put a fix on my fork: bryanlarsen/jeweler
Comments
technicalpickles
Mon Oct 12 22:41:23 -0700 2009
| link
This was fixed in another fork already, just not merged in: http://github.com/sutto/jeweler
technicalpickles
Sat Oct 17 07:05:46 -0700 2009
| link
Fixed in master.
technicalpickles
Mon Oct 19 21:47:20 -0700 2009
| link
Fixed in 1.3.0.
-
If i have them configured, push automatically. Alternatively only push automatically when i have e.g. rubyforge.push_on_release = true
Comments
technicalpickles
Sun Oct 04 17:42:03 -0700 2009
| link
The upcoming release handles this. Declaring a RubyforgeTasks or GemcutterTasks adds some extra task dependencies to
release, such that they will happen whenever you runrake release.
technicalpickles
Mon Oct 19 21:47:10 -0700 2009
| link
Fixed in 1.3.0
-
If you take a glance at http://github.com/rspec/meta/commit/3f97424e1d5eee5b68da7fd3927eade72d5e4e38
The current dev setup is to have all the projects checked out under a given path, so meta, mocks, core, and expectations exist at the same level. Meta can manage the other repos via a simple rake task the manipulates git. If we require jeweler and the jeweler gem task the git operations immediately fail as git is locked to the meta repo.
Comments
technicalpickles
Wed Sep 30 10:49:26 -0700 2009
| link
Can you elaborate on 'git operations immediately fail'?
technicalpickles
Thu Oct 01 21:21:04 -0700 2009
| link
Try this in the cd block: system 'pwd'
Notice that it is displaying the correct directory at this point. When git is system'd though, it obviously is still in the meta version.
I can't think of any reason why this would happen when jeweler is required and Jeweler::Tasks is instantiated.
technicalpickles
Thu Oct 01 21:27:06 -0700 2009
| link
I'm pretty sure that this is related to [#37]. There's a patch that works around the problem they were having, but it seems like cd/chdiring into a directory using has some sort of side effect.
technicalpickles
Thu Oct 01 21:43:32 -0700 2009
| link
I have another workaround in 77d0841.
It's kinda disconcerting though, because I have this suspicion there's a bug lurking in either Dir.chdir, FileUtils.cd, or the git command.
-
1 comment Created 3 months ago by vikingjeweler is not autotest compatiblewaiting for releasexA project generated by jeweler is not autotest (ZenTest) compatible. My fork attempts to fix this: http://github.com/viking/jeweler
Comments
technicalpickles
Tue Sep 29 23:36:46 -0700 2009
| link
Merged. Thanks for the contribution!
-
There is a way to disable automatic commits with git in jeweler? They almost never fit my workflow. On the other hand, releasing to Github with tagging is awesome. :)
Comments
technicalpickles
Fri Sep 25 11:03:30 -0700 2009
| link
You generally want to wait until the last possible second to bump the version, ie right before the release.
If you bump the version, and at some point generate the gemspec, it will have the new version. If you happen to commit and push this, github will rebuild the gem. Then you decide to release finally. Unfortunately, the gem would have already been built, meaning the tagged release and the gem's source would not be in sync.
This is mainly why it does force a commit.
technicalpickles
Tue Sep 29 23:53:04 -0700 2009
| link
Could you explain what your work flow generally looks like?
I will try harder to adapt my workflow to jeweler. ;)
I will let you know how it worked! Thanks! :)
technicalpickles
Wed Oct 07 22:02:29 -0700 2009
| link
Closing for now.
-
1 comment Created 3 months ago by pedroJeweler adding footprint to all Rake taskswaiting for releasexHey guys,
Today we noticed that just adding Jeweler to the Heroku client gem causes 4 specs to fail.
That seems to be related to Dir.chdir. We change to another dir while running those specs, while Jeweler and Git are also doing something similar. I don't know the exact reason yet, but for some reason when Jeweler is present the chdir in our spec doesn't take effect, and they end up running in the current folder I'm in.
This is certainly an issue itself, but I think the big picture here is Jeweler shouldn't add any footprint until explicitly called; it shouldn't parse my Git repo and build the gem spec if I'm just running my tests.
The patch to make Jeweler rake tasks lazy is here:
http://github.com/pedro/jeweler/commit/320ad5735e4ba72487c549207ea8b0ded26a4d0cThanks,
PedroComments
technicalpickles
Tue Sep 29 23:52:35 -0700 2009
| link
Merged, thanks for contributing! Just have to push a release with this guy...
-
3 comments Created 3 months ago by hallisonproblems with `install` rake taskwaiting for releasexPlease, put option
--localin command variable within sourcejeweler/lib/jeweler/commands/install_gem.rb.... def run command = "gem install #{gemspec_helper.gem_path} --local" # here, command must run with option --local output.puts "Executing #{command.inspect}:" sh sudo_wrapper(command) # TODO where does sh actually come from!? - rake, apparently end ...Thanks.
Comments
technicalpickles
Tue Sep 15 13:13:00 -0700 2009
| link
Could you show the error you were encountering, as well as the version of rubygems you are using?
I've used this for quite awhile now without issue.
Sorry, I forgot to includes the basic information :)
My machine Linux nibble 2.6.30-ARCH #1 SMP PREEMPT Mon Aug 17 16:06:45 CEST 2009 x86_64 AMD Turion(tm) X2 Dual-Core Mobile RM-72 AuthenticAMD GNU/Linux RubyGems v1.3.5 Ruby ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]I found this error in my fork of the Gemcutter project. When I run
rake install, nothing else returns. So, I usedstracefor discover the problem ... and read in trace output that the network down by timeout. The gem command not use the option '--remote' by default.I had the same problem in other projects and rakefiles.
technicalpickles
Tue Sep 22 22:53:29 -0700 2009
| link
Fixed in f1bcf06. Thanks for reporting and tracking down the problem!
-
4 comments Created 3 months ago by spicycodeCan't create pre-release gems with jewelerwaiting for releasexIf I wanted to create a gem version ala 2.0.0.a1, I'm not allowed in jeweler. This is very useful with the new gem prerelease version support.
Comments
technicalpickles
Tue Sep 15 09:36:53 -0700 2009
| link
I took a quick look at your fork, and it seems to be in order. The only issues/edge cases I can think of is what would happen if you are currently on a prerelease, and then use version:bump:*.
I also wonder if there should be built in support for doing prerelease, like:
- rake version:bump:major:prerelease
- rake verison:bump:prerelease
The first could bump you to the next major release, and then add a prerelease version. The second could bump an existing prerelease by one.
Thoughts?
I intentionally made it clear out the pre-release if you use any of the version bumps, assuming that they will be manually managed (since you could in theory put anything in the pre-release/build slot). This also solves the need to 'bump' the pre-release version, explicit version writes could handle it.
WDYT?
technicalpickles
Tue Sep 22 23:29:54 -0700 2009
| link
That behavior seems about right.
I finally took a closer look at it, and the tests pass, but one of the features fails:
$ cucumber features/tasks/version_bumping.feature:35 -r featuresFeature: bumping version Scenario: arbitrary version with a build version # features/tasks/version_bumping.feature:35 Given a working directory # features/step_definitions/filesystem_steps.rb:1 And I use the existing project "existing-project-with-version-yaml" as a template # features/step_definitions/filesystem_steps.rb:53 And "VERSION.yml" contains hash "{ :major => 1, :minor => 5, :patch => 3}" # features/step_definitions/filesystem_steps.rb:58 When I run "rake version:write MAJOR=3 MINOR=7 PATCH=1 BUILD=2" in "existing-project-with-version-yaml" # features/step_definitions/filesystem_steps.rb:25 Then the process should exit cleanly # features/step_definitions/filesystem_steps.rb:45 And the updated version, 3.7.1.2, is displayed # features/step_definitions/filesystem_steps.rb:37 <"(in /Users/nichoj/code/active/jeweler/tmp/existing-project-with-version-yaml)\nUpdated version: 3.7.1\n"> expected to be =~ </Updated\ version:\ 3\.7\.1\.2/>. (Test::Unit::AssertionFailedError) /gentoo/usr/lib/ruby/1.8/test/unit/assertions.rb:48:in `assert_block' /gentoo/usr/lib/ruby/1.8/test/unit/assertions.rb:500:in `_wrap_assertion' /gentoo/usr/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block' /gentoo/usr/lib/ruby/1.8/test/unit/assertions.rb:229:in `assert_match' /gentoo/usr/lib/ruby/1.8/test/unit/assertions.rb:495:in `_wrap_assertion' /gentoo/usr/lib/ruby/1.8/test/unit/assertions.rb:221:in `assert_match' ./features/step_definitions/filesystem_steps.rb:38:in `/^the updated version, (.*), is displayed$/' features/tasks/version_bumping.feature:41:in `And the updated version, 3.7.1.2, is displayed' Failing Scenarios: cucumber features/tasks/version_bumping.feature:35 # Scenario: arbitrary version with a build version 1 scenario (1 failed) 6 steps (1 failed, 5 passed) 0m1.674sI did some testing by hand and was getting the same results.
Seems it's not actually using BUILD in
Jeweler::TasksorJeweler#write_versionyet.
technicalpickles
Tue Sep 22 23:57:15 -0700 2009
| link
Fear not, I finished typing in BUILD, as well as making sure that it works for plaintext in addition to YAML.
Merged in now. Thanks for getting the ball rolling.
-
4 comments Created 3 months ago by adamsalterStrange gemspec Errors when jeweler included in rakefile - ruby 1.9ruby 1.9x- create empty directory
- create new Rakefile
- put
require 'jeweler'and save
- run
rake -T
you should see many lines of errors like:
WARNING: #<NoMethodError: undefined method `>' for nil:NilClass>
WARNING: Invalid .gemspec format in
'/Users/adam/.gem/ruby/1.9.1/specifications/rake-0.8.7.gemspec'Comments
technicalpickles
Thu Sep 10 06:42:39 -0700 2009
| link
Please run rake with --trace, and post the results.
This is a rubygems / ruby 1.9 issue, not a jeweler issue:
http://rubyforge.org/tracker/index.php?func=detail&aid=27087&group_id=126&atid=575
adamsalter
Thu Sep 10 18:01:42 -0700 2009
| link
running rake with trace doesn't do anything since the errors are caught, and the rake -T output actually happens.
From @rsanheim's comments there does seem to be this backtrace:
I guess this could be very likely a bug in rubygems 1.3.5
technicalpickles
Tue Sep 22 23:07:54 -0700 2009
| link
Closing, since there's not a whole lot I can do on the jeweler side of things
- create empty directory
-
14 comments Created 3 months ago by chriseppsteinCustomizable location of the VERSION file and/or updating the VERSION constant.waiting for releasexAccording to:
http://weblog.rubyonrails.org/2009/9/1/gem-packaging-best-practicesMy gem should not rely on resources outside of the lib directory. However, my VERSION constant is built by reading the VERSION.yml file so that it is the single point of truth for version information. So I'd like to store my version file in the lib directory.
Alternatively, I'd be happy to have Jeweler provide a simple way to update the VERSION constant within a ruby file whenever the version is changed.
Comments
technicalpickles
Thu Sep 03 09:14:59 -0700 2009
| link
This came up defunkt first released rip. We talked, and thought it was best to have lib/your-namespace/VERSION. Never saw anything of it though.
As for updating the VERSION constant at release time... that would work as well. Originally jeweler worked off a lib/your-namespace/version.rb, but it was pretty problematic to have to 1) determine what your top level namespace is (class, module, nested?) and 2) then write out the correct version.rb.
chriseppstein
Thu Sep 03 09:38:24 -0700 2009
| link
I'd be happy with something like this (not hard to do from my reading of the code):
Jeweler::Tasks.new(:version_path => "lib/VERSION", :version_format => :plaintext) do |gemspec| ... endI'm content to read that file to set my VERSION constant.
technicalpickles
Thu Sep 03 11:11:15 -0700 2009
| link
That seems appropriate. Although, you will probably want :version_path to be lib/your-namespace/VERSION, otherwise it'd make rip unhappy.
I'm here for the same reason @chriseppstein. I have a simpler proposal, why Jeweler simply don't allow us to set the version in the specification?
require File.dir(__FILE__) + "lib/my_project/version.rb" Jeweler::Tasks.new do |s| s.version = MyProject::VERSION # more stuff endSimple and would do the trick for me. If the version is not set, we could go back and check for the yml file.
technicalpickles
Wed Sep 09 12:20:57 -0700 2009
| link
I can see how that makes sense.
However, it'd be quite a larger change to jeweler. I'm pretty sure the gemspec's version gets overriden in a lot of places, so you'd have to track whether or not that should happen. In addition, all the version bump related would need to be disabled somehow, since jeweler wouldn't be managing the version anymore.
I got that working with a few changes. :) We can move the version tasks to a module and include them if no version was set. I will try to provide a patch!
technicalpickles
Wed Sep 16 22:21:21 -0700 2009
| link
Been in launch mode for the day job for the last week, so hadn't really had time to work on jeweler.
At a glance, the patch looks pretty good. Now to just find some jeweler time...
technicalpickles
Wed Sep 30 00:12:54 -0700 2009
| link
Looked into this a little more, and it seems to work.
Only issue I could find is that
rake versiondoesn't work correctly. There probably should be a cucumber story to cover that.
technicalpickles
Wed Sep 30 00:15:22 -0700 2009
| link
At a glance, this seems like it'd be sufficient:
class Jeweler def version @gemspec.version || @version_helper.to_s end endYeah, it will work. I was only careful to not add rake version tasks if a version file does not exist.
technicalpickles
Wed Sep 30 20:36:17 -0700 2009
| link
Fixed and merged now. Just waiting on a new release...
-
2 comments Created 4 months ago by SFEleygitxruby 1.9xGem creation fails at git config on Ruby 1.9waiting for releasexPlayers
- ruby 1.9.1p243
- jeweler 1.2.1
- git (gem) 1.2.2
- git (the program) 1.6.4.1
Test case
jeweler blahOutput
create .gitignore create Rakefile create LICENSE create README.rdoc create .document create lib create lib/blah.rb create test create test/test_helper.rb create test/blah_test.rb /opt/local/lib/ruby/gems/1.9.1/gems/git-1.2.2/lib/git/lib.rb:345:in `chdir': wrong number of arguments (1 for 0) (ArgumentError) from /opt/local/lib/ruby/gems/1.9.1/gems/git-1.2.2/lib/git/lib.rb:345:in `config_list' from /opt/local/lib/ruby/gems/1.9.1/gems/git-1.2.2/lib/git/lib.rb:315:in `config_remote' from /opt/local/lib/ruby/gems/1.9.1/gems/git-1.2.2/lib/git/remote.rb:8:in `initialize' from /opt/local/lib/ruby/gems/1.9.1/gems/git-1.2.2/lib/git/base.rb:343:in `new' from /opt/local/lib/ruby/gems/1.9.1/gems/git-1.2.2/lib/git/base.rb:343:in `add_remote' from /opt/local/lib/ruby/gems/1.9.1/gems/jeweler-1.2.1/lib/jeweler/generator.rb:274:in `gitify' from /opt/local/lib/ruby/gems/1.9.1/gems/jeweler-1.2.1/lib/jeweler/generator.rb:92:in `run' from /opt/local/lib/ruby/gems/1.9.1/gems/jeweler-1.2.1/lib/jeweler/generator/application.rb:31:in `run!' from /opt/local/lib/ruby/gems/1.9.1/gems/jeweler-1.2.1/bin/jeweler:8:in `<top (required)>' from /opt/local/bin/jeweler:19:in `load' from /opt/local/bin/jeweler:19:in `<main>'Result
Sadness.
Comments
technicalpickles
Thu Aug 27 10:18:58 -0700 2009
| link
This is actually a ruby 1.9 bug in git (gem). Offending line:
Dir.chdir(@git_dir, &build_list)Basically needing to pass a block/lambda to chdir. This must have changed in ruby 1.9...
technicalpickles
Thu Oct 01 20:30:10 -0700 2009
| link
This is fixed in git 1.2.4. Next release will require that version.
-
19 comments Created 4 months ago by ravicioussingle quoting git commands causes problems on windowswaiting for releasexHi,
I use:
- Windows XP Service Pack 2
- Ruby 1.8.7
newestmsysGit (with git version 1.6.1.9.g97c34)- gems:
- jeweler (1.2.0)
- git (1.2.2)
I can't use
jeweler myprojectcommand, because I got the following error:Comments
technicalpickles
Thu Aug 13 07:30:23 -0700 2009
| link
Hm.... --global must be from a more recent version of git.
Can you try upgrading to at least 1.6.2.x? If that works, I can update the git gem to complain about it, and make jeweler account for it.
I'm having this problem, even with git correctly configured:
http://gist.github.com/167340
technicalpickles
Thu Aug 13 11:09:31 -0700 2009
| link
pbalduino, that looks like a separate issue. so please open a new one, and include what version of git you are running (git --version)
I updated git to 1.6.4.msysgit.0 yesterday and it doesn't solve the problem.
technicalpickles
Fri Aug 14 07:09:17 -0700 2009
| link
Can you try running the git command directly?
ie: git config --global --list
If that doesn't work, can you take a look at
git help config, and see if it mentions anything about 'global'?
technicalpickles
Fri Aug 14 11:55:50 -0700 2009
| link
What about the exact command git is doing?
git config '--global' '--list'
technicalpickles
Fri Aug 14 12:40:55 -0700 2009
| link
Ok, this is mind boggling. I assume there's some disconnect between the git you are running from the command line, and what is being run in the git gem.
Maybe try something like this, while running irb -rgit:
puts Git::Lib.new(nil, nil).current_command_versionAnd compare it to
git --versionputs Git::Lib.new(nil, nil).current_command_versionthrows this:1 6 4As I said:
$ git --version git version 1.6.4.msysgit.0
technicalpickles
Fri Aug 14 13:02:02 -0700 2009
| link
Sorry if this is being a little tedious. Still not sure what the deal is.
What about the output from:
puts Git.global_config?
Sorry if this is being a little tedious.
No problem ;)
$ cat gittest.rb require "git" puts Git.global_config
technicalpickles
Fri Aug 14 19:54:29 -0700 2009
| link
So, I'm kind of out of ideas. My best bet probably is to try to reprduce the problem on windows. Because of unrelated reasons, I recently had to install windows on a spare laptop, so I can try to reproduce...
Tracked this down. git gem issues command
git config '--global' '--list'where parameters are quoted with'and windows cannot handle these. Using double quotes fixes this. lib/git/lib.rb line 713def escape(s) '"' + s.to_s.gsub('"', '\"') + '"' endI had to use this too--any chance of releasing the git gem again with this fix?
Thanks.
-r
technicalpickles
Tue Sep 29 23:48:38 -0700 2009
| link
Fixed in git 1.2.3, and master of jeweler.
technicalpickles
Tue Sep 29 23:49:33 -0700 2009
| link
That is to say, installing git 1.2.3 should fix the problem. jeweler master explicitly requires this version.
-
Create a task "gem" for compatibility with other libraries
3 comments Created 4 months ago by blaxterThe others libraries like jeweler (hoe, bones, etc...) use similar task names. I think it'd be nice, at least, to have
rake gem(doing the same asrake gemspec build) which is the common task that an external user is going to use.Comments
technicalpickles
Tue Sep 22 22:47:49 -0700 2009
| link
I'm not really inclined to add this just for the sake of compatibility with other libraries' rake tasks.
If someone runs
rake gem, and see there's not a task, it's just a matter ofrake -Tto see what should be run to use the gem.Additionally, if a gem author wishes it, they are easily able to add it to their own
gemtask that does just as you are looking for.So, advantages: compatibility with the other 'n' gem generators; drawbacks: none. interesting...
technicalpickles
Wed Sep 23 00:34:18 -0700 2009
| link
I know. Crazy, right?
The short version is I don't think it's a significant enough advantage to really be bothered with. The much longer version...
There used to be a lot more aliases around for a bunch of the rake tasks. In the end, I decided to prune them down so that there was just a canonical way of doing them. So, not wanting to add extra tasks to be compatible with other gem management libraries is kind of in the same vain.
In addition, if I were to want to provide such task-level compatibility, I'd probably want to take a lot closer look at what tasks these other libraries provide. Do they all really have a 'gem' task which builds the gem? Are there any tasks they have that are of interest that jeweler doesn't? Are there any task name overlaps which aren't the same, or that behave different? And so on. For example, hoe has
rake release VERSION=1.0.1. That's kinda different than the way jeweler works -
Missing documentation in README for rubyforge projects
6 comments Created 4 months ago by crohrIn the README, 3 lines are missing to get all the rake tasks required for publishing to rubyforge:
Jeweler::RubyforgeTasks.new do |rubyforge| rubyforge.doc_task = "rdoc" endWithout them, you don't have the
rake rubyforge:setup,rake rubyforge:release:gemsandrake rubyforge:release:docstasks.Creating a new project with the
--rubyforgeflag correctly defines the RakeFile though.Comments
I can confirm I had the same issue with an existing project. Installing the updated jeweler gem broke my existing rakefile as it could no longer see the rubyforge tasks and was unable to publish. Adding the following to my rakefile fixed the issue:
Jeweler::RubyforgeTasks.new do |rubyforge| rubyforge.doc_task = "rdoc" end
technicalpickles
Tue Sep 22 23:04:32 -0700 2009
| link
Updated in 2d5b86f. Thanks for the catch.
Great. I did just notice that the formatting of these new instructions is a little messed up when viewing the README on GitHub. I think you need to indent the whole block of code for it to display properly. This happens in several places in the README. Cheers.
technicalpickles
Wed Sep 23 10:30:26 -0700 2009
| link
I have no idea why it's formating incorrectly. It's indented four spaces, like markdown expect, and like other places in the README do.
Yes, it does seem correct. I would file a bug with GitHub.
http://github.github.com/github-flavored-markdown/
http://daringfireball.net/projects/markdown/syntax#precode
Cheers.
technicalpickles
Wed Sep 23 11:07:31 -0700 2009
| link
I tried previewing it in TextMate, and it formatted incorrectly, so the problem probably isn't GitHub specific.
-
7 comments Created 4 months ago by visfleetJeweler fails on Ruby 1.9.1 because bundled rake doesn't include contribwaiting for releasexWhen running any of the rake tasks I get:
"Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"But Jeweler has been installed as a gem under Ruby 1.9.1.
Comments
technicalpickles
Wed Aug 05 19:22:54 -0700 2009
| link
You should try removing therescue block in your Rakefile for jeweler, in order to see what the actual error is.
The problem seems to be that Jeweler requires a contrib file in Rake that Ruby 1.9 doesn't have anymore, namely rake/contrib/sshpublisher.
$ ruby -v ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux] $ ruby require 'jeweler' ^D /usr/lib/ruby/gems/1.9.1/gems/technicalpickles-jeweler-1.2.1/lib/jeweler/rubyforge_tasks.rb:3:in `require': no such file to load -- rake/contrib/sshpublisher (LoadError) from /usr/lib/ruby/gems/1.9.1/gems/technicalpickles-jeweler-1.2.1/lib/jeweler/rubyforge_tasks.rb:3:in `<top (required)>' from /usr/lib/ruby/gems/1.9.1/gems/technicalpickles-jeweler-1.2.1/lib/jeweler.rb:17:in `require' from /usr/lib/ruby/gems/1.9.1/gems/technicalpickles-jeweler-1.2.1/lib/jeweler.rb:17:in `<top (required)>' from -:1:in `require' from -:1:in `<main>'Rake is bundled with Ruby 1.9 now, but doesn't seem to have any contrib/ directory.
technicalpickles
Tue Sep 15 07:30:26 -0700 2009
| link
Have you tried installing the gem version of rake? I suspect that might fix the problem.
Yeah, it works the with the rake gem. Feels like a bit of a hack though.
technicalpickles
Tue Sep 15 22:54:59 -0700 2009
| link
It sounds like a dependency on rake should fix the problem in that case.
technicalpickles
Tue Sep 29 23:41:51 -0700 2009
| link
This task actually isn't being used anymore, so it should be fine on the next release.
-
3 comments Created 4 months ago by technicalpicklesenhancementxsupport releasing to gemcuttergemcutterxBecause of the awesome.
Comments
technicalpickles
Thu Aug 13 11:39:10 -0700 2009
| link
Awesome, thanks!
It looks good from a cursory glance, but might be a couple of days before I have time to merge it in and release.
technicalpickles
Wed Sep 30 21:03:57 -0700 2009
| link
This was merged & released awhile back.
-
When trying to create a project with jeweler, I receive the following error:
$ jeweler some_project
/Library/Ruby/Gems/1.8/gems/git-1.2.2/lib/git/lib.rb:700:in `command': git config '--list' '--file' '~/.gitconfig' 2>&1:fatal: unable to read config file ~/.gitconfig: No such file or directory (Git::GitExecuteError)My .gitconfig is there, though:
$ ls -l ~/.gitconfig
-rw-r--r-- 1 veez staff 344 Aug 2 19:47 /Users/veez/.gitconfigRunning
git config '--list' '--file' '~/.gitconfig'from the command line causes the issue, runninggit config '--list' '--file' ~/.gitconfigdoes not.Comments
technicalpickles
Sun Aug 02 19:33:37 -0700 2009
| link
I suspect that the next jeweler release should fix this.
Trying to use Jeweler to roll my own Gem and I'm hitting this error, too.
One thing I've noticed is that running git config '--list' does list the contents of this file.
greg@greg:~/Sites/rails $ git config '--list'
github.user=grippy
github.token=
technicalpickles
Tue Aug 04 08:54:34 -0700 2009
| link
Either downgrade to git 1.1.1, or try using jeweler master, until a release happens.
Just tried downgrading to the git 1.1.1 and I'm now getting:
No user.name found in ~/.gitconfig. Please tell git about yourself (see http://github.com/guides/tell-git-your-user-name-and-email-address for details). For example: git config --global user.name "mad voo"
I see this is already a bug filed with a different issue #.
I tried installing technicalpickles-jeweler via the gems.github.com repos and its the same version number as rubyforge. Is there a way to install the jeweler master as a gem?
technicalpickles
Tue Aug 04 23:18:23 -0700 2009
| link
Sorry if it's an obvious question, but have you previously set user.name globally? ie
git config --global user.name "my name"
technicalpickles
Tue Aug 04 23:23:56 -0700 2009
| link
1.1.0 released, hopefully fixing this.
Aha! Yes, I'm feeling rather noobish right now. Just signed up for github and have limited experience with git.
Here's where my confusion came from:
In your readme, it points to using the local github directions for setting the git global config variables (http://github.com/guides/local-github-config)
"Using to start a new project Jeweler provides a generator. It requires you to setup your name and email for git and your username and token for GitHub."
I mistook setting the following the global config variables for the ones required by Jeweler.
git config --global github.user name
git config --global github.token tokenvs.
git config --global user.name "name"
git config --global user.email "email"Note to self: RTFM! http://github.com/guides/tell-git-your-user-name-and-email-address
From what I cant tell, these variables are passed into the templates which generate the Rakefile. Is it possible to stub them until they're added to the ~/.gitconfig like "user" and "user@example.com"? (No reply is necessary. Just me thinking aloud.)
Just upped to the latest version and the generator brewed a delicious project. Can't wait to test it out.
Thanks for the help,
Greg -
3 comments Created 4 months ago by doloresJeweler breaks with the git gem version 1.2.1gitxSeems to be some bugs with getting the correct git version in the new git gem. If your version of git doesn't have a minor revision number the new git gem is borked. eg. 1.6.4 instead of 1.6.4.1. The problems can be found on lines 649 - 665 in the lib.rb of the git gem. Figured you could atleast lock the gemspec version req to 1.1.1 for now.
Comments
technicalpickles
Sun Aug 02 00:46:32 -0700 2009
| link
Ah, I barely changed ruby-git today to add that, in order to catch a number of issues that came up when using old (< 1.5) versions of git.
I think I can probably ignore the tiny version of git in practice.
technicalpickles
Sun Aug 02 01:08:37 -0700 2009
| link
Fixed in git 1.2.2 to deal with versions like 1.6.4. Thanks for picking up on this, because otherwise, I wouldn't have noticed until I upgraded (which I just did, incidentally).
-
1 comment Created 5 months ago by afurmanovWhen Rakefile is part of gem, loading Rakefile for installed gem fails.gitxWhen gem Rakefile have code like this:
require 'jeweler' Jeweler::Tasks.new do |s| #... settings endwhen such Rakefile is part of installed gem then loading it fails unless .git directory is also part of such gem. It could be fixed as:
http://github.com/afurmanov/jeweler/commit/d8af2b15d2d2b10b15d3f98f7e396d2a1aacb24fComments
technicalpickles
Sat Aug 01 11:17:23 -0700 2009
| link
Merged in the fix, thanks for contributing!
-
2 comments Created 5 months ago by cannikingemspecx.gitignore files showing up in s.test_files section of gemspecgitxAny files listed in .gitignore are ignored in the s.files section of the gemspec, but are included in the s.test_files section still:
-- .gitignore
test/random.rb-- my_gem.gemspec
Gem::Specification.new do |s| ... s.test_files = [ "test/my_gem_test.rb", "test/random.rb", "test/test_helper.rb" ] ...Comments
technicalpickles
Tue Jul 07 23:32:27 -0700 2009
| link
This commit is relevant: 49fb3b5
I mostly haven't merged this in because I try to avoid using the git command directly (favoring ruby-git which I do have commit access to).
technicalpickles
Wed Jul 29 15:11:37 -0700 2009
| link
Just committed and released a fix for this in 1.0.2. Thanks for bringing it to my attention!
-
I get these errors when i try to do a 'rake test':
WARNING: Invalid .gemspec format in '/usr/local/lib/ruby/gems/1.9.1/specifications/merb-core-1.0.12.gemspec'
/usr/local/bin/ruby -I"lib:lib:test" "/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/dragongoserver_test.rb" /home/tp/dragongoserver/test/test_helper.rb:3:in `require': no such file to load -- shoulda (LoadError)from /home/tp/dragongoserver/test/test_helper.rb:3:in `<top (required)>' from test/dragongoserver_test.rb:1:in `require' from test/dragongoserver_test.rb:1:in `<top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `load' from /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `block in <main>' from /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each' from /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `<main>'rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -I"lib:lib:test" "/usr...](See full trace by running task with --trace)
Comments
technicalpickles
Sat Aug 01 11:27:22 -0700 2009
| link
You need to install shoulda: gem install thoughtbot-shoulda. I'm currently looking into a better way to manage test dependencies.
technicalpickles
Sat Aug 01 15:30:27 -0700 2009
| link
Committed a fix for this: 26d82ac
-
3 comments Created 6 months ago by vikingbugxgenerating new project double quotes author and e-mail in RakefilegitxWhen name and e-mail are quoted in ~/.gitconfig, such as:
[user] name = "Mister Dude" email = "dude@example.com"the Rakefile that Jeweler generates for a new project double quotes author and email:
Jeweler::Tasks.new do |gem| gem.name = "the-perfect-gem" gem.summary = %Q{TODO} gem.email = ""dude@example.com"" gem.homepage = "http://github.com/foo/the-perfect-gem" gem.authors = [""Mister Dude""] endComments
technicalpickles
Sat Aug 01 13:37:38 -0700 2009
| link
This is related to issue #19. It has to do with how ruby-git pulls out data from ~/.gitconfig. It does it own thing, instead of using
git configdirectly.I suspect that if you did
git config user.email "Mister Dude", you'd see it update the entry to not have quotes.
technicalpickles
Sat Aug 01 15:23:30 -0700 2009
| link
I've released a fix to git that should address this. Expect a release of jeweler to use it in the next day or two.
technicalpickles
Tue Aug 04 23:24:26 -0700 2009
| link
1.1.0 released, hopefully fixing this.
-
6 comments Created 7 months ago by ddollarbugxJeweler can not read my ~/.gitconfiggitxThe 'git' gem that Jeweler uses to read git config files does not parse .gitconfig files that git itself can parse. Jeweler is, by extension, unable to read my valid ~/.gitconfig
Comments
Tracked the issue down further
[user]
name = David Dollar email = <ddollar@gmail.com>The git gem does not like the double-space between "name" and "="
technicalpickles
Sat Aug 01 15:25:46 -0700 2009
| link
jeweler uses the git gem to look this up, and this is uncovering a bug there. I just pushed a version bump to git that should fix it though.
A release of jeweler that uses this updated git will be forthcoming.
kalasjocke
Sun Aug 02 13:27:09 -0700 2009
| link
I have a similar problem, but my git gem cant even find my ~/.gitconfig file. I get the following error, I beleve this is a probelm with the git gem, is it so?
/Library/Ruby/Gems/1.8/gems/git-1.2.2/lib/git/lib.rb:700:in `command': git config '--list' '--file' '~/.gitconfig' 2>&1:fatal: unable to read config file ~/.gitconfig: No such file or directory (Git::GitExecuteError)
technicalpickles
Sun Aug 02 14:47:22 -0700 2009
| link
That is unrelated, so please open a separate issue. The next release might fix that though.
technicalpickles
Tue Aug 04 23:24:10 -0700 2009
| link
1.1.0 released, hopefully fixing this.
-
RDoc rake task looks for VERSION.yml but plaintext is now default
1 comment Created 7 months ago by chesMinor, but the generated
RDocTaskshould be updated to expect the plaintextVERSIONfile.Comments
technicalpickles
Sat Aug 01 11:16:49 -0700 2009
| link
Fixed: 048ab43
Thanks for reporting.
-
1 comment Created 7 months ago by chesversion_required rake task has nonintuitive docstringrakexUpon creating my first gem with Jeweler, I thought, "Hmm, so there is no version out of the box. Lemme look at these rake tasks I remember being mentioned..." So when running
rake -TI see "Setup initial version of 0.0.0" and think I'm off to the races. But that's not what it does at all.desc "Setup initial version of 0.0.0" task :version_required do unless jeweler.version_exists? abort "Expected VERSION or VERSION.yml to exist. See version:write to create an initial one." end endSo it's just a dependency task. Fine, but why's it in my
rake -Tlisting? :-) This should either bootstrap aVERSION.ymlwith 0.0.0 if needed (preferable), or have thedescremoved.Comments
technicalpickles
Tue Jul 07 21:37:43 -0700 2009
| link
Good point. I suspect it's just a stale description. It's removed in master now. Thanks for reporting!
-
3 comments Created 7 months ago by alexchbugxreleasex'rake release' not idempotent after failurewaiting for releasexWe just tried to do a deploy. It failed for some non-jeweler reason. So we fixed the problem and tried it again. It failed again, and this time was jeweler's fault. It seemed that jeweler was expecting a "git commit" to succeed, since it had just modified the gemspec file. But it hadnt modified the file, since it was the same version as before, so the contents didn't change, so "git commit" failed. We had to bump up the version number a few times to get this to work right.
I think you can also duplicate this if you specify the wrong VERSION on the rake command line.
Comments
jnunemaker
Mon Jun 22 13:23:56 -0700 2009
| link
It also happens if you update your gemspec and commit the changes before calling rake release. Occasionally I update the gemspec myself but still want rake release to tag and push. Instead I get the following error:
Committing siren.gemspec rake aborted! git commit '-m' 'Regenerated gemspec for version 0.1.1' 2>&1:# On branch master nothing to commit (working directory clean)Basically it would be nice if it just skipped over the gemspec regeneration if nothing needs to happen (ie: gemspec is regenerated but there is nothing to commit).
technicalpickles
Sun Aug 02 16:41:18 -0700 2009
| link
Fixed in 899aabc
technicalpickles
Tue Aug 04 23:24:05 -0700 2009
| link
1.1.0 released, hopefully fixing this.
-
1 comment Created 7 months ago by mcornickSupport setting description in gemspecsgemspecxHey there - jeweler is great; I'm using it for almost all of my gems now. Thanks.
Eric Hodel has started sending out mail to maintainers of gems that are pushed to Rubyforge without a description in the gemspec. Since I like to avoid getting mail about things like this, I've added support for descriptions to jeweler. It works just like the existing summary support - you can pass a --description option to jeweler to set an explicit description; otherwise, it'll be set to TODO. One less thing to have to fill in later... This is all in my fork if you'd like to pull it in.
Comments
technicalpickles
Tue Jul 07 21:31:07 -0700 2009
| link
Merged in. Thanks for the contribution!
-
2 comments Created 8 months ago by technicalpickles@Josh Nicholsxenhancementxfrom-lighthousexrubyforge:release failing because rubyforge_project in config is not usedrubyforgexI’m really happy, I was able to release my gem to rubyforge!
I had to manually edit the rakefile in two places for the project name:
@@@In the config (cool)
gem.rubyforge_project = "my_project_name"
In the rubyforge:release task (not so cool)
remote_dir = "/var/www/gforge-projects/set_to_gem_name_by_default/"
The latter should use the config’s rubyforge
I’m not sure how, otherwise I’d do it!
@@@ Thanks!
Great work with jeweler :-)
This ticket has 0 attachment(s).
Comments
technicalpickles
Wed Apr 29 19:36:09 -0700 2009
| link
rubyforge:release failing because rubyforge_project in config is not used
Most of the time, your project is your gem name, so for most cases, it’s cool.
Just update your Rakefile to point where you want to be uploading too.
Because it’s not a jeweler task, it doesn’t actually have access to the gemspec, and hence, the rubyforge_project.
So, I did want to keep it flexible about where you upload files too (maybe you want root to be rdoc, maybe not), and I didn’t want to introduce any non-gemspec configuration, so I left this as hardcoded (but generated at least).
by Josh Nichols
technicalpickles
Tue Jul 07 22:13:27 -0700 2009
| link
This has been addressed by the new Jeweler::RubyforgeTasks that's in 1.0. Just add a line like this to your Rakefile:
Jeweler::RubyforgeTasks.new -
2 comments Created 8 months ago by technicalpickles@Josh Nicholsxfrom-lighthousexrubyforgexrake rubyforge:setup creates duplicate packageswaiting for releasexNo biggie, but doing
@@@ rake rubyforge:setup
rake rubyforge:setup
@@@ will create two packages with the same name. No biggy, but ideally there would be a check first to avoid duplication. The crappy rubyforge interface makes it hard to delete the extra copies afterwards too!Thanks
This ticket has 0 attachment(s).
Comments
technicalpickles
Sat Aug 01 20:22:43 -0700 2009
| link
Just committed a fix for this: f3a8cfc
technicalpickles
Tue Aug 04 23:24:21 -0700 2009
| link
1.1.0 released, hopefully fixing this.
-
9 comments Created 8 months ago by technicalpickles@Josh Nicholsxbugxfrom-lighthousexrubyforge:release failing because no processor_id or release_id configured forrubyforgexHi!
I’m trying to release ’backports’ to rubyforge (first time, just got my "project" marcandre approved) and I get this strange message...What am I doing wrong?
[15:07][~/backports(master)]$ rake rubyforge:release (in /Users/work/backports) Generated: backports.gemspec
backports.gemspec is valid.
Successfully built RubyGem Name: backports Version: 1.0.0 File: backports-1.0.0.gem Logging in rubyforge
Releasing backports-1.0.0 to marcandre
rake aborted!
no <processor_id> configured for(See full trace by running task with --trace)
This ticket has 0 attachment(s).
Comments
technicalpickles
Wed Apr 29 19:35:26 -0700 2009
| link
rubyforge:release failing because no processor_id configured for
I’ll at least need a backtrace and a pointer to the source for the project to get an idea what is going on.
Make sure you’ve followed the notes in the README about doing rubyforge releases. In particular, there’s a rubyforge:setup task.
by Josh Nichols
technicalpickles
Wed Apr 29 19:35:28 -0700 2009
| link
rubyforge:release failing because no processor_id configured for
Yes, I did run the setup.
Ok, I hope this helps!
Thanks, and sorry for the trouble.@@@ [15:24][~/backports(master)]$ rake rubyforge:setup (in /Users/work/backports) Logging into rubyforge
Creating backports package in the marcandre project
Updating marcandre
[15:41][~/backports(master)]$ rake rubyforge:release --trace (in /Users/work/backports) Invoke rubyforge:release (first_time) Invoke rubyforge:release:gem (first_time) Invoke gemspec (first_time) Invoke gemspec:generate (first_time) Invoke VERSION.yml (first_time, not_needed) Execute gemspec:generate Generated: backports.gemspec
Invoke gemspec:validate (first_time) Invoke VERSION.yml (not_needed) Execute gemspec:validate backports.gemspec is valid.
Execute gemspec Invoke build (first_time) Execute build Successfully built RubyGem Name: backports Version: 1.0.0 File: backports-1.0.0.gem ** Execute rubyforge:release:gem Logging in rubyforge
Releasing backports-1.0.0 to marcandre
rake aborted!
no <processor_id> configured for
/Library/Ruby/Gems/1.8/gems/rubyforge-1.0.3/lib/rubyforge.rb:409:inlookup’ /Library/Ruby/Gems/1.8/gems/rubyforge-1.0.3/lib/rubyforge.rb:281:inadd_release’ /Library/Ruby/Gems/1.8/gems/technicalpickles-jeweler-0.10.2/lib/jeweler/commands/release_to_rubyforge.rb:25:inrun’ /Library/Ruby/Gems/1.8/gems/technicalpickles-jeweler-0.10.2/lib/jeweler.rb:119:inrelease_gem_to_rubyforge’ /Library/Ruby/Gems/1.8/gems/technicalpickles-jeweler-0.10.2/lib/jeweler/tasks.rb:94:indefine’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:incall’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:inexecute’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:ineach’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:inexecute’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:ininvoke_with_call_chain’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:insynchronize’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:ininvoke_with_call_chain’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:ininvoke_prerequisites’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:ineach’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:ininvoke_prerequisites’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:577:ininvoke_with_call_chain’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:insynchronize’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:ininvoke_with_call_chain’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:ininvoke’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:ininvoke_task’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:intop_level’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:ineach’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:intop_level’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:instandard_exception_handling’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:intop_level’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:inrun’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:instandard_exception_handling’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:inrun’ /Library/Ruby/Gems/1.8/gems/rake-0.8.4/bin/rake:31 /usr/bin/rake:19:in `load’ /usr/bin/rake:19 @@@by Marc-André Lafortune
technicalpickles
Wed Apr 29 19:35:31 -0700 2009
| link
rubyforge:release failing because no processor_id configured for
My "~/.rubyforge/user-config.yml", in case that’s of any help:
@@@uri: http://rubyforge.org
is_private: false
username: marcandre
cookie_jar: /Users/work/.rubyforge/cookie.dat
password: SomeNiftyPasswordHere
@@@by Marc-André Lafortune
technicalpickles
Wed Apr 29 19:35:34 -0700 2009
| link
rubyforge:release failing because no processor_id configured for
OK, I found how to fix it, but not why I needed to fix it.
I modified the file ~/.rubyforge/autoconfig.yml from:
@@@ processor_ids: {}
@@@ to
@@@ processor_ids:
Any: 8000 @@@ I looked up at the source of the HTML page in rubyforge that let’s you select the processor to get that 8000 value.So basically, this is not your fault but should be reported to whoever makes the rubyforge gem...
by Marc-André Lafortune
technicalpickles
Wed Apr 29 19:35:36 -0700 2009
| link
rubyforge:release failing because no processor_id configured for
Sorry for the zillions of emails & requests today! I’m done after this one, I promise! :-)
Just wanted to point out that after my successful release of my gem, ’rubyforge config’ now writes the full list of processor_ids to that auto_config file.
I remember doing ’rubyforge config’ as instructed, and again after the ’rake rubyforge:setup’ and getting ’Fetching 2 projects’. So probably this happens only to users with completely empty projects? Not sure.
Anyways, if someone is stuck with this, hopefully they’ll find this thread.
Thanks again!
by Marc-André Lafortune
technicalpickles
Wed Apr 29 19:35:39 -0700 2009
| link
rubyforge:release failing because no processor_id or release_id configured for
Hi!
I tried (a couple of times) releasing another gem (packable) to rubyforge and got an error:@@@ [12:42][~/flvlib/packable(master)]$ rake rubyforge:release --trace (in /Users/work/flvlib/packable) Invoke rubyforge:release (first_time) Invoke rubyforge:release:gem (first_time) Invoke gemspec (first_time) Invoke gemspec:generate (first_time) Invoke VERSION.yml (first_time, not_needed) Execute gemspec:generate Generated: packable.gemspec
Invoke gemspec:validate (first_time) Invoke VERSION.yml (not_needed) Execute gemspec:validate packable.gemspec is valid.
Execute gemspec Invoke build (first_time) Execute build Successfully built RubyGem Name: packable Version: 1.2.0 File: packable-1.2.0.gem ** Execute rubyforge:release:gem Logging in rubyforge
Releasing packable-1.2.0 to marcandre
rake aborted!
Couldn’t get release_id, upload failed?
/usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rubyforge-1.0.3/lib/rubyforge.rb:316:inadd_release’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/technicalpickles-jeweler-0.10.2/lib/jeweler/commands/release_to_rubyforge.rb:25:inrun’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/technicalpickles-jeweler-0.10.2/lib/jeweler.rb:119:inrelease_gem_to_rubyforge’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/technicalpickles-jeweler-0.10.2/lib/jeweler/tasks.rb:94:inblock (3 levels) in define’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:617:incall’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:617:inblock in execute’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:612:ineach’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:612:inexecute’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:578:inblock in invoke_with_call_chain’ /usr/local/ruby191/lib/ruby/1.9.1/monitor.rb:190:inmon_synchronize’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:571:ininvoke_with_call_chain’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:588:inblock in invoke_prerequisites’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:585:ineach’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:585:ininvoke_prerequisites’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:577:inblock in invoke_with_call_chain’ /usr/local/ruby191/lib/ruby/1.9.1/monitor.rb:190:inmon_synchronize’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:571:ininvoke_with_call_chain’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:564:ininvoke’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:2027:ininvoke_task’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:2005:inblock (2 levels) in top_level’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:2005:ineach’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:2005:inblock in top_level’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:2044:instandard_exception_handling’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:1999:intop_level’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:1977:inblock in run’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:2044:instandard_exception_handling’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib/rake.rb:1974:inrun’ /usr/local/ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.4/bin/rake:31:in’ /usr/bin/rake:19:inload’ /usr/bin/rake:19:in’ @@@I opened the infamous ’autoconfig’ file and the release id parts looked like:
@@@ release_ids:
backports:1.0.0: 32948packable: {} @@@
That seems normal to me, since it’ll be the first release of ’packable’. Anyways, added a bogus release:
@@@ release_ids:
backports:1.0.0: 32948packable:
0.0.0: 12345@@@
and then it worked. Again, I’m not sure if it’s jeweler (maybe) or rubyforge (more likely) that’s at fault here.
Thanks!
by Marc-André Lafortune
Guys, this is a problem with the rubyforge gem that I used to run into a lot..... See step #7 in this article: http://blog.bogojoker.com/category/rr/
For whatever reason, I don't get this error anymore, but I do think it's an issue with the rubyforge gem itself.
technicalpickles
Thu Apr 30 07:41:08 -0700 2009
| link
I'm not terribly surprised by it being something with rubyforge.
Maybe I should create a 'Rubyforge' wiki page, and include some notes there.
technicalpickles
Wed Sep 30 21:11:10 -0700 2009
| link
Closing, because I don't think there's much I can do about it in jeweler land. I've updated the dependency on rubyforge to be the latest 2.0.0, so hopefully that does it.
-
1 comment Created 8 months ago by technicalpicklesfrom-lighthousexregular expression too biggemspecxIn gems that contain a large amount of files, in my case nearly 2000 the rake task will choke on gemspec creation. It gives the error regular expression too big.
trace here
Invoke gemspec:generate (first_time) Invoke VERSION.yml (first_time, not_needed) ** Execute gemspec:generate rake aborted!
regular expression too big: /s.files\ =\ ["LICENSE",\ "README.rdoc",\ "Rakefile",\ "VERSION.yml",\ "bin\/babygitter-report",\ "lib\/babygitter\/addedums\/commit_addedum.rb",\ "lib\/babygitter\/addedums\/ruby_addedum.rb",\ "lib\/babygitter\/assets\/guides\/bdd_stack.html.erb",\ "lib\/babygitter\/assets\/guides\/display_only.html.erb",\ "lib\/babygitter\/assets\/image_assets\/fancy_closebox.png",\ "lib\/babygitter\/assets\/image_assets\/fancy_left.png",\ "lib\/babygitter\/assets\/image_assets\/fancy_progress.png",\ "lib\/babygitter\/assets\/image_assets\/fancy_right.png",\ "lib\/babygitter\/assets\/image_assets\/fancy_shadow_e.png",\ "lib\/babygitter\/assets\/image_assets\/fancy_shadow_n.png",\ "lib\/babygitter\/assets\/image_assets\/fancy_shadow_ne.png",\ "lib\/babygitter\/assets\/image_assets\/fancy_shadow_nw.png",\ "lib\/babygitter\/assets\/image_assets\/fancy_shadow_s.png",\ "lib\/babygitter\/assets\/image_assets\/fancy_shadow_se.png",\ "lib\/babygitter\/assets\/image_assets\/fancy_sha
/opt/ruby/lib/ruby/gems/1.8/gems/jeweler-0.11.0/lib/jeweler/gemspec_helper.rb:66:ingsub’ /opt/ruby/lib/ruby/gems/1.8/gems/jeweler-0.11.0/lib/jeweler/gemspec_helper.rb:66:inprettyify_array’ /opt/ruby/lib/ruby/gems/1.8/gems/jeweler-0.11.0/lib/jeweler/gemspec_helper.rb:30:inwrite’ /opt/ruby/lib/ruby/gems/1.8/gems/jeweler-0.11.0/lib/jeweler/gemspec_helper.rb:28:inopen’ /opt/ruby/lib/ruby/gems/1.8/gems/jeweler-0.11.0/lib/jeweler/gemspec_helper.rb:28:inwrite’ /opt/ruby/lib/ruby/gems/1.8/gems/jeweler-0.11.0/lib/jeweler/commands/write_gemspec.rb:15:inrun’ /opt/ruby/lib/ruby/gems/1.8/gems/jeweler-0.11.0/lib/jeweler.rb:66:inwrite_gemspec’ /opt/ruby/lib/ruby/gems/1.8/gems/jeweler-0.11.0/lib/jeweler/tasks.rb:45:indefine’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:incall’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:inexecute’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:ineach’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:inexecute’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:ininvoke_with_call_chain’ /opt/ruby/lib/ruby/1.8/monitor.rb:242:insynchronize’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:ininvoke_with_call_chain’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:ininvoke’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:ininvoke_task’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:intop_level’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:ineach’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:intop_level’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:instandard_exception_handling’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:intop_level’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:inrun’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:instandard_exception_handling’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:inrun’ /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31 /opt/ruby/bin/rake:19:inload’ /opt/ruby/bin/rake:19This ticket has 0 attachment(s).
Comments
technicalpickles
Tue Jul 07 21:49:44 -0700 2009
| link
This was resolved awhile back Thanks for reporting.
-
5 comments Created 8 months ago by technicalpicklesbugxfrom-lighthousexgitxProject creation failing (adding origin remote)waiting for releasexUsing the latest gem from rubyforge. Might just be something boneheaded on my end, but reporting the problem here as discussed in IRC.
Encountered an error while adding origin remote. Maybe you have some weird settings in ~/.gitconfig?
/opt/local/lib/ruby/gems/1.8/gems/peterwald-git-1.1.4/lib/git/lib.rb:653:in `command’: git remote ’add’ ’--’ ’origin’ ’git@github.com:zapnap/my-project-name.git’ 2>&1:Usage: git remote add [-f] [-t track]* [-m master] (Git::GitExecuteError)from /opt/local/lib/ruby/gems/1.8/gems/peterwald-git-1.1.4/lib/git/lib.rb:499:in `remote_add’ from /opt/local/lib/ruby/gems/1.8/gems/peterwald-git-1.1.4/lib/git/base.rb:342:in `add_remote’ from /opt/local/lib/ruby/gems/1.8/gems/jeweler-0.11.0/bin/../lib/jeweler/generator.rb:315:in `gitify’ from /opt/local/lib/ruby/gems/1.8/gems/jeweler-0.11.0/bin/../lib/jeweler/generator.rb:55:in `run’ from /opt/local/lib/ruby/gems/1.8/gems/jeweler-0.11.0/bin/../lib/jeweler/generator/application.rb:26:in `run!’ from /opt/local/lib/ruby/gems/1.8/gems/jeweler-0.11.0/bin/jeweler:8 from /opt/local/bin/jeweler:19:in `load’ from /opt/local/bin/jeweler:19Fwiw, if I remove the ’--’ and reissue the command inside the partially created project directory, the remote is added just fine. Local git version is 1.5.4.4.
This ticket has 0 attachment(s).
Comments
technicalpickles
Wed Apr 29 19:34:30 -0700 2009
| link
Project creation failing (adding origin remote)
If you’re able to, I’d suggest upgrading git. I’m on 1.6.0.x, and it works.
If that does the trick, it’s a bug in ruby-git, and we can take a look at fixing that gem.
by Josh Nichols
technicalpickles
Wed Apr 29 19:34:34 -0700 2009
| link
Project creation failing (adding origin remote)
Yup, upgrading to Git 1.6.x did the trick. Thanks.
by Nick Plante
I ran into the same problem, running git 1.5.4.4 installed by macports (I think). I updated to 1.6.3.3 and the project was created without error. I've added a "Git 1.6.x required" note to the wiki home page.
technicalpickles
Sat Aug 01 15:27:15 -0700 2009
| link
I just released some changes to the git gem, which I'll be able to make use of to detect this more handily.
Release forthcoming...
technicalpickles
Tue Aug 04 23:24:16 -0700 2009
| link
1.1.0 released, hopefully fixing this.
-
2 comments Created 8 months ago by technicalpicklesfrom-lighthousexcreating gem hypen-gem builds a lib/hypen_gem.rb filegeneratorxThis behavior surprised me a bit, and the resulting config.gem "hyphen-name", :lib => "hypen_name" line in rails felt a bit strange. FWIW newgem keeps the hyphen and I believe others do as well. I think its the more obvious behavior, but want to just throw it out there and see what makes sense to others.
Thanks!
This ticket has 0 attachment(s).
Comments
technicalpickles
Tue Jul 07 21:31:36 -0700 2009
| link
This was fixed at some point.
jackdempsey
Tue Jul 07 23:47:48 -0700 2009
| link
Thanks man, appreciate it. Loving jeweler.
-
2 comments Created 8 months ago by technicalpickles@Josh Nicholsxextensionsxfeaturexfrom-lighthousexC extensions supportgeneratorxThere is no support of /ext folder and compiling now.
This ticket has 0 attachment(s).
Comments
technicalpickles
Wed Apr 29 19:29:41 -0700 2009
| link
C extensions support
I’ve never made a gem with C extensions, hence the lack of support. Not opposed to adding support to jeweler, just not sure how to kick it off.
Patches, of course, are welcome.
by Josh Nichols
technicalpickles
Wed Apr 29 19:44:19 -0700 2009
| link
Going to mark this one as on hold or waiting for patches.
-
4 comments Created 8 months ago by technicalpickles@Josh NicholsxenhancementxfeaturexGitHub Pages - RDoc to Branchfrom-lighthousexFirst off - Jeweler rocks. I’m lazy and a noob so anything that takes thinking out of the equation is pretty good by my standards.
I just thought it would be good if Jeweler could automatically generate rdoc (which It can already) and put it in the ’gh-pages’ branch for GitHub.
Cheers,
Bryce
This ticket has 0 attachment(s).
Comments
technicalpickles
Wed Apr 29 19:37:19 -0700 2009
| link
GitHub Pages - RDoc to Branch
GitHub pages is something I’ve really wanted, but implementation wise, it’s been pretty messy. It’s kind of annoying bringing files from one branch to another.
If its just rdoc is what you’re looking for, I’d check out http://rdocul.us/
by Josh Nichols
You can generate rdoc in your main branch and push the generated directory to gh-pages with grancher. Here's my thor task using it
I finally came around to writing a small Rake task that addresses that problem. Find it here.
technicalpickles
Wed Sep 30 21:09:22 -0700 2009
| link
Now that rdoc.info is around, it's a lot easier to setup a post-commit hook to make it generate your rdoc, and link to it, rather than having jeweler code do it.
-
3 comments Created 8 months ago by technicalpickles@Josh Nicholsxextensionsxfeaturexfrom-lighthousexjavaxCross-platform compilation, gem creationmingwxI currently use echoe and it lets me package up my project (RedCloth) with tasks like:
rake java package
and
rake mingw packageSome sort of support for this would be nice in jeweler. Probably a "someday maybe" feature request, but it can’t hurt to ask.
This ticket has 0 attachment(s).
Comments
technicalpickles
Wed Apr 29 19:28:53 -0700 2009
| link
Cross-platform compilation, gem creation
You can see my needs in the Rakefile at http://github.com/jgarber/redcloth/blob/83b838258ce1d8fb866fd28ff8db8492339628e9/Rakefile
by Jason Garber
technicalpickles
Wed Apr 29 19:28:55 -0700 2009
| link
Cross-platform compilation, gem creation
For some reason I didn’t get a notification email for this...
I don’t think I’d be able to support java or mingw, as I don’t use those platform.
From the looks of it, you mostly do checks of the platform, and add extra files depending. Since the Jeweler::Tasks takes a block, you should be able to add the same kind of logic.
The thing is, I can’t tell what parts are RedCloth specific (I see a lot of ragel), and what’s the platform specific.
by Josh Nichols
technicalpickles
Wed Apr 29 19:44:44 -0700 2009
| link
Marking this as patches wanted.
-
3 comments Created 8 months ago by technicalpickles@Josh Nicholsxautospecxfrom-lighthousexrspec template should require spec_helper differentlyrspecxThe flunking.rb template for rspec projects created by Jeweler has a require statement for ’spec_helper’ that assumes a relative path. This breaks the ability of autospec to run all tests. Please change the require in the flunking.rb template to something like the following:
require File.expand_path(File.dirname(FILE) + ’/spec_helper’)
Thanks in advance.
This ticket has 0 attachment(s).
Comments
technicalpickles
Wed Apr 29 19:28:30 -0700 2009
| link
rspec template should require spec_helper differently
Looks like the ticket process clobbered the double underscores around the FILE in my ticket. Should be:
require File.expand_path(File.dirname(FILE) + ’/spec_helper’)by MarioAquino
technicalpickles
Wed Apr 29 19:36:30 -0700 2009
| link
rspec template should require spec_helper differently
Awesome.
require File.expand_path(File.dirname(doubleunderscoreFILEdoubleunderscore) + ’/spec_helper’)
by MarioAquino
technicalpickles
Wed Apr 29 19:53:38 -0700 2009
| link
Fixed in master.
-
2 comments Created 8 months ago by technicalpicklesdependencyxfrom-lighthousexgem install issuesreleasexThe peterwald-git gem jeweler depends on, isn’t on rubyforge, only on github. So if the user hasn’t added github gems to his local rubygems sources list (gem sources -a "http://gems.github.com"), a pure ’gem install jeweler’ will fail as it won’t install the dependencies.
Adding github gems to local rubygems sources list or installing with sources option set to github gems both solve the problem on the user side.
Releasing peterwald-git on rubyforge will prevent this issue.
This ticket has 0 attachment(s).
Comments
technicalpickles
Wed Apr 29 19:34:08 -0700 2009
| link
gem install issues
by Josh Nichols
technicalpickles
Tue Jul 07 21:34:09 -0700 2009
| link
I've since released ruby-git to rubyforge, and an updated jeweler.
-
The generated Rakefiles have the following rescue-clause.
rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"The problem here is that all errors are caught, not just a missing jeweler. Adding a 'raise' shows this:
$ rake -T Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com rake aborted! no such file to load -- rubyforge /home/*Rakefile:5 (See full trace by running task with --trace)I suggest you either add the 'raise' or check what exactly is missing. The current solution is very very misleading to newcomers.
Cheers,
RetoComments
I've added the 'raise' to the README, the project's Rakefile and to the template in this branch: http://github.com/retoo/jeweler/tree/better-error, if you like that approach feel free to merge it. If you want anything changed just tell me.
Cheers,
Reto
technicalpickles
Wed Apr 29 19:41:17 -0700 2009
| link
The correct thing to do is actually fix the dependency. That's done in the just released 0.11.1.
Raising on the error would kind of go against one of the main principles of jeweler, of not forcing itself on someone using the gem, unless they are specifically doing packaging/releasing stuff.
-
remove jeweler tasks' dependence on rake i.e. to allow thor to use the tasks
1 comment Created 8 months ago by cldwalkerI saw you (technicalpickles) on irc wishing people would submit issues instead of private messages. Here's your wish come true :p
My branch contains the necessary changes for this request. Here's a post explaining some of the motivation for moving my jeweler tasks to thor.Comments
technicalpickles
Tue Sep 29 23:56:40 -0700 2009
| link
The API has changed subtly, such that every task almost always just a single call into Jeweler. If there are any stragglers, those probably can be moved into the corresponding Jeweler::Commands.
As a result, I don't think extracting it out into a separate module is particularly worthwhile.
-
To support windows probably should make a change something like this. This assumes the user is running as admin on the windows box. Also added note for sh..
class Jeweler
module Commandsclass InstallGem def run cmd_prefix = "sudo " if CONFIG['host_os'] =~ /mswin|windows/i command = "#{cmd_prefix}gem install #{gemspec_helper.gem_path}" output.puts "Executing #{command.inspect}:" sh command # sh is from Rake FileUtils end endend end
Comments
CONFIG didn't work for me, but ENV did. Should add cygwin to the list aswell.
cmd_prefix = "sudo " if ENV['host_os'] =~ /mswin|windows|cygwin/i
technicalpickles
Sun Aug 02 12:18:14 -0700 2009
| link
CONFIG should actually be Config::CONFIG, which gets defined when you require 'rbconfig'.
Fixed in 0e06397
- @Josh Nichols▾
- autospec▾
- bug▾
- dependency▾
- enhancement▾
- extensions▾
- feature▾
- from-lighthouse▾
- gemcutter▾
- gemspec▾
- generator▾
- git▾
- gitconfig▾
- github▾
- java▾
- mingw▾
- rake▾
- release▾
- rspec▾
- ruby 1.9▾
- rubyforge▾
- waiting for release▾
- Apply to Selection
-
Change Color…
Preview:preview
- Rename…
- Delete






Well, no, releasing a gem to gemcutter wouldn't tag a git release. I"m guessing you're just running 'gemcutter:release' and not 'release'?
If that's the case, you just run 'rake release'. By declaring Jeweler::GemcutterTasks, this hooks into the main 'release' task, so it'll be done after everything else.
Ah, brilliant. Just didn't read the documentation well enough. :)
Closing.