rails 5.2.6 → 6.1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +46 -40
- metadata +63 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fb7e8be348b8a415befa2da7c620d966a4b30ce8f4a6e44af7d833e26def262
|
4
|
+
data.tar.gz: 4e515f5a4f9dacdbd6f8ba158aed74fcd7705c702ee9bedebebc4d830b368fca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b4c26ac445ed9c21d0a95955e462a4aee914df50b7d65affdbcdc4e48eeb7be183248a8dad3a602b916f8a03f182042f223f9bd40e53f238deca439f747561f
|
7
|
+
data.tar.gz: d2f99b52f0439f7a0bf41ed969215b40d6584dab79f01c3bcd13be9c49a6ede402e91c2fd3831724b90f16e2582f119fb4139c3d938f2a023db9ce755786ef33
|
data/README.md
CHANGED
@@ -1,48 +1,61 @@
|
|
1
|
+
<p align="center">
|
2
|
+
<a href="https://rubyonrails.org/" target="_blank" rel="noopener noreferrer">
|
3
|
+
<img src="https://rubyonrails.org/images/rails-logo.svg" width="400">
|
4
|
+
</a>
|
5
|
+
</p>
|
6
|
+
|
1
7
|
# Welcome to Rails
|
2
8
|
|
9
|
+
## What's Rails?
|
10
|
+
|
3
11
|
Rails is a web-application framework that includes everything needed to
|
4
12
|
create database-backed web applications according to the
|
5
|
-
[Model-View-Controller (MVC)](
|
13
|
+
[Model-View-Controller (MVC)](https://en.wikipedia.org/wiki/Model-view-controller)
|
6
14
|
pattern.
|
7
15
|
|
8
16
|
Understanding the MVC pattern is key to understanding Rails. MVC divides your
|
9
|
-
application into three layers, each with a specific responsibility.
|
17
|
+
application into three layers: Model, View, and Controller, each with a specific responsibility.
|
10
18
|
|
11
|
-
|
12
|
-
|
19
|
+
## Model layer
|
20
|
+
|
21
|
+
The _**Model layer**_ represents the domain model (such as Account, Product,
|
22
|
+
Person, Post, etc.) and encapsulates the business logic specific to
|
13
23
|
your application. In Rails, database-backed model classes are derived from
|
14
|
-
`ActiveRecord::Base`. Active Record allows you to present the data from
|
24
|
+
`ActiveRecord::Base`. [Active Record](activerecord/README.rdoc) allows you to present the data from
|
15
25
|
database rows as objects and embellish these data objects with business logic
|
16
|
-
methods.
|
26
|
+
methods.
|
17
27
|
Although most Rails models are backed by a database, models can also be ordinary
|
18
28
|
Ruby classes, or Ruby classes that implement a set of interfaces as provided by
|
19
|
-
the Active Model
|
29
|
+
the [Active Model](activemodel/README.rdoc) module.
|
30
|
+
|
31
|
+
## Controller layer
|
20
32
|
|
21
|
-
The
|
22
|
-
providing a suitable response. Usually this means returning HTML, but Rails controllers
|
33
|
+
The _**Controller layer**_ is responsible for handling incoming HTTP requests and
|
34
|
+
providing a suitable response. Usually, this means returning HTML, but Rails controllers
|
23
35
|
can also generate XML, JSON, PDFs, mobile-specific views, and more. Controllers load and
|
24
36
|
manipulate models, and render view templates in order to generate the appropriate HTTP response.
|
25
37
|
In Rails, incoming requests are routed by Action Dispatch to an appropriate controller, and
|
26
38
|
controller classes are derived from `ActionController::Base`. Action Dispatch and Action Controller
|
27
|
-
are bundled together in Action Pack.
|
28
|
-
[README](actionpack/README.rdoc).
|
39
|
+
are bundled together in [Action Pack](actionpack/README.rdoc).
|
29
40
|
|
30
|
-
|
41
|
+
## View layer
|
42
|
+
|
43
|
+
The _**View layer**_ is composed of "templates" that are responsible for providing
|
31
44
|
appropriate representations of your application's resources. Templates can
|
32
45
|
come in a variety of formats, but most view templates are HTML with embedded
|
33
|
-
Ruby code (ERB files). Views are typically rendered to generate a controller response
|
34
|
-
or to generate the body of an email. In Rails, View generation is handled by Action View.
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
to
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
Active Storage
|
44
|
-
and local files to Rails applications;
|
45
|
-
and Active Support
|
46
|
+
Ruby code (ERB files). Views are typically rendered to generate a controller response
|
47
|
+
or to generate the body of an email. In Rails, View generation is handled by [Action View](actionview/README.rdoc).
|
48
|
+
|
49
|
+
## Frameworks and libraries
|
50
|
+
|
51
|
+
[Active Record](activerecord/README.rdoc), [Active Model](activemodel/README.rdoc), [Action Pack](actionpack/README.rdoc), and [Action View](actionview/README.rdoc) can each be used independently outside Rails.
|
52
|
+
In addition to that, Rails also comes with [Action Mailer](actionmailer/README.rdoc), a library
|
53
|
+
to generate and send emails; [Action Mailbox](actionmailbox/README.md), a library to receive emails within a Rails application;
|
54
|
+
[Active Job](activejob/README.md), a framework for declaring jobs and making them run on a variety of queuing
|
55
|
+
backends; [Action Cable](actioncable/README.md), a framework to
|
56
|
+
integrate WebSockets with a Rails application; [Active Storage](activestorage/README.md), a library to attach cloud
|
57
|
+
and local files to Rails applications; [Action Text](actiontext/README.md), a library to handle rich text content;
|
58
|
+
and [Active Support](activesupport/README.rdoc), a collection
|
46
59
|
of utility classes and standard library extensions that are useful for Rails,
|
47
60
|
and may also be used independently outside Rails.
|
48
61
|
|
@@ -61,36 +74,29 @@ and may also be used independently outside Rails.
|
|
61
74
|
3. Change directory to `myapp` and start the web server:
|
62
75
|
|
63
76
|
$ cd myapp
|
64
|
-
$ rails server
|
77
|
+
$ bin/rails server
|
65
78
|
|
66
79
|
Run with `--help` or `-h` for options.
|
67
80
|
|
68
|
-
4.
|
81
|
+
4. Go to `http://localhost:3000` and you'll see:
|
69
82
|
"Yay! You’re on Rails!"
|
70
83
|
|
71
84
|
5. Follow the guidelines to start developing your application. You may find
|
72
85
|
the following resources handy:
|
73
|
-
* [Getting Started with Rails](
|
74
|
-
* [Ruby on Rails Guides](
|
75
|
-
* [The API Documentation](
|
76
|
-
* [Ruby on Rails Tutorial](https://www.railstutorial.org/book)
|
86
|
+
* [Getting Started with Rails](https://guides.rubyonrails.org/getting_started.html)
|
87
|
+
* [Ruby on Rails Guides](https://guides.rubyonrails.org)
|
88
|
+
* [The API Documentation](https://api.rubyonrails.org)
|
77
89
|
|
78
90
|
## Contributing
|
79
91
|
|
80
|
-
[![Code Triage Badge](https://www.codetriage.com/rails/rails/badges/users.svg)](https://www.codetriage.com/rails/rails)
|
81
|
-
|
82
92
|
We encourage you to contribute to Ruby on Rails! Please check out the
|
83
|
-
[Contributing to Ruby on Rails guide](
|
93
|
+
[Contributing to Ruby on Rails guide](https://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html) for guidelines about how to proceed. [Join us!](https://contributors.rubyonrails.org)
|
84
94
|
|
85
95
|
Trying to report a possible security vulnerability in Rails? Please
|
86
|
-
check out our [security policy](
|
96
|
+
check out our [security policy](https://rubyonrails.org/security/) for
|
87
97
|
guidelines about how to proceed.
|
88
98
|
|
89
|
-
Everyone interacting in Rails and its sub-projects' codebases, issue trackers, chat rooms, and mailing lists is expected to follow the Rails [code of conduct](
|
90
|
-
|
91
|
-
## Code Status
|
92
|
-
|
93
|
-
[![Build Status](https://travis-ci.org/rails/rails.svg?branch=5-2-stable)](https://travis-ci.org/rails/rails)
|
99
|
+
Everyone interacting in Rails and its sub-projects' codebases, issue trackers, chat rooms, and mailing lists is expected to follow the Rails [code of conduct](https://rubyonrails.org/conduct/).
|
94
100
|
|
95
101
|
## License
|
96
102
|
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2021-05-05 00:00:00.000000000 Z
|
@@ -16,154 +16,182 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.1.3.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 6.1.3.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionpack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 6.1.3.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 6.1.3.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: actionview
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 6.1.3.2
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 6.1.3.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activemodel
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 6.1.3.2
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 6.1.3.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activerecord
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 6.1.3.2
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 6.1.3.2
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: actionmailer
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 6.1.3.2
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 6.1.3.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: activejob
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 6.1.3.2
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 6.1.3.2
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: actioncable
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 6.1.3.2
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - '='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 6.1.3.2
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: activestorage
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 6.1.3.2
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - '='
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 6.1.3.2
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: actionmailbox
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 6.1.3.2
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 6.1.3.2
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: actiontext
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 6.1.3.2
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - '='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 6.1.3.2
|
139
167
|
- !ruby/object:Gem::Dependency
|
140
168
|
name: railties
|
141
169
|
requirement: !ruby/object:Gem::Requirement
|
142
170
|
requirements:
|
143
171
|
- - '='
|
144
172
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
173
|
+
version: 6.1.3.2
|
146
174
|
type: :runtime
|
147
175
|
prerelease: false
|
148
176
|
version_requirements: !ruby/object:Gem::Requirement
|
149
177
|
requirements:
|
150
178
|
- - '='
|
151
179
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
180
|
+
version: 6.1.3.2
|
153
181
|
- !ruby/object:Gem::Dependency
|
154
182
|
name: bundler
|
155
183
|
requirement: !ruby/object:Gem::Requirement
|
156
184
|
requirements:
|
157
185
|
- - ">="
|
158
186
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
187
|
+
version: 1.15.0
|
160
188
|
type: :runtime
|
161
189
|
prerelease: false
|
162
190
|
version_requirements: !ruby/object:Gem::Requirement
|
163
191
|
requirements:
|
164
192
|
- - ">="
|
165
193
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.
|
194
|
+
version: 1.15.0
|
167
195
|
- !ruby/object:Gem::Dependency
|
168
196
|
name: sprockets-rails
|
169
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,11 +215,16 @@ extensions: []
|
|
187
215
|
extra_rdoc_files: []
|
188
216
|
files:
|
189
217
|
- README.md
|
190
|
-
homepage:
|
218
|
+
homepage: https://rubyonrails.org
|
191
219
|
licenses:
|
192
220
|
- MIT
|
193
|
-
metadata:
|
194
|
-
|
221
|
+
metadata:
|
222
|
+
bug_tracker_uri: https://github.com/rails/rails/issues
|
223
|
+
changelog_uri: https://github.com/rails/rails/releases/tag/v6.1.3.2
|
224
|
+
documentation_uri: https://api.rubyonrails.org/v6.1.3.2/
|
225
|
+
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
226
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.1.3.2
|
227
|
+
post_install_message:
|
195
228
|
rdoc_options: []
|
196
229
|
require_paths:
|
197
230
|
- lib
|
@@ -199,15 +232,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
199
232
|
requirements:
|
200
233
|
- - ">="
|
201
234
|
- !ruby/object:Gem::Version
|
202
|
-
version: 2.
|
235
|
+
version: 2.5.0
|
203
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
204
237
|
requirements:
|
205
238
|
- - ">="
|
206
239
|
- !ruby/object:Gem::Version
|
207
240
|
version: 1.8.11
|
208
241
|
requirements: []
|
209
|
-
rubygems_version: 3.1.
|
210
|
-
signing_key:
|
242
|
+
rubygems_version: 3.1.2
|
243
|
+
signing_key:
|
211
244
|
specification_version: 4
|
212
245
|
summary: Full-stack web application framework.
|
213
246
|
test_files: []
|