https://github.com/watson1978/motion-pixate-observer
This gem provides a function that you changes css files, apply changes into your application that uses Pixate Framework / Pixate Freestyle Framework immediately.
https://github.com/watson1978/motion-pixate-observer
Last synced: about 1 year ago
JSON representation
This gem provides a function that you changes css files, apply changes into your application that uses Pixate Framework / Pixate Freestyle Framework immediately.
- Host: GitHub
- URL: https://github.com/watson1978/motion-pixate-observer
- Owner: Watson1978
- License: mit
- Created: 2013-01-23T12:01:42.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-02-25T00:38:19.000Z (over 12 years ago)
- Last Synced: 2024-04-25T16:20:59.338Z (about 2 years ago)
- Language: Ruby
- Homepage:
- Size: 199 KB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Motion::Pixate::Observer
This gem provides a function that you changes css files, apply changes into your application that uses Pixate Framework / Pixate Freestyle Framework immediately.
You do not need rebuild your application and any operations.
Only update your css files.
この gem は、CSS ファイルを変更すると即座に Pixate Framework を利用したアプリに変更内容を適用するという機能を提供します。
CSS ファイルを変更するたびにアプリをビルドし直す必要も、アプリ上での操作も一切必要ありません。CSS ファイルをエディタで編集し保存するだけです。
## Requirements
- RubyMotion 1.0 or greater (see http://www.rubymotion.com).
- Pixate Framework 1.0 / Pixate Freestyle Framework 2.1 or greater (see http://www.pixate.com/).
## Installation
```
$ gem install motion-pixate-observer
```
## Usage
- Add require `motion-pixate-observer` to your `Rakefile`
```ruby
require 'rubygems'
require 'motion-pixate-observer'
```
- include `Motion::Pixate::Observer` in Main Controller. Call `startObserving` in `viewDidLoad`.
```ruby
class MainViewController < UIViewController
include Motion::Pixate::Observer # include Motion::Pixate::Observer in Main Controller
def viewDidLoad
super
startObserving # start searching and communicate with server
....
end
```
- First, you have to start server.
```
$ pixate_server css_file_path
```
After started server, run your RubyMotion application.
- update css files, apply changes immediately.