app_stack 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +10 -0
- data/Gemfile.lock +35 -0
- data/README.md +39 -32
- data/app_stack.gemspec +7 -6
- data/lib/app_stack/version.rb +1 -1
- data/lib/app_stack.rb +161 -88
- data/spec/fixtures/.app_stack.yml +24 -0
- data/spec/fixtures/incexc/.gitignore +27 -0
- data/spec/fixtures/incexc/incexc-config.yml +24 -0
- data/spec/fixtures/incexc/lib/anyway.rb +1 -0
- data/spec/fixtures/incexc/lib/extra/excludes.rb +1 -0
- data/spec/fixtures/incexc/lib/mixin/otherlib.rb +1 -0
- data/spec/fixtures/incexc/spec/spec_helper.rb +1 -0
- data/spec/fixtures/incexc/spec/support/api_test.rb +1 -0
- data/spec/fixtures/incexc-config.yml +25 -0
- data/spec/fixtures/my_app/.app_stack.yml +34 -0
- data/spec/fixtures/my_app/.gitignore +27 -0
- data/spec/fixtures/my_app/config/self_render.conf.erb +1 -0
- data/spec/fixtures/my_app/lib/auth_util.rb +5 -0
- data/spec/fixtures/sample_config.yml +23 -0
- data/spec/fixtures/stack_apps/module-1/.app_stack.yml +18 -0
- data/spec/fixtures/stack_apps/module-1/Gemfile +3 -0
- data/spec/fixtures/stack_apps/module-1/lib/auth_util.rb +5 -0
- data/spec/fixtures/stack_apps/module-1/lib/libonly1.rb +6 -0
- data/spec/fixtures/stack_apps/module-2/.app_stack.yml +24 -0
- data/spec/fixtures/stack_apps/module-2/Gemfile.erb +11 -0
- data/spec/fixtures/stack_apps/module-2/lib/auth_util.rb +6 -0
- data/spec/fixtures/stack_apps/module-2/lib/libonly2.rb +6 -0
- data/spec/gitignore_list_spec.rb +21 -0
- data/spec/load_configuration_spec.rb +16 -0
- data/spec/merge_stack_spec.rb +51 -0
- data/spec/register_self_spec.rb +13 -0
- data/spec/spec_helper.rb +16 -0
- data/spec/stackup_spec.rb +55 -0
- metadata +95 -38
- checksums.yaml +0 -15
- data/examples/my_app/.app-stack.yml +0 -23
- data/examples/my_app/Gemfile +0 -5
- data/examples/my_app/README +0 -2
- data/examples/my_app/config/app.config.rb +0 -4
- data/examples/my_app/config/configuration.yml +0 -4
- data/examples/my_app/fileabc.rb +0 -0
- data/examples/stack-apps/auth-app/Gemfile.line_addon +0 -1
- data/examples/stack-apps/auth-app/README +0 -1
- data/examples/stack-apps/auth-app/app/config.rb.erb +0 -1
- data/examples/stack-apps/auth-app/config/app.config.rb +0 -4
- data/examples/stack-apps/auth-app/config/configuration.yml +0 -2
- data/examples/stack-apps/auth-app/config/configuration.yml.template.erb +0 -4
- data/examples/stack-apps/base-app/.app-stack.yml +0 -23
- data/examples/stack-apps/base-app/README +0 -1
- data/examples/stack-apps/base-app/config/app.config.rb +0 -4
- /data/{examples/my_app/app/api_controller.rb → spec/fixtures/incexc/.rspec} +0 -0
- /data/{examples/my_app/app/config.rb → spec/fixtures/incexc/Rakefile} +0 -0
- /data/{examples/my_app/app/controllers/hello_controller.rb → spec/fixtures/incexc/Rakefile.erb} +0 -0
- /data/{examples/stack-apps/auth-app → spec/fixtures/stack_apps/module-2}/Gemfile +0 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
stack: [module-1, module-2]
|
2
|
+
stack_dir: '../apps'
|
3
|
+
tpl_ext: '.erb'
|
4
|
+
verbose: 1
|
5
|
+
export:
|
6
|
+
- lib/**/*.rb
|
7
|
+
- app/**/*.rb
|
8
|
+
include:
|
9
|
+
- spec/**/*.rb
|
10
|
+
exclude:
|
11
|
+
- lib/extra/*.rb
|
12
|
+
attrs:
|
13
|
+
application_name: App Name
|
14
|
+
application_code: app_code
|
15
|
+
database_password: the very secret
|
16
|
+
gems:
|
17
|
+
default:
|
18
|
+
- rspec: '~> 2.0.0'
|
19
|
+
- mongoid: ''
|
20
|
+
development:
|
21
|
+
files:
|
22
|
+
README.md: '__self'
|
23
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
stack: [module-1, module-2]
|
2
|
+
export:
|
3
|
+
- lib/**/*.rb
|
4
|
+
- config/**/*
|
5
|
+
- app/**/*.rb
|
6
|
+
- Gemfile
|
7
|
+
attrs:
|
8
|
+
application_name: App Name for Module 1
|
9
|
+
application_code: module_1_code
|
10
|
+
gems:
|
11
|
+
default:
|
12
|
+
rspec: '~> 1.0.0'
|
13
|
+
mongoid: ''
|
14
|
+
development:
|
15
|
+
rack-test: '~> 0.1.0'
|
16
|
+
files:
|
17
|
+
README.md: '__self'
|
18
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
stack: [module-1, module-2]
|
2
|
+
export:
|
3
|
+
- lib/**/*.rb
|
4
|
+
- config/**/*
|
5
|
+
- app/**/*.rb
|
6
|
+
- Gemfile
|
7
|
+
include:
|
8
|
+
- spec/**/*.rb
|
9
|
+
exclude:
|
10
|
+
- lib/extra/*.rb
|
11
|
+
attrs:
|
12
|
+
application_name: App Name for Module 2
|
13
|
+
application_code: module_2_code
|
14
|
+
gems:
|
15
|
+
default:
|
16
|
+
rspec: '~> 2.0.0'
|
17
|
+
grape: ''
|
18
|
+
development:
|
19
|
+
simplecov: ''
|
20
|
+
factory_girls: ''
|
21
|
+
rack_test: ''
|
22
|
+
files:
|
23
|
+
README.md: '__self'
|
24
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
source 'http://ruby.taobao.com/'
|
2
|
+
|
3
|
+
<% gems['default'].each do |g, v| %>
|
4
|
+
gem: '<%= g %>'<% if v.size > 0 %>, '<%= v %>'<% end %>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
<% gems['development'].each do |g, v| %>
|
9
|
+
gem: '<%= g %>'<% if v.size > 0 %>, '<%= v %>'<% end %>
|
10
|
+
<% end %>
|
11
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
describe AppStack do
|
6
|
+
describe '#gitignore_list' do
|
7
|
+
context 'without .gitignore file' do
|
8
|
+
it 'ignores nothing' do
|
9
|
+
AppStack.gitignore_list('/spec/fixtures').size.should eq(0)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
context 'current directory' do
|
14
|
+
it 'ignores .bak file' do
|
15
|
+
FileUtils.touch('file.bak')
|
16
|
+
AppStack.gitignore_list('.').include?('file.bak').should be_true
|
17
|
+
FileUtils.rm('file.bak')
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe AppStack do
|
5
|
+
describe '#load_configuration' do
|
6
|
+
it 'load yaml configurations' do
|
7
|
+
AppStack.load_configuration('spec/fixtures/sample_config.yml')
|
8
|
+
AppStack.config['tpl_ext'].should eq('.erb')
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'set initial directories' do
|
12
|
+
AppStack.app_root.should eq(File.expand_path('spec/fixtures'))
|
13
|
+
AppStack.stack_dir.should eq(File.expand_path('spec/apps'))
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
describe AppStack do
|
6
|
+
describe '#newer?' do
|
7
|
+
it 'true for newer file' do
|
8
|
+
FileUtils.touch('.rspec_new')
|
9
|
+
AppStack.newer?('.rspec_new', '.rspec').should be_true
|
10
|
+
FileUtils.rm('.rspec_new')
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'handles non exits file well' do
|
14
|
+
AppStack.newer?('.rspec', '.rspec_non').should be_true
|
15
|
+
AppStack.newer?('.no_rspec', '.rspec').should be_false
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
describe '#export_list' do
|
20
|
+
subject :el do
|
21
|
+
AppStack.load_configuration('spec/fixtures/incexc-config.yml')
|
22
|
+
AppStack.export_list('spec/fixtures/incexc')
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'contains exported files' do
|
26
|
+
el.include?('lib/anyway.rb').should be_true
|
27
|
+
el.include?('lib/mixin/otherlib.rb').should be_true
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'excludes gitignore files' do
|
31
|
+
el.include?('lib/mixin/otherlist.rb.bak').should be_false
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'excludes explicitly excluded files' do
|
35
|
+
el.include?('lib/extra/excludes.rb').should be_false
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'include explicitly included files' do
|
39
|
+
el.include?('spec/spec_helper.rb').should be_true
|
40
|
+
el.include?('spec/support/api_test.rb').should be_true
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe '#merge_stacks!' do
|
45
|
+
it 'raise for non existing directory' do
|
46
|
+
AppStack.load_configuration('spec/fixtures/sample_config.yml')
|
47
|
+
stacks = AppStack.config['stack']
|
48
|
+
expect { AppStack.merge_stacks!(stacks) }.to raise_error
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe AppStack do
|
5
|
+
describe '#register_self!' do
|
6
|
+
it 'regist file in app root' do
|
7
|
+
AppStack.load_configuration('spec/fixtures/sample_config.yml')
|
8
|
+
AppStack.verbose = 0
|
9
|
+
AppStack.register_self!('.')
|
10
|
+
AppStack.files['.rspec'].should eq('__self')
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'simplecov'
|
3
|
+
SimpleCov.start do
|
4
|
+
coverage_dir 'docs/coverage'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rspec'
|
8
|
+
require 'app_stack'
|
9
|
+
|
10
|
+
# mixin-up, add stub-reader for testing
|
11
|
+
module AppStack
|
12
|
+
attr_reader :config, :app_root, :stack_dir, :files
|
13
|
+
attr_accessor :verbose
|
14
|
+
end
|
15
|
+
|
16
|
+
# file test
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
describe AppStack do
|
4
|
+
describe '#stackup' do
|
5
|
+
before(:all) do
|
6
|
+
FileUtils.cp 'spec/fixtures/.app_stack.yml', 'spec/fixtures/my_app'
|
7
|
+
|
8
|
+
%w[config/self_render.conf Gemfile].each do |f|
|
9
|
+
FileUtils.touch('spec/fixtures/my_app/' + f)
|
10
|
+
end
|
11
|
+
|
12
|
+
sleep 1
|
13
|
+
|
14
|
+
FileUtils.touch('spec/fixtures/my_app/config/self_render.conf.erb')
|
15
|
+
FileUtils.touch('spec/fixtures/stack_apps/module-2/Gemfile.erb')
|
16
|
+
|
17
|
+
# run the stackup script
|
18
|
+
AppStack.stackup!('spec/fixtures/my_app/.app_stack.yml')
|
19
|
+
AppStack.verbose = 2
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'cp files from the chain of stacks' do
|
23
|
+
c1 = File.read('spec/fixtures/my_app/lib/libonly1.rb')
|
24
|
+
c2 = File.read('spec/fixtures/my_app/lib/libonly2.rb')
|
25
|
+
c1.should match(/'libonlyl from module 1'/)
|
26
|
+
c2.should match(/'libonly2 from module 2'/)
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'copy the file found first' do
|
30
|
+
cts = File.read('spec/fixtures/my_app/lib/auth_util.rb')
|
31
|
+
cts.should match(/'auth_util from module 1'/)
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'renders erb file from stack' do
|
35
|
+
cts = File.read('spec/fixtures/my_app/Gemfile')
|
36
|
+
cts.should match(/ruby\.taobao\.com/)
|
37
|
+
cts.should match(/gem: 'rspec', '~> 2.0.0'/)
|
38
|
+
cts.should match(/gem: 'mongoid'/)
|
39
|
+
cts.should match(/gem: 'grape'/)
|
40
|
+
end
|
41
|
+
|
42
|
+
it 'renders erb file in app-root' do
|
43
|
+
cts = File.read('spec/fixtures/my_app/config/self_render.conf')
|
44
|
+
cts.should match(/self config for my_app_code/)
|
45
|
+
end
|
46
|
+
|
47
|
+
after(:all) do
|
48
|
+
%w[config/self_render.conf Gemfile
|
49
|
+
lib/libonly1.rb lib/libonly2.rb].each do |f|
|
50
|
+
file = 'spec/fixtures/my_app/' + f
|
51
|
+
FileUtils.rm(file) if File.exists?(file)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
metadata
CHANGED
@@ -1,123 +1,180 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Huang Wei
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-09 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: tilt
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
21
|
+
version: 1.4.1
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 1.4.1
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: term-ansicolor
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- -
|
35
|
+
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
37
|
+
version: 1.2.2
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.2.2
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: activesupport
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
37
50
|
requirements:
|
38
|
-
- -
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 3.2.14
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
39
60
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
61
|
+
version: 3.2.14
|
41
62
|
- !ruby/object:Gem::Dependency
|
42
63
|
name: rspec
|
43
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
44
66
|
requirements:
|
45
67
|
- - ~>
|
46
68
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
69
|
+
version: 2.14.1
|
48
70
|
type: :development
|
49
71
|
prerelease: false
|
50
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
51
74
|
requirements:
|
52
75
|
- - ~>
|
53
76
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
77
|
+
version: 2.14.1
|
55
78
|
- !ruby/object:Gem::Dependency
|
56
79
|
name: simplecov
|
57
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
58
82
|
requirements:
|
59
83
|
- - ~>
|
60
84
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
85
|
+
version: 0.7.1
|
62
86
|
type: :development
|
63
87
|
prerelease: false
|
64
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
65
90
|
requirements:
|
66
91
|
- - ~>
|
67
92
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
93
|
+
version: 0.7.1
|
69
94
|
description: Merge app source code in a stack to increase module reusability
|
70
95
|
email: huangw@7lime.com
|
71
96
|
executables: []
|
72
97
|
extensions: []
|
73
98
|
extra_rdoc_files: []
|
74
99
|
files:
|
100
|
+
- Gemfile
|
101
|
+
- Gemfile.lock
|
75
102
|
- README.md
|
76
103
|
- app_stack.gemspec
|
77
|
-
- examples/my_app/.app-stack.yml
|
78
|
-
- examples/my_app/Gemfile
|
79
|
-
- examples/my_app/README
|
80
|
-
- examples/my_app/app/api_controller.rb
|
81
|
-
- examples/my_app/app/config.rb
|
82
|
-
- examples/my_app/app/controllers/hello_controller.rb
|
83
|
-
- examples/my_app/config/app.config.rb
|
84
|
-
- examples/my_app/config/configuration.yml
|
85
|
-
- examples/my_app/fileabc.rb
|
86
|
-
- examples/stack-apps/auth-app/Gemfile
|
87
|
-
- examples/stack-apps/auth-app/Gemfile.line_addon
|
88
|
-
- examples/stack-apps/auth-app/README
|
89
|
-
- examples/stack-apps/auth-app/app/config.rb.erb
|
90
|
-
- examples/stack-apps/auth-app/config/app.config.rb
|
91
|
-
- examples/stack-apps/auth-app/config/configuration.yml
|
92
|
-
- examples/stack-apps/auth-app/config/configuration.yml.template.erb
|
93
|
-
- examples/stack-apps/base-app/.app-stack.yml
|
94
|
-
- examples/stack-apps/base-app/README
|
95
|
-
- examples/stack-apps/base-app/config/app.config.rb
|
96
104
|
- lib/app_stack.rb
|
97
105
|
- lib/app_stack/version.rb
|
98
|
-
|
106
|
+
- spec/fixtures/.app_stack.yml
|
107
|
+
- spec/fixtures/incexc-config.yml
|
108
|
+
- spec/fixtures/incexc/.gitignore
|
109
|
+
- spec/fixtures/incexc/.rspec
|
110
|
+
- spec/fixtures/incexc/Rakefile
|
111
|
+
- spec/fixtures/incexc/Rakefile.erb
|
112
|
+
- spec/fixtures/incexc/incexc-config.yml
|
113
|
+
- spec/fixtures/incexc/lib/anyway.rb
|
114
|
+
- spec/fixtures/incexc/lib/extra/excludes.rb
|
115
|
+
- spec/fixtures/incexc/lib/mixin/otherlib.rb
|
116
|
+
- spec/fixtures/incexc/spec/spec_helper.rb
|
117
|
+
- spec/fixtures/incexc/spec/support/api_test.rb
|
118
|
+
- spec/fixtures/my_app/.app_stack.yml
|
119
|
+
- spec/fixtures/my_app/.gitignore
|
120
|
+
- spec/fixtures/my_app/config/self_render.conf.erb
|
121
|
+
- spec/fixtures/my_app/lib/auth_util.rb
|
122
|
+
- spec/fixtures/sample_config.yml
|
123
|
+
- spec/fixtures/stack_apps/module-1/.app_stack.yml
|
124
|
+
- spec/fixtures/stack_apps/module-1/Gemfile
|
125
|
+
- spec/fixtures/stack_apps/module-1/lib/auth_util.rb
|
126
|
+
- spec/fixtures/stack_apps/module-1/lib/libonly1.rb
|
127
|
+
- spec/fixtures/stack_apps/module-2/.app_stack.yml
|
128
|
+
- spec/fixtures/stack_apps/module-2/Gemfile
|
129
|
+
- spec/fixtures/stack_apps/module-2/Gemfile.erb
|
130
|
+
- spec/fixtures/stack_apps/module-2/lib/auth_util.rb
|
131
|
+
- spec/fixtures/stack_apps/module-2/lib/libonly2.rb
|
132
|
+
- spec/gitignore_list_spec.rb
|
133
|
+
- spec/load_configuration_spec.rb
|
134
|
+
- spec/merge_stack_spec.rb
|
135
|
+
- spec/register_self_spec.rb
|
136
|
+
- spec/spec_helper.rb
|
137
|
+
- spec/stackup_spec.rb
|
138
|
+
homepage: https://github.com/7lime/app_stack-gem
|
99
139
|
licenses:
|
100
140
|
- MIT
|
101
|
-
metadata: {}
|
102
141
|
post_install_message:
|
103
142
|
rdoc_options: []
|
104
143
|
require_paths:
|
105
144
|
- lib
|
106
145
|
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
107
147
|
requirements:
|
108
148
|
- - ! '>='
|
109
149
|
- !ruby/object:Gem::Version
|
110
150
|
version: '0'
|
111
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
none: false
|
112
153
|
requirements:
|
113
154
|
- - ! '>='
|
114
155
|
- !ruby/object:Gem::Version
|
115
156
|
version: '0'
|
116
157
|
requirements: []
|
117
158
|
rubyforge_project:
|
118
|
-
rubygems_version:
|
159
|
+
rubygems_version: 1.8.23
|
119
160
|
signing_key:
|
120
|
-
specification_version:
|
161
|
+
specification_version: 3
|
121
162
|
summary: Use as a rake task, define a stack of modules and app-stack will merge files
|
122
163
|
from those stack-apps to the local application directory.
|
123
|
-
test_files:
|
164
|
+
test_files:
|
165
|
+
- spec/fixtures/incexc/lib/anyway.rb
|
166
|
+
- spec/fixtures/incexc/lib/extra/excludes.rb
|
167
|
+
- spec/fixtures/incexc/lib/mixin/otherlib.rb
|
168
|
+
- spec/fixtures/incexc/spec/spec_helper.rb
|
169
|
+
- spec/fixtures/incexc/spec/support/api_test.rb
|
170
|
+
- spec/fixtures/my_app/lib/auth_util.rb
|
171
|
+
- spec/fixtures/stack_apps/module-1/lib/auth_util.rb
|
172
|
+
- spec/fixtures/stack_apps/module-1/lib/libonly1.rb
|
173
|
+
- spec/fixtures/stack_apps/module-2/lib/auth_util.rb
|
174
|
+
- spec/fixtures/stack_apps/module-2/lib/libonly2.rb
|
175
|
+
- spec/gitignore_list_spec.rb
|
176
|
+
- spec/load_configuration_spec.rb
|
177
|
+
- spec/merge_stack_spec.rb
|
178
|
+
- spec/register_self_spec.rb
|
179
|
+
- spec/spec_helper.rb
|
180
|
+
- spec/stackup_spec.rb
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
Mjg0MTY2ZmU2NDExMmU3ZjVlYTM5ZDdiODZjYTEyMzg2ZTM4MGM4MA==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NTllMzU1NmZkZjJlYzM2N2UxYjMzZTQwYWZkZDEzNmNjZGE3NWM1ZQ==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
NWJkOTZlY2ZmNmNjZDc2YWU5MDZmMTljOGM0ZTYzZDUwNTIyMjc2N2NiMmQ3
|
10
|
-
ZjIwNTYxZDk5MGRkYWM0YjhkY2FhZGI1NjY3NTFlMmUwZjlmYjBmYzJkMTNi
|
11
|
-
MTk2ZDYxZTRhNzE3OTFjMGY5YmE5ZjFiMDBiYTg4MjNlN2I5MmQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NmQ4ZTRjNDI3MzI4NWY4MTlhYzc4MWRmM2U4ZWNjMjhlZDVlODFiNzVhZDYz
|
14
|
-
YTUyMWY5ZDZhMzIwYWY3Y2JhNGMzZmE0MDkzYmI0MjhhZTllMmM0ZTA3ODFl
|
15
|
-
OGM0ODFhNGQzMTVlMDMyZmUzZWZkMGE3ODQ3MmZiOGViY2I2ZmY=
|
@@ -1,23 +0,0 @@
|
|
1
|
-
---
|
2
|
-
stack:
|
3
|
-
- base-app
|
4
|
-
- auth-app
|
5
|
-
stack_apps_dir: ../stack-apps
|
6
|
-
tpl_ext: .template.erb
|
7
|
-
addon_ext: .line_addon
|
8
|
-
verbose: 1
|
9
|
-
file_patterns:
|
10
|
-
- app/**/*.rb
|
11
|
-
- spec/**/*.rb
|
12
|
-
- lib/**/*.rb
|
13
|
-
- config/**/*.rb
|
14
|
-
- config/**/*.conf
|
15
|
-
- config/**/*.yaml
|
16
|
-
attrs:
|
17
|
-
application_name: My App
|
18
|
-
from_self: myapp
|
19
|
-
files:
|
20
|
-
config/app.config.rb: base-app
|
21
|
-
app/controllers/hello_controller.rb: __self
|
22
|
-
app/api_controller.rb: __self
|
23
|
-
app/config.rb: __self
|
data/examples/my_app/Gemfile
DELETED
data/examples/my_app/README
DELETED
data/examples/my_app/fileabc.rb
DELETED
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
gem 'devise'
|
@@ -1 +0,0 @@
|
|
1
|
-
readme in auth_app
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= "Holly OK." %>
|
@@ -1,23 +0,0 @@
|
|
1
|
-
---
|
2
|
-
stack:
|
3
|
-
- base-app
|
4
|
-
- auth-app
|
5
|
-
stack_apps_dir: ../stack-apps
|
6
|
-
tpl_ext: .template.erb
|
7
|
-
verbose: 1
|
8
|
-
ignores:
|
9
|
-
- .+\.swap
|
10
|
-
- ~.+
|
11
|
-
- .+~
|
12
|
-
attrs:
|
13
|
-
application_name: My App
|
14
|
-
from_super: 'base'
|
15
|
-
from_self: 'base'
|
16
|
-
files:
|
17
|
-
.app-stack.yml: __self
|
18
|
-
README: __self
|
19
|
-
config: base-app
|
20
|
-
config/app.config.rb: base-app
|
21
|
-
config/.app.config.rb.swp: auth-app
|
22
|
-
config/configuration.yml: auth-app
|
23
|
-
config/configuration.yml.template.erb: auth-app
|
@@ -1 +0,0 @@
|
|
1
|
-
readme in base_app
|
File without changes
|
File without changes
|
/data/{examples/my_app/app/controllers/hello_controller.rb → spec/fixtures/incexc/Rakefile.erb}
RENAMED
File without changes
|
File without changes
|