How can I make my own hobo gem (Fork)? (LH-Ticket #1003)

30 views
Skip to first unread message

Karsten Redmer

unread,
Jun 19, 2012, 10:08:51 AM6/19/12
to hobo...@googlegroups.com
Hi,

I monkey-patched the problem in my dev environment , but on heroku the migration fails.

I created a pull request (https://github.com/tablatom/hobo/pull/43), but I want to go ahead on heroku.

-> so I want to create my patched hobo-fork gem !

How can I do this?

adding this line:
       gem "hobo", "=1.4.0.pre6", :git => 'git://github.com/kredmer/hobo.git'
-> is not  working ! (fails somewhere in hobo_fields)

creating a own namespaced gem is difficult, because of the dependencies in
     gem "hobo_rapid", "1.4.0.pre6"
     gem "hobo_jquery", "1.4.0.pre6"
     gem "hobo_jquery_ui", "1.4.0.pre6"
     gem "hobo_clean", "1.4.0.pre6"

So: in order to have 2 lines changed I have to create 5 gems !???!!!!

OR

just merge the pull request......

Please help...... :-)



Bryan Larsen

unread,
Jun 19, 2012, 10:13:50 AM6/19/12
to hobo...@googlegroups.com
I merged the commit for you.

However, we should figure out why

gem "hobo", "=1.4.0.pre6", :git => 'git://github.com/kredmer/hobo.git'

isn't working. Can you try adding

gem "hobo_fields", "=1.4.0.pre6", :git => 'git://github.com/kredmer/hobo.git'
gem "hobo_support", "=1.4.0.pre6", :git => 'git://github.com/kredmer/hobo.git'

to your Gemfile?

hobo depends on hobo_fields & hobo_support, so the generator doesn't
explicitly add them to the Gemfile. However, if you change the
source for Hobo, bundler tries to load hobo from your specified source
but hobo_support from rubygems, which don't match.

Bryan
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/QJU2YmVKSqwJ.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

Karsten Redmer

unread,
Jun 23, 2012, 6:26:19 AM6/23/12
to hobo...@googlegroups.com
Thanks Bryan,

it took a little bit longer for me to answer, because I wanted to find the error AND give the right solution.

After digging deep in the code and related dependencies I found the problem in rubygems_bundler, fixed it and wanted to create a new rubygems_bundler issue till I recognized that my version rubygems-bundler (0.9.0) was outdated. On rubygems-bundler (0.9.2) this is fixed!

Now it's working with this lines in Gemfile:


gem "hobo", "=1.4.0.pre6", :git => 'git://github.com/kredmer/hobo.git'

OR

git "git://github.com/kredmer/hobo.git" do
  gem "hobo", "=1.4.0.pre6"
end

I prepared also a small recipe to use your own fork:

http://cookbook.hobocentral.net/recipes/1803-use-your-own-hobo-fork




Reply all
Reply to author
Forward
0 new messages