railties 4.1.13 → 4.1.14.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/rails/gem_version.rb +2 -2
- data/lib/rails/generators/app_base.rb +22 -11
- data/lib/rails/generators/rails/plugin/templates/%name%.gemspec +1 -1
- data/lib/rails/generators/rails/plugin/templates/Gemfile +1 -1
- data/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +1 -1
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9e7f782ffd0c14d66f1193acf1873794452d03e
|
4
|
+
data.tar.gz: a04ab3d8966ea09d322d64eb713e68ac60a1fd33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce91d25d3285c2fa55c010b03e8930a7cc6ed89ce2fd023fef891131bf63bdbe2ca365dfe434b5a561e569f56a9d551638892400a29d3f38935ef437ebe2a427
|
7
|
+
data.tar.gz: 5a7f8c55719cb7288454b4a3bc2d345d30dbf0af5d237715feadff4a209614b34846c932b33f029ed701fd5132ecb889fd9e32583a2322770989ac77c8046ef8
|
data/CHANGELOG.md
CHANGED
data/lib/rails/gem_version.rb
CHANGED
@@ -160,7 +160,8 @@ module Rails
|
|
160
160
|
|
161
161
|
def database_gemfile_entry
|
162
162
|
return [] if options[:skip_active_record]
|
163
|
-
|
163
|
+
gem_name, gem_version = gem_for_database
|
164
|
+
GemfileEntry.version gem_name, gem_version,
|
164
165
|
"Use #{options[:database]} as the database for Active Record"
|
165
166
|
end
|
166
167
|
|
@@ -196,6 +197,16 @@ module Rails
|
|
196
197
|
def padding(max_width)
|
197
198
|
' ' * (max_width - name.length + 2)
|
198
199
|
end
|
200
|
+
|
201
|
+
def version
|
202
|
+
version = super
|
203
|
+
|
204
|
+
if version.is_a?(Array)
|
205
|
+
version.join("', '")
|
206
|
+
else
|
207
|
+
version
|
208
|
+
end
|
209
|
+
end
|
199
210
|
end
|
200
211
|
|
201
212
|
def rails_gemfile_entry
|
@@ -214,16 +225,16 @@ module Rails
|
|
214
225
|
def gem_for_database
|
215
226
|
# %w( mysql oracle postgresql sqlite3 frontbase ibm_db sqlserver jdbcmysql jdbcsqlite3 jdbcpostgresql )
|
216
227
|
case options[:database]
|
217
|
-
when "oracle" then "ruby-oci8"
|
218
|
-
when "postgresql" then "pg"
|
219
|
-
when "frontbase" then "ruby-frontbase"
|
220
|
-
when "mysql" then "mysql2"
|
221
|
-
when "sqlserver" then "activerecord-sqlserver-adapter"
|
222
|
-
when "jdbcmysql" then "activerecord-jdbcmysql-adapter"
|
223
|
-
when "jdbcsqlite3" then "activerecord-jdbcsqlite3-adapter"
|
224
|
-
when "jdbcpostgresql" then "activerecord-jdbcpostgresql-adapter"
|
225
|
-
when "jdbc" then "activerecord-jdbc-adapter"
|
226
|
-
else options[:database]
|
228
|
+
when "oracle" then ["ruby-oci8", nil]
|
229
|
+
when "postgresql" then ["pg", ["~> 0.11"]]
|
230
|
+
when "frontbase" then ["ruby-frontbase", nil]
|
231
|
+
when "mysql" then ["mysql2", ["~> 0.3.13"]]
|
232
|
+
when "sqlserver" then ["activerecord-sqlserver-adapter", nil]
|
233
|
+
when "jdbcmysql" then ["activerecord-jdbcmysql-adapter", nil]
|
234
|
+
when "jdbcsqlite3" then ["activerecord-jdbcsqlite3-adapter", nil]
|
235
|
+
when "jdbcpostgresql" then ["activerecord-jdbcpostgresql-adapter", nil]
|
236
|
+
when "jdbc" then ["activerecord-jdbc-adapter", nil]
|
237
|
+
else [options[:database], nil]
|
227
238
|
end
|
228
239
|
end
|
229
240
|
|
@@ -22,6 +22,6 @@ Gem::Specification.new do |s|
|
|
22
22
|
<%= '# ' if options.dev? || options.edge? -%>s.add_dependency "rails", "~> <%= Rails::VERSION::STRING %>"
|
23
23
|
<% unless options[:skip_active_record] -%>
|
24
24
|
|
25
|
-
s.add_development_dependency "<%= gem_for_database %>"
|
25
|
+
s.add_development_dependency "<%= gem_for_database[0] %>"
|
26
26
|
<% end -%>
|
27
27
|
end
|
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.
|
4
|
+
version: 4.1.14.rc1
|
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-
|
11
|
+
date: 2015-10-30 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.
|
19
|
+
version: 4.1.14.rc1
|
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.
|
26
|
+
version: 4.1.14.rc1
|
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.
|
33
|
+
version: 4.1.14.rc1
|
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.
|
40
|
+
version: 4.1.14.rc1
|
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.
|
81
|
+
version: 4.1.14.rc1
|
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.
|
88
|
+
version: 4.1.14.rc1
|
89
89
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
90
90
|
email: david@loudthinking.com
|
91
91
|
executables:
|
@@ -349,14 +349,13 @@ 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: 1.3.1
|
355
355
|
requirements: []
|
356
356
|
rubyforge_project:
|
357
|
-
rubygems_version: 2.4.
|
357
|
+
rubygems_version: 2.4.5.1
|
358
358
|
signing_key:
|
359
359
|
specification_version: 4
|
360
360
|
summary: Tools for creating, working with, and running Rails applications.
|
361
361
|
test_files: []
|
362
|
-
has_rdoc:
|