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 CHANGED
@@ -1,2 +1,3 @@
1
1
  pkg/*
2
2
  tmp/*
3
+ *.gem
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
@@ -1,3 +1,3 @@
1
1
  module GrabJS
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grabjs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Hoy