app_stack 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ODBhNmFjMWJjMWZmYjAxZjY2Mjc1MWJkMWM5ZjcxZWE0ODU2Yjk5MQ==
5
+ data.tar.gz: !binary |-
6
+ MmNmMjE5MmZiZDYyODQwOTcyZjgyNGVlNDViMGI4YmFmYzM3ZDhjNw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YWIxZjRiM2I5MjRmZGE0NDY5MTNiNDlkMWU0NzliZWJkMDJkMGEyMzE5YTVj
10
+ ZDU2NDYxMGFkNGI1OGI4MzAwZjJjNWE0NTRjN2FiMWY4YzNjYWVjZGExNmIz
11
+ ZGY5MDE0MDg5MjExMDYyODEyOGFjZjJiNTZmMTUzZTY0Y2Y3ZDk=
12
+ data.tar.gz: !binary |-
13
+ YjkzYmE5NTYwN2E0NWU3MTFhN2M4ODMyYjNkZjMwZTU3N2UyMGI5Njc2Mzdj
14
+ OTgwNjM4NjlmOGMxOTg2NGQyZDhjZjZiYWY1ZDUxMDAyMjk3MGViNDhlZThi
15
+ MGZiNGU0ODQ3YTAwYjkyZTU3ODg5MTFiYmYxNmQ4YWE1MWU4MTM=
@@ -2,5 +2,5 @@
2
2
 
3
3
  # AppStack module
4
4
  module AppStack
5
- VERSION = '1.1.0'
5
+ VERSION = '1.1.1'
6
6
  end
data/lib/app_stack.rb CHANGED
@@ -100,13 +100,11 @@ module AppStack
100
100
  # copy from a stack of applications
101
101
  def merge_stacks!(stack)
102
102
  stack.each do |app|
103
-
104
103
  app_dir, groups = '', ['default']
105
104
  if app.is_a?(Hash)
106
- app.each { |k, v| app_dir, groups = k, v }
107
- else
108
- app_dir = @stack_dir + '/' + app
105
+ app.each { |k, v| app, groups = k, v }
109
106
  end
107
+ app_dir = @stack_dir + '/' + app
110
108
 
111
109
  raise "no directory found for #{app}" unless File.directory?(app_dir)
112
110
  raise "no configuration found for #{app}" unless
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ module AppStack
4
+ def config
5
+ @config
6
+ end
7
+ end
8
+
9
+ describe AppStack do
10
+ it 'load a app as a hash' do
11
+ AppStack.load_configuration('spec/fixtures/app-sample.yml')
12
+ AppStack.config['stack'][0].is_a?(Hash).should be_true
13
+ # AppStack.stackup!('spec/fixtures/app-sample.yml')
14
+ end
15
+ end
@@ -0,0 +1,25 @@
1
+ stack:
2
+ - incexc: [all]
3
+ stack_dir: '.'
4
+ tpl_ext: '.erb'
5
+ verbose: 1
6
+ export:
7
+ - lib/**/*.rb
8
+ - app/**/*.rb
9
+ - test:
10
+ - spec/**/*
11
+ exclude:
12
+ - lib/extra/*.rb
13
+ attrs:
14
+ application_name: App Name
15
+ application_code: app_code
16
+ database_password: the very secret
17
+ gems:
18
+ default:
19
+ - rspec: '~> 2.0.0'
20
+ - mongoid: ''
21
+ development:
22
+ files:
23
+ README.md: '__self'
24
+
25
+
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_stack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
4
+ version: 1.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Huang Wei
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-11 00:00:00.000000000 Z
11
+ date: 2013-09-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: tilt
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: term-ansicolor
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: activesupport
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: simplecov
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -103,8 +92,10 @@ files:
103
92
  - app_stack.gemspec
104
93
  - lib/app_stack.rb
105
94
  - lib/app_stack/version.rb
95
+ - spec/app_as_hash_spec.rb
106
96
  - spec/export_list_spec.rb
107
97
  - spec/fixtures/.app_stack.yml
98
+ - spec/fixtures/app-sample.yml
108
99
  - spec/fixtures/incexc-config.yml
109
100
  - spec/fixtures/incexc/.gitignore
110
101
  - spec/fixtures/incexc/.rspec
@@ -137,30 +128,30 @@ files:
137
128
  homepage: https://github.com/7lime/app_stack-gem
138
129
  licenses:
139
130
  - MIT
131
+ metadata: {}
140
132
  post_install_message:
141
133
  rdoc_options: []
142
134
  require_paths:
143
135
  - lib
144
136
  required_ruby_version: !ruby/object:Gem::Requirement
145
- none: false
146
137
  requirements:
147
138
  - - ! '>='
148
139
  - !ruby/object:Gem::Version
149
140
  version: '0'
150
141
  required_rubygems_version: !ruby/object:Gem::Requirement
151
- none: false
152
142
  requirements:
153
143
  - - ! '>='
154
144
  - !ruby/object:Gem::Version
155
145
  version: '0'
156
146
  requirements: []
157
147
  rubyforge_project:
158
- rubygems_version: 1.8.23
148
+ rubygems_version: 2.0.6
159
149
  signing_key:
160
- specification_version: 3
150
+ specification_version: 4
161
151
  summary: Use as a rake task, define a stack of modules and app-stack will merge files
162
152
  from those stack-apps to the local application directory.
163
153
  test_files:
154
+ - spec/app_as_hash_spec.rb
164
155
  - spec/export_list_spec.rb
165
156
  - spec/fixtures/incexc/lib/anyway.rb
166
157
  - spec/fixtures/incexc/lib/extra/excludes.rb