ProMotion-iap icon indicating copy to clipboard operation
ProMotion-iap copied to clipboard

uninitialized constant ProMotion::IAP (NameError)

Open joerichsen opened this issue 10 years ago • 3 comments

This looks like a very useful gem :-)

I just added this gem to my project and when I run

bundle exec rake clean && bundle exec rake

the simulator starts and exits with the following error message:

uninitialized constant ProMotion::IAP (NameError)

This is the git diff in my project. I basically just added the gem and ran bundle install.

diff --git a/Gemfile b/Gemfile
index 3d13d05..3c9792e 100644
--- a/Gemfile
+++ b/Gemfile
@@ -8,3 +8,5 @@ gem "bubble-wrap", "~> 1.7.1", require: ['bubble-wrap/core']
 gem 'dotenv', '~> 0.9.0'

 gem 'sugarcube', require: [ 'sugarcube-localized' ]
+
+gem 'ProMotion-iap', github: 'clearsightstudio/ProMotion-iap'
\ No newline at end of file
diff --git a/Gemfile.lock b/Gemfile.lock
index 7f15582..ed63432 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,4 +1,10 @@
 GIT
+  remote: git://github.com/clearsightstudio/ProMotion-iap.git
+  revision: fe579ab697f139676b709185471096378b317a11
+  specs:
+    ProMotion-iap (0.2.0)
+
+GIT
   remote: git://github.com/clearsightstudio/ProMotion.git
   revision: 77b86eaf33295a86adfdfa040e20f9737ce16844
   specs:
@@ -22,6 +28,7 @@ PLATFORMS

 DEPENDENCIES
   ProMotion!
+  ProMotion-iap!
   bubble-wrap (~> 1.7.1)
   dotenv (~> 0.9.0)
   rake

Am I missing a step in the installation? Any pointers on how to debug this problem would be greatly appreciated :-)

joerichsen avatar Mar 30 '15 12:03 joerichsen

Adding

app.detect_dependencies = false

to my Rakefile seems to solve the problem.

joerichsen avatar Mar 30 '15 14:03 joerichsen

@joerichsen , you shouldn't have to (and shouldn't) turn off detect_dependencies. This is definitely a bug. Will look into it as soon as I can.

jamonholmgren avatar Mar 31 '15 00:03 jamonholmgren

Just ran into this myself!

jamonholmgren avatar Apr 01 '15 02:04 jamonholmgren