super_stamper 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- Easily add a header recursively to multiple files in your project directory.
7
+ Easily add a header (such as a copyright notice or license) recursively to multiple files in your project directory.
8
8
 
9
9
  == FEATURES/PROBLEMS:
10
10
 
@@ -14,6 +14,8 @@ This program removes any magic encoding lines such as these:
14
14
 
15
15
  After running super_stamper, you might want to run magic_encoding again.
16
16
 
17
+ If you use Rails, any plugin files (for example, in the vendor dir) will also be stamped.
18
+
17
19
  == SYNOPSIS:
18
20
 
19
21
  1. Create a file called 'header.txt' in your project dir
@@ -12,7 +12,7 @@ module SuperStamper
12
12
 
13
13
  parser = OptionParser.new do |opts|
14
14
  opts.banner = <<-BANNER.gsub(/^ /,'')
15
- Easily add a header recursively to multiple files in your project directory.
15
+ Easily add a header (such as a copyright notice or license) recursively to multiple files in your project directory.
16
16
 
17
17
  Usage: #{File.basename($0)} [options]
18
18
 
data/lib/super_stamper.rb CHANGED
@@ -5,7 +5,7 @@ $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname
5
5
 
6
6
  module SuperStamper
7
7
  # a version constant
8
- VERSION = '0.0.2'
8
+ VERSION = '0.0.3'
9
9
  # a class
10
10
  class Base
11
11
  BEGIN_HEADER = "# -- begin header --"
@@ -50,7 +50,7 @@ module SuperStamper
50
50
  # Let's remove the magic_encoding at the start, if any.
51
51
  str.gsub!(/^# -\*-.+-\*-(\r)?#{NEWLINE}/, '')
52
52
  # and now .. do this.
53
- contents_array = [ BEGIN_HEADER, NEWLINE, header, NEWLINE, END_HEADER, NEWLINE ]
53
+ contents_array = [ BEGIN_HEADER, NEWLINE, header, END_HEADER, NEWLINE ]
54
54
  contents_str = contents_array.to_s
55
55
  # Remove the header that was already in place, if any.
56
56
  str.gsub!(/#{BEGIN_HEADER}.*#{END_HEADER}#{NEWLINE}/m, '')
@@ -70,4 +70,4 @@ module SuperStamper
70
70
  ret
71
71
  end
72
72
  end
73
- end
73
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_stamper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Commander Johnson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-01 00:00:00 Z
18
+ date: 2011-10-13 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: hoe
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: "2.12"
33
33
  type: :development
34
34
  version_requirements: *id001
35
- description: Easily add a header recursively to multiple files in your project directory.
35
+ description: Easily add a header (such as a copyright notice or license) recursively to multiple files in your project directory.
36
36
  email:
37
37
  - commanderjohnson@gmail.com
38
38
  executables:
@@ -97,7 +97,7 @@ rubyforge_project: super_stamper
97
97
  rubygems_version: 1.8.10
98
98
  signing_key:
99
99
  specification_version: 3
100
- summary: Easily add a header recursively to multiple files in your project directory.
100
+ summary: Easily add a header (such as a copyright notice or license) recursively to multiple files in your project directory.
101
101
  test_files:
102
102
  - test/test_super_stamper.rb
103
103
  - test/test_helper.rb