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 CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.2 2009-06-09
2
+
3
+ * Windows fix for 7z unzipping
4
+
1
5
  0.2.1 2009-06-09
2
6
 
3
7
  * removed prepackaged textmate bundles because causing problems with Windows - now svn only copies
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
 
@@ -5,5 +5,5 @@ require 'jquery_plugin_gen/quick_template'
5
5
  require 'jquery_plugin_gen/generator'
6
6
 
7
7
  module JqueryPluginGen
8
- VERSION = '0.2.1'
8
+ VERSION = '0.2.2'
9
9
  end
@@ -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 "Extracting using #{zip} - this should be on your path or set the ZIP=path/to/zip/cmd on rake command"
130
- `#{zip} #{tmp_dir}/#{file} -o #{tmp_dir}`
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}`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jqueryplugingen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - toddb