HipByte / Flow

Cross-platform libraries for RubyMotion
BSD 2-Clause "Simplified" License
141 stars 29 forks source link

Can't use github option in Gemfile. Only works when installed via `gem install` #32

Closed andrewhavens closed 8 years ago

andrewhavens commented 8 years ago

This issue was referenced in #17 but has not been resolved.

@Watson1978: To use master branch in your env, you have to build extension which written by C language.

So, given a Gemfile like this:

source 'https://rubygems.org'
gem 'rake'
gem 'motion-flow', github: 'HipByte/Flow'

...it does not work because the C extension is not installed.

Watson1978 commented 8 years ago

This gem does not support what specified Github repository directly at your Gemfile

If you want to use the code in HEAD of master branch, you need to clone the repository into your machine and compile Ruby C extension with rake build.

$ git clone https://github.com/HipByte/Flow.git && cd Flow
$ rake build

And then

# Gemfile
gem 'motion-flow', path: '/path/to/cloned/repository/'

Or,

$ rake gem
$ gem install motion-flow-X.X.X.gem
# Gemfile
gem 'motion-flow
rafaeliga commented 8 years ago

So how can I fork the project?

I need to create a new gem?