padrino-core 0.13.3.2 → 0.13.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.rdoc +18 -18
- data/lib/padrino-core/application/routing.rb +1 -1
- data/lib/padrino-core/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26b8e13eba532572139380b2f6a88d803f8a383b
|
4
|
+
data.tar.gz: 5a25cb854c9d8831248d33b300bea051e8b331b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 735507da932437fe46cf349e41af613b013aec13a3845a92b71437d47275ac6426409811a18c079be687e149830ab77c77dcdbdd3c00c24cd5d98a4015d6d75c
|
7
|
+
data.tar.gz: 0c2493807fb6fac6d6a810d9c99d18f1baa9a27eb39c5babf3ebb3ba2f1a4cef3c6be05850b201aedda7e25f76b1092c58a9742e8aaec1b1d7d3b64f857a8684
|
data/README.rdoc
CHANGED
@@ -34,7 +34,7 @@ Reloading:: Automatically reloads server code during development.
|
|
34
34
|
Localization:: Full support of I18n language localization and can auto-set user's locale.
|
35
35
|
|
36
36
|
Keep in mind, the user will be able to pull in these components
|
37
|
-
{seperately into existing Sinatra applications}[http://
|
37
|
+
{seperately into existing Sinatra applications}[http://padrinorb.com/guides/advanced-usage/standalone-usage-in-sinatra/]
|
38
38
|
or use them altogether for a comprehensive upgrade to Sinatra (a full-stack Padrino application).
|
39
39
|
|
40
40
|
== Installation
|
@@ -47,7 +47,7 @@ This will install the necessary padrino gems to get you started.
|
|
47
47
|
Now you are ready to use this gem to enhance your sinatra projects or to create new Padrino applications.
|
48
48
|
|
49
49
|
For a more detailed look at Padrino installation,
|
50
|
-
check out the {Installation Guide}[http://
|
50
|
+
check out the {Installation Guide}[http://padrinorb.com/guides/getting-started/installation/].
|
51
51
|
|
52
52
|
== Usage
|
53
53
|
|
@@ -57,20 +57,20 @@ on the enhancements to the core Sinatra functionality. To use Padrino, one shoul
|
|
57
57
|
usage of Sinatra itself.
|
58
58
|
|
59
59
|
Please check out the
|
60
|
-
{Understanding Sinatra}[http://
|
60
|
+
{Understanding Sinatra}[http://padrinorb.com/guides/introduction/why-learn-padrino/#learning-to-love-sinatra] guide
|
61
61
|
to learn more about these fundamentals.
|
62
62
|
|
63
63
|
For information on how to use a specific gem in isolation within an existing Sinatra project, checkout the guide for
|
64
|
-
{Using Padrino in Sinatra}[http://
|
64
|
+
{Using Padrino in Sinatra}[http://padrinorb.com/guides/advanced-usage/standalone-usage-in-sinatra/].
|
65
65
|
|
66
66
|
== Getting Started
|
67
67
|
|
68
68
|
Once a developer understands Sinatra, Padrino is quite easy to get comfortable with since Padrino is simply a superset
|
69
69
|
of existing Sinatra Functionality! Best way to get started with building Padrino applications is to read following resources:
|
70
70
|
|
71
|
-
* {Blog Tutorial}[http://
|
72
|
-
* {Quick Overview}[http://
|
73
|
-
* {Padrino Examples}[http://
|
71
|
+
* {Blog Tutorial}[http://padrinorb.com/guides/getting-started/blog-tutorial/] - Step-by-step guide to building a blog application with Padrino.
|
72
|
+
* {Quick Overview}[http://padrinorb.com/guides/getting-started/basic-projects/] - Outlines basic generation commands.
|
73
|
+
* {Padrino Examples}[http://padrinorb.com/guides/introduction/examples/] - List of known Padrino applications which can serve as examples.
|
74
74
|
|
75
75
|
== Enhanced Base Application (padrino-core)
|
76
76
|
|
@@ -104,10 +104,10 @@ Let us first take a look at the simplest possible Padrino application:
|
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
|
-
=== Enhanced Route Definitions and Controllers
|
108
|
-
|
109
107
|
For a complete overview of the Padrino routing and controller system,
|
110
|
-
check out the {Routing and Controller guide}[http://
|
108
|
+
check out the {Routing and Controller guide}[http://padrinorb.com/guides/controllers/overview/].
|
109
|
+
|
110
|
+
=== Enhanced Route Definitions and Controllers
|
111
111
|
|
112
112
|
Suppose we wanted to add additional routes to our Padrino application, and we want to organize the routes
|
113
113
|
within a more structured layout. Simply add a <tt>controllers</tt> or <tt>app/controllers</tt> folder and create a file as such:
|
@@ -175,7 +175,7 @@ When you visit :+show+ and your I18n.locale == :ru Padrino try to look for "admi
|
|
175
175
|
they try "admin/show.ru.*" then "admin/show.js.*" if none match return "admin/show.erb" (or other engine i.e. haml)
|
176
176
|
|
177
177
|
For a complete overview of the routing and controller system, check out the
|
178
|
-
{Routing and Controller guide}[http://
|
178
|
+
{Routing and Controller guide}[http://padrinorb.com/guides/controllers/overview/].
|
179
179
|
|
180
180
|
=== Rendering
|
181
181
|
|
@@ -191,7 +191,7 @@ The existing render function works as well if an engine type should be specified
|
|
191
191
|
render :haml, 'account/index'
|
192
192
|
|
193
193
|
For a complete overview of the Padrino rendering system, check out the
|
194
|
-
{Routing and Controller guide}[http://
|
194
|
+
{Routing and Controller guide}[http://padrinorb.com/guides/controllers/rendering/].
|
195
195
|
|
196
196
|
=== Layout
|
197
197
|
|
@@ -206,7 +206,7 @@ With Padrino you can (like rails do) use for your custom layout, disable it
|
|
206
206
|
layout :custom
|
207
207
|
|
208
208
|
For a complete overview of the layout functionality,
|
209
|
-
check out the {Routing and Controller guide}[http://
|
209
|
+
check out the {Routing and Controller guide}[http://padrinorb.com/guides/controllers/layouts/].
|
210
210
|
|
211
211
|
=== Mounting Applications
|
212
212
|
|
@@ -221,7 +221,7 @@ Padrino stores application mounting information by default within <tt>config/app
|
|
221
221
|
to keep all information regarding what applications are mounted to which uri's.
|
222
222
|
|
223
223
|
For a complete look at mounting applications within a Padrino project,
|
224
|
-
check out the guide on {Mounting Applications}[http://
|
224
|
+
check out the guide on {Mounting Applications}[http://padrinorb.com/guides/features/mounting-applications/].
|
225
225
|
|
226
226
|
=== Auto Load Paths
|
227
227
|
|
@@ -231,7 +231,7 @@ as a convention for establishing database connection. Also, any files within the
|
|
231
231
|
automatically by Padrino.
|
232
232
|
|
233
233
|
For a complete overview of auto-loaded paths within Padrino,
|
234
|
-
check out the {Padrino Development Guide}[http://
|
234
|
+
check out the {Padrino Development Guide}[http://padrinorb.com/guides/features/development-commands/#auto-load-paths].
|
235
235
|
|
236
236
|
=== Application Logging
|
237
237
|
|
@@ -248,7 +248,7 @@ within your app and any controller or views:
|
|
248
248
|
end
|
249
249
|
|
250
250
|
For a complete overview of Padrino logger functionality, check out the
|
251
|
-
{Padrino Development Guide}[http://
|
251
|
+
{Padrino Development Guide}[http://padrinorb.com/guides/features/development-commands/].
|
252
252
|
|
253
253
|
=== Development Reloader
|
254
254
|
|
@@ -260,7 +260,7 @@ This makes rapid development much easier and provides a better alternative to 's
|
|
260
260
|
which requires the application server to be restarted which makes requests take much longer to complete.
|
261
261
|
|
262
262
|
For a complete overview of code reloading in development,
|
263
|
-
check out the {Padrino Development Guide}[http://
|
263
|
+
check out the {Padrino Development Guide}[http://padrinorb.com/guides/features/development-commands/#development-reloader].
|
264
264
|
|
265
265
|
=== Terminal Commands
|
266
266
|
|
@@ -287,7 +287,7 @@ You can also create custom rake tasks as well. Using these commands can simplify
|
|
287
287
|
making development that much smoother.
|
288
288
|
|
289
289
|
For a complete overview of Padrino terminal commands, check out the
|
290
|
-
{Padrino Commands Guide}[http://
|
290
|
+
{Padrino Commands Guide}[http://padrinorb.com/guides/features/development-commands/#terminal-commands].
|
291
291
|
|
292
292
|
== Copyright
|
293
293
|
|
@@ -214,7 +214,7 @@ module Padrino
|
|
214
214
|
# before :agent => /IE/ do; ...; end
|
215
215
|
# # => match +HTTP_USER_AGENT+ containing +IE+
|
216
216
|
#
|
217
|
-
# @see http://
|
217
|
+
# @see http://padrinorb.com/guides/controllers/route-filters/
|
218
218
|
#
|
219
219
|
def construct_filter(*args, &block)
|
220
220
|
options = args.last.is_a?(Hash) ? args.pop : {}
|
data/lib/padrino-core/version.rb
CHANGED
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.13.3.
|
4
|
+
version: 0.13.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Padrino Team
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-
|
14
|
+
date: 2016-11-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: padrino-support
|
@@ -19,14 +19,14 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.13.3.
|
22
|
+
version: 0.13.3.3
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.13.3.
|
29
|
+
version: 0.13.3.3
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: sinatra
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
238
|
version: 1.3.6
|
239
239
|
requirements: []
|
240
240
|
rubyforge_project: padrino-core
|
241
|
-
rubygems_version: 2.
|
241
|
+
rubygems_version: 2.6.6
|
242
242
|
signing_key:
|
243
243
|
specification_version: 4
|
244
244
|
summary: The required Padrino core gem
|