On Thu, 22 May 2008, Adam Majer wrote:

Vasiliy Kiryanov wrote:
And that's all about open source: I like rails Debian package, so I use  it.
I want use it too but I can't


So is the main complaint that,

 1. deb doesn't *install* the gem, OR
 2. deb doesn't flag in gem database that rails 2.0.2 was installed and
available

#1 is not possible

#2 is interesting.


I started to do this for mongrel_cluster. ItÅ› easy to do it, just create a file inside gems directory. This way you can fool it. Just need a patch like this one:

[EMAIL PROTECTED]:~.../trunk/debian$ cat patches/001_add_gemspec_file.diff --- mongrel_cluster-1.0.1.1.gemspec-orig 1969-12-31 21:00:00.000000000 -0300 +++ mongrel_cluster-1.0.1.1.gemspec 2007-05-15 19:44:03.000000000 -0300
@@ -0,0 +1,10 @@
+Gem::Specification.new do |s|
+  s.name = %q{mongrel_cluster}
+  s.version = "1.0.1.1"
+  s.date = %q{2007-03-20}
+ s.summary = %q{Mongrel plugin that provides commands and Capistrano tasks for managing multiple Mongrel processes.} + s.files = ["lib/mongrel_cluster", "lib/mongrel_cluster/init.rb", "lib/mongrel_cluster/recipes.rb"]
+  s.add_dependency('gem_plugin', '>=0.2.2')
+  s.add_dependency('mongrel', '>=1.0.1')
+  s.author = "Bradley Taylor"
+end

And then install it on gem specific directory:

[EMAIL PROTECTED]:~.../trunk/debian$ cat install | grep spec
mongrel_cluster-1.0.1.1.gemspec var/lib/gems/1.8/specifications/

I created this a long time ago (1 year), so maybe today it's kind of different because of gems 1.0. But the idea shall be the same...

Also, I'm not sure if installing something inside gems directory can't make it crazy. I'm not sure, but I think that if try to run gems to install mongrel_cluster (in my case) it returned some error... but not sure, long time I don't play with this..

Cheers,

filipe {
 @              icewall.org
 GPG         1024D/A6BA423E
 http://filipe.icewall.org/
}

Reply via email to