padrino-core 0.9.27 → 0.9.28
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/padrino-core/cli/base.rb +4 -1
- data/lib/padrino-core/cli/rake.rb +13 -0
- data/lib/padrino-core/loader.rb +3 -3
- data/lib/padrino-core/version.rb +1 -1
- metadata +4 -4
@@ -23,6 +23,9 @@ module Padrino
|
|
23
23
|
Padrino::Cli::Adapter.start(options)
|
24
24
|
end
|
25
25
|
|
26
|
+
desc "s", "Starts the Padrino application"
|
27
|
+
alias :s :start
|
28
|
+
|
26
29
|
desc "stop", "Stops the Padrino application"
|
27
30
|
def stop
|
28
31
|
prepare :stop
|
@@ -136,4 +139,4 @@ module Padrino
|
|
136
139
|
alias :silence :capture
|
137
140
|
end # Base
|
138
141
|
end # Cli
|
139
|
-
end # Padrino
|
142
|
+
end # Padrino
|
@@ -63,4 +63,17 @@ namespace :routes do
|
|
63
63
|
app = Padrino.mounted_apps.find { |app| app.app_class == args.app }
|
64
64
|
list_app_routes(app, args) if app
|
65
65
|
end
|
66
|
+
end
|
67
|
+
|
68
|
+
desc "Generate the Rakefile"
|
69
|
+
task :gen do
|
70
|
+
File.open(Padrino.root("Rakefile"), "w") do |file|
|
71
|
+
file.puts <<-RUBY.gsub(/^ {6}/, '')
|
72
|
+
require File.dirname(__FILE__) + '/config/boot.rb'
|
73
|
+
require 'thor'
|
74
|
+
require 'padrino-core/cli/rake'
|
75
|
+
|
76
|
+
PadrinoTasks.init
|
77
|
+
RUBY
|
78
|
+
end
|
66
79
|
end
|
data/lib/padrino-core/loader.rb
CHANGED
@@ -98,13 +98,13 @@ module Padrino
|
|
98
98
|
# Extract all files to load
|
99
99
|
files = paths.map { |path| Dir[path] }.flatten.uniq.sort
|
100
100
|
|
101
|
-
# We need a size to make sure things are loading
|
102
|
-
size_at_start = files.size
|
103
|
-
|
104
101
|
while files.present?
|
105
102
|
# List of errors and failed files
|
106
103
|
errors, failed = [], []
|
107
104
|
|
105
|
+
# We need a size to make sure things are loading
|
106
|
+
size_at_start = files.size
|
107
|
+
|
108
108
|
# Now we try to require our dependencies, we dup files
|
109
109
|
# so we don't perform delete on the original array during
|
110
110
|
# iteration, this prevent problems with rubinus
|
data/lib/padrino-core/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 28
|
10
|
+
version: 0.9.28
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Padrino Team
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2011-05-
|
21
|
+
date: 2011-05-11 00:00:00 Z
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
24
|
name: tilt
|