railties 4.1.10.rc4 → 4.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/rails/gem_version.rb +1 -1
- data/lib/rails/generators/actions.rb +1 -1
- data/lib/rails/generators/app_base.rb +1 -1
- data/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +1 -1
- data/lib/rails/generators/rails/plugin/templates/rails/javascripts.js +1 -1
- data/lib/rails/generators/rails/resource_route/resource_route_generator.rb +4 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c5c3a8b1dc97975ff7f47c3f35b565504fe34d2
|
4
|
+
data.tar.gz: 7ae0c48fd5cedfe9c9b756a89498f0275fbcfb86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1c9090c700fe167f87185863ead2ee8cbfb30e253ddedd3c2909fbf5985c2b23f10f9fd34b38d89f516912a485fc34ade9e054f5c6434acd1f158b7f40684e4
|
7
|
+
data.tar.gz: 6fc33ac01e2958f53f9a4096a010af6c8cf9c8f75c4d3d95da354e23ead084577741e6533a9cf39789af61196d6c4fe66c95c2c8dbe44910867d39ce50b30fdc
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## Rails 4.1.10 (March 19, 2015) ##
|
2
|
+
|
3
|
+
* Add a new-line to the end of route method generated code.
|
4
|
+
|
5
|
+
We need to add a `\n`, because we cannot have two routes
|
6
|
+
in the same line.
|
7
|
+
|
8
|
+
*arthurnn*
|
9
|
+
|
1
10
|
* Force generated routes to be inserted into routes.rb
|
2
11
|
|
3
12
|
*Andrew White*
|
data/lib/rails/gem_version.rb
CHANGED
@@ -221,7 +221,7 @@ module Rails
|
|
221
221
|
sentinel = /\.routes\.draw do\s*\n/m
|
222
222
|
|
223
223
|
in_root do
|
224
|
-
inject_into_file 'config/routes.rb', " #{routing_code}", { after: sentinel, verbose: false, force: true }
|
224
|
+
inject_into_file 'config/routes.rb', " #{routing_code}\n", { after: sentinel, verbose: false, force: true }
|
225
225
|
end
|
226
226
|
end
|
227
227
|
|
@@ -285,7 +285,7 @@ module Rails
|
|
285
285
|
end
|
286
286
|
|
287
287
|
def javascript_runtime_gemfile_entry
|
288
|
-
comment = 'See https://github.com/
|
288
|
+
comment = 'See https://github.com/rails/execjs#readme for more supported runtimes'
|
289
289
|
if defined?(JRUBY_VERSION)
|
290
290
|
GemfileEntry.version 'therubyrhino', nil, comment
|
291
291
|
else
|
@@ -7,7 +7,7 @@
|
|
7
7
|
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
8
|
// compiled file.
|
9
9
|
//
|
10
|
-
// Read Sprockets README (https://github.com/
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
11
|
// about supported directives.
|
12
12
|
//
|
13
13
|
<% unless options[:skip_javascript] -%>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
8
|
// compiled file.
|
9
9
|
//
|
10
|
-
// Read Sprockets README (https://github.com/
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
11
|
// about supported directives.
|
12
12
|
//
|
13
13
|
//= require_tree .
|
@@ -29,8 +29,10 @@ module Rails
|
|
29
29
|
write("end", route_length - index)
|
30
30
|
end
|
31
31
|
|
32
|
-
# route prepends two spaces onto the front of the string that is passed, this corrects that
|
33
|
-
route
|
32
|
+
# route prepends two spaces onto the front of the string that is passed, this corrects that.
|
33
|
+
# Also it adds a \n to the end of each line, as route already adds that
|
34
|
+
# we need to correct that too.
|
35
|
+
route route_string[2..-2]
|
34
36
|
end
|
35
37
|
|
36
38
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railties
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.10
|
4
|
+
version: 4.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.1.10
|
19
|
+
version: 4.1.10
|
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: 4.1.10
|
26
|
+
version: 4.1.10
|
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: 4.1.10
|
33
|
+
version: 4.1.10
|
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: 4.1.10
|
40
|
+
version: 4.1.10
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,14 +78,14 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - '='
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: 4.1.10
|
81
|
+
version: 4.1.10
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - '='
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: 4.1.10
|
88
|
+
version: 4.1.10
|
89
89
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
90
90
|
email: david@loudthinking.com
|
91
91
|
executables:
|
@@ -349,9 +349,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
349
349
|
version: 1.9.3
|
350
350
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
351
351
|
requirements:
|
352
|
-
- - "
|
352
|
+
- - ">="
|
353
353
|
- !ruby/object:Gem::Version
|
354
|
-
version:
|
354
|
+
version: '0'
|
355
355
|
requirements: []
|
356
356
|
rubyforge_project:
|
357
357
|
rubygems_version: 2.4.5
|