big_band 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/Rakefile +28 -35
- data/big_band.gemspec +1 -1
- data/dependencies.rb +11 -43
- data/depgen/README.rdoc +7 -0
- data/depgen/Rakefile +23 -0
- data/depgen/depgen.rb +123 -0
- data/depgen/depgen.task +42 -0
- data/depgen/depgen_spec.rb +127 -0
- data/deps.rip +3 -1
- data/lib/big_band/compass.rb +1 -1
- data/lib/big_band/integration/rake.rb +2 -0
- data/lib/big_band/more_server/unicorn.rb +0 -1
- data/lib/big_band/reloader.rb +1 -1
- data/lib/big_band/version.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- metadata +11 -6
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
$LOAD_PATH.unshift "lib"
|
2
|
+
load "depgen/depgen.task"
|
3
|
+
|
4
|
+
if ENV['RUN_CODE_RUN']
|
5
|
+
Rake::Task["dependencies:vendor:all"].invoke
|
6
|
+
task :default => :spec
|
7
|
+
else
|
8
|
+
task :default => [:dummy_files, "dependencies:generate:rip", :gems] # gems will trigger spec
|
9
|
+
end
|
10
|
+
|
1
11
|
$LOAD_PATH.unshift(*Dir.glob(File.expand_path(__FILE__ + "/../vendor/*/lib")))
|
2
12
|
require "erb"
|
3
13
|
require "spec/rake/spectask"
|
@@ -11,12 +21,9 @@ require "big_band/integration/yard"
|
|
11
21
|
require "big_band/integration/rake"
|
12
22
|
require "big_band/version"
|
13
23
|
|
14
|
-
load __FILE__.dirname.expand_path / "dependencies.rb"
|
15
|
-
|
16
24
|
include BigBand::Integration::Rake
|
17
25
|
RoutesTask.new { |t| t.source = "lib/**/*.rb" }
|
18
26
|
|
19
|
-
task :default => [:dummy_files, :rip, :gems] # gems will trigger spec
|
20
27
|
task :install => "gems:install"
|
21
28
|
task :test => :spec
|
22
29
|
task :clobber => "doc:clobber_rdoc"
|
@@ -114,33 +121,6 @@ namespace :gems do
|
|
114
121
|
|
115
122
|
end
|
116
123
|
|
117
|
-
task :rip => "rip:generate"
|
118
|
-
namespace :rip do
|
119
|
-
desc "generates deps.rip"
|
120
|
-
task :generate do
|
121
|
-
BigBand::Dependencies.for_rip "deps.rip"
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
desc "clone all dependencies to vendor"
|
126
|
-
task :vendor => "vendor:all"
|
127
|
-
namespace :vendor do
|
128
|
-
task :all
|
129
|
-
BigBand::Dependencies.each do |dep|
|
130
|
-
target = "vendor" / dep.name
|
131
|
-
task :all => dep.name
|
132
|
-
desc "clone #{dep.name} #{dep.version} to #{target}"
|
133
|
-
task dep.name do
|
134
|
-
mkdir_p "vendor"
|
135
|
-
sh "git clone #{dep.git} #{target}" unless target.file_exists?
|
136
|
-
chdir(target) do
|
137
|
-
sh "git pull"
|
138
|
-
sh "git checkout #{dep.git_ref}"
|
139
|
-
end
|
140
|
-
end
|
141
|
-
end
|
142
|
-
end
|
143
|
-
|
144
124
|
desc "generate dummy files"
|
145
125
|
task :dummy_files do |t|
|
146
126
|
chdir "lib" do
|
@@ -160,7 +140,13 @@ end
|
|
160
140
|
desc "make a release, will fail if there are uncommitted changes or the specs don't pass"
|
161
141
|
task :release => "release:gem"
|
162
142
|
namespace :release do
|
163
|
-
|
143
|
+
|
144
|
+
task(:committed) do
|
145
|
+
status = %x[git status]
|
146
|
+
raise "uncommitted changes" unless status =~ /nothing to commit/
|
147
|
+
raise "not on branch master" unless status =~ /On branch master\n/
|
148
|
+
end
|
149
|
+
|
164
150
|
task :version_bump => [:spec, :committed] do
|
165
151
|
new_version = ENV["VERSION"] || BigBand::VERSION.gsub(/\.(\d+)$/) { ".#{$1.to_i + 1}" }
|
166
152
|
old_source = File.read "lib/big_band/version.rb"
|
@@ -172,9 +158,18 @@ namespace :release do
|
|
172
158
|
puts "version bump: #{BigBand::VERSION} -> #{new_version}'"
|
173
159
|
BigBand::VERSION.replace new_version
|
174
160
|
end
|
175
|
-
|
176
|
-
task
|
161
|
+
|
162
|
+
task :prepare => [:version_bump, "dependencies:generate:rip", :clobber, "doc:readme", "gems:build"]
|
163
|
+
|
164
|
+
task :git => :prepare do
|
165
|
+
message = "-m 'release: #{BigBand::VERSION}'"
|
166
|
+
sh "git ci -a #{message}"
|
167
|
+
sh "git tag -a v#{BigBand::VERSION} #{message}"
|
168
|
+
sh "git push && git push --tags"
|
169
|
+
end
|
170
|
+
|
177
171
|
task :gem => [:git, "gems:push"]
|
172
|
+
|
178
173
|
end
|
179
174
|
|
180
175
|
############
|
@@ -193,5 +188,3 @@ namespace :g do
|
|
193
188
|
task :i => "gems:install"
|
194
189
|
task :p => "gems:push"
|
195
190
|
end
|
196
|
-
task :r => :rip
|
197
|
-
namespace(:r) { task :g => "rip:generate" }
|
data/big_band.gemspec
CHANGED
@@ -18,7 +18,7 @@ SPEC = Gem::Specification.new do |s|
|
|
18
18
|
s.description = s.summary + " See README.rdoc for more infos."
|
19
19
|
s.rdoc_options = %w[-a -S -N -m README.rdoc -q -w 2 -t BigBand -c UTF-8]
|
20
20
|
|
21
|
-
|
21
|
+
Dependencies.setup_gem(s)
|
22
22
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
23
23
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
24
24
|
|
data/dependencies.rb
CHANGED
@@ -1,44 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
require "depgen/depgen"
|
2
|
+
|
3
|
+
class Dependencies < Depgen
|
4
|
+
add "compass", :git => "git://github.com/chriseppstein/compass.git", :version => "0.8.17", :git_ref => "v%s"
|
5
|
+
add "haml", :git => "git://github.com/nex3/haml.git", :version => "2.2.17", :only => :rip
|
6
|
+
add "monkey-lib", :git => "git://github.com/rkh/monkey-lib.git", :version => "0.3.5", :git_ref => "v%s"
|
7
|
+
add "rack", :git => "git://github.com/rack/rack.git", :version => "1.0.1", :only => :rip
|
8
|
+
add "rack-test", :git => "git://github.com/brynary/rack-test.git", :version => "0.5.3", :git_ref => "v%s"
|
9
|
+
add "rspec", :git => "git://github.com/dchelimsky/rspec.git", :version => "1.3.0"
|
10
|
+
add "sinatra", :git => "git://github.com/sinatra/sinatra.git", :version => "0.9.4"
|
11
|
+
add "yard", :git => "git://github.com/lsegal/yard.git", :version => "0.5.2"
|
9
12
|
end
|
10
|
-
|
11
|
-
require "ostruct"
|
12
|
-
require "big_band/integration" unless defined? BigBand
|
13
|
-
|
14
|
-
module BigBand::Dependencies
|
15
|
-
@deps = {}
|
16
|
-
extend Enumerable
|
17
|
-
|
18
|
-
def self.dep(name = nil, data = {})
|
19
|
-
return(@deps[name] ||= OpenStruct.new) if data.empty?
|
20
|
-
data[:git_ref] ||= data[:version]
|
21
|
-
data[:only] ||= [:rip, :gem]
|
22
|
-
data[:name] ||= name
|
23
|
-
data[:only] = [data[:only]] unless data[:only].is_a? Array
|
24
|
-
data[:git_ref] = data[:git_ref] % data[:version]
|
25
|
-
@deps[name] = OpenStruct.new data
|
26
|
-
end
|
27
|
-
|
28
|
-
def self.for_gemspec(s)
|
29
|
-
each { |d| s.add_dependency d.name, ">= #{d.version}" }
|
30
|
-
end
|
31
|
-
|
32
|
-
def self.for_rip(file = nil)
|
33
|
-
if file then File.open(file, "w") { |f| f << for_rip }
|
34
|
-
else select { |d| d.only.include? :rip }.map { |d| "#{d.git} #{d.git_ref}\n"}.join
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
def self.each(&block)
|
39
|
-
@deps.each_value(&block)
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|
43
|
-
|
44
|
-
BigBand::Dependencies.class_eval(&dependencies)
|
data/depgen/README.rdoc
ADDED
data/depgen/Rakefile
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'spec/rake/spectask'
|
3
|
+
|
4
|
+
task :default => :rspec
|
5
|
+
|
6
|
+
spec_def = lambda do |t|
|
7
|
+
t.spec_files = ["depgen_spec.rb"]
|
8
|
+
t.rcov_opts = %w[--exclude spec,rcov]
|
9
|
+
t.spec_opts = %w[-c --format progress --loadby mtime --reverse]
|
10
|
+
t.libs = [File.expand_path(File.dirname(__FILE__))]
|
11
|
+
end
|
12
|
+
|
13
|
+
desc "Run all examples with RSpec"
|
14
|
+
Spec::Rake::SpecTask.new('rspec', &spec_def)
|
15
|
+
|
16
|
+
desc "Run all examples with RCov"
|
17
|
+
Spec::Rake::SpecTask.new('rcov') do |t|
|
18
|
+
spec_def[t]
|
19
|
+
t.rcov = true
|
20
|
+
end
|
21
|
+
|
22
|
+
desc "Run all examples with MSpec"
|
23
|
+
task(:mspec) { sh "mspec-run depgen_spec.rb" }
|
data/depgen/depgen.rb
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
require "fileutils"
|
2
|
+
|
3
|
+
class Depgen
|
4
|
+
|
5
|
+
SETUP_TOOLS = [:bundler, :gem, :monk, :rip, :vendor]
|
6
|
+
|
7
|
+
class << self
|
8
|
+
include Enumerable
|
9
|
+
attr_reader :all, :option_stack
|
10
|
+
|
11
|
+
def default_options
|
12
|
+
@option_stack.inject({}) { |a, b| a.merge b }
|
13
|
+
end
|
14
|
+
|
15
|
+
def each(&block)
|
16
|
+
all.values.each(&block)
|
17
|
+
end
|
18
|
+
|
19
|
+
def github(user, project = nil, options = {}, &block)
|
20
|
+
raise "cannot call github within #{@wrapper}" if @wrapper and @wrapper != :github
|
21
|
+
project ||= {}
|
22
|
+
if block
|
23
|
+
@user, @wrapper, wrapper_was, user_was = user, :github, @wrapper, @user
|
24
|
+
result = with_options(options.merge(project), &block)
|
25
|
+
@user, @wrapper = user_was, wrapper_was
|
26
|
+
elsif @wrapper
|
27
|
+
wrapper_was, @wrapper = @wrapper, nil
|
28
|
+
result = send :github, @user, user, options.merge(project)
|
29
|
+
@wrapper = wrapper_was
|
30
|
+
else
|
31
|
+
raise ArgumentError, "no project given" if project.nil? or project.is_a? Hash
|
32
|
+
result = new project, options.merge(:git => "git://github.com/#{user}/#{project}.git")
|
33
|
+
end
|
34
|
+
result
|
35
|
+
end
|
36
|
+
|
37
|
+
def inherited(klass)
|
38
|
+
super
|
39
|
+
klass.set_defaults
|
40
|
+
end
|
41
|
+
|
42
|
+
def new(name, options = {})
|
43
|
+
return send(@wrapper, name, options) if @wrapper
|
44
|
+
result = (all[name] ||= super()).apply default_options.merge(options).merge(:name => name)
|
45
|
+
yield result if block_given?
|
46
|
+
@stack << result if @stack
|
47
|
+
result
|
48
|
+
end
|
49
|
+
|
50
|
+
alias add new
|
51
|
+
alias [] new
|
52
|
+
|
53
|
+
def set_defaults
|
54
|
+
@all ||= {}
|
55
|
+
@option_stack ||= []
|
56
|
+
end
|
57
|
+
|
58
|
+
def with_options(options = {})
|
59
|
+
@stack, stack_was = [], @stack
|
60
|
+
@option_stack.push options
|
61
|
+
yield(self)
|
62
|
+
@stack, result = stack_was, @stack
|
63
|
+
@stack.push(*result) if @stack
|
64
|
+
@option_stack.pop
|
65
|
+
result
|
66
|
+
end
|
67
|
+
|
68
|
+
SETUP_TOOLS.each do |tool|
|
69
|
+
eval "def setup_#{tool}(*args); each { |e| e.setup_#{tool}(*args) if e.only.include? #{tool.inspect} }; end"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
set_defaults
|
74
|
+
attr_accessor :name, :git, :version, :git_ref, :gem_comp, :only
|
75
|
+
|
76
|
+
def apply(options = {})
|
77
|
+
options.each { |k,v| send "#{k}=", v }
|
78
|
+
self
|
79
|
+
end
|
80
|
+
|
81
|
+
def git_ref
|
82
|
+
version ? @git_ref % version : "HEAD"
|
83
|
+
end
|
84
|
+
|
85
|
+
def initialize
|
86
|
+
super
|
87
|
+
apply :git_ref => "%s", :only => SETUP_TOOLS, :gem_comp => ">="
|
88
|
+
end
|
89
|
+
|
90
|
+
def only
|
91
|
+
[@only].flatten
|
92
|
+
end
|
93
|
+
|
94
|
+
def setup_bundler(bundler, options = {})
|
95
|
+
bundler.gem(name, version, {:git => git, :ref => git_ref, :require_as => nil}.merge(options))
|
96
|
+
end
|
97
|
+
|
98
|
+
def setup_gem(spec)
|
99
|
+
spec.add_dependency name, "#{gem_comp} #{version}"
|
100
|
+
end
|
101
|
+
|
102
|
+
def setup_monk(output)
|
103
|
+
output.puts [name, gem_comp, version, git].compact.join(" ")
|
104
|
+
end
|
105
|
+
|
106
|
+
def setup_rip(output)
|
107
|
+
output.puts "#{git} #{git_ref}"
|
108
|
+
end
|
109
|
+
|
110
|
+
def setup_vendor(dir = "vendor", verbose = true, &run_cmd)
|
111
|
+
util = verbose ? FileUtils::Verbose : FileUtils
|
112
|
+
run_cmd ||= proc { |cmd| exit 1 unless system cmd }
|
113
|
+
util.mkdir_p dir
|
114
|
+
util.chdir(dir) do
|
115
|
+
run_cmd["git clone #{git} #{name}"] unless File.exist? name
|
116
|
+
util.chdir(name) do
|
117
|
+
run_cmd["git checkout master && git pull"]
|
118
|
+
run_cmd["git checkout #{git_ref}"]
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
end
|
data/depgen/depgen.task
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
DEP_FILE = ENV["DEP_FILE"] || "dependencies.rb" unless defined? DEP_FILE
|
2
|
+
DEP_CLASS = ENV["DEP_CLASS"] || "Dependencies" unless defined? DEP_CLASS
|
3
|
+
|
4
|
+
unless File.exist? DEP_FILE
|
5
|
+
File.open(DEP_FILE, "w") do |f|
|
6
|
+
f.puts 'require "depgen/depgen"', "class #{DEP_CLASS} < Depgen", "end"
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
def dep_generate(name, file, &block)
|
11
|
+
desc "generate #{name} configuration"
|
12
|
+
task(name) { File.open(file, "w", &block)}
|
13
|
+
end
|
14
|
+
|
15
|
+
load DEP_FILE
|
16
|
+
DEPENDENCIES = Object.const_get DEP_CLASS
|
17
|
+
|
18
|
+
namespace :dependencies do
|
19
|
+
|
20
|
+
namespace :vendor do
|
21
|
+
desc "unpack all dependencies in vendor/"
|
22
|
+
task(:all) { DEPENDENCIES.setup_vendor { |cmd| sh cmd } }
|
23
|
+
DEPENDENCIES.each do |dep|
|
24
|
+
desc "unpack #{dep.name} #{dep.version} in vendor/#{dep.name}/"
|
25
|
+
task(dep.name) { dep.setup_vendor { |cmd| sh cmd } }
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
namespace :generate do
|
30
|
+
dep_generate(:rip, "deps.rip") { |f| DEPENDENCIES.setup_rip(f) }
|
31
|
+
dep_generate(:bundler, "Gemfile") { |f| f.puts "load #{DEP_FILE.inspect}", "#{DEP_CLASS}.setup_bunlder(self)" }
|
32
|
+
dep_generate(:monk, "dependencies") {|f| DEPENDENCIES.setup_rip(f) }
|
33
|
+
end
|
34
|
+
|
35
|
+
desc "list all dependencies"
|
36
|
+
task :list do
|
37
|
+
DEPENDENCIES.each do |dep|
|
38
|
+
puts "#{dep.name} #{dep.version}"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
@@ -0,0 +1,127 @@
|
|
1
|
+
require "depgen"
|
2
|
+
require "fileutils"
|
3
|
+
include FileUtils
|
4
|
+
|
5
|
+
|
6
|
+
TEMP_DIR = File.join File.dirname(__FILE__), "tmp"
|
7
|
+
TEMP_DIR.replace SPEC_TEMP_DIR if defined? SPEC_TEMP_DIR and SPEC_TEMP_DIR
|
8
|
+
mkdir_p TEMP_DIR
|
9
|
+
|
10
|
+
describe Depgen do
|
11
|
+
|
12
|
+
def depgen(&block)
|
13
|
+
Class.new(Depgen, &block)
|
14
|
+
end
|
15
|
+
|
16
|
+
before { @dep = depgen }
|
17
|
+
|
18
|
+
describe :default_options do
|
19
|
+
|
20
|
+
it "is empty per default" do
|
21
|
+
@dep.default_options.should be_empty
|
22
|
+
end
|
23
|
+
|
24
|
+
it "contains elements from the option stack" do
|
25
|
+
@dep.option_stack.push :foo => 10, :bar => 23
|
26
|
+
@dep.default_options[:foo].should == 10
|
27
|
+
@dep.option_stack.push :foo => 42
|
28
|
+
@dep.default_options[:foo].should == 42
|
29
|
+
@dep.default_options[:bar].should == 23
|
30
|
+
@dep.option_stack.pop
|
31
|
+
@dep.default_options[:foo].should == 10
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
describe :each do
|
37
|
+
|
38
|
+
before do
|
39
|
+
@foo = @dep.add "foo"
|
40
|
+
@bar = depgen.add "bar"
|
41
|
+
end
|
42
|
+
|
43
|
+
it "yields through directly created dependencies" do
|
44
|
+
@dep.each { |d| d.should == @foo }
|
45
|
+
end
|
46
|
+
|
47
|
+
it "yields not through dependencies from other subclasses" do
|
48
|
+
@dep.each { |d| d.should != @foo }
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
52
|
+
|
53
|
+
describe :github do
|
54
|
+
|
55
|
+
it "sets up git url correctly" do
|
56
|
+
@dep.github("rkh", "depgen").git.should == "git://github.com/rkh/depgen.git"
|
57
|
+
end
|
58
|
+
|
59
|
+
it "takes a block so you don't have to repeat yourself" do
|
60
|
+
@dep.github("rkh") do |d|
|
61
|
+
d.add("depgen").git.should == "git://github.com/rkh/depgen.git"
|
62
|
+
d.add("big_band").git.should == "git://github.com/rkh/big_band.git"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
|
68
|
+
describe "#git_ref" do
|
69
|
+
|
70
|
+
it "equals version per default" do
|
71
|
+
@dep.add("foo", :version => "bar").git_ref == "bar"
|
72
|
+
end
|
73
|
+
|
74
|
+
it "subistutes %s with version" do
|
75
|
+
@dep.add("foo", :version => "bar", :git_ref => "foo%sbaz").git_ref == "foobarbaz"
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
79
|
+
|
80
|
+
describe "#setup_bundler" do
|
81
|
+
it "uses Bundler's gem to set up dependencies" do
|
82
|
+
@dep.add "foo", :version => "1.0", :git => "bar"
|
83
|
+
bundler = mock("bundler")
|
84
|
+
bundler.should_receive(:gem).once.with "foo", "1.0", hash_including(:git => "bar", :require_as => nil, :foo => :bar)
|
85
|
+
@dep.setup_bundler bundler, :foo => :bar
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe "#setup_gem" do
|
90
|
+
it "uses gemspec method add_dependency" do
|
91
|
+
@dep.add "foo", :version => "1.0", :gem_comp => ">="
|
92
|
+
gemspec = mock("gemspec")
|
93
|
+
gemspec.should_receive(:add_dependency).once.with "foo", ">= 1.0"
|
94
|
+
@dep.setup_gem gemspec
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
describe "#setup_monk" do
|
99
|
+
it "produces valid lines" do
|
100
|
+
@dep.add "foo", :version => "1.0", :git => "bar", :gem_comp => ">="
|
101
|
+
out = StringIO.new
|
102
|
+
@dep.setup_monk out
|
103
|
+
out.rewind
|
104
|
+
out.read.should == "foo >= 1.0 bar\n"
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
describe "#setup_rip" do
|
109
|
+
it "produces valid lines" do
|
110
|
+
@dep.add "foo", :version => "1.0", :git => "bar", :gem_comp => ">="
|
111
|
+
out = StringIO.new
|
112
|
+
@dep.setup_rip out
|
113
|
+
out.rewind
|
114
|
+
out.read.should == "bar 1.0\n"
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
describe "#setup_vendor" do
|
119
|
+
it "populates the given vendor directory" do
|
120
|
+
@dep.github "rkh", "big_band", :git_ref => "HEAD"
|
121
|
+
@dep.setup_vendor "#{TEMP_DIR}/vendor"
|
122
|
+
File.directory?("#{TEMP_DIR}/vendor/big_band").should be_true
|
123
|
+
rm_rf "#{TEMP_DIR}/vendor"
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
end
|
data/deps.rip
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
git://github.com/chriseppstein/compass.git v0.8.17
|
2
|
+
git://github.com/nex3/haml.git 2.2.17
|
2
3
|
git://github.com/lsegal/yard.git 0.5.2
|
3
|
-
git://github.com/
|
4
|
+
git://github.com/dchelimsky/rspec.git 1.3.0
|
5
|
+
git://github.com/rkh/monkey-lib.git v0.3.5
|
4
6
|
git://github.com/rack/rack.git 1.0.1
|
5
7
|
git://github.com/sinatra/sinatra.git 0.9.4
|
6
8
|
git://github.com/brynary/rack-test.git v0.5.3
|
data/lib/big_band/compass.rb
CHANGED
@@ -45,7 +45,7 @@ class BigBand < Sinatra::Base
|
|
45
45
|
content_type 'text/css', :charset => 'utf-8'
|
46
46
|
compass :"#{path}/#{params[:name]}"
|
47
47
|
end
|
48
|
-
set :compass, :sass_dir =>
|
48
|
+
set :compass, :sass_dir => views / path unless compass[:sass_dir] && compass[:sass_dir].directory?
|
49
49
|
@compass_route.deactivate if @compass_route
|
50
50
|
@compass_route = get("/#{path}" / ":name.css", &block)
|
51
51
|
end
|
data/lib/big_band/reloader.rb
CHANGED
data/lib/big_band/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
require "big_band/integration" unless defined? BigBand
|
2
|
-
BigBand::VERSION = "0.2.
|
3
|
-
BigBand::DATE = "2010-01-
|
2
|
+
BigBand::VERSION = "0.2.4"
|
3
|
+
BigBand::DATE = "2010-01-24"
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
ENV['RACK_ENV'] = 'test'
|
2
2
|
|
3
|
-
$LOAD_PATH.unshift(File.expand_path(__FILE__ + "
|
3
|
+
$LOAD_PATH.unshift(File.expand_path(__FILE__ + "/../../lib"), *Dir.glob(File.expand_path(__FILE__ + "/../../vendor/*/lib")))
|
4
4
|
require "big_band/integration/rspec"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: big_band
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-24 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -33,24 +33,24 @@ dependencies:
|
|
33
33
|
version: 0.5.2
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: rspec
|
37
37
|
type: :runtime
|
38
38
|
version_requirement:
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: 1.3.0
|
44
44
|
version:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
|
-
name:
|
46
|
+
name: monkey-lib
|
47
47
|
type: :runtime
|
48
48
|
version_requirement:
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 0.3.5
|
54
54
|
version:
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sinatra
|
@@ -83,6 +83,11 @@ extra_rdoc_files: []
|
|
83
83
|
files:
|
84
84
|
- big_band.gemspec
|
85
85
|
- dependencies.rb
|
86
|
+
- depgen/depgen.rb
|
87
|
+
- depgen/depgen.task
|
88
|
+
- depgen/depgen_spec.rb
|
89
|
+
- depgen/Rakefile
|
90
|
+
- depgen/README.rdoc
|
86
91
|
- deps.rip
|
87
92
|
- example/example.rb
|
88
93
|
- example/views/index.haml
|