padrino-core 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/Rakefile +4 -3
- data/VERSION +1 -1
- data/lib/padrino-core.rb +5 -4
- data/lib/padrino-core/cli.rb +1 -1
- data/padrino-core.gemspec +8 -8
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -270,7 +270,7 @@ we can create Gemfile within the application root. This will contain a list of a
|
|
270
270
|
# /Gemfile
|
271
271
|
clear_sources
|
272
272
|
source 'http://gemcutter.org'
|
273
|
-
gem 'sinatra', :
|
273
|
+
gem 'sinatra', :require => 'sinatra/base'
|
274
274
|
gem 'rack-flash'
|
275
275
|
|
276
276
|
This manifest file uses the standard <tt>bundler</tt> gem syntax of which details can be found in the
|
data/Rakefile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
|
+
require 'sdoc'
|
3
4
|
|
4
5
|
begin
|
5
6
|
require 'jeweler'
|
@@ -12,11 +13,11 @@ begin
|
|
12
13
|
gem.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
|
13
14
|
gem.executables = ["padrino"]
|
14
15
|
gem.rubyforge_project = 'padrino-core'
|
15
|
-
gem.add_runtime_dependency "sinatra", ">= 0.9.
|
16
|
+
gem.add_runtime_dependency "sinatra", ">= 0.9.4"
|
16
17
|
gem.add_runtime_dependency "i18n", ">= 0.3.2"
|
17
18
|
gem.add_runtime_dependency "usher", ">= 0.6.2"
|
18
19
|
gem.add_runtime_dependency "thor", ">= 0.13.0"
|
19
|
-
gem.add_runtime_dependency "bundler", ">= 0.
|
20
|
+
gem.add_runtime_dependency "bundler", ">= 0.9.3"
|
20
21
|
gem.add_development_dependency "shoulda", ">= 0"
|
21
22
|
gem.add_development_dependency "mocha", ">= 0.9.7"
|
22
23
|
gem.add_development_dependency "rack-test", ">= 0.5.0"
|
@@ -24,7 +25,7 @@ begin
|
|
24
25
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
25
26
|
end
|
26
27
|
Jeweler::GemcutterTasks.new
|
27
|
-
Jeweler::RubyforgeTasks.new
|
28
|
+
Jeweler::RubyforgeTasks.new { |r| r.doc_task = :none }
|
28
29
|
rescue LoadError
|
29
30
|
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
30
31
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.4
|
data/lib/padrino-core.rb
CHANGED
@@ -63,14 +63,15 @@ module Padrino
|
|
63
63
|
# Method used for require dependencies and correct support_lite
|
64
64
|
#
|
65
65
|
def require_dependencies!
|
66
|
-
require root('
|
67
|
-
Bundler.require_env(Padrino.env)
|
66
|
+
require root('.bundle/environment.rb')
|
68
67
|
Dir[File.dirname(__FILE__) + '/padrino-core/*.rb'].each {|file| require file }
|
68
|
+
Bundler.require :default, Padrino.env
|
69
69
|
puts "=> Loaded bundled gems for #{Padrino.env} with #{Padrino.support.to_s.humanize}"
|
70
70
|
rescue LoadError
|
71
|
-
require 'bundler'
|
72
71
|
if File.exist?(root("Gemfile"))
|
73
|
-
|
72
|
+
require 'bundler'
|
73
|
+
Bundler.setup
|
74
|
+
Bundler.require :default, Padrino.env
|
74
75
|
Dir[File.dirname(__FILE__) + '/padrino-core/*.rb'].each {|file| require file }
|
75
76
|
puts "=> Located Gemfile for #{Padrino.env} with #{Padrino.support.to_s.humanize}"
|
76
77
|
else
|
data/lib/padrino-core/cli.rb
CHANGED
@@ -11,7 +11,7 @@ module Padrino
|
|
11
11
|
|
12
12
|
desc "start", "Starts the Padrino application"
|
13
13
|
method_option :environment, :type => :string, :aliases => "-e", :required => true, :default => :development
|
14
|
-
method_option :adapter, :type => :string, :aliases => "-a"
|
14
|
+
method_option :adapter, :type => :string, :aliases => "-a"
|
15
15
|
method_option :host, :type => :string, :aliases => "-h", :required => true, :default => "localhost"
|
16
16
|
method_option :port, :type => :numeric, :aliases => "-p", :required => true, :default => 3000
|
17
17
|
method_option :boot, :type => :string, :aliases => "-b", :required => true, :default => "config/boot.rb"
|
data/padrino-core.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{padrino-core}
|
8
|
-
s.version = "0.7.
|
8
|
+
s.version = "0.7.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
|
12
|
-
s.date = %q{2010-02-
|
12
|
+
s.date = %q{2010-02-08}
|
13
13
|
s.default_executable = %q{padrino}
|
14
14
|
s.description = %q{The Padrino core gem required for use of this framework}
|
15
15
|
s.email = %q{padrinorb@gmail.com}
|
@@ -78,32 +78,32 @@ Gem::Specification.new do |s|
|
|
78
78
|
s.specification_version = 3
|
79
79
|
|
80
80
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
81
|
-
s.add_runtime_dependency(%q<sinatra>, [">= 0.9.
|
81
|
+
s.add_runtime_dependency(%q<sinatra>, [">= 0.9.4"])
|
82
82
|
s.add_runtime_dependency(%q<i18n>, [">= 0.3.2"])
|
83
83
|
s.add_runtime_dependency(%q<usher>, [">= 0.6.2"])
|
84
84
|
s.add_runtime_dependency(%q<thor>, [">= 0.13.0"])
|
85
|
-
s.add_runtime_dependency(%q<bundler>, [">= 0.
|
85
|
+
s.add_runtime_dependency(%q<bundler>, [">= 0.9.3"])
|
86
86
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
87
87
|
s.add_development_dependency(%q<mocha>, [">= 0.9.7"])
|
88
88
|
s.add_development_dependency(%q<rack-test>, [">= 0.5.0"])
|
89
89
|
s.add_development_dependency(%q<webrat>, [">= 0.5.1"])
|
90
90
|
else
|
91
|
-
s.add_dependency(%q<sinatra>, [">= 0.9.
|
91
|
+
s.add_dependency(%q<sinatra>, [">= 0.9.4"])
|
92
92
|
s.add_dependency(%q<i18n>, [">= 0.3.2"])
|
93
93
|
s.add_dependency(%q<usher>, [">= 0.6.2"])
|
94
94
|
s.add_dependency(%q<thor>, [">= 0.13.0"])
|
95
|
-
s.add_dependency(%q<bundler>, [">= 0.
|
95
|
+
s.add_dependency(%q<bundler>, [">= 0.9.3"])
|
96
96
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
97
97
|
s.add_dependency(%q<mocha>, [">= 0.9.7"])
|
98
98
|
s.add_dependency(%q<rack-test>, [">= 0.5.0"])
|
99
99
|
s.add_dependency(%q<webrat>, [">= 0.5.1"])
|
100
100
|
end
|
101
101
|
else
|
102
|
-
s.add_dependency(%q<sinatra>, [">= 0.9.
|
102
|
+
s.add_dependency(%q<sinatra>, [">= 0.9.4"])
|
103
103
|
s.add_dependency(%q<i18n>, [">= 0.3.2"])
|
104
104
|
s.add_dependency(%q<usher>, [">= 0.6.2"])
|
105
105
|
s.add_dependency(%q<thor>, [">= 0.13.0"])
|
106
|
-
s.add_dependency(%q<bundler>, [">= 0.
|
106
|
+
s.add_dependency(%q<bundler>, [">= 0.9.3"])
|
107
107
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
108
108
|
s.add_dependency(%q<mocha>, [">= 0.9.7"])
|
109
109
|
s.add_dependency(%q<rack-test>, [">= 0.5.0"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Padrino Team
|
@@ -12,7 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date: 2010-02-
|
15
|
+
date: 2010-02-08 00:00:00 +01:00
|
16
16
|
default_executable: padrino
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.9.
|
26
|
+
version: 0.9.4
|
27
27
|
version:
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: i18n
|
@@ -63,7 +63,7 @@ dependencies:
|
|
63
63
|
requirements:
|
64
64
|
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.
|
66
|
+
version: 0.9.3
|
67
67
|
version:
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: shoulda
|