reagent-jsmin 1.0.1 → 1.0.2
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/HISTORY +3 -0
- data/bin/jsmin +20 -0
- metadata +5 -4
data/HISTORY
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
JSMin History
|
|
2
2
|
================================================================================
|
|
3
3
|
|
|
4
|
+
Version 1.0.2 (2009-02-20)
|
|
5
|
+
* Added commandline tool to make minification easier
|
|
6
|
+
|
|
4
7
|
Version 1.0.1 (2008-11-10)
|
|
5
8
|
* Ruby 1.9 compatibility.
|
|
6
9
|
* Minor performance improvements.
|
data/bin/jsmin
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require 'rubygems'
|
|
4
|
+
require 'jsmin'
|
|
5
|
+
|
|
6
|
+
source_file = ARGV[0]
|
|
7
|
+
|
|
8
|
+
if source_file.nil?
|
|
9
|
+
puts "Usage: jsmin <source file> [destination file]"
|
|
10
|
+
exit 1
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
destination_file = $2 || "#{source_file}.minified"
|
|
14
|
+
|
|
15
|
+
if !File.exist?(source_file)
|
|
16
|
+
puts "Could not locate source file: #{source_file}"
|
|
17
|
+
exit 1;
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
File.open(destination_file, 'w') {|file| file << JSMin.minify(File.read(source_file)) }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reagent-jsmin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Grove
|
|
@@ -10,13 +10,13 @@ bindir: bin
|
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
12
|
date: 2009-02-20 00:00:00 -08:00
|
|
13
|
-
default_executable:
|
|
13
|
+
default_executable: jsmin
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
16
16
|
description:
|
|
17
17
|
email: ryan@wonko.com
|
|
18
|
-
executables:
|
|
19
|
-
|
|
18
|
+
executables:
|
|
19
|
+
- jsmin
|
|
20
20
|
extensions: []
|
|
21
21
|
|
|
22
22
|
extra_rdoc_files: []
|
|
@@ -24,6 +24,7 @@ extra_rdoc_files: []
|
|
|
24
24
|
files:
|
|
25
25
|
- HISTORY
|
|
26
26
|
- lib/jsmin.rb
|
|
27
|
+
- bin/jsmin
|
|
27
28
|
has_rdoc: true
|
|
28
29
|
homepage: http://github.com/rgrove/jsmin/
|
|
29
30
|
post_install_message:
|