magic_frozen_string_literal 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +2 -2
- data/lib/add_magic_comment.rb +2 -0
- metadata +16 -3
- data/CHANGELOG +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cc218e8ed019adeb44ec55707d070d919910ff9
|
4
|
+
data.tar.gz: 508018b7728a2ed542bd84e140233c889edd9dbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67cc158ee216847d3bcedc1ef1dd7fd93b5665f5c9c17fe928c27a5a189652862662cf0ce12dcf5ed1237319f3fb42fe5bf2aa9f7b27fe57ef74e0e653cd3930
|
7
|
+
data.tar.gz: f033fe0afc62e06bda1fd2075b390ca1cddd78a7561ab141064f87427cf93808a12d6750fa5552f07b28e3150d973d1d821ab42956e7bbd0828dcc14493b1db1
|
data/README.rdoc
CHANGED
@@ -17,7 +17,7 @@ Run the tool from the command line:
|
|
17
17
|
|
18
18
|
magic_frozen_string_literal <directory>
|
19
19
|
|
20
|
-
this will prepend every "*.rb", "
|
20
|
+
this will prepend every "Rakefile", "Gemfile", "*.rb", "*.ru", "*.rake", "*.rabl", "*.jbuilder", "*.haml", "*.slim" file in the given <directory> (recursively)
|
21
21
|
with the following magic comment followed by a blank line:
|
22
22
|
|
23
23
|
# frozen_string_literal: true
|
@@ -31,4 +31,4 @@ Notes:
|
|
31
31
|
- existing +frozen_string_literal+ magic comments are replaced
|
32
32
|
- the rest of the file remains unchanged
|
33
33
|
- empty files are not touched
|
34
|
-
- if the file starts with #! (shebang) that line is preserved and the magic comment
|
34
|
+
- if the file starts with #! (shebang), that line is preserved and the magic comment is added just below it
|
data/lib/add_magic_comment.rb
CHANGED
@@ -11,6 +11,8 @@ module AddMagicComment
|
|
11
11
|
|
12
12
|
EXTENSION_COMMENTS = {
|
13
13
|
"*.rb" => "# #{MAGIC_COMMENT}\n\n",
|
14
|
+
"*.ru" => "# #{MAGIC_COMMENT}\n\n",
|
15
|
+
"Gemfile" => "# #{MAGIC_COMMENT}\n\n",
|
14
16
|
"Rakefile" => "# #{MAGIC_COMMENT}\n\n",
|
15
17
|
"*.rake" => "# #{MAGIC_COMMENT}\n\n",
|
16
18
|
"*.rabl" => "# #{MAGIC_COMMENT}\n\n",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magic_frozen_string_literal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Kelley after Jared Roesch after Manuel Ryan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec-core
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.8'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.8'
|
41
55
|
description:
|
42
56
|
email:
|
43
57
|
- colin@invoca.com
|
@@ -46,7 +60,6 @@ executables:
|
|
46
60
|
extensions: []
|
47
61
|
extra_rdoc_files: []
|
48
62
|
files:
|
49
|
-
- CHANGELOG
|
50
63
|
- LICENCE
|
51
64
|
- README.rdoc
|
52
65
|
- bin/magic_frozen_string_literal
|