railties 4.1.15 → 4.1.16.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8659f34b623009c794ba2860ce7beba33c8bde9c
4
- data.tar.gz: 857d937d85cb87d267c8fc787a9b2e2421b0d083
3
+ metadata.gz: 5e2989e958eea611c8b76d6b5ca8f6271a0a607b
4
+ data.tar.gz: 6a85a7168318d9eb62f67969c5003274239e928b
5
5
  SHA512:
6
- metadata.gz: 5d4f6f9469db7cce7d5b7a20c83738357be1f55ef75c24df5a38e370c35d6b8cf4c39ab93ea7b2a93c669f3597b9335505c9185074983aeca7cc575d2dfe6199
7
- data.tar.gz: 40dd43099411d55f4cbbac63c381da89d605096a47f2549ff6f56b498b2800bed839dab896b0ebb79ade10ce948b9bc7e7c1487aaf44e09d032b3251f09475df
6
+ metadata.gz: b5b5b6c3a758a8681c0deaacd5f0f2e8b92caa9896f97a6f5bf9762db36e6594f9e3b9570d6a7cf7a6e99bae76d43e794a739a0f25cdf9abe6c8133f2590479b
7
+ data.tar.gz: ee5fc9ec537d3364a0e0efe3bdd01813e7d99b263fb4d8e5f62f98403a418be626c89b867dc46ee8553aed71291d8dc60eda509067f08cfdac1a5b4bf053be7e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## Rails 4.1.16.rc1 (July 01, 2016) ##
2
+
3
+ * Do not run `bundle install` when generating a new plugin.
4
+
5
+ Since bundler 1.12.0, the gemspec is validated so the `bundle install`
6
+ command will fail just after the gem is created causing confusion to the
7
+ users. This change was a bug fix to correctly validate gemspecs.
8
+
9
+ *Rafael Mendonça França*
10
+
11
+ * Reading name and email from git for plugin gemspec.
12
+
13
+ Fixes #9589.
14
+
15
+ *Arun Agrawal*, *Abd ar-Rahman Hamidi*, *Roman Shmatov*
16
+
17
+
1
18
  ## Rails 4.1.15 (March 07, 2016) ##
2
19
 
3
20
  * No changes.
@@ -7,8 +7,8 @@ module Rails
7
7
  module VERSION
8
8
  MAJOR = 4
9
9
  MINOR = 1
10
- TINY = 15
11
- PRE = nil
10
+ TINY = 16
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -112,6 +112,7 @@ module Rails
112
112
  jbuilder_gemfile_entry,
113
113
  sdoc_gemfile_entry,
114
114
  spring_gemfile_entry,
115
+ mime_type_gemfile_entry,
115
116
  @extra_entries].flatten.find_all(&@gem_filter)
116
117
  end
117
118
 
@@ -310,6 +311,12 @@ module Rails
310
311
  GemfileEntry.new('spring', nil, comment, group: :development)
311
312
  end
312
313
 
314
+ def mime_type_gemfile_entry
315
+ return [] unless RUBY_VERSION < '2'
316
+
317
+ GemfileEntry.new('mime-types', '< 3', nil, require: false)
318
+ end
319
+
313
320
  def bundle_command(command)
314
321
  say_status :run, "bundle #{command}"
315
322
 
@@ -241,7 +241,7 @@ task default: :test
241
241
  build(:leftovers)
242
242
  end
243
243
 
244
- public_task :apply_rails_template, :run_bundle
244
+ public_task :apply_rails_template
245
245
 
246
246
  def name
247
247
  @name ||= begin
@@ -288,6 +288,10 @@ task default: :test
288
288
  options[:mountable]
289
289
  end
290
290
 
291
+ def skip_git?
292
+ options[:skip_git]
293
+ end
294
+
291
295
  def with_dummy_app?
292
296
  options[:skip_test_unit].blank? || options[:dummy_path] != 'test/dummy'
293
297
  end
@@ -304,6 +308,26 @@ task default: :test
304
308
  @camelized ||= name.gsub(/\W/, '_').squeeze('_').camelize
305
309
  end
306
310
 
311
+ def author
312
+ default = "TODO: Write your name"
313
+ if skip_git?
314
+ @author = default
315
+ else
316
+ @author = `git config user.name`.chomp rescue default
317
+ end
318
+ @author
319
+ end
320
+
321
+ def email
322
+ default = "TODO: Write your email address"
323
+ if skip_git?
324
+ @email = default
325
+ else
326
+ @email = `git config user.email`.chomp rescue default
327
+ end
328
+ @email
329
+ end
330
+
307
331
  def valid_const?
308
332
  if original_name =~ /[^0-9a-zA-Z_]+/
309
333
  raise Error, "Invalid plugin name #{original_name}. Please give a name which use only alphabetic or numeric or \"_\" characters."
@@ -7,8 +7,8 @@ require "<%= name %>/version"
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "<%= name %>"
9
9
  s.version = <%= camelized %>::VERSION
10
- s.authors = ["TODO: Your name"]
11
- s.email = ["TODO: Your email"]
10
+ s.authors = ["<%= author %>"]
11
+ s.email = ["<%= email %>"]
12
12
  s.homepage = "TODO"
13
13
  s.summary = "TODO: Summary of <%= camelized %>."
14
14
  s.description = "TODO: Description of <%= camelized %>."
@@ -1,4 +1,4 @@
1
- Copyright <%= Date.today.year %> YOURNAME
1
+ Copyright <%= Date.today.year %> <%= author %>
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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.15
4
+ version: 4.1.16.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: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2016-07-02 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.15
19
+ version: 4.1.16.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.15
26
+ version: 4.1.16.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.15
33
+ version: 4.1.16.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.15
40
+ version: 4.1.16.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.15
81
+ version: 4.1.16.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.15
88
+ version: 4.1.16.rc1
89
89
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
90
90
  email: david@loudthinking.com
91
91
  executables:
@@ -349,12 +349,12 @@ 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: '0'
354
+ version: 1.3.1
355
355
  requirements: []
356
356
  rubyforge_project:
357
- rubygems_version: 2.5.1
357
+ rubygems_version: 2.6.6
358
358
  signing_key:
359
359
  specification_version: 4
360
360
  summary: Tools for creating, working with, and running Rails applications.