railties 4.1.15 → 4.1.16.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 +17 -0
- data/lib/rails/gem_version.rb +2 -2
- data/lib/rails/generators/app_base.rb +7 -0
- data/lib/rails/generators/rails/plugin/plugin_generator.rb +25 -1
- data/lib/rails/generators/rails/plugin/templates/%name%.gemspec +2 -2
- data/lib/rails/generators/rails/plugin/templates/MIT-LICENSE +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e2989e958eea611c8b76d6b5ca8f6271a0a607b
|
4
|
+
data.tar.gz: 6a85a7168318d9eb62f67969c5003274239e928b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/rails/gem_version.rb
CHANGED
@@ -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
|
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 = ["
|
11
|
-
s.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 %>."
|
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.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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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:
|
354
|
+
version: 1.3.1
|
355
355
|
requirements: []
|
356
356
|
rubyforge_project:
|
357
|
-
rubygems_version: 2.
|
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.
|