https://github.com/watson1978/motion-doc
https://github.com/watson1978/motion-doc
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/watson1978/motion-doc
- Owner: Watson1978
- Created: 2013-05-11T23:19:37.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-11T23:29:27.000Z (about 13 years ago)
- Last Synced: 2024-12-28T12:46:39.437Z (over 1 year ago)
- Language: Ruby
- Size: 105 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# motion-doc
A sample of RubyMotion Command-Line Plugin
gem インストール後にコマンドを RubyGems を通じて実行することができません。
RubyMotion のプラグインは ~/Library/RubyMotion/command に配置する必要があるため、gem をインストールした後に手作業で所定の場所へコピーするか、gem 付属のインストーラを実行する必要があります。
```
$ gem install my-command-line-plugin
$ my-command-line-plugin install
```
そこで、extconf.rb を使用して手間を省きました。
通常 extconf.rb は C 拡張ライブラリをビルドするための Makefile を作成するために用いられます。
extconf.rb で必要なインストール処理をした後、ダミーの Makefile を作成しています。
----
RubyGems does not allow to run post install command.
RubyMotion will need to put your Command-Line Plugin in ~/Library/RubyMotion/command.
You have to install Command-Line Plugin into ~/Library/RubyMotion/command manually or using installer which is attached to gem after installed a gem.
So, I use the extconf.rb in order to install easily.
Normally, extconf.rb is used to create Makefile for C extension.
Run the install command in extconf.rb, after then create a Makefile as dummy :)