jqueryplugingen 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.rdoc +4 -0
- data/lib/jquery_plugin_gen.rb +1 -1
- data/lib/jquery_plugin_gen/support/jquery.rake +4 -2
- metadata +1 -1
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -10,6 +10,8 @@ Generate the structure of jquery plugins easily. Manage library dependencies suc
|
|
10
10
|
== FEATURES/PROBLEMS:
|
11
11
|
|
12
12
|
* CAN't have a '-' or '.' in the project name [need to split plugin name and filename :-)]
|
13
|
+
* gem dependencies auto installed
|
14
|
+
* Can I have a ruby implementation of unzip for windows (rather than 7z?)
|
13
15
|
* refactor jquery.rake task like compiletask as it is pretty ugly and has some spaghetti going on
|
14
16
|
* be able to use the produced code on linux and windows (need jqp.bat)
|
15
17
|
* include qunit
|
@@ -115,6 +117,8 @@ Finally, package your plugin ready for uploading the plugins.jquery.com
|
|
115
117
|
== REQUIREMENTS:
|
116
118
|
|
117
119
|
* jquery (installed with rake:jquery:add)
|
120
|
+
* WINDOWS: 7zip (7z) on your path
|
121
|
+
* gems: rss-simple, open-uri, tmpdir
|
118
122
|
|
119
123
|
== INSTALL:
|
120
124
|
|
data/lib/jquery_plugin_gen.rb
CHANGED
@@ -126,8 +126,10 @@ def unzip_and_install(dest, tmp_dir, file)
|
|
126
126
|
|
127
127
|
if /mswin|mingw/ =~ RUBY_PLATFORM then
|
128
128
|
zip = ENV['ZIP'] || '7z'
|
129
|
-
puts "
|
130
|
-
|
129
|
+
puts "*********************************"
|
130
|
+
puts "Extracting using #{zip} - this should be on your path or set the ZIP=path/to/zip/cmd on rake command using 'x -o #{tmp_dir} #{tmp_dir}/#{file}'"
|
131
|
+
puts "*********************************"
|
132
|
+
`#{zip} x -o#{tmp_dir} #{tmp_dir}/#{file}`
|
131
133
|
else
|
132
134
|
puts "Extracting files #{tmp_dir}/#{file} to #{tmp_dir}"
|
133
135
|
`unzip -o #{tmp_dir}/#{file} -d #{tmp_dir}`
|