widget_bundler 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/app/models/widget_bundle.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDdjMWU3YzY3ZWY5MzE1YmMwNmNjZjdiYzU1MDE2MjMzZGQ5NzMxNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2Q0NzZjYWYwNWEwNDViNmM3NzNkN2ExYzM1YmExNTZiMzU2N2UwNQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmNjN2I2NjE5MGZhNzYxNzk4NjNlY2I1YTE0NzZlZDg4MTM5MjgxNjliM2Zi
|
10
|
+
YjEwYmQ4MTk2YjRkNWY2MzI2MmQ0OTFmNGE5MDg0YTM4ZDJmOTc5ZGRlNWZi
|
11
|
+
Y2NiMjExMWQ1ZjE2ZTdlNDA2ZWE1NTMyZmM3MTM1ZDgwNmZhNTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjBmMTZjMzdjNzYzMzQ1Zjg5ZWViZWEyN2E3ZTY5MDBjNThjNTM5YjM5NTA3
|
14
|
+
OWJiOTI3OThjYTk4ZmUzOGRjYTM0ZmI4ZDk5OWMxZWFhNDFhN2U1MGEzOTFj
|
15
|
+
ZmIwYjFlMTExYmViODk2ZWIyMzljMDk4ZTE5MTZlMTJiMmI5ZmY=
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# Class for packaging set of html, javascript, image and stylesheet files into a widget for an iBook
|
3
3
|
# => accepts an array of images, stylesheets and javascripts as full paths
|
4
4
|
# => images should be paperclip .url method path (gem assumes "#{Rails.root}/public" path for images)
|
5
|
-
# => acceps main haml file as string
|
5
|
+
# => acceps main haml file as a string
|
6
6
|
#
|
7
7
|
require 'active_model'
|
8
8
|
require 'plist'
|
@@ -59,8 +59,8 @@ class WidgetBundle
|
|
59
59
|
File.open("#{path}/Info.plist", "w") { |file| file.write(plist_content(display_name, bundle_identifier, bundle_name)) }
|
60
60
|
|
61
61
|
# create main.html
|
62
|
-
compiled_haml = `haml #{haml}`
|
63
|
-
File.open("#{path}/main.html", "w") { |file| file.write(
|
62
|
+
# compiled_haml = `haml #{haml}`
|
63
|
+
File.open("#{path}/main.html", "w") { |file| file.write( haml ) }
|
64
64
|
|
65
65
|
# compress the *.wdgt folder and return the full path to the zip archive
|
66
66
|
compress(path)
|