pancake 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/pancake +96 -0
- data/lib/pancake.rb +5 -7
- data/lib/pancake/configuration.rb +2 -23
- data/lib/pancake/core_ext/object.rb +1 -1
- data/lib/pancake/defaults/configuration.rb +21 -1
- data/lib/pancake/generators.rb +0 -3
- data/lib/pancake/hooks/inheritable_inner_classes.rb +15 -2
- data/lib/pancake/master.rb +34 -1
- data/lib/pancake/mixins/render.rb +1 -2
- data/lib/pancake/mixins/stack_helper.rb +1 -1
- data/lib/pancake/router.rb +18 -63
- data/lib/pancake/stack/configuration.rb +3 -5
- data/lib/pancake/stack/router.rb +10 -33
- data/lib/pancake/stack/stack.rb +70 -50
- data/{spec/helpers → lib/pancake/test}/helpers.rb +3 -3
- data/lib/pancake/test/matchers.rb +20 -0
- data/lib/pancake/vendor/hashie/.document +5 -0
- data/lib/pancake/vendor/hashie/.gitignore +7 -0
- data/lib/pancake/vendor/hashie/Gemfile +11 -0
- data/lib/pancake/vendor/hashie/Gemfile.lock +25 -0
- data/lib/pancake/{generators/templates/short/%stack_name%/LICENSE.tt → vendor/hashie/LICENSE} +1 -1
- data/lib/pancake/vendor/hashie/README.rdoc +101 -0
- data/lib/pancake/{generators/templates/micro/%stack_name%/Rakefile.tt → vendor/hashie/Rakefile} +3 -13
- data/lib/pancake/vendor/hashie/VERSION +1 -0
- data/lib/pancake/vendor/hashie/hashie.gemspec +33 -0
- data/lib/pancake/vendor/hashie/lib/hashie.rb +5 -0
- data/lib/pancake/vendor/hashie/lib/hashie/clash.rb +86 -0
- data/lib/pancake/vendor/hashie/lib/hashie/dash.rb +108 -0
- data/lib/pancake/vendor/hashie/lib/hashie/hash.rb +22 -0
- data/lib/pancake/vendor/hashie/lib/hashie/hash_extensions.rb +49 -0
- data/lib/pancake/vendor/hashie/lib/hashie/mash.rb +148 -0
- data/lib/pancake/vendor/hashie/spec/hashie/clash_spec.rb +42 -0
- data/lib/pancake/vendor/hashie/spec/hashie/dash_spec.rb +103 -0
- data/lib/pancake/vendor/hashie/spec/hashie/hash_spec.rb +22 -0
- data/lib/pancake/vendor/hashie/spec/hashie/mash_spec.rb +135 -0
- data/lib/pancake/vendor/hashie/spec/spec.opts +2 -0
- data/lib/pancake/{generators/templates/short/%stack_name%/spec/spec_helper.rb.tt → vendor/hashie/spec/spec_helper.rb} +7 -7
- data/spec/pancake/configuration_spec.rb +1 -1
- data/spec/pancake/constants_spec.rb +1 -1
- data/spec/pancake/defaults/configuration_spec.rb +1 -1
- data/spec/pancake/hooks/on_inherit_spec.rb +13 -13
- data/spec/pancake/inheritance_spec.rb +22 -22
- data/spec/pancake/middleware_spec.rb +6 -5
- data/spec/pancake/middlewares/logger_spec.rb +1 -1
- data/spec/pancake/middlewares/static_spec.rb +1 -1
- data/spec/pancake/mime_types_spec.rb +1 -1
- data/spec/pancake/mixins/publish_spec.rb +24 -24
- data/spec/pancake/mixins/render/template_spec.rb +1 -1
- data/spec/pancake/mixins/render/view_context_spec.rb +1 -1
- data/spec/pancake/mixins/render_spec.rb +1 -1
- data/spec/pancake/mixins/request_helper_spec.rb +1 -1
- data/spec/pancake/mixins/stack_helper_spec.rb +3 -3
- data/spec/pancake/pancake_spec.rb +1 -1
- data/spec/pancake/paths_spec.rb +30 -30
- data/spec/pancake/stack/router_spec.rb +24 -62
- data/spec/pancake/stack/stack_configuration_spec.rb +1 -1
- data/spec/pancake/stack/stack_spec.rb +47 -4
- data/spec/spec_helper.rb +3 -3
- metadata +56 -128
- data/bin/pancake-gen +0 -30
- data/lib/pancake/bootloaders.rb +0 -187
- data/lib/pancake/generators/base.rb +0 -12
- data/lib/pancake/generators/micro_generator.rb +0 -17
- data/lib/pancake/generators/short_generator.rb +0 -18
- data/lib/pancake/generators/templates/common/dotgitignore +0 -22
- data/lib/pancake/generators/templates/common/dothtaccess +0 -17
- data/lib/pancake/generators/templates/micro/%stack_name%/%stack_name%.rb.tt +0 -8
- data/lib/pancake/generators/templates/micro/%stack_name%/config.ru.tt +0 -12
- data/lib/pancake/generators/templates/micro/%stack_name%/pancake_init.rb.tt +0 -1
- data/lib/pancake/generators/templates/micro/%stack_name%/public/.empty_directory +0 -0
- data/lib/pancake/generators/templates/micro/%stack_name%/tmp/.empty_directory +0 -0
- data/lib/pancake/generators/templates/micro/%stack_name%/views/root.html.haml +0 -1
- data/lib/pancake/generators/templates/short/%stack_name%/README.tt +0 -7
- data/lib/pancake/generators/templates/short/%stack_name%/Rakefile.tt +0 -56
- data/lib/pancake/generators/templates/short/%stack_name%/VERSION.tt +0 -1
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%.rb.tt +0 -12
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/%stack_name%.rb.tt +0 -6
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/config.ru.tt +0 -10
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/config/config.rb.tt +0 -23
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/config/environments/development.rb.tt +0 -15
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/config/environments/production.rb.tt +0 -16
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/config/environments/staging.rb.tt +0 -17
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/models/.empty_directory +0 -0
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/mounts/.empty_directory +0 -0
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/public/.empty_directory +0 -0
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/tasks/%stack_name%.rake.tt +0 -4
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/tmp/.empty_directory +0 -0
- data/lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/views/root.html.haml +0 -2
- data/lib/pancake/generators/templates/short/%stack_name%/pancake_init.rb.tt +0 -1
- data/lib/pancake/generators/templates/short/%stack_name%/spec/%stack_name%_spec.rb.tt +0 -11
- data/lib/pancake/stack/app.rb +0 -10
- data/lib/pancake/stack/bootloader.rb +0 -114
- data/lib/pancake/stack/middleware.rb +0 -0
- data/lib/pancake/stacks/short.rb +0 -3
- data/lib/pancake/stacks/short/bootloaders.rb +0 -5
- data/lib/pancake/stacks/short/controller.rb +0 -184
- data/lib/pancake/stacks/short/default/views/base.html.haml +0 -5
- data/lib/pancake/stacks/short/default/views/error.html.haml +0 -12
- data/lib/pancake/stacks/short/stack.rb +0 -207
- data/spec/helpers/matchers.rb +0 -25
- data/spec/pancake/bootloaders_spec.rb +0 -119
- data/spec/pancake/stack/app_spec.rb +0 -28
- data/spec/pancake/stack/bootloader_spec.rb +0 -41
- data/spec/pancake/stack/middleware_spec.rb +0 -0
- data/spec/pancake/stacks/short/controller_spec.rb +0 -442
- data/spec/pancake/stacks/short/middlewares_spec.rb +0 -22
- data/spec/pancake/stacks/short/router_spec.rb +0 -150
- data/spec/pancake/stacks/short/stack_spec.rb +0 -117
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
describe "Pancake::Stack" do
|
4
4
|
before(:each) do
|
@@ -48,7 +48,6 @@ describe "Pancake::Stack" do
|
|
48
48
|
# describe "initialize stack" do
|
49
49
|
|
50
50
|
it "should mark a stack as initialized once it has called the initialize_stack method" do
|
51
|
-
StackSpecStack::BootLoader
|
52
51
|
StackSpecStack.roots << ::Pancake.get_root(__FILE__)
|
53
52
|
StackSpecStack.initialize_stack
|
54
53
|
StackSpecStack.should be_initialized
|
@@ -57,7 +56,51 @@ describe "Pancake::Stack" do
|
|
57
56
|
it "should not be initialized when it has not called initialize_stack" do
|
58
57
|
StackSpecStack.should_not be_initialized
|
59
58
|
end
|
60
|
-
|
59
|
+
|
60
|
+
describe "include pancake stack" do
|
61
|
+
before do
|
62
|
+
$captures = []
|
63
|
+
clear_constants(:GeneralMiddleware, :MySpecStack)
|
64
|
+
Pancake::StackMiddleware.reset!
|
65
|
+
|
66
|
+
class ::GeneralMiddleware
|
67
|
+
def initialize(app)
|
68
|
+
@app = app
|
69
|
+
end
|
70
|
+
|
71
|
+
def call(env)
|
72
|
+
$captures << self.class
|
73
|
+
@app.call(env)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
Pancake.stack(:general).use(GeneralMiddleware)
|
77
|
+
end
|
78
|
+
|
79
|
+
it "should let me tell the stack to include the pancake stack" do
|
80
|
+
lambda do
|
81
|
+
StackSpecStack.include_pancake_stack!
|
82
|
+
end.should_not raise_error
|
83
|
+
end
|
84
|
+
|
85
|
+
it "should remember that I told it to include the pancake stack" do
|
86
|
+
StackSpecStack.include_pancake_stack!
|
87
|
+
StackSpecStack.include_pancake_stack?.should be_true
|
88
|
+
end
|
89
|
+
|
90
|
+
it "should not remember when inherited" do
|
91
|
+
StackSpecStack.include_pancake_stack!
|
92
|
+
class ::MySpecStack < StackSpecStack; end
|
93
|
+
MySpecStack.include_pancake_stack?.should be_false
|
94
|
+
end
|
95
|
+
|
96
|
+
it "should build the stack with the pancake stack out front" do
|
97
|
+
StackSpecStack.roots << Pancake.get_root(__FILE__)
|
98
|
+
StackSpecStack.include_pancake_stack!
|
99
|
+
stack = StackSpecStack.stackup
|
100
|
+
stack.should be_an_instance_of(GeneralMiddleware)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
61
104
|
describe "master stack" do
|
62
105
|
before do
|
63
106
|
@b4 = Pancake.master_stack
|
@@ -110,7 +153,7 @@ describe "Pancake::Stack" do
|
|
110
153
|
end
|
111
154
|
|
112
155
|
it "should load rake tasks for mounted applications" do
|
113
|
-
class ::FooSpecStack < Pancake::
|
156
|
+
class ::FooSpecStack < Pancake::Stack
|
114
157
|
add_root(__FILE__, "..", "fixtures", "tasks", "root2")
|
115
158
|
end
|
116
159
|
StackSpecStack.router.mount(FooSpecStack, "/foo")
|
data/spec/spec_helper.rb
CHANGED
@@ -9,7 +9,7 @@ require 'haml'
|
|
9
9
|
require 'json'
|
10
10
|
|
11
11
|
ENV['RACK_ENV'] = "test"
|
12
|
-
|
12
|
+
$:.unshift File.dirname(__FILE__)
|
13
13
|
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
14
14
|
|
15
15
|
require 'pancake'
|
@@ -18,7 +18,7 @@ Dir[File.join(File.dirname(__FILE__), "helpers", "**/*.rb")].each{|f| require f}
|
|
18
18
|
|
19
19
|
|
20
20
|
Spec::Runner.configure do |config|
|
21
|
-
config.include(Pancake::Matchers)
|
22
|
-
config.include(Pancake::
|
21
|
+
config.include(Pancake::Test::Matchers)
|
22
|
+
config.include(Pancake::Test::Helpers)
|
23
23
|
config.include(Rack::Test::Methods)
|
24
24
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pancake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 3
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel Neighman
|
@@ -15,8 +15,8 @@ autorequire: pancake
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
19
|
-
default_executable: pancake
|
18
|
+
date: 2010-06-20 00:00:00 +10:00
|
19
|
+
default_executable: pancake
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
@@ -28,10 +28,10 @@ dependencies:
|
|
28
28
|
segments:
|
29
29
|
- 0
|
30
30
|
version: "0"
|
31
|
-
name: ruby-debug
|
32
31
|
requirement: *id001
|
32
|
+
name: wrapt
|
33
33
|
prerelease: false
|
34
|
-
type: :
|
34
|
+
type: :runtime
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
37
37
|
none: false
|
@@ -42,24 +42,24 @@ dependencies:
|
|
42
42
|
segments:
|
43
43
|
- 0
|
44
44
|
version: "0"
|
45
|
-
name: wrapt
|
46
45
|
requirement: *id002
|
46
|
+
name: rake
|
47
47
|
prerelease: false
|
48
|
-
type: :
|
48
|
+
type: :development
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - "="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
hash:
|
55
|
+
hash: 29
|
56
56
|
segments:
|
57
57
|
- 0
|
58
|
-
-
|
59
|
-
-
|
60
|
-
version: 0.
|
61
|
-
name: usher
|
58
|
+
- 2
|
59
|
+
- 5
|
60
|
+
version: 0.2.5
|
62
61
|
requirement: *id003
|
62
|
+
name: http_router
|
63
63
|
prerelease: false
|
64
64
|
type: :runtime
|
65
65
|
- !ruby/object:Gem::Dependency
|
@@ -68,13 +68,14 @@ dependencies:
|
|
68
68
|
requirements:
|
69
69
|
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
hash:
|
71
|
+
hash: 17
|
72
72
|
segments:
|
73
73
|
- 0
|
74
74
|
- 2
|
75
|
-
|
76
|
-
|
75
|
+
- 3
|
76
|
+
version: 0.2.3
|
77
77
|
requirement: *id004
|
78
|
+
name: any_view
|
78
79
|
prerelease: false
|
79
80
|
type: :runtime
|
80
81
|
- !ruby/object:Gem::Dependency
|
@@ -87,10 +88,10 @@ dependencies:
|
|
87
88
|
segments:
|
88
89
|
- 0
|
89
90
|
version: "0"
|
90
|
-
name: rake
|
91
91
|
requirement: *id005
|
92
|
+
name: thor
|
92
93
|
prerelease: false
|
93
|
-
type: :
|
94
|
+
type: :runtime
|
94
95
|
- !ruby/object:Gem::Dependency
|
95
96
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
96
97
|
none: false
|
@@ -101,40 +102,12 @@ dependencies:
|
|
101
102
|
segments:
|
102
103
|
- 0
|
103
104
|
version: "0"
|
104
|
-
name: hashie
|
105
105
|
requirement: *id006
|
106
|
-
prerelease: false
|
107
|
-
type: :runtime
|
108
|
-
- !ruby/object:Gem::Dependency
|
109
|
-
version_requirements: &id007 !ruby/object:Gem::Requirement
|
110
|
-
none: false
|
111
|
-
requirements:
|
112
|
-
- - ">="
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
hash: 3
|
115
|
-
segments:
|
116
|
-
- 0
|
117
|
-
version: "0"
|
118
106
|
name: rack-accept-media-types
|
119
|
-
requirement: *id007
|
120
|
-
prerelease: false
|
121
|
-
type: :runtime
|
122
|
-
- !ruby/object:Gem::Dependency
|
123
|
-
version_requirements: &id008 !ruby/object:Gem::Requirement
|
124
|
-
none: false
|
125
|
-
requirements:
|
126
|
-
- - ">="
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
hash: 3
|
129
|
-
segments:
|
130
|
-
- 0
|
131
|
-
version: "0"
|
132
|
-
name: thor
|
133
|
-
requirement: *id008
|
134
107
|
prerelease: false
|
135
108
|
type: :runtime
|
136
109
|
- !ruby/object:Gem::Dependency
|
137
|
-
version_requirements: &
|
110
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
138
111
|
none: false
|
139
112
|
requirements:
|
140
113
|
- - ~>
|
@@ -144,12 +117,12 @@ dependencies:
|
|
144
117
|
- 1
|
145
118
|
- 1
|
146
119
|
version: "1.1"
|
120
|
+
requirement: *id007
|
147
121
|
name: rack
|
148
|
-
requirement: *id009
|
149
122
|
prerelease: false
|
150
123
|
type: :runtime
|
151
124
|
- !ruby/object:Gem::Dependency
|
152
|
-
version_requirements: &
|
125
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
153
126
|
none: false
|
154
127
|
requirements:
|
155
128
|
- - ">="
|
@@ -158,12 +131,12 @@ dependencies:
|
|
158
131
|
segments:
|
159
132
|
- 0
|
160
133
|
version: "0"
|
134
|
+
requirement: *id008
|
161
135
|
name: json
|
162
|
-
requirement: *id010
|
163
136
|
prerelease: false
|
164
137
|
type: :runtime
|
165
138
|
- !ruby/object:Gem::Dependency
|
166
|
-
version_requirements: &
|
139
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
167
140
|
none: false
|
168
141
|
requirements:
|
169
142
|
- - ">="
|
@@ -172,46 +145,31 @@ dependencies:
|
|
172
145
|
segments:
|
173
146
|
- 0
|
174
147
|
version: "0"
|
148
|
+
requirement: *id009
|
175
149
|
name: rack-test
|
176
|
-
requirement: *id011
|
177
150
|
prerelease: false
|
178
151
|
type: :runtime
|
179
152
|
- !ruby/object:Gem::Dependency
|
180
|
-
version_requirements: &
|
153
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
181
154
|
none: false
|
182
155
|
requirements:
|
183
|
-
- - "
|
156
|
+
- - ">="
|
184
157
|
- !ruby/object:Gem::Version
|
185
|
-
hash: -
|
158
|
+
hash: -1848230024
|
186
159
|
segments:
|
187
160
|
- 3
|
188
161
|
- 0
|
189
162
|
- 0
|
190
|
-
-
|
191
|
-
version: 3.0.0.
|
163
|
+
- beta4
|
164
|
+
version: 3.0.0.beta4
|
165
|
+
requirement: *id010
|
192
166
|
name: activesupport
|
193
|
-
requirement: *id012
|
194
|
-
prerelease: false
|
195
|
-
type: :runtime
|
196
|
-
- !ruby/object:Gem::Dependency
|
197
|
-
version_requirements: &id013 !ruby/object:Gem::Requirement
|
198
|
-
none: false
|
199
|
-
requirements:
|
200
|
-
- - ">="
|
201
|
-
- !ruby/object:Gem::Version
|
202
|
-
hash: 31
|
203
|
-
segments:
|
204
|
-
- 0
|
205
|
-
- 10
|
206
|
-
version: "0.10"
|
207
|
-
name: tilt
|
208
|
-
requirement: *id013
|
209
167
|
prerelease: false
|
210
168
|
type: :runtime
|
211
169
|
description: Eat Pancake Stacks for Breakfast
|
212
170
|
email: has.sox@gmail.com
|
213
171
|
executables:
|
214
|
-
- pancake
|
172
|
+
- pancake
|
215
173
|
extensions: []
|
216
174
|
|
217
175
|
extra_rdoc_files:
|
@@ -223,7 +181,6 @@ files:
|
|
223
181
|
- README.textile
|
224
182
|
- Rakefile
|
225
183
|
- TODO.textile
|
226
|
-
- lib/pancake/bootloaders.rb
|
227
184
|
- lib/pancake/configuration.rb
|
228
185
|
- lib/pancake/constants.rb
|
229
186
|
- lib/pancake/core_ext/class.rb
|
@@ -232,32 +189,6 @@ files:
|
|
232
189
|
- lib/pancake/defaults/configuration.rb
|
233
190
|
- lib/pancake/defaults/middlewares.rb
|
234
191
|
- lib/pancake/errors.rb
|
235
|
-
- lib/pancake/generators/base.rb
|
236
|
-
- lib/pancake/generators/micro_generator.rb
|
237
|
-
- lib/pancake/generators/short_generator.rb
|
238
|
-
- lib/pancake/generators/templates/common/dotgitignore
|
239
|
-
- lib/pancake/generators/templates/common/dothtaccess
|
240
|
-
- lib/pancake/generators/templates/micro/%stack_name%/%stack_name%.rb.tt
|
241
|
-
- lib/pancake/generators/templates/micro/%stack_name%/config.ru.tt
|
242
|
-
- lib/pancake/generators/templates/micro/%stack_name%/pancake_init.rb.tt
|
243
|
-
- lib/pancake/generators/templates/micro/%stack_name%/Rakefile.tt
|
244
|
-
- lib/pancake/generators/templates/micro/%stack_name%/views/root.html.haml
|
245
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/%stack_name%.rb.tt
|
246
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/config/config.rb.tt
|
247
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/config/environments/development.rb.tt
|
248
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/config/environments/production.rb.tt
|
249
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/config/environments/staging.rb.tt
|
250
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/config.ru.tt
|
251
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/tasks/%stack_name%.rake.tt
|
252
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/views/root.html.haml
|
253
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%.rb.tt
|
254
|
-
- lib/pancake/generators/templates/short/%stack_name%/LICENSE.tt
|
255
|
-
- lib/pancake/generators/templates/short/%stack_name%/pancake_init.rb.tt
|
256
|
-
- lib/pancake/generators/templates/short/%stack_name%/Rakefile.tt
|
257
|
-
- lib/pancake/generators/templates/short/%stack_name%/README.tt
|
258
|
-
- lib/pancake/generators/templates/short/%stack_name%/spec/%stack_name%_spec.rb.tt
|
259
|
-
- lib/pancake/generators/templates/short/%stack_name%/spec/spec_helper.rb.tt
|
260
|
-
- lib/pancake/generators/templates/short/%stack_name%/VERSION.tt
|
261
192
|
- lib/pancake/generators.rb
|
262
193
|
- lib/pancake/hooks/inheritable_inner_classes.rb
|
263
194
|
- lib/pancake/hooks/on_inherit.rb
|
@@ -278,31 +209,35 @@ files:
|
|
278
209
|
- lib/pancake/mixins/url.rb
|
279
210
|
- lib/pancake/paths.rb
|
280
211
|
- lib/pancake/router.rb
|
281
|
-
- lib/pancake/stack/app.rb
|
282
|
-
- lib/pancake/stack/bootloader.rb
|
283
212
|
- lib/pancake/stack/configuration.rb
|
284
213
|
- lib/pancake/stack/defaults/public/favicon.ico
|
285
214
|
- lib/pancake/stack/defaults/tasks/pancake.rake
|
286
|
-
- lib/pancake/stack/middleware.rb
|
287
215
|
- lib/pancake/stack/router.rb
|
288
216
|
- lib/pancake/stack/stack.rb
|
289
|
-
- lib/pancake/
|
290
|
-
- lib/pancake/stacks/short/controller.rb
|
291
|
-
- lib/pancake/stacks/short/default/views/base.html.haml
|
292
|
-
- lib/pancake/stacks/short/default/views/error.html.haml
|
293
|
-
- lib/pancake/stacks/short/stack.rb
|
294
|
-
- lib/pancake/stacks/short.rb
|
217
|
+
- lib/pancake/test/helpers.rb
|
295
218
|
- lib/pancake/test/matchers.rb
|
219
|
+
- lib/pancake/vendor/hashie/Gemfile
|
220
|
+
- lib/pancake/vendor/hashie/Gemfile.lock
|
221
|
+
- lib/pancake/vendor/hashie/hashie.gemspec
|
222
|
+
- lib/pancake/vendor/hashie/lib/hashie/clash.rb
|
223
|
+
- lib/pancake/vendor/hashie/lib/hashie/dash.rb
|
224
|
+
- lib/pancake/vendor/hashie/lib/hashie/hash.rb
|
225
|
+
- lib/pancake/vendor/hashie/lib/hashie/hash_extensions.rb
|
226
|
+
- lib/pancake/vendor/hashie/lib/hashie/mash.rb
|
227
|
+
- lib/pancake/vendor/hashie/lib/hashie.rb
|
228
|
+
- lib/pancake/vendor/hashie/LICENSE
|
229
|
+
- lib/pancake/vendor/hashie/Rakefile
|
230
|
+
- lib/pancake/vendor/hashie/README.rdoc
|
231
|
+
- lib/pancake/vendor/hashie/spec/hashie/clash_spec.rb
|
232
|
+
- lib/pancake/vendor/hashie/spec/hashie/dash_spec.rb
|
233
|
+
- lib/pancake/vendor/hashie/spec/hashie/hash_spec.rb
|
234
|
+
- lib/pancake/vendor/hashie/spec/hashie/mash_spec.rb
|
235
|
+
- lib/pancake/vendor/hashie/spec/spec.opts
|
236
|
+
- lib/pancake/vendor/hashie/spec/spec_helper.rb
|
237
|
+
- lib/pancake/vendor/hashie/VERSION
|
296
238
|
- lib/pancake.rb
|
297
|
-
- lib/pancake/
|
298
|
-
- lib/pancake/
|
299
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/models/.empty_directory
|
300
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/mounts/.empty_directory
|
301
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/public/.empty_directory
|
302
|
-
- lib/pancake/generators/templates/short/%stack_name%/lib/%stack_name%/tmp/.empty_directory
|
303
|
-
- spec/helpers/helpers.rb
|
304
|
-
- spec/helpers/matchers.rb
|
305
|
-
- spec/pancake/bootloaders_spec.rb
|
239
|
+
- lib/pancake/vendor/hashie/.document
|
240
|
+
- lib/pancake/vendor/hashie/.gitignore
|
306
241
|
- spec/pancake/configuration_spec.rb
|
307
242
|
- spec/pancake/constants_spec.rb
|
308
243
|
- spec/pancake/defaults/configuration_spec.rb
|
@@ -395,19 +330,12 @@ files:
|
|
395
330
|
- spec/pancake/mixins/stack_helper_spec.rb
|
396
331
|
- spec/pancake/pancake_spec.rb
|
397
332
|
- spec/pancake/paths_spec.rb
|
398
|
-
- spec/pancake/stack/app_spec.rb
|
399
|
-
- spec/pancake/stack/bootloader_spec.rb
|
400
|
-
- spec/pancake/stack/middleware_spec.rb
|
401
333
|
- spec/pancake/stack/router_spec.rb
|
402
334
|
- spec/pancake/stack/stack_configuration_spec.rb
|
403
335
|
- spec/pancake/stack/stack_spec.rb
|
404
|
-
- spec/pancake/stacks/short/controller_spec.rb
|
405
|
-
- spec/pancake/stacks/short/middlewares_spec.rb
|
406
|
-
- spec/pancake/stacks/short/router_spec.rb
|
407
|
-
- spec/pancake/stacks/short/stack_spec.rb
|
408
336
|
- spec/spec.opts
|
409
337
|
- spec/spec_helper.rb
|
410
|
-
- bin/pancake
|
338
|
+
- bin/pancake
|
411
339
|
- bin/rubyforge
|
412
340
|
has_rdoc: true
|
413
341
|
homepage: http://github.com/hassox/pancake
|
data/bin/pancake-gen
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'rubygems'
|
3
|
-
require 'thor'
|
4
|
-
require 'thor/group'
|
5
|
-
require 'thor/runner'
|
6
|
-
require 'pancake/generators'
|
7
|
-
|
8
|
-
case ARGV.shift
|
9
|
-
when "short"
|
10
|
-
Pancake::Generators::Short.start
|
11
|
-
when "micro"
|
12
|
-
Pancake::Generators::Micro.start
|
13
|
-
when '-v', '--version'
|
14
|
-
version_file = File.dirname(__FILE__) + '/../VERSION'
|
15
|
-
if File.exists?(version_file) and version = File.read(version_file)
|
16
|
-
puts "Pancake Version: #{version}"
|
17
|
-
end
|
18
|
-
else
|
19
|
-
puts %{
|
20
|
-
Usage: pancake-gen [type|options] /path/to/your/app
|
21
|
-
|
22
|
-
Type can be:
|
23
|
-
micro, short
|
24
|
-
|
25
|
-
Options:
|
26
|
-
-v, --version Show the version number and quit.
|
27
|
-
-h, --help Show this help message and quit.
|
28
|
-
}
|
29
|
-
end
|
30
|
-
|