magic_frozen_string_literal 1.0.2 → 1.0.3

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: 7849ddcf3260bb9df23f55fc85805523b9af2a4f
4
- data.tar.gz: b078cd7183943c59dfd81a88b654af38c26f4945
3
+ metadata.gz: 5cc218e8ed019adeb44ec55707d070d919910ff9
4
+ data.tar.gz: 508018b7728a2ed542bd84e140233c889edd9dbb
5
5
  SHA512:
6
- metadata.gz: 4823bafa10df1f709b03049aee37fdc34779c46c35eecbf47f2659782c938a5e91799cdc94c3dd17306aab142c7257b8274a95d0293f8bdd484eacdbd83a646d
7
- data.tar.gz: 8d0ee00883154cac47817fc8344b3866db5865271557719c14fbeef2e47b89fb2d2fc550e8e543fe1a4f91e9389cb624b0ff742188d24490c9ddc559f1a7c35c
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", "Rakefile", "*.rake", "*.rabl", "*.jbuilder", "*.haml", "*.slim" file in the given <directory> (recursively)
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 will be added just below it
34
+ - if the file starts with #! (shebang), that line is preserved and the magic comment is added just below it
@@ -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.2
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: 2018-03-19 00:00:00.000000000 Z
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
data/CHANGELOG DELETED
@@ -1,8 +0,0 @@
1
- ## 0.0.1 (August 3, 2010)
2
-
3
- Initial Version
4
-
5
- ## 0.0.2 (August 3, 2010)
6
-
7
- Existing magic comments are now erased before the file is prepended with the desired magic comment
8
- Bugfixes