pretty-diff 0.1.3 → 0.1.4
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/VERSION +1 -1
- data/lib/pretty-diff.rb +5 -1
- data/pretty-diff.gemspec +3 -3
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/pretty-diff.rb
CHANGED
@@ -57,7 +57,8 @@ module PrettyDiff
|
|
57
57
|
:remove_leading_file_lines => false,
|
58
58
|
:as_list_items => true,
|
59
59
|
:list_style => 'ul',
|
60
|
-
:no_newline_warning => false
|
60
|
+
:no_newline_warning => false,
|
61
|
+
:fake_tab => 4
|
61
62
|
}
|
62
63
|
|
63
64
|
@options = defaults.merge options
|
@@ -89,6 +90,9 @@ module PrettyDiff
|
|
89
90
|
line = line.gsub(/\A./, '') if @options[:remove_signs]
|
90
91
|
line = "<#{tag}>#{line.gsub(/\s/,' ')}</#{tag}>"
|
91
92
|
end
|
93
|
+
if @options[:fake_tab]
|
94
|
+
line = link.gsub(/\t/, ' ' * @options[:fake_tab])
|
95
|
+
end
|
92
96
|
if @options[:as_list_items]
|
93
97
|
line = "<li#{ " class=\"#{tag}\"" if tag }>#{line}</li>"
|
94
98
|
end
|
data/pretty-diff.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{pretty-diff}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["atom smith"]
|
12
|
-
s.date = %q{2011-02-
|
12
|
+
s.date = %q{2011-02-18}
|
13
13
|
s.description = %q{Uses the unix diff utility to create pretty html diffs from two files or two strings.}
|
14
14
|
s.email = %q{re5etsmyth@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.homepage = %q{http://github.com/re5et/pretty-diff}
|
33
33
|
s.licenses = ["MIT"]
|
34
34
|
s.require_paths = ["lib"]
|
35
|
-
s.rubygems_version = %q{1.5.
|
35
|
+
s.rubygems_version = %q{1.5.2}
|
36
36
|
s.summary = %q{Creates pretty html diffs of two files or two strings}
|
37
37
|
s.test_files = [
|
38
38
|
"test/helper.rb",
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: pretty-diff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- atom smith
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-02-
|
13
|
+
date: 2011-02-18 00:00:00 -08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
93
93
|
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
hash:
|
95
|
+
hash: -2090837898479698280
|
96
96
|
segments:
|
97
97
|
- 0
|
98
98
|
version: "0"
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
requirements: []
|
106
106
|
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 1.5.
|
108
|
+
rubygems_version: 1.5.2
|
109
109
|
signing_key:
|
110
110
|
specification_version: 3
|
111
111
|
summary: Creates pretty html diffs of two files or two strings
|