blueprints 0.7.3 → 0.8.0
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/README.rdoc +6 -11
- data/Rakefile +2 -0
- data/VERSION +1 -1
- data/blueprints.gemspec +14 -4
- data/lib/blueprints/blueprint.rb +31 -2
- data/lib/blueprints/buildable.rb +18 -20
- data/lib/blueprints/configuration.rb +0 -11
- data/lib/blueprints/core_ext.rb +69 -0
- data/lib/blueprints/dependency.rb +35 -0
- data/lib/blueprints/errors.rb +17 -5
- data/lib/blueprints/extensions/rspec.rb +16 -0
- data/lib/blueprints/file_context.rb +3 -4
- data/lib/blueprints/helper.rb +4 -18
- data/lib/blueprints/namespace.rb +5 -0
- data/lib/blueprints/root_namespace.rb +9 -9
- data/lib/blueprints.rb +22 -14
- data/spec/active_record/blueprint.rb +2 -1
- data/spec/active_record/blueprints_spec.rb +15 -48
- data/spec/active_record/spec_helper.rb +0 -1
- data/spec/no_db/blueprint.rb +3 -1
- data/spec/no_db/blueprints_spec.rb +20 -1
- data/spec/no_db/fixtures/fruit.rb +7 -0
- data/spec/no_db/spec_helper.rb +0 -1
- data/spec/test_all.sh +6 -3
- data/spec/unit/active_record_spec.rb +17 -0
- data/spec/unit/blueprint_spec.rb +58 -0
- data/spec/unit/buildable_spec.rb +14 -0
- data/spec/unit/configuration_spec.rb +1 -12
- data/spec/unit/dependency_spec.rb +39 -0
- data/spec/unit/namespace_spec.rb +23 -0
- data/spec/unit/spec_helper.rb +9 -0
- data/test/blueprints_test.rb +46 -49
- metadata +17 -7
- data/lib/blueprints/database_backends/active_record.rb +0 -48
- data/lib/blueprints/extensions/deprecated.rb +0 -22
@@ -1,22 +0,0 @@
|
|
1
|
-
module EnableBlueprints #:nodoc:
|
2
|
-
def enable_blueprints(options = {})
|
3
|
-
STDERR.puts "DEPRECATION WARNING: enable_blueprints is deprecated. Use Blueprints.enable"
|
4
|
-
Blueprints.enable do |config|
|
5
|
-
options.each {|option, value| config.send("#{option}=", value) }
|
6
|
-
end
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
module ActiveSupport #:nodoc:all
|
11
|
-
class TestCase
|
12
|
-
include EnableBlueprints
|
13
|
-
end
|
14
|
-
end if defined? ActiveSupport::TestCase
|
15
|
-
|
16
|
-
module Spec #:nodoc:all
|
17
|
-
module Runner
|
18
|
-
class Configuration
|
19
|
-
include EnableBlueprints
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end if defined? Spec or $0 =~ /script.spec$/
|