Trying to fix an extension calling Spree:Store

44 views
Skip to first unread message

Ross Rankin

unread,
Jul 19, 2012, 3:19:55 PM7/19/12
to spree...@googlegroups.com
I'm trying to get the Google Base extension to work with out version of Spree.  We're on 1.1.2.rc1.  What do I need to update this reference?

I'm getting:
     uninitialized constant Spree::Store

I believe it was written for 0.7x, what is the object that I should use now?

  builders = if respond_to? Spree::Store
        Spree::Store.map do |store|
          self.new(store)
        end

Thanks.





Ryan Bigg

unread,
Jul 19, 2012, 7:58:29 PM7/19/12
to spree...@googlegroups.com
Could you please provide a link to this extension?
--
You received this message because you are subscribed to the Google Groups "Spree" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/MHDj6i9NSmYJ.
To post to this group, send email to spree...@googlegroups.com.
To unsubscribe from this group, send email to spree-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Ross Rankin

unread,
Jul 19, 2012, 11:36:23 PM7/19/12
to spree...@googlegroups.com
sure its the Google Base extension:  https://github.com/jumph4x/spree-google-base

Thanks.


On Thursday, July 19, 2012 7:58:29 PM UTC-4, Ryan Bigg wrote:
Could you please provide a link to this extension?

On Friday, 20 July 2012 at 5:19 AM, Ross Rankin wrote:

I'm trying to get the Google Base extension to work with out version of Spree.  We're on 1.1.2.rc1.  What do I need to update this reference?

I'm getting:
     uninitialized constant Spree::Store

I believe it was written for 0.7x, what is the object that I should use now?

  builders = if respond_to? Spree::Store
        Spree::Store.map do |store|
          self.new(store)
        end

Thanks.





--
You received this message because you are subscribed to the Google Groups "Spree" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/MHDj6i9NSmYJ.
To post to this group, send email to spree...@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.

Ryan Bigg

unread,
Jul 20, 2012, 2:26:50 AM7/20/12
to spree...@googlegroups.com
There has never been a Spree::Store constant within the Spree codebase as long as I have been working with/on it. However, there *is* one in the spree-multi-domain extension. On further inspection, it appears that this extension operates differently depending on if the spree-multi-domain extension is installed. It doesn't say in the README, which is a little annoying.

I've got a pull request open here to fix their syntax issue which is causing your problem: https://github.com/jumph4x/spree-google-base/pull/5

I think if you used my fork until that was merged that your problem would go away.

happy to help :)
To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/oEWd5D5RIRYJ.

To post to this group, send email to spree...@googlegroups.com.
To unsubscribe from this group, send email to spree-user+...@googlegroups.com.

Ross Rankin

unread,
Jul 20, 2012, 9:50:05 AM7/20/12
to spree...@googlegroups.com
Awesome, thanks Ryan... unfortunately I now get another error:

** Invoke spree_google_base:generate_and_transfer (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute spree_google_base:generate_and_transfer
rake aborted!
undefined method `each' for #<SpreeGoogleBase::FeedBuilder:0x007fe0c45f8460>
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/bundler/gems/spree-google-base-9f4ca6741c79/lib/spree_google_base/feed_builder.rb:18:in `generate_and_transfer'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/bundler/gems/spree-google-base-9f4ca6741c79/lib/tasks/spree_google_base_extension_tasks.rake:5:in `block (2 levels) in <top (required)>'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/bin/rake:19:in `load'
/Volumes/MacintoshHD/Users/RossRankin/.rvm/gems/ruby-1.9.2-p318@tatp_store/bin/rake:19:in `<main>'
Tasks: TOP => spree_google_base:generate_and_transfer

Denis (jumph4x)

unread,
Jul 25, 2012, 11:24:39 AM7/25/12
to spree...@googlegroups.com
Taken care of: https://github.com/jumph4x/spree-google-base/commit/3fb63506163c94724fdf42181ec2027523127cd9

Try again. When I climb out of the technical debt hole at work I will try to include this kind of stuff in the extension's specs. Meanwhile pull requests encouraged. 

Thanks Ryan for throwing that one at me, next time just link straight to here and I'll sort it out on my own time. 
Reply all
Reply to author
Forward
0 new messages