motion-pixate 1.2 → 1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.md +11 -4
  2. data/lib/motion/project/pixate.rb +5 -5
  3. metadata +3 -3
data/README.md CHANGED
@@ -23,17 +23,24 @@ require 'rubygems'
23
23
  require 'motion-pixate'
24
24
  ```
25
25
 
26
- 3. Still in the `Rakefile`, set up the `user`, `key` and `framework` variables in your application configuration block. For the **free** version of the Pixate Engine, `user` and `key` are **not** required.
26
+ 3. Still in the `Rakefile`, set up the `user`, `key` and `framework` variables in your application configuration block.
27
+ This **free** key is available at [http://pixate.com/key](http://pixate.com/key).
27
28
  ```ruby
28
29
  Motion::Project::App.setup do |app|
29
30
  # ...
30
- app.pixate.user = 'USER ID'
31
- app.pixate.key = 'KEY CODE'
31
+ app.pixate.user = 'USER ID' # Valid key removes "splash screen"
32
+ app.pixate.key = 'KEY CODE' # Visit pixate.com/key for a free key
32
33
  app.pixate.framework = 'vendor/PXEngine.framework'
33
34
  end
34
35
  ```
35
36
 
36
- 4. Create the `default.css` in `resources` directory.
37
+ 4. Note: As of Pixate 1.1 beta 4, you need to add the following line to your `app_delegate` file in the `application(application, didFinishLaunchingWithOptions:launchOptions)` method before the `@window.makeKeyAndVisible` call:
38
+
39
+ ```ruby
40
+ @window.styleMode = PXStylingNormal
41
+ ```
42
+
43
+ 5. Create the `default.css` in `resources` directory.
37
44
 
38
45
  Note: To install the motion-pixate gem, see the [RubyGems site](https://rubygems.org/gems/motion-pixate).
39
46
 
@@ -65,7 +65,7 @@ end; end; end
65
65
  namespace 'pixate' do
66
66
  desc "Create initial stylesheet files"
67
67
  task :init do
68
- unless File.exist?("sass/default.scss")
68
+ if Dir.glob("sass/default.s[ac]ss").empty?
69
69
  mkdir_p "sass"
70
70
  touch "sass/default.scss"
71
71
  App.info 'Create', 'sass/default.scss'
@@ -78,9 +78,9 @@ namespace 'pixate' do
78
78
  end
79
79
  end
80
80
 
81
- desc "Compile SCSS file"
81
+ desc "Compile SASS/SCSS file"
82
82
  task :sass do
83
- unless File.exist?("sass/default.scss")
83
+ unless sass_path = Dir.glob("sass/default.s[ac]ss").first
84
84
  warn "Not found `sass/default.scss'"
85
85
  exit
86
86
  end
@@ -93,7 +93,7 @@ namespace 'pixate' do
93
93
  if ENV['style'].to_s.length > 0
94
94
  style = "--style #{ENV['style']}"
95
95
  end
96
- sh "sass sass/default.scss resources/default.css #{style}"
97
- App.info 'Compile', 'sass/default.scss'
96
+ sh "sass #{sass_path} resources/default.css #{style}"
97
+ App.info 'Compile', sass_path
98
98
  end
99
99
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-pixate
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-09 00:00:00.000000000 Z
13
+ date: 2013-09-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sass
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  version: '0'
60
60
  requirements: []
61
61
  rubyforge_project:
62
- rubygems_version: 1.8.24
62
+ rubygems_version: 1.8.25
63
63
  signing_key:
64
64
  specification_version: 3
65
65
  summary: motion-pixate allows RubyMotion projects to easily embed the Pixate Framework.