这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@nanamiwang
Copy link
Contributor

Gemfile

source "https://rubygems.org"
gem "rake"
gem "motion-cocoapods"
gem "ProMotion"
gem "ProMotion-menu"
gem 'motion-yapper'

Run rake, then an exception occurred:

uninitialized constant ProMotion::Menu::Drawer::Gestures (NameError)

The root cause is ProMotion-menu depends on RM auto file dependency detection, but 'motion-yapper' turn off this feature by setting detect_dependencies to false. motion-yapper did this because old version of motion-support is incompatible with auto file dependency detection.
Learning from ProMotion, this issue can be avoided by specify all file dependencies in Rakefile.
jamonholmgren/ProMotion#555

…th gem that set detect_dependencies to false
@kevinvangelder
Copy link
Member

@nanamiwang Thanks for contributing!

This looks like an edge case to me, so rather than changing how the gem works, I think we'll just document your work-around so any other people that run into this issue will find this solution. However, it's @jamonholmgren's decision to make.

@jamonholmgren
Copy link
Member

Actually, this is @macfanatic and @ryanlntn's baby now. :)

@ryanlntn
Copy link
Member

ryanlntn commented Feb 6, 2015

@kevinvangelder Unfortunately it's not all that uncommon for other gems to turn off dependency detection. That's why ProMotion started specifying the file dependencies in the Rakefile. Given that and the fact that ProMotion already does this, I'm for it. Unless @macfanatic and/or @jamonholmgren have any objections.

@jamonholmgren
Copy link
Member

👍 There's no downside to this.

ryanlntn added a commit that referenced this pull request Feb 6, 2015
Fix file dependencies issue while working with 'motion-yapper' gem
@ryanlntn ryanlntn merged commit 01ef908 into infinitered:master Feb 6, 2015
@ryanlntn
Copy link
Member

ryanlntn commented Feb 6, 2015

Great! Thanks @nanamiwang !

@nanamiwang nanamiwang deleted the detect_depend branch February 7, 2015 01:54
@nanamiwang
Copy link
Contributor Author

👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants