motion-pixate 1.3 → 2.0
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.
- data/README.md +1 -7
- data/lib/motion/project/pixate.rb +4 -4
- metadata +2 -2
data/README.md
CHANGED
|
@@ -34,13 +34,7 @@ Motion::Project::App.setup do |app|
|
|
|
34
34
|
end
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
4.
|
|
38
|
-
|
|
39
|
-
```ruby
|
|
40
|
-
@window.styleMode = PXStylingNormal
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
5. Create the `default.css` in `resources` directory.
|
|
37
|
+
4. Create the `default.css` in `resources` directory.
|
|
44
38
|
|
|
45
39
|
Note: To install the motion-pixate gem, see the [RubyGems site](https://rubygems.org/gems/motion-pixate).
|
|
46
40
|
|
|
@@ -13,7 +13,7 @@ class PixateConfig
|
|
|
13
13
|
if @framework != path
|
|
14
14
|
@config.unvendor_project(@framework)
|
|
15
15
|
@framework = path
|
|
16
|
-
@config.vendor_project(path, :static, :products => ['
|
|
16
|
+
@config.vendor_project(path, :static, :products => ['Pixate'], :headers_dir => 'Headers')
|
|
17
17
|
create_code
|
|
18
18
|
end
|
|
19
19
|
end
|
|
@@ -23,7 +23,7 @@ class PixateConfig
|
|
|
23
23
|
def create_code
|
|
24
24
|
license = ""
|
|
25
25
|
if @user && @key
|
|
26
|
-
license = "
|
|
26
|
+
license = "Pixate.licenseKey('#{@key}', forUser:'#{@user}')\n"
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
code = <<EOF
|
|
@@ -31,8 +31,8 @@ class PixateConfig
|
|
|
31
31
|
|
|
32
32
|
#{license}
|
|
33
33
|
def style(str)
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
Pixate.styleSheetFromSource(str, withOrigin:0)
|
|
35
|
+
Pixate.applyStylesheets
|
|
36
36
|
end
|
|
37
37
|
EOF
|
|
38
38
|
pixate_file = './app/pixate_code.rb'
|
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: '
|
|
4
|
+
version: '2.0'
|
|
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-09-
|
|
13
|
+
date: 2013-09-17 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: sass
|