infinitered / ProMotion-form

Deprecated -- use ProMotion-XLForm
19 stars 11 forks source link

Error when using with MotionKit #3

Closed willrax closed 10 years ago

willrax commented 10 years ago

Gem looks great! When I use this with motion-kit though i get the following error. Following the trace seems to indicate it's something with DBT (?).

❯ be rake --trace
rake aborted!
NoMethodError: undefined method `pods' for #<Motion::Project::IOSConfig:0x007f7fe4252810>
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/ProMotion-form-0.2.0/lib/ProMotion-form.rb:12:in `block in <top (required)>'
/Library/RubyMotion/lib/motion/project/config.rb:110:in `call'
/Library/RubyMotion/lib/motion/project/config.rb:110:in `block in setup'
/Library/RubyMotion/lib/motion/project/config.rb:110:in `each'
/Library/RubyMotion/lib/motion/project/config.rb:110:in `setup'
/Library/RubyMotion/lib/motion/project/app.rb:66:in `config'
/Library/RubyMotion/lib/motion/project/app.rb:74:in `setup'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/dbt-1.1.5/lib/dbt.rb:73:in `<top (required)>'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/motion-kit-2c6b63dba5a2/lib/motion-kit.rb:6:in `require'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/motion-kit-2c6b63dba5a2/lib/motion-kit.rb:6:in `<top (required)>'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.5/lib/bundler/runtime.rb:76:in `require'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.5/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.5/lib/bundler/runtime.rb:72:in `each'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.5/lib/bundler/runtime.rb:72:in `block in require'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.5/lib/bundler/runtime.rb:61:in `each'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.5/lib/bundler/runtime.rb:61:in `require'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.5/lib/bundler.rb:132:in `require'
/Users/willrax/Code/apptest/ios/Rakefile:5:in `<top (required)>'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:687:in `raw_load_rakefile'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:94:in `block in load_rakefile'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:93:in `load_rakefile'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:77:in `block in run'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/Users/willrax/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/Users/willrax/.rbenv/versions/2.1.2/bin/rake:23:in `load'
/Users/willrax/.rbenv/versions/2.1.2/bin/rake:23:in `<main>'

Gemfile:

source "http://rubygems.org"

gem "rake"

gem "ProMotion", github: "clearsightstudio/ProMotion"
gem "ProMotion-form", github: "clearsightstudio/ProMotion-form"
gem "motion-kit", github: "motion-kit/motion-kit", branch: "master"
gem "motion-kit-events", github: "motion-kit/motion-kit-events", branch: "master"
gem "afmotion"
gem "rm-digest"
gem "motion-cocoapods"
gem "dotenv"
gem "bubble-wrap", require: %w[bubble-wrap/core]
gem "motion_print"

# # Distribution
gem "motion-testflight"
gem "motion-stump"
jamonholmgren commented 10 years ago

Checking it out @willrax !

jamonholmgren commented 10 years ago

I'm not getting an error when I compile my app using almost the same Gemfile. I'll try a vanilla version.

jamonholmgren commented 10 years ago

Found the problem -- needed to require 'motion-cocoapods'. Pushed up a fix and will release 0.2.1 with it. You'll need to rake pod:install too after bundling.

willrax commented 10 years ago

Awesome. Thanks @jamonholmgren.