jackdempsey-beet 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/beet.gemspec +3 -2
- data/bin/beet +13 -1
- data/lib/beet/templates/rails/jquery.rb +3 -0
- data/lib/beet/templates/rails/rspec.rb +3 -0
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/beet.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{beet}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.6"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Jack Dempsey"]
|
9
|
-
s.date = %q{2009-05-
|
9
|
+
s.date = %q{2009-05-29}
|
10
10
|
s.default_executable = %q{beet}
|
11
11
|
s.email = %q{jack.dempsey@gmail.com}
|
12
12
|
s.executables = ["beet"]
|
@@ -39,6 +39,7 @@ Gem::Specification.new do |s|
|
|
39
39
|
"lib/beet/templates/rails/db/mysql.rb",
|
40
40
|
"lib/beet/templates/rails/git.rb",
|
41
41
|
"lib/beet/templates/rails/jquery.rb",
|
42
|
+
"lib/beet/templates/rails/rspec.rb",
|
42
43
|
"spec/beet_spec.rb",
|
43
44
|
"spec/spec_helper.rb"
|
44
45
|
]
|
data/bin/beet
CHANGED
@@ -12,6 +12,7 @@ class BeetRunner < Thor
|
|
12
12
|
map "-g" => :generate
|
13
13
|
map "-h" => :help
|
14
14
|
map "-v" => :version
|
15
|
+
map "-l" => :list
|
15
16
|
|
16
17
|
desc 'generate [app_name]', "the main app generate method"
|
17
18
|
method_options :templates => :optional, :gems => :optional
|
@@ -27,9 +28,20 @@ class BeetRunner < Thor
|
|
27
28
|
end
|
28
29
|
end
|
29
30
|
|
31
|
+
desc 'list', "list what recipes beet knows about"
|
32
|
+
def list
|
33
|
+
paths = []
|
34
|
+
paths << File.dirname(__FILE__) + '/../lib/beet/templates/**/*.rb'
|
35
|
+
paths << ENV['BEET_TEMPLATES_DIR'] if ENV['BEET_TEMPLATES_DIR']
|
36
|
+
recipes = paths.map do |path|
|
37
|
+
Dir.glob(path)
|
38
|
+
end.flatten.compact
|
39
|
+
pp recipes
|
40
|
+
end
|
41
|
+
|
30
42
|
desc 'version', "the current version of beet"
|
31
43
|
def version
|
32
|
-
version_file =
|
44
|
+
version_file = File.dirname(__FILE__) + '/../VERSION'
|
33
45
|
if File.exists?(version_file) and version = File.read(version_file)
|
34
46
|
puts "Beet version: #{version}"
|
35
47
|
end
|
@@ -1,2 +1,5 @@
|
|
1
|
+
in_root { FileUtils.rm_r Dir.glob("public/javascripts/*.js") }
|
2
|
+
|
1
3
|
run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js > public/javascripts/jquery.js"
|
2
4
|
run "curl -L http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js > public/javascripts/jquery.form.js"
|
5
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jackdempsey-beet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Dempsey
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05-
|
12
|
+
date: 2009-05-29 00:00:00 -07:00
|
13
13
|
default_executable: beet
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/beet/templates/rails/db/mysql.rb
|
57
57
|
- lib/beet/templates/rails/git.rb
|
58
58
|
- lib/beet/templates/rails/jquery.rb
|
59
|
+
- lib/beet/templates/rails/rspec.rb
|
59
60
|
- spec/beet_spec.rb
|
60
61
|
- spec/spec_helper.rb
|
61
62
|
has_rdoc: false
|