magic_pragma 0.0.1 → 0.0.2

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.
data/CHANGELOG CHANGED
File without changes
data/LICENCE CHANGED
File without changes
@@ -1,11 +1,11 @@
1
1
  = Magic pragma
2
2
 
3
3
  Magic Pragma is a little tool that allows you to quickly
4
- add or modify the "#pragma once" that indicate header file
4
+ add the "#pragma once" that indicate header file
5
5
  should only be included once, which is a common task for C++
6
6
  programmers, for an entire directory structure.
7
7
 
8
- (Manuel Ryan)[https://github.com/m-ryan] originally wrote the (magic_encoding)[https://github.com/m-ryan/magic_encoding]
8
+ Manuel Ryan originally wrote the magic_encoding(https://github.com/m-ryan/magic_encoding) gem
9
9
  to get rid of "invalid multibyte char (US-ASCII)" error of ruby.
10
10
  I thought, hey! This little tool should also be useful to C++ programmers like me!
11
11
  So I forked it, changed it, used it on my C++ projects. Hope you don't mind Ryan :)
@@ -30,7 +30,7 @@ Notes :
30
30
 
31
31
  you can pass options to the tool to specify the desired pragma (other than 'once') and the path where you want the tool to run, for example :
32
32
 
33
- magic_encoding auto_inline /path/to/cpp/project
33
+ magic_pragma auto_inline /path/to/cpp/project
34
34
 
35
35
  Thanks goes to Manuel Ryan for the original work.
36
36
 
File without changes
@@ -1,4 +1,4 @@
1
- # Easily add "#pragma once" to multiple ".h" and ".hpp" header files
1
+ # Easily add "#pragma once" to multiple ".h" and ".hpp" and ".hxx" header files
2
2
 
3
3
  module AddMagicComment
4
4
 
@@ -15,7 +15,7 @@ module AddMagicComment
15
15
  prefix = "#pragma #{pragma}\n"
16
16
 
17
17
  # TODO : add options for recursivity (and application of the script to a single file)
18
- rbfiles = File.join(directory ,"**", "*.{h,hpp}")
18
+ rbfiles = File.join(directory ,"**", "*.{h,hpp,hxx}")
19
19
  Dir.glob(rbfiles).each do |filename|
20
20
  file = File.new(filename, "r+")
21
21
 
metadata CHANGED
@@ -1,21 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_pragma
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 1
9
- version: 0.0.1
4
+ prerelease:
5
+ version: 0.0.2
10
6
  platform: ruby
11
7
  authors:
12
8
  - P.S.V.R
9
+ - Manuel Ryan
13
10
  autorequire:
14
11
  bindir: bin
15
12
  cert_chain: []
16
13
 
17
- date: 2011-08-11 00:00:00 +08:00
18
- default_executable: magic_pragma
14
+ date: 2011-08-11 00:00:00 Z
19
15
  dependencies: []
20
16
 
21
17
  description:
@@ -33,7 +29,6 @@ files:
33
29
  - README.rdoc
34
30
  - CHANGELOG
35
31
  - LICENCE
36
- has_rdoc: true
37
32
  homepage: http://github.com/pmq20/magic_pragma
38
33
  licenses: []
39
34
 
@@ -47,25 +42,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
47
42
  requirements:
48
43
  - - ">="
49
44
  - !ruby/object:Gem::Version
50
- segments:
51
- - 0
52
45
  version: "0"
53
46
  required_rubygems_version: !ruby/object:Gem::Requirement
54
47
  none: false
55
48
  requirements:
56
49
  - - ">="
57
50
  - !ruby/object:Gem::Version
58
- segments:
59
- - 1
60
- - 3
61
- - 6
62
51
  version: 1.3.6
63
52
  requirements: []
64
53
 
65
54
  rubyforge_project:
66
- rubygems_version: 1.3.7
55
+ rubygems_version: 1.8.15
67
56
  signing_key:
68
57
  specification_version: 3
69
- summary: Easily add "#pragma once" to multiple ".h" and ".hpp" header files
58
+ summary: Easily add "#pragma once" to multiple ".h" and ".hpp" and ".hxx" header files
70
59
  test_files: []
71
60
 
61
+ has_rdoc: