blue_print 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.travis.yml +19 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +28 -0
- data/Rakefile +1 -0
- data/blue_print.gemspec +35 -0
- data/gemfiles/rails-3.x.gemfile +5 -0
- data/gemfiles/rails-4.x.gemfile +5 -0
- data/gemfiles/rails-head.gemfile +5 -0
- data/lib/blue_print.rb +21 -0
- data/lib/blue_print/active_if.rb +42 -0
- data/lib/blue_print/behavior.rb +72 -0
- data/lib/blue_print/context.rb +70 -0
- data/lib/blue_print/environment.rb +12 -0
- data/lib/blue_print/helper.rb +13 -0
- data/lib/blue_print/integration.rb +4 -0
- data/lib/blue_print/integration/action_controller.rb +38 -0
- data/lib/blue_print/railtie.rb +28 -0
- data/lib/blue_print/railtie/action_controller.rb +1 -0
- data/lib/blue_print/railtie/action_view.rb +1 -0
- data/lib/blue_print/railtie/active_record.rb +5 -0
- data/lib/blue_print/version.rb +3 -0
- data/lib/generators/blue_print/base.rb +34 -0
- data/lib/generators/rails/blue_print_generator.rb +43 -0
- data/lib/generators/rails/templates/context.rb +15 -0
- data/lib/generators/rails/templates/role.rb +8 -0
- data/lib/generators/rspec/blue_print_generator.rb +21 -0
- data/lib/generators/rspec/templates/context_spec.rb +11 -0
- data/lib/generators/rspec/templates/role_spec.rb +5 -0
- data/spec/dummy/.gitignore +15 -0
- data/spec/dummy/Gemfile +3 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/images/rails.png +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +6 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +34 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/db/seeds.rb +7 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/lib/tasks/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/index.html +241 -0
- data/spec/dummy/public/robots.txt +5 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/vendor/assets/javascripts/.gitkeep +0 -0
- data/spec/dummy/vendor/assets/stylesheets/.gitkeep +0 -0
- data/spec/dummy/vendor/plugins/.gitkeep +0 -0
- data/spec/lib/blue_print/active_if_spec.rb +54 -0
- data/spec/lib/blue_print/behavior_spec.rb +113 -0
- data/spec/lib/blue_print/context_spec.rb +119 -0
- data/spec/lib/blue_print/environment_spec.rb +17 -0
- data/spec/lib/blue_print/helper_spec.rb +38 -0
- data/spec/lib/blue_print_spec.rb +32 -0
- data/spec/lib/generators/rails/blue_print_generator_spec.rb +81 -0
- data/spec/lib/generators/rspec/blue_print_generator_spec.rb +47 -0
- data/spec/spec_helper.rb +40 -0
- data/spec/support/database_cleaner.rb +16 -0
- data/spec/support/generator_spec.rb +1 -0
- metadata +377 -0
@@ -0,0 +1,119 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe BluePrint::Context do
|
4
|
+
subject(:context) { Class.new(BluePrint::Context) }
|
5
|
+
|
6
|
+
describe '#resolve' do
|
7
|
+
subject { BluePrint::Context.resolve(name) }
|
8
|
+
|
9
|
+
context 'with empty name' do
|
10
|
+
let(:name) { '' }
|
11
|
+
|
12
|
+
it { should eq(context) }
|
13
|
+
end
|
14
|
+
|
15
|
+
context 'with context' do
|
16
|
+
let(:name) { context }
|
17
|
+
|
18
|
+
it { should eq(context) }
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe '#active_if' do
|
23
|
+
let(:named_active_if) { BluePrint::ActiveIf.new(:named) }
|
24
|
+
|
25
|
+
before do
|
26
|
+
context.active_if named_active_if.name, :null_active_if do
|
27
|
+
true
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
subject(:active_ifs) { context.active_ifs }
|
32
|
+
|
33
|
+
it { should have(2).active_ifs }
|
34
|
+
end
|
35
|
+
|
36
|
+
describe '#context_name' do
|
37
|
+
subject(:context_name) { context.context_name }
|
38
|
+
|
39
|
+
it { should eq(:'') }
|
40
|
+
end
|
41
|
+
|
42
|
+
describe '#active?' do
|
43
|
+
let(:always_active) { double(active?: true) }
|
44
|
+
let(:always_deactive) { double(active?: false) }
|
45
|
+
|
46
|
+
subject { context.active? }
|
47
|
+
|
48
|
+
before do
|
49
|
+
BluePrint.env = BluePrint::Environment.new(self)
|
50
|
+
end
|
51
|
+
|
52
|
+
context 'with always actives' do
|
53
|
+
before do
|
54
|
+
context.active_if(always_active, always_active)
|
55
|
+
end
|
56
|
+
|
57
|
+
it { should be_true }
|
58
|
+
end
|
59
|
+
|
60
|
+
context 'with always deactives' do
|
61
|
+
before do
|
62
|
+
context.active_if(always_deactive, always_deactive)
|
63
|
+
end
|
64
|
+
|
65
|
+
it { should be_false }
|
66
|
+
end
|
67
|
+
|
68
|
+
context 'with both' do
|
69
|
+
before do
|
70
|
+
context.active_if(always_active, always_deactive)
|
71
|
+
end
|
72
|
+
|
73
|
+
it { should be_false }
|
74
|
+
end
|
75
|
+
|
76
|
+
context 'with empty' do
|
77
|
+
it { should be_false }
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
describe '#deactive?' do
|
82
|
+
subject(:deactive) { context.deactive? }
|
83
|
+
|
84
|
+
it 'be negative active' do
|
85
|
+
context.stub(active?: false)
|
86
|
+
|
87
|
+
expect(deactive).to be_true
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
describe '#cast' do
|
92
|
+
let(:klass) { Class.new }
|
93
|
+
let(:role) { Module.new }
|
94
|
+
|
95
|
+
before do
|
96
|
+
context.cast(klass, as: role)
|
97
|
+
context.cast(klass, as: role)
|
98
|
+
end
|
99
|
+
|
100
|
+
it 'be set casting' do
|
101
|
+
expect(context.casting[klass]).to have(1).role
|
102
|
+
expect(context.casting[klass]).to include(role)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
describe '#action!' do
|
107
|
+
let(:klass) { Class.new }
|
108
|
+
let(:role) { Module.new }
|
109
|
+
|
110
|
+
before do
|
111
|
+
context.cast(klass, as: role)
|
112
|
+
context.action!
|
113
|
+
end
|
114
|
+
|
115
|
+
it 'be act role' do
|
116
|
+
expect(klass.ancestors.first).to eq(role)
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe BluePrint::Environment do
|
4
|
+
let(:context) { double(a: 1) }
|
5
|
+
subject(:env) { described_class.new(context) }
|
6
|
+
|
7
|
+
describe '#with' do
|
8
|
+
it 'keeps scope' do
|
9
|
+
b = 2
|
10
|
+
env.rspec = self
|
11
|
+
env.with do |env|
|
12
|
+
env.rspec.expect(a).to env.rspec.eq(1)
|
13
|
+
env.rspec.expect(b).to env.rspec.eq(2)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe BluePrint::Helper do
|
4
|
+
subject(:helper) { Class.new { include BluePrint::Helper }.new }
|
5
|
+
|
6
|
+
describe '#within_cotext_of' do
|
7
|
+
context 'with active context' do
|
8
|
+
let(:context) { double(active?: true) }
|
9
|
+
|
10
|
+
it 'runs block' do
|
11
|
+
helper.should_receive(:message).once
|
12
|
+
helper.within_cotext_of(context) do |env|
|
13
|
+
expect(env).to eq(BluePrint.env)
|
14
|
+
helper.message
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'with deactive context' do
|
20
|
+
let(:context) { double(active?: false) }
|
21
|
+
|
22
|
+
it 'not runs block' do
|
23
|
+
helper.should_not_receive(:message)
|
24
|
+
helper.within_cotext_of(context) do
|
25
|
+
helper.message
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'runs fallback' do
|
30
|
+
helper.should_receive(:fallback)
|
31
|
+
helper.should_not_receive(:message)
|
32
|
+
helper.within_cotext_of(context, proc { helper.fallback }) do
|
33
|
+
helper.message
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe BluePrint do
|
4
|
+
let(:env) { double }
|
5
|
+
|
6
|
+
describe '#env' do
|
7
|
+
it 'be inherited by parent thread' do
|
8
|
+
BluePrint.env = env
|
9
|
+
|
10
|
+
env.should_receive(:message).twice
|
11
|
+
|
12
|
+
BluePrint.env.message
|
13
|
+
Thread.new { BluePrint.env.message }.join
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe '#clear!' do
|
18
|
+
it 'be clear only current thread' do
|
19
|
+
BluePrint.env = env
|
20
|
+
|
21
|
+
Thread.new do
|
22
|
+
BluePrint.clear!
|
23
|
+
end.join
|
24
|
+
|
25
|
+
expect(BluePrint.env).to eq(env)
|
26
|
+
|
27
|
+
BluePrint.clear!
|
28
|
+
|
29
|
+
expect(BluePrint.env).to be_nil
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'generators/rails/blue_print_generator'
|
3
|
+
|
4
|
+
describe Rails::Generators::BluePrintGenerator do
|
5
|
+
destination File.expand_path('spec/tmp')
|
6
|
+
|
7
|
+
before do
|
8
|
+
prepare_destination
|
9
|
+
run_generator arguments
|
10
|
+
end
|
11
|
+
|
12
|
+
after do
|
13
|
+
FileUtils.rm_rf destination_root
|
14
|
+
end
|
15
|
+
|
16
|
+
context 'with Staff' do
|
17
|
+
let(:arguments) { %w(Staff) }
|
18
|
+
|
19
|
+
specify 'be generated' do
|
20
|
+
expect(destination_root).to(have_structure do
|
21
|
+
directory 'app/blue_prints' do
|
22
|
+
file 'staff_context.rb' do
|
23
|
+
contains 'StaffContext'
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
context 'with Staff --parent=SpecContext' do
|
31
|
+
let(:arguments) { %w(Staff --parent=SpecContext) }
|
32
|
+
|
33
|
+
specify 'be generated' do
|
34
|
+
expect(destination_root).to(have_structure do
|
35
|
+
directory 'app/blue_prints' do
|
36
|
+
file 'staff_context.rb' do
|
37
|
+
contains 'StaffContext < SpecContext'
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
context 'with Staff --active-if=staff,spec' do
|
45
|
+
let(:arguments) { %w(Staff --active_if=staff spec) }
|
46
|
+
|
47
|
+
specify 'be generated' do
|
48
|
+
expect(destination_root).to(have_structure do
|
49
|
+
directory 'app/blue_prints' do
|
50
|
+
file 'staff_context.rb' do
|
51
|
+
contains 'active_if :staff, :spec'
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
context 'with Staff user:staff:customer' do
|
59
|
+
let(:arguments) { %w(Staff user:staff:customer) }
|
60
|
+
|
61
|
+
specify 'be generated' do
|
62
|
+
expect(destination_root).to(have_structure do
|
63
|
+
directory 'app/blue_prints' do
|
64
|
+
file 'staff_context.rb' do
|
65
|
+
contains 'act ::User, as: [Staff, Customer]'
|
66
|
+
end
|
67
|
+
|
68
|
+
directory 'staff_context' do
|
69
|
+
file 'staff.rb' do
|
70
|
+
contains 'StaffContext::Staff'
|
71
|
+
end
|
72
|
+
|
73
|
+
file 'customer.rb' do
|
74
|
+
contains 'StaffContext::Customer'
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'generators/rspec/blue_print_generator'
|
3
|
+
|
4
|
+
describe Rspec::BluePrintGenerator do
|
5
|
+
destination File.expand_path('spec/tmp')
|
6
|
+
|
7
|
+
before do
|
8
|
+
prepare_destination
|
9
|
+
run_generator arguments
|
10
|
+
end
|
11
|
+
|
12
|
+
after do
|
13
|
+
FileUtils.rm_rf destination_root
|
14
|
+
end
|
15
|
+
|
16
|
+
context 'with Staff' do
|
17
|
+
let(:arguments) { %w(Staff) }
|
18
|
+
|
19
|
+
specify 'be generated' do
|
20
|
+
expect(destination_root).to(have_structure do
|
21
|
+
directory 'spec/blue_prints' do
|
22
|
+
file 'staff_context_spec.rb' do
|
23
|
+
contains 'StaffContext'
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
context 'with Staff user:staff:customer' do
|
31
|
+
let(:arguments) { %w(Staff user:staff:customer) }
|
32
|
+
|
33
|
+
specify 'be generated' do
|
34
|
+
expect(destination_root).to(have_structure do
|
35
|
+
directory 'spec/blue_prints/staff_context' do
|
36
|
+
file 'staff_spec.rb' do
|
37
|
+
contains 'StaffContext::Staff'
|
38
|
+
end
|
39
|
+
|
40
|
+
file 'customer_spec.rb' do
|
41
|
+
contains 'StaffContext::Customer'
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# Require this file using `require "spec_helper"` to ensure that it is only
|
4
|
+
# loaded once.
|
5
|
+
#
|
6
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
7
|
+
coverage = ENV['COV'].to_s
|
8
|
+
unless coverage == 'no'
|
9
|
+
require 'simplecov'
|
10
|
+
SimpleCov.start do
|
11
|
+
require 'simplecov-console'
|
12
|
+
require 'coveralls'
|
13
|
+
|
14
|
+
add_filter '/spec'
|
15
|
+
|
16
|
+
formatters = []
|
17
|
+
formatters.push(SimpleCov::Formatter::Console)
|
18
|
+
if coverage.include?('html')
|
19
|
+
formatters.push(SimpleCov::Formatter::HTMLFormatter)
|
20
|
+
end
|
21
|
+
formatters.push(Coveralls::SimpleCov::Formatter)
|
22
|
+
|
23
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[*formatters]
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
ENV['RAILS_ENV'] ||= 'test'
|
28
|
+
|
29
|
+
require 'bundler/setup'
|
30
|
+
require File.expand_path('../dummy/config/environment', __FILE__)
|
31
|
+
require 'rspec/rails'
|
32
|
+
require 'rspec/autorun'
|
33
|
+
|
34
|
+
Dir[File.expand_path('spec/support/**/*.rb')].each { |f| require f }
|
35
|
+
|
36
|
+
RSpec.configure do |config|
|
37
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
38
|
+
config.run_all_when_everything_filtered = true
|
39
|
+
config.filter_run :focus
|
40
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'database_cleaner'
|
2
|
+
|
3
|
+
RSpec.configure do |config|
|
4
|
+
config.before(:suite) do
|
5
|
+
DatabaseCleaner.strategy = :transaction
|
6
|
+
DatabaseCleaner.clean_with(:truncation)
|
7
|
+
end
|
8
|
+
|
9
|
+
config.before(:each) do
|
10
|
+
DatabaseCleaner.start
|
11
|
+
end
|
12
|
+
|
13
|
+
config.after(:each) do
|
14
|
+
DatabaseCleaner.clean
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'generator_spec'
|
metadata
ADDED
@@ -0,0 +1,377 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: blue_print
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sho Kusano
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: simplecov
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov-console
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.1'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.1'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sqlite3
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: database_cleaner
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: generator_spec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: coveralls
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: activesupport
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: hashie
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: thread-parent
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
description:
|
210
|
+
email:
|
211
|
+
- rosylilly@aduca.org
|
212
|
+
executables: []
|
213
|
+
extensions: []
|
214
|
+
extra_rdoc_files: []
|
215
|
+
files:
|
216
|
+
- ".gitignore"
|
217
|
+
- ".rspec"
|
218
|
+
- ".travis.yml"
|
219
|
+
- Gemfile
|
220
|
+
- LICENSE.txt
|
221
|
+
- README.md
|
222
|
+
- Rakefile
|
223
|
+
- blue_print.gemspec
|
224
|
+
- gemfiles/rails-3.x.gemfile
|
225
|
+
- gemfiles/rails-4.x.gemfile
|
226
|
+
- gemfiles/rails-head.gemfile
|
227
|
+
- lib/blue_print.rb
|
228
|
+
- lib/blue_print/active_if.rb
|
229
|
+
- lib/blue_print/behavior.rb
|
230
|
+
- lib/blue_print/context.rb
|
231
|
+
- lib/blue_print/environment.rb
|
232
|
+
- lib/blue_print/helper.rb
|
233
|
+
- lib/blue_print/integration.rb
|
234
|
+
- lib/blue_print/integration/action_controller.rb
|
235
|
+
- lib/blue_print/railtie.rb
|
236
|
+
- lib/blue_print/railtie/action_controller.rb
|
237
|
+
- lib/blue_print/railtie/action_view.rb
|
238
|
+
- lib/blue_print/railtie/active_record.rb
|
239
|
+
- lib/blue_print/version.rb
|
240
|
+
- lib/generators/blue_print/base.rb
|
241
|
+
- lib/generators/rails/blue_print_generator.rb
|
242
|
+
- lib/generators/rails/templates/context.rb
|
243
|
+
- lib/generators/rails/templates/role.rb
|
244
|
+
- lib/generators/rspec/blue_print_generator.rb
|
245
|
+
- lib/generators/rspec/templates/context_spec.rb
|
246
|
+
- lib/generators/rspec/templates/role_spec.rb
|
247
|
+
- spec/dummy/.gitignore
|
248
|
+
- spec/dummy/Gemfile
|
249
|
+
- spec/dummy/README.rdoc
|
250
|
+
- spec/dummy/Rakefile
|
251
|
+
- spec/dummy/app/assets/images/rails.png
|
252
|
+
- spec/dummy/app/assets/javascripts/application.js
|
253
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
254
|
+
- spec/dummy/app/controllers/application_controller.rb
|
255
|
+
- spec/dummy/app/helpers/application_helper.rb
|
256
|
+
- spec/dummy/app/mailers/.gitkeep
|
257
|
+
- spec/dummy/app/models/.gitkeep
|
258
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
259
|
+
- spec/dummy/config.ru
|
260
|
+
- spec/dummy/config/application.rb
|
261
|
+
- spec/dummy/config/boot.rb
|
262
|
+
- spec/dummy/config/database.yml
|
263
|
+
- spec/dummy/config/environment.rb
|
264
|
+
- spec/dummy/config/environments/development.rb
|
265
|
+
- spec/dummy/config/environments/production.rb
|
266
|
+
- spec/dummy/config/environments/test.rb
|
267
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
268
|
+
- spec/dummy/config/initializers/inflections.rb
|
269
|
+
- spec/dummy/config/initializers/mime_types.rb
|
270
|
+
- spec/dummy/config/initializers/secret_token.rb
|
271
|
+
- spec/dummy/config/initializers/session_store.rb
|
272
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
273
|
+
- spec/dummy/config/locales/en.yml
|
274
|
+
- spec/dummy/config/routes.rb
|
275
|
+
- spec/dummy/db/seeds.rb
|
276
|
+
- spec/dummy/lib/assets/.gitkeep
|
277
|
+
- spec/dummy/lib/tasks/.gitkeep
|
278
|
+
- spec/dummy/log/.gitkeep
|
279
|
+
- spec/dummy/public/404.html
|
280
|
+
- spec/dummy/public/422.html
|
281
|
+
- spec/dummy/public/500.html
|
282
|
+
- spec/dummy/public/favicon.ico
|
283
|
+
- spec/dummy/public/index.html
|
284
|
+
- spec/dummy/public/robots.txt
|
285
|
+
- spec/dummy/script/rails
|
286
|
+
- spec/dummy/vendor/assets/javascripts/.gitkeep
|
287
|
+
- spec/dummy/vendor/assets/stylesheets/.gitkeep
|
288
|
+
- spec/dummy/vendor/plugins/.gitkeep
|
289
|
+
- spec/lib/blue_print/active_if_spec.rb
|
290
|
+
- spec/lib/blue_print/behavior_spec.rb
|
291
|
+
- spec/lib/blue_print/context_spec.rb
|
292
|
+
- spec/lib/blue_print/environment_spec.rb
|
293
|
+
- spec/lib/blue_print/helper_spec.rb
|
294
|
+
- spec/lib/blue_print_spec.rb
|
295
|
+
- spec/lib/generators/rails/blue_print_generator_spec.rb
|
296
|
+
- spec/lib/generators/rspec/blue_print_generator_spec.rb
|
297
|
+
- spec/spec_helper.rb
|
298
|
+
- spec/support/database_cleaner.rb
|
299
|
+
- spec/support/generator_spec.rb
|
300
|
+
homepage: http://magnet-inc.github.io/blue_print
|
301
|
+
licenses:
|
302
|
+
- MIT
|
303
|
+
metadata: {}
|
304
|
+
post_install_message:
|
305
|
+
rdoc_options: []
|
306
|
+
require_paths:
|
307
|
+
- lib
|
308
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
309
|
+
requirements:
|
310
|
+
- - ">="
|
311
|
+
- !ruby/object:Gem::Version
|
312
|
+
version: '0'
|
313
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
314
|
+
requirements:
|
315
|
+
- - ">="
|
316
|
+
- !ruby/object:Gem::Version
|
317
|
+
version: '0'
|
318
|
+
requirements: []
|
319
|
+
rubyforge_project:
|
320
|
+
rubygems_version: 2.2.2
|
321
|
+
signing_key:
|
322
|
+
specification_version: 4
|
323
|
+
summary: The behavior switching framework for Rails
|
324
|
+
test_files:
|
325
|
+
- spec/dummy/.gitignore
|
326
|
+
- spec/dummy/Gemfile
|
327
|
+
- spec/dummy/README.rdoc
|
328
|
+
- spec/dummy/Rakefile
|
329
|
+
- spec/dummy/app/assets/images/rails.png
|
330
|
+
- spec/dummy/app/assets/javascripts/application.js
|
331
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
332
|
+
- spec/dummy/app/controllers/application_controller.rb
|
333
|
+
- spec/dummy/app/helpers/application_helper.rb
|
334
|
+
- spec/dummy/app/mailers/.gitkeep
|
335
|
+
- spec/dummy/app/models/.gitkeep
|
336
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
337
|
+
- spec/dummy/config.ru
|
338
|
+
- spec/dummy/config/application.rb
|
339
|
+
- spec/dummy/config/boot.rb
|
340
|
+
- spec/dummy/config/database.yml
|
341
|
+
- spec/dummy/config/environment.rb
|
342
|
+
- spec/dummy/config/environments/development.rb
|
343
|
+
- spec/dummy/config/environments/production.rb
|
344
|
+
- spec/dummy/config/environments/test.rb
|
345
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
346
|
+
- spec/dummy/config/initializers/inflections.rb
|
347
|
+
- spec/dummy/config/initializers/mime_types.rb
|
348
|
+
- spec/dummy/config/initializers/secret_token.rb
|
349
|
+
- spec/dummy/config/initializers/session_store.rb
|
350
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
351
|
+
- spec/dummy/config/locales/en.yml
|
352
|
+
- spec/dummy/config/routes.rb
|
353
|
+
- spec/dummy/db/seeds.rb
|
354
|
+
- spec/dummy/lib/assets/.gitkeep
|
355
|
+
- spec/dummy/lib/tasks/.gitkeep
|
356
|
+
- spec/dummy/log/.gitkeep
|
357
|
+
- spec/dummy/public/404.html
|
358
|
+
- spec/dummy/public/422.html
|
359
|
+
- spec/dummy/public/500.html
|
360
|
+
- spec/dummy/public/favicon.ico
|
361
|
+
- spec/dummy/public/index.html
|
362
|
+
- spec/dummy/public/robots.txt
|
363
|
+
- spec/dummy/script/rails
|
364
|
+
- spec/dummy/vendor/assets/javascripts/.gitkeep
|
365
|
+
- spec/dummy/vendor/assets/stylesheets/.gitkeep
|
366
|
+
- spec/dummy/vendor/plugins/.gitkeep
|
367
|
+
- spec/lib/blue_print/active_if_spec.rb
|
368
|
+
- spec/lib/blue_print/behavior_spec.rb
|
369
|
+
- spec/lib/blue_print/context_spec.rb
|
370
|
+
- spec/lib/blue_print/environment_spec.rb
|
371
|
+
- spec/lib/blue_print/helper_spec.rb
|
372
|
+
- spec/lib/blue_print_spec.rb
|
373
|
+
- spec/lib/generators/rails/blue_print_generator_spec.rb
|
374
|
+
- spec/lib/generators/rspec/blue_print_generator_spec.rb
|
375
|
+
- spec/spec_helper.rb
|
376
|
+
- spec/support/database_cleaner.rb
|
377
|
+
- spec/support/generator_spec.rb
|