di 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/HISTORY +7 -0
  2. data/README.rdoc +1 -1
  3. data/di.gemspec +6 -11
  4. data/lib/di.rb +4 -4
  5. metadata +7 -10
data/HISTORY CHANGED
@@ -1,3 +1,10 @@
1
+ == 0.2.1 2011-08-04
2
+
3
+ * Make the regexp pattern used for --ignore-cvs-lines more specific so
4
+ it does not misfire on Perl scripts.
5
+
6
+ * Disable --pager on Ruby 1.9, which currently stalls.
7
+
1
8
  == 0.2.0 2011-05-09
2
9
 
3
10
  * Update the default exclude pattern list:
@@ -72,6 +72,6 @@ Or just install lib/di.rb as "di" to a directory in your PATH.
72
72
 
73
73
  == COPYRIGHT:
74
74
 
75
- Copyright (c) 2008, 2009, 2010 Akinori MUSHA
75
+ Copyright (c) 2008, 2009, 2010, 2011 Akinori MUSHA
76
76
 
77
77
  See LICENSE for license terms.
data/di.gemspec CHANGED
@@ -5,17 +5,16 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{di}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Akinori MUSHA"]
12
- s.date = %q{2011-05-09}
13
- s.default_executable = %q{di}
11
+ s.authors = [%q{Akinori MUSHA}]
12
+ s.date = %q{2011-08-04}
14
13
  s.description = %q{The di(1) command wraps around GNU diff(1) to provide reasonable
15
14
  default settings and some original features.
16
15
  }
17
16
  s.email = %q{knu@idaemons.org}
18
- s.executables = ["di"]
17
+ s.executables = [%q{di}]
19
18
  s.extra_rdoc_files = [
20
19
  "LICENSE",
21
20
  "README.rdoc"
@@ -33,14 +32,10 @@ default settings and some original features.
33
32
  "test/test_di.rb"
34
33
  ]
35
34
  s.homepage = %q{http://github.com/knu/di}
36
- s.require_paths = ["lib"]
35
+ s.require_paths = [%q{lib}]
37
36
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
38
- s.rubygems_version = %q{1.6.2}
37
+ s.rubygems_version = %q{1.8.5}
39
38
  s.summary = %q{A wrapper around GNU diff(1)}
40
- s.test_files = [
41
- "test/helper.rb",
42
- "test/test_di.rb"
43
- ]
44
39
 
45
40
  if s.respond_to? :specification_version then
46
41
  s.specification_version = 3
data/lib/di.rb CHANGED
@@ -28,7 +28,7 @@
28
28
  # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29
29
  # SUCH DAMAGE.
30
30
 
31
- MYVERSION = "0.2.0"
31
+ MYVERSION = "0.2.1"
32
32
  MYNAME = File.basename($0)
33
33
  MYCOPYRIGHT = "Copyright (c) 2008, 2009, 2010, 2011 Akinori MUSHA"
34
34
 
@@ -116,7 +116,7 @@ usage: #{MYNAME} [flags] [files]
116
116
 
117
117
  opts.on('--[no-]pager',
118
118
  'Pipe output into pager if stdout is a terminal. [!][*]') { |val|
119
- $diff.use_pager = val if $stdout.tty?
119
+ $diff.use_pager = val if $stdout.tty? && RUBY_VERSION < "1.9"
120
120
  }
121
121
  opts.on('--[no-]color',
122
122
  'Colorize output if stdout is a terminal and the format is unified or context. [!][*]') { |val|
@@ -131,7 +131,7 @@ usage: #{MYNAME} [flags] [files]
131
131
  $diff.rsync_exclude = val
132
132
  }
133
133
  opts.on('--[no-]ignore-cvs-lines',
134
- 'Ignore CVS keyword lines. [!][*]') { |val|
134
+ 'Ignore CVS/RCS keyword lines. [!][*]') { |val|
135
135
  $diff.ignore_cvs_lines = val
136
136
  }
137
137
  opts.on('--[no-]fignore-exclude',
@@ -406,7 +406,7 @@ EOS
406
406
  }
407
407
 
408
408
  if $diff.ignore_cvs_lines
409
- opts.parse('--ignore-matching-lines="^[^\x1b]*\$[A-Z][A-Za-z0-9][A-Za-z0-9]*\(:.*\)\{0,1\}\$')
409
+ opts.parse('-I', '\$\(LastChanged\(Date\|Revision\|By\)\|Date\|Revision\|Rev\|Author\|HeadURL\|URL\|Id\|Header\|\(Free\|Net\|Open\)BSD\|Name\|Locker\|Log\|RCSfile\|Source\|State\)\(\|: .* \|:: .*[ #]\)\$')
410
410
  end
411
411
  rescue OptionParser::ParseError => e
412
412
  warn e, "Try `#{MYNAME} --help' for more information."
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: di
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Akinori MUSHA
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-09 00:00:00 +09:00
19
- default_executable: di
18
+ date: 2011-08-04 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: thoughtbot-shoulda
@@ -55,7 +54,6 @@ files:
55
54
  - lib/di.rb
56
55
  - test/helper.rb
57
56
  - test/test_di.rb
58
- has_rdoc: true
59
57
  homepage: http://github.com/knu/di
60
58
  licenses: []
61
59
 
@@ -87,10 +85,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
85
  requirements: []
88
86
 
89
87
  rubyforge_project:
90
- rubygems_version: 1.6.2
88
+ rubygems_version: 1.8.5
91
89
  signing_key:
92
90
  specification_version: 3
93
91
  summary: A wrapper around GNU diff(1)
94
- test_files:
95
- - test/helper.rb
96
- - test/test_di.rb
92
+ test_files: []
93
+