padrino-gen 0.10.6.e → 0.10.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,16 +6,18 @@ LESS_INIT = <<-LESS unless defined?(LESS_INIT)
6
6
  # optional - use as necessary
7
7
  Rack::Less.configure do |config|
8
8
  config.compress = true
9
+ # config.cache = true
9
10
  # other configs ...
10
11
  end
11
12
  app.use Rack::Less,
12
- :root => app.root,
13
- :source => 'stylesheets/',
14
- :public => 'public/',
15
- :hosted_at => '/stylesheets'
13
+ :root => Padrino.root,
14
+ :source => 'app/stylesheets',
15
+ :public => 'public',
16
+ :hosted_at => 'stylesheets'
16
17
  LESS
17
18
 
18
19
  def setup_stylesheet
20
+ require_dependencies 'less'
19
21
  require_dependencies 'rack-less'
20
22
  initializer :less, LESS_INIT
21
23
  empty_directory destination_root('/app/stylesheets')
@@ -10,7 +10,7 @@ Bundler.require(:default, PADRINO_ENV)
10
10
  ##
11
11
  # Enable devel logging
12
12
  #
13
- # Padrino::Logger::Config[:development] = { :log_level => :devel, :stream => :stdout }
13
+ # Padrino::Logger::Config[:development][:log_level] = :devel
14
14
  # Padrino::Logger::Config[:development][:log_static] = true
15
15
  #
16
16
 
@@ -9,7 +9,7 @@ if defined?(Mongoid)
9
9
  # Helper to retrieve a list of models.
10
10
  def get_mongoid_models
11
11
  documents = []
12
- Dir['{app,}/models/*.rb'].sort.each do |file|
12
+ Dir['{app,.}/models/*.rb'].sort.each do |file|
13
13
  model_path = file[0..-4].split('/')[2..-1]
14
14
 
15
15
  begin
metadata CHANGED
@@ -1,14 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-gen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 698657542
5
- prerelease: 7
6
- segments:
7
- - 0
8
- - 10
9
- - 6
10
- - e
11
- version: 0.10.6.e
4
+ prerelease:
5
+ version: 0.10.6
12
6
  platform: ruby
13
7
  authors:
14
8
  - Padrino Team
@@ -19,7 +13,7 @@ autorequire:
19
13
  bindir: bin
20
14
  cert_chain: []
21
15
 
22
- date: 2012-02-23 00:00:00 Z
16
+ date: 2012-03-15 00:00:00 Z
23
17
  dependencies:
24
18
  - !ruby/object:Gem::Dependency
25
19
  name: padrino-core
@@ -29,13 +23,7 @@ dependencies:
29
23
  requirements:
30
24
  - - "="
31
25
  - !ruby/object:Gem::Version
32
- hash: 698657542
33
- segments:
34
- - 0
35
- - 10
36
- - 6
37
- - e
38
- version: 0.10.6.e
26
+ version: 0.10.6
39
27
  type: :runtime
40
28
  version_requirements: *id001
41
29
  - !ruby/object:Gem::Dependency
@@ -46,10 +34,6 @@ dependencies:
46
34
  requirements:
47
35
  - - ~>
48
36
  - !ruby/object:Gem::Version
49
- hash: 15
50
- segments:
51
- - 1
52
- - 0
53
37
  version: "1.0"
54
38
  type: :runtime
55
39
  version_requirements: *id002
@@ -177,25 +161,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
161
  requirements:
178
162
  - - ">="
179
163
  - !ruby/object:Gem::Version
180
- hash: 3
181
- segments:
182
- - 0
183
164
  version: "0"
184
165
  required_rubygems_version: !ruby/object:Gem::Requirement
185
166
  none: false
186
167
  requirements:
187
- - - ">"
168
+ - - ">="
188
169
  - !ruby/object:Gem::Version
189
- hash: 25
190
- segments:
191
- - 1
192
- - 3
193
- - 1
194
- version: 1.3.1
170
+ version: 1.3.6
195
171
  requirements: []
196
172
 
197
173
  rubyforge_project: padrino-gen
198
- rubygems_version: 1.8.15
174
+ rubygems_version: 1.8.19
199
175
  signing_key:
200
176
  specification_version: 3
201
177
  summary: Generators for easily creating and building padrino applications
@@ -215,4 +191,3 @@ test_files:
215
191
  - test/test_model_generator.rb
216
192
  - test/test_plugin_generator.rb
217
193
  - test/test_project_generator.rb
218
- has_rdoc: