grabjs 0.0.4 → 0.0.5
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/.gitignore +1 -0
- data/README +12 -0
- data/lib/grabjs.rb +6 -0
- data/lib/grabjs/version.rb +1 -1
- metadata +3 -3
data/.gitignore
CHANGED
data/README
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
== grabjs ==
|
|
2
2
|
|
|
3
3
|
simple ruby gem to download popular javascript libraries.
|
|
4
|
+
|
|
5
|
+
the code is based somewhat on the homebrew project
|
|
6
|
+
https://github.com/mxcl/homebrew
|
|
7
|
+
|
|
8
|
+
== install ==
|
|
9
|
+
sudo gem install grabjs
|
|
10
|
+
|
|
11
|
+
== usage ==
|
|
12
|
+
$ grabjs jquery # will download the jquery javascript lib to current library.
|
|
13
|
+
|
|
14
|
+
== requirements ==
|
|
15
|
+
wget
|
data/lib/grabjs.rb
CHANGED
|
@@ -17,4 +17,10 @@ module GrabJS
|
|
|
17
17
|
def self.url
|
|
18
18
|
raise "Override this method."
|
|
19
19
|
end
|
|
20
|
+
|
|
21
|
+
def self.list
|
|
22
|
+
files = Dir.glob(File.join(File.dirname(__FILE__), "formula/*.rb"))
|
|
23
|
+
filter = lambda { |x| x.chomp(".rb").gsub(/.*\//, "") }
|
|
24
|
+
files.map(&filter).join("\n")
|
|
25
|
+
end
|
|
20
26
|
end
|
data/lib/grabjs/version.rb
CHANGED
metadata
CHANGED