rails 3.2.9 → 5.2.8.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rails might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +97 -0
- metadata +105 -50
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 73932101700de05e5fef15fc73909960e48cf9d800e904a581bab83ce763c1e9
|
4
|
+
data.tar.gz: 246836cbb711681a4edf6e3c5d1d7c2e52809364d1d187980695b6b566a0de67
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3314f1e65d7e127bf2e19861eca6ccb3d7998ad1e6e2ac050b9e1346b4ddbbdf0f76e0803a79ec30903be3279070d4dc774e096087ac43fa8323496886686455
|
7
|
+
data.tar.gz: 322c25420a64d3ba84f2cb282ffc7ea8e18d1ecc09eceb7bfc64cacc26da7da2f8637377a9a71c613e5195c497ecf2d54f4d4a1b9e5c2963ee959e01d4503e4f
|
data/README.md
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
# Welcome to Rails
|
2
|
+
|
3
|
+
Rails is a web-application framework that includes everything needed to
|
4
|
+
create database-backed web applications according to the
|
5
|
+
[Model-View-Controller (MVC)](http://en.wikipedia.org/wiki/Model-view-controller)
|
6
|
+
pattern.
|
7
|
+
|
8
|
+
Understanding the MVC pattern is key to understanding Rails. MVC divides your
|
9
|
+
application into three layers, each with a specific responsibility.
|
10
|
+
|
11
|
+
The _Model layer_ represents your domain model (such as Account, Product,
|
12
|
+
Person, Post, etc.) and encapsulates the business logic that is specific to
|
13
|
+
your application. In Rails, database-backed model classes are derived from
|
14
|
+
`ActiveRecord::Base`. Active Record allows you to present the data from
|
15
|
+
database rows as objects and embellish these data objects with business logic
|
16
|
+
methods. You can read more about Active Record in its [README](activerecord/README.rdoc).
|
17
|
+
Although most Rails models are backed by a database, models can also be ordinary
|
18
|
+
Ruby classes, or Ruby classes that implement a set of interfaces as provided by
|
19
|
+
the Active Model module. You can read more about Active Model in its [README](activemodel/README.rdoc).
|
20
|
+
|
21
|
+
The _Controller layer_ is responsible for handling incoming HTTP requests and
|
22
|
+
providing a suitable response. Usually this means returning HTML, but Rails controllers
|
23
|
+
can also generate XML, JSON, PDFs, mobile-specific views, and more. Controllers load and
|
24
|
+
manipulate models, and render view templates in order to generate the appropriate HTTP response.
|
25
|
+
In Rails, incoming requests are routed by Action Dispatch to an appropriate controller, and
|
26
|
+
controller classes are derived from `ActionController::Base`. Action Dispatch and Action Controller
|
27
|
+
are bundled together in Action Pack. You can read more about Action Pack in its
|
28
|
+
[README](actionpack/README.rdoc).
|
29
|
+
|
30
|
+
The _View layer_ is composed of "templates" that are responsible for providing
|
31
|
+
appropriate representations of your application's resources. Templates can
|
32
|
+
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
|
+
You can read more about Action View in its [README](actionview/README.rdoc).
|
36
|
+
|
37
|
+
Active Record, Active Model, Action Pack, and Action View can each be used independently outside Rails.
|
38
|
+
In addition to that, Rails also comes with Action Mailer ([README](actionmailer/README.rdoc)), a library
|
39
|
+
to generate and send emails; Active Job ([README](activejob/README.md)), a
|
40
|
+
framework for declaring jobs and making them run on a variety of queueing
|
41
|
+
backends; Action Cable ([README](actioncable/README.md)), a framework to
|
42
|
+
integrate WebSockets with a Rails application;
|
43
|
+
Active Storage ([README](activestorage/README.md)), a library to attach cloud
|
44
|
+
and local files to Rails applications;
|
45
|
+
and Active Support ([README](activesupport/README.rdoc)), a collection
|
46
|
+
of utility classes and standard library extensions that are useful for Rails,
|
47
|
+
and may also be used independently outside Rails.
|
48
|
+
|
49
|
+
## Getting Started
|
50
|
+
|
51
|
+
1. Install Rails at the command prompt if you haven't yet:
|
52
|
+
|
53
|
+
$ gem install rails
|
54
|
+
|
55
|
+
2. At the command prompt, create a new Rails application:
|
56
|
+
|
57
|
+
$ rails new myapp
|
58
|
+
|
59
|
+
where "myapp" is the application name.
|
60
|
+
|
61
|
+
3. Change directory to `myapp` and start the web server:
|
62
|
+
|
63
|
+
$ cd myapp
|
64
|
+
$ rails server
|
65
|
+
|
66
|
+
Run with `--help` or `-h` for options.
|
67
|
+
|
68
|
+
4. Using a browser, go to `http://localhost:3000` and you'll see:
|
69
|
+
"Yay! You’re on Rails!"
|
70
|
+
|
71
|
+
5. Follow the guidelines to start developing your application. You may find
|
72
|
+
the following resources handy:
|
73
|
+
* [Getting Started with Rails](http://guides.rubyonrails.org/getting_started.html)
|
74
|
+
* [Ruby on Rails Guides](http://guides.rubyonrails.org)
|
75
|
+
* [The API Documentation](http://api.rubyonrails.org)
|
76
|
+
* [Ruby on Rails Tutorial](https://www.railstutorial.org/book)
|
77
|
+
|
78
|
+
## Contributing
|
79
|
+
|
80
|
+
[![Code Triage Badge](https://www.codetriage.com/rails/rails/badges/users.svg)](https://www.codetriage.com/rails/rails)
|
81
|
+
|
82
|
+
We encourage you to contribute to Ruby on Rails! Please check out the
|
83
|
+
[Contributing to Ruby on Rails guide](http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html) for guidelines about how to proceed. [Join us!](http://contributors.rubyonrails.org)
|
84
|
+
|
85
|
+
Trying to report a possible security vulnerability in Rails? Please
|
86
|
+
check out our [security policy](http://rubyonrails.org/security/) for
|
87
|
+
guidelines about how to proceed.
|
88
|
+
|
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](http://rubyonrails.org/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)
|
94
|
+
|
95
|
+
## License
|
96
|
+
|
97
|
+
Ruby on Rails is released under the [MIT License](https://opensource.org/licenses/MIT).
|
metadata
CHANGED
@@ -1,128 +1,183 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 5.2.8.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- David Heinemeier Hansson
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2022-07-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: activesupport
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
version: 5.2.8.1
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
26
|
+
version: 5.2.8.1
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: actionpack
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - '='
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
33
|
+
version: 5.2.8.1
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - '='
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
40
|
+
version: 5.2.8.1
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
42
|
+
name: actionview
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 5.2.8.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 5.2.8.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: activemodel
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
59
|
- - '='
|
52
60
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
61
|
+
version: 5.2.8.1
|
54
62
|
type: :runtime
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
66
|
- - '='
|
60
67
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
68
|
+
version: 5.2.8.1
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
70
|
+
name: activerecord
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
73
|
- - '='
|
68
74
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
75
|
+
version: 5.2.8.1
|
70
76
|
type: :runtime
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
80
|
- - '='
|
76
81
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
82
|
+
version: 5.2.8.1
|
78
83
|
- !ruby/object:Gem::Dependency
|
79
84
|
name: actionmailer
|
80
85
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
86
|
requirements:
|
83
87
|
- - '='
|
84
88
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
89
|
+
version: 5.2.8.1
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 5.2.8.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: activejob
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 5.2.8.1
|
86
104
|
type: :runtime
|
87
105
|
prerelease: false
|
88
106
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
107
|
requirements:
|
91
108
|
- - '='
|
92
109
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
110
|
+
version: 5.2.8.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: actioncable
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 5.2.8.1
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 5.2.8.1
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: activestorage
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 5.2.8.1
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 5.2.8.1
|
94
139
|
- !ruby/object:Gem::Dependency
|
95
140
|
name: railties
|
96
141
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
142
|
requirements:
|
99
143
|
- - '='
|
100
144
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
145
|
+
version: 5.2.8.1
|
102
146
|
type: :runtime
|
103
147
|
prerelease: false
|
104
148
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
149
|
requirements:
|
107
150
|
- - '='
|
108
151
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
152
|
+
version: 5.2.8.1
|
110
153
|
- !ruby/object:Gem::Dependency
|
111
154
|
name: bundler
|
112
155
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
156
|
requirements:
|
115
|
-
- -
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 1.3.0
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 1.3.0
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: sprockets-rails
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
116
172
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
173
|
+
version: 2.0.0
|
118
174
|
type: :runtime
|
119
175
|
prerelease: false
|
120
176
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
177
|
requirements:
|
123
|
-
- -
|
178
|
+
- - ">="
|
124
179
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
180
|
+
version: 2.0.0
|
126
181
|
description: Ruby on Rails is a full-stack web framework optimized for programmer
|
127
182
|
happiness and sustainable productivity. It encourages beautiful code by favoring
|
128
183
|
convention over configuration.
|
@@ -130,29 +185,29 @@ email: david@loudthinking.com
|
|
130
185
|
executables: []
|
131
186
|
extensions: []
|
132
187
|
extra_rdoc_files: []
|
133
|
-
files:
|
134
|
-
|
135
|
-
|
136
|
-
|
188
|
+
files:
|
189
|
+
- README.md
|
190
|
+
homepage: http://rubyonrails.org
|
191
|
+
licenses:
|
192
|
+
- MIT
|
193
|
+
metadata: {}
|
194
|
+
post_install_message:
|
137
195
|
rdoc_options: []
|
138
196
|
require_paths:
|
139
197
|
- lib
|
140
198
|
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
-
none: false
|
142
199
|
requirements:
|
143
|
-
- -
|
200
|
+
- - ">="
|
144
201
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
202
|
+
version: 2.2.2
|
146
203
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
|
-
none: false
|
148
204
|
requirements:
|
149
|
-
- -
|
205
|
+
- - ">="
|
150
206
|
- !ruby/object:Gem::Version
|
151
|
-
version: 1.
|
207
|
+
version: 1.8.11
|
152
208
|
requirements: []
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
specification_version: 3
|
209
|
+
rubygems_version: 3.3.3
|
210
|
+
signing_key:
|
211
|
+
specification_version: 4
|
157
212
|
summary: Full-stack web application framework.
|
158
213
|
test_files: []
|