railties 5.1.4 → 5.1.5.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ebb039417cb88587c9ae255847f2767d5198dc9d
4
- data.tar.gz: 19510b85c133c0df1cde3c4b086e802478d99c1a
2
+ SHA256:
3
+ metadata.gz: 2967ea026e94f8d5c5943f7dcc50ed04a18de2dd73fb7079ad1ea8cd89999cf0
4
+ data.tar.gz: afd0b0bf3aedb67225a90e9580fac3b4c79d9203698f6d9319e43bd97ca82fc5
5
5
  SHA512:
6
- metadata.gz: f773aaac146897dc248d7470075ccd21ca5d471f5e3eb86c4ad4403552d55bddb20acbc4999b78f5d5298ae126fb1519537bd4a1b9a17cad4aad9e38dded8532
7
- data.tar.gz: fca1e5d6073841dae7e1028e08121404569debaff656eb298cccda314565c9c5316397fe94b0bd8322141d5bb894f6b090205b1ad9350dcd09139340f2f28d69
6
+ metadata.gz: ac081cce50dc7287d41437ecd887ed24f8a76a6779393684369f3bd5bdea970217c105aeb8d05a3463c82c258e0d9eee559e11c4782158608bd5299beb2a9999
7
+ data.tar.gz: a74806c7a54d4c495bca9eb3385c0fd4bf9403b09d4349b7de837c9ca0de06c2a6b732c3db13931413e6a0b86cf961e3765e68d6ea42175a1873a7c5083e9f9a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## Rails 5.1.5.rc1 (February 01, 2018) ##
2
+
3
+ * Gemfile for new apps: upgrade redis-rb from ~> 3.0 to 4.0.
4
+
5
+ *Jeremy Daer*
6
+
1
7
  ## Rails 5.1.4 (September 07, 2017) ##
2
8
 
3
9
  * No changes.
@@ -159,9 +159,16 @@ module Rails
159
159
  def user_supplied_options
160
160
  @user_supplied_options ||= begin
161
161
  # Convert incoming options array to a hash of flags
162
- # ["-p", "3001", "-c", "foo"] # => {"-p" => true, "-c" => true}
162
+ # ["-p3001", "-C", "--binding", "127.0.0.1"] # => {"-p"=>true, "-C"=>true, "--binding"=>true}
163
163
  user_flag = {}
164
- @original_options.each_with_index { |command, i| user_flag[command] = true if i.even? }
164
+ @original_options.each do |command|
165
+ if command.to_s.start_with?("--")
166
+ option = command.split("=")[0]
167
+ user_flag[option] = true
168
+ elsif command =~ /\A(-.)/
169
+ user_flag[Regexp.last_match[0]] = true
170
+ end
171
+ end
165
172
 
166
173
  # Collect all options that the user has explicitly defined so we can
167
174
  # differentiate them from defaults
@@ -7,8 +7,8 @@ module Rails
7
7
  module VERSION
8
8
  MAJOR = 5
9
9
  MINOR = 1
10
- TINY = 4
11
- PRE = nil
10
+ TINY = 5
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -273,7 +273,7 @@ module Rails
273
273
  # %w( mysql postgresql sqlite3 oracle frontbase ibm_db sqlserver jdbcmysql jdbcsqlite3 jdbcpostgresql )
274
274
  case options[:database]
275
275
  when "mysql" then ["mysql2", [">= 0.3.18", "< 0.5"]]
276
- when "postgresql" then ["pg", ["~> 0.18"]]
276
+ when "postgresql" then ["pg", [">= 0.18", "< 2.0"]]
277
277
  when "oracle" then ["activerecord-oracle_enhanced-adapter", nil]
278
278
  when "frontbase" then ["ruby-frontbase", nil]
279
279
  when "sqlserver" then ["activerecord-sqlserver-adapter", nil]
@@ -364,7 +364,7 @@ module Rails
364
364
  return [] if options[:skip_action_cable]
365
365
  comment = "Use Redis adapter to run Action Cable in production"
366
366
  gems = []
367
- gems << GemfileEntry.new("redis", "~> 3.0", comment, {}, true)
367
+ gems << GemfileEntry.new("redis", "~> 4.0", comment, {}, true)
368
368
  gems
369
369
  end
370
370
 
@@ -1,3 +1,4 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
1
2
  require File.expand_path('../../config/environment', __FILE__)
2
3
  require 'rails/test_help'
3
4
 
@@ -1,3 +1,5 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
1
3
  require File.expand_path("../../<%= options[:dummy_path] -%>/config/environment.rb", __FILE__)
2
4
  <% unless options[:skip_active_record] -%>
3
5
  ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../<%= options[:dummy_path] -%>/db/migrate", __FILE__)]
@@ -63,11 +63,17 @@ module Rails
63
63
  end
64
64
 
65
65
  def format_line(result)
66
- "%s#%s = %.2f s = %s" % [result.class, result.name, result.time, result.result_code]
66
+ klass = result.respond_to?(:klass) ? result.klass : result.class
67
+ "%s#%s = %.2f s = %s" % [klass, result.name, result.time, result.result_code]
67
68
  end
68
69
 
69
70
  def format_rerun_snippet(result)
70
- location, line = result.method(result.name).source_location
71
+ location, line = if result.respond_to?(:source_location)
72
+ result.source_location
73
+ else
74
+ result.method(result.name).source_location
75
+ end
76
+
71
77
  "#{executable} #{relative_path_for(location)}:#{line}"
72
78
  end
73
79
 
@@ -13,7 +13,7 @@ module Rails
13
13
  class << self
14
14
  def options(opts)
15
15
  opts.on("--warnings", "-w", "Run with Ruby warnings enabled") {}
16
- opts.on("--environment", "-e", "Run tests in the ENV environment") {}
16
+ opts.on("-e", "--environment ENV", "Run tests in the ENV environment") {}
17
17
  end
18
18
 
19
19
  def parse_options(argv)
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: 5.1.4
4
+ version: 5.1.5.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-08 00:00:00.000000000 Z
11
+ date: 2018-02-01 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: 5.1.4
19
+ version: 5.1.5.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: 5.1.4
26
+ version: 5.1.5.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: 5.1.4
33
+ version: 5.1.5.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: 5.1.4
40
+ version: 5.1.5.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - '='
94
94
  - !ruby/object:Gem::Version
95
- version: 5.1.4
95
+ version: 5.1.5.rc1
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - '='
101
101
  - !ruby/object:Gem::Version
102
- version: 5.1.4
102
+ version: 5.1.5.rc1
103
103
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
104
104
  email: david@loudthinking.com
105
105
  executables:
@@ -407,7 +407,9 @@ files:
407
407
  homepage: http://rubyonrails.org
408
408
  licenses:
409
409
  - MIT
410
- metadata: {}
410
+ metadata:
411
+ source_code_uri: https://github.com/rails/rails/tree/v5.1.5.rc1/railties
412
+ changelog_uri: https://github.com/rails/rails/blob/v5.1.5.rc1/railties/CHANGELOG.md
411
413
  post_install_message:
412
414
  rdoc_options:
413
415
  - "--exclude"
@@ -421,12 +423,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
421
423
  version: 2.2.2
422
424
  required_rubygems_version: !ruby/object:Gem::Requirement
423
425
  requirements:
424
- - - ">="
426
+ - - ">"
425
427
  - !ruby/object:Gem::Version
426
- version: '0'
428
+ version: 1.3.1
427
429
  requirements: []
428
430
  rubyforge_project:
429
- rubygems_version: 2.6.13
431
+ rubygems_version: 2.7.3
430
432
  signing_key:
431
433
  specification_version: 4
432
434
  summary: Tools for creating, working with, and running Rails applications.