infinitered / ProMotion-iap

In-app purchases for ProMotion!
19 stars 7 forks source link

uninitialized constant ProMotion::IAP (NameError) using local path for gem #16

Closed dam13n closed 9 years ago

dam13n commented 9 years ago

uninitialized constant ProMotion::IAP (NameError)

Getting this error when using a local copy of the gem. Noticed the same issue had popped up in other PM add-ons due to detect_dependencies issues.

jamonholmgren commented 9 years ago

I've unfortunately never been able to get around this reliably. :-( Spent 5 hours on it once (I'm not kidding). If you figure something out, I'd be happy to hear it!

dam13n commented 9 years ago

Removing the PM namespace fixed it for me: https://github.com/dam13n/ProMotion-iap/commit/dee7a5d7c28772c035d8dc2775d7bda48aab48a6

jamonholmgren commented 9 years ago

Good to know! And now I feel dumb about spending so much time on it.

dam13n commented 9 years ago

Haha, I spent a lottttt of time... Hopefully the underlying local vs. github repo issue gets figured out. : )

jamonholmgren commented 9 years ago

I feel pretty foolish, @dam13n ... I forgot about #8 , which I think fixes this issue.

dam13n commented 9 years ago

I had tried that fix. I'll give it another shot.

jamonholmgren commented 9 years ago

Hm, okay!

dam13n commented 9 years ago

Doesn't work, at least for me.