jackdempsey-beet 0.2.0 → 0.2.1
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/beet.gemspec +4 -3
- data/lib/beet/execution.rb +2 -4
- data/lib/beet/recipes/rails/cms/bcms_event.rb +24 -0
- data/lib/beet/recipes/rails/git.rb +4 -5
- metadata +3 -2
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.2.
|
5
|
+
s.version = "0.2.1"
|
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-06-
|
9
|
+
s.date = %q{2009-06-17}
|
10
10
|
s.default_executable = %q{beet}
|
11
11
|
s.email = %q{jack.dempsey@gmail.com}
|
12
12
|
s.executables = ["beet"]
|
@@ -36,6 +36,7 @@ Gem::Specification.new do |s|
|
|
36
36
|
"lib/beet/recipes/rails/authlogic.rb",
|
37
37
|
"lib/beet/recipes/rails/clean_files.rb",
|
38
38
|
"lib/beet/recipes/rails/cms/bcms_blog.rb",
|
39
|
+
"lib/beet/recipes/rails/cms/bcms_event.rb",
|
39
40
|
"lib/beet/recipes/rails/css/blueprint.rb",
|
40
41
|
"lib/beet/recipes/rails/css/reset.rb",
|
41
42
|
"lib/beet/recipes/rails/db/mysql.rb",
|
@@ -54,7 +55,7 @@ Gem::Specification.new do |s|
|
|
54
55
|
s.homepage = %q{http://github.com/jackdempsey/beet}
|
55
56
|
s.rdoc_options = ["--charset=UTF-8"]
|
56
57
|
s.require_paths = ["lib"]
|
57
|
-
s.rubygems_version = %q{1.3.
|
58
|
+
s.rubygems_version = %q{1.3.4}
|
58
59
|
s.summary = %q{A gem to help with easily generating projects}
|
59
60
|
s.test_files = [
|
60
61
|
"test/executor_test.rb",
|
data/lib/beet/execution.rb
CHANGED
@@ -10,7 +10,7 @@ module Beet
|
|
10
10
|
#
|
11
11
|
def run(command, log_action = true)
|
12
12
|
log 'executing', "#{command} from #{Dir.pwd}" if log_action
|
13
|
-
|
13
|
+
system(command)
|
14
14
|
end
|
15
15
|
|
16
16
|
# Executes a command with sudo
|
@@ -23,9 +23,7 @@ module Beet
|
|
23
23
|
#
|
24
24
|
def sudo(command, log_action = true)
|
25
25
|
command = "#{SUDO}#{command}"
|
26
|
-
|
27
|
-
log 'executing', "#{command} from #{Dir.pwd}" if log_action
|
28
|
-
`#{command}`
|
26
|
+
run(command,log_action)
|
29
27
|
end
|
30
28
|
|
31
29
|
# Executes a ruby script (taking into account WIN32 platform quirks)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# install the gem
|
2
|
+
if `gem list bcms_event | grep bcms_event`.empty?
|
3
|
+
# Run this inside or outside your bcms_event directory, otherwise download the code
|
4
|
+
git "clone git://github.com/browsermedia/bcms_event.git" unless File.exists?('./bcms_event') || File.basename(Dir.pwd) == 'bcms_event'
|
5
|
+
FileUtils.chdir 'bcms_event' do
|
6
|
+
system "gem build *.gemspec"
|
7
|
+
sudo "gem install bcms_event*.gem"
|
8
|
+
end
|
9
|
+
if yes? "Should I delete bcms_event/"
|
10
|
+
FileUtils.rm_rf('bcms_event')
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
# add to project
|
15
|
+
add_after 'config/environment.rb', "config.gem 'browsercms'" do
|
16
|
+
"\tconfig.gem 'bcms_event'"
|
17
|
+
end
|
18
|
+
|
19
|
+
add_before 'config/routes.rb', 'map.routes_for_browser_cms' do
|
20
|
+
"\tmap.routes_for_bcms_event\n"
|
21
|
+
end
|
22
|
+
|
23
|
+
generate "browser_cms"
|
24
|
+
rake "db:migrate"
|
@@ -7,12 +7,11 @@ run("find . \\( -type d -empty \\) -and \\( -not -regex ./\\.git.* \\) -exec tou
|
|
7
7
|
git :init
|
8
8
|
|
9
9
|
file '.gitignore', <<-CODE
|
10
|
-
log
|
11
|
-
|
12
|
-
db
|
13
|
-
db/\\*.sqlite3
|
10
|
+
log/*.*
|
11
|
+
db/*.db
|
12
|
+
db/*.sqlite3
|
14
13
|
db/schema.rb
|
15
|
-
tmp
|
14
|
+
tmp/*.*
|
16
15
|
.DS_Store
|
17
16
|
doc/api
|
18
17
|
doc/app
|
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.2.
|
4
|
+
version: 0.2.1
|
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-06-
|
12
|
+
date: 2009-06-17 00:00:00 -07:00
|
13
13
|
default_executable: beet
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- lib/beet/recipes/rails/authlogic.rb
|
54
54
|
- lib/beet/recipes/rails/clean_files.rb
|
55
55
|
- lib/beet/recipes/rails/cms/bcms_blog.rb
|
56
|
+
- lib/beet/recipes/rails/cms/bcms_event.rb
|
56
57
|
- lib/beet/recipes/rails/css/blueprint.rb
|
57
58
|
- lib/beet/recipes/rails/css/reset.rb
|
58
59
|
- lib/beet/recipes/rails/db/mysql.rb
|