rubaidh-bamboo_rails 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/README.rdoc +13 -18
- data/bamboo_rails.gemspec +2 -2
- data/tasks/bamboo_rails_tasks.rake +1 -43
- metadata +4 -3
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -8,35 +8,30 @@ the results in a manner that Bamboo will happily consume.
|
|
8
8
|
|
9
9
|
== Installation
|
10
10
|
|
11
|
+
== As a Plugin
|
12
|
+
|
11
13
|
If you're installing as a plugin with a recent version of Rails, it's totally
|
12
14
|
straightforward:
|
13
15
|
|
14
16
|
script/plugin install git://github.com/rubaidh/bamboo_rails.git
|
15
17
|
|
16
|
-
|
17
|
-
currently (as of Rails 2.3.2), it's not quite so straightforward. First of
|
18
|
-
all, install the gem on your development machine:
|
19
|
-
|
20
|
-
sudo gem install bamboo_rails
|
18
|
+
=== Gem installation
|
21
19
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
Now unpack the dependencies into your source tree (because you vendor
|
27
|
-
everything, right?):
|
20
|
+
If you want to install it as a gem, that should be straightforward, too, but
|
21
|
+
there's an extra couple of steps. First of all configure Rails to load it in
|
22
|
+
+config/environment.rb+:
|
28
23
|
|
29
|
-
|
24
|
+
config.gem "bamboo_rails", :lib => false
|
30
25
|
|
31
|
-
|
26
|
+
Then make sure the gem is installed:
|
32
27
|
|
33
|
-
|
34
|
-
You'll need to add the following to your top-level Rakefile:
|
28
|
+
sudo rake gems:install
|
35
29
|
|
36
|
-
|
30
|
+
(skipping `sudo` if that's not your thing). Finally, you'll have to create a
|
31
|
+
Rakefile which requires the bamboo task. Create the file
|
32
|
+
+lib/tasks/bamboo.rake+ in your project with the following content:
|
37
33
|
|
38
|
-
|
39
|
-
Bamboo one.
|
34
|
+
require 'bamboo_rails/rake/task'
|
40
35
|
|
41
36
|
== Example
|
42
37
|
|
data/bamboo_rails.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
spec = Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'bamboo_rails'
|
4
|
-
s.version = '1.0.
|
5
|
-
s.date = '2009-
|
4
|
+
s.version = '1.0.5'
|
5
|
+
s.date = '2009-09-16'
|
6
6
|
s.authors = ['Graeme Mathieson', 'Rubaidh Ltd']
|
7
7
|
s.email = 'support@rubaidh.com'
|
8
8
|
s.homepage = 'http://github.com/rubaidh/bamboo_rails'
|
@@ -1,43 +1 @@
|
|
1
|
-
|
2
|
-
task :bamboo do
|
3
|
-
# Force us to be using the test environment so that we can use regular rake
|
4
|
-
# tasks to manipulate the database.
|
5
|
-
RAILS_ENV = ENV['RAILS_ENV'] = "test"
|
6
|
-
Rake::Task["bamboo:all"].invoke
|
7
|
-
end
|
8
|
-
|
9
|
-
namespace :bamboo do
|
10
|
-
task :all => [ :preflight, :test, :spec, :features ]
|
11
|
-
|
12
|
-
task :preflight => [ :gems, "log:clear", :environment, :db ]
|
13
|
-
|
14
|
-
task :gems do
|
15
|
-
if Rake::Task.task_defined?("gems:build:force")
|
16
|
-
Rake::Task["gems:build:force"].invoke
|
17
|
-
else
|
18
|
-
Rake::Task["gems:build"].invoke
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
task :db do
|
23
|
-
if defined?(ActiveRecord) && File.exist?(File.join(RAILS_ROOT, "config", "database.yml"))
|
24
|
-
Rake::Task["db:migrate:reset"].invoke
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
task :test => [ "ci:setup:testunit", "rake:test" ]
|
29
|
-
|
30
|
-
task :spec do
|
31
|
-
if Rake::Task.task_defined?("spec:rcov")
|
32
|
-
Rake::Task["ci:setup:rspec"].invoke
|
33
|
-
Rake::Task["spec:rcov"].invoke
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
task :features do
|
38
|
-
if Rake::Task.task_defined?("rake:features")
|
39
|
-
Rake::Task["ci:setup:cucumber"].invoke
|
40
|
-
Rake::Task["rake:features"].invoke
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
1
|
+
load File.join(File.dirname(__FILE__), '..', 'lib', 'bamboo_rails', 'rake', 'task.rb')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubaidh-bamboo_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Graeme Mathieson
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-09-16 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- spec/tasks/tasks_spec.rb
|
46
46
|
has_rdoc: true
|
47
47
|
homepage: http://github.com/rubaidh/bamboo_rails
|
48
|
+
licenses:
|
48
49
|
post_install_message:
|
49
50
|
rdoc_options:
|
50
51
|
- --title
|
@@ -69,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
70
|
requirements: []
|
70
71
|
|
71
72
|
rubyforge_project: rubaidh
|
72
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.3.5
|
73
74
|
signing_key:
|
74
75
|
specification_version: 2
|
75
76
|
summary: "[Rails] A bit of assistance for using Bamboo in your Rails applications"
|