pretty_diff 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/pretty_diff/diff.rb +3 -4
- data/pretty_diff.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d96db176c50639a2ce7788d3a8fd2bec416ed3a5
|
4
|
+
data.tar.gz: 718d0bac629504a4586829d404f1c1312df7c675
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 991110954aca9095aa2c4aa85221f0be10d785e931f12e9b3170d3e04b0c6b18a8c4cb5f2a9bda2bacc742e4afc57dbbe298a90d1a4a0a5ceb3d578010b0fa3a
|
7
|
+
data.tar.gz: 7da6f08d9c9f69cd971653d8a75f8bd829da17fbe20c1dbadc4f144b2f0cbeb5b79547c2af7db77b0d81cd6846aa0a8e177a4d3a9000c19ad2559111084a743f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.2
|
data/lib/pretty_diff/diff.rb
CHANGED
@@ -13,7 +13,7 @@ module PrettyDiff
|
|
13
13
|
class Diff
|
14
14
|
CHUNK_REGEXP = /^@@ .+? @@.*\n?$/
|
15
15
|
|
16
|
-
attr_reader :unified_diff, :generator, :out_encoding
|
16
|
+
attr_reader :unified_diff, :generator, :out_encoding, :options
|
17
17
|
|
18
18
|
#
|
19
19
|
# Create new Diff object.
|
@@ -24,10 +24,9 @@ module PrettyDiff
|
|
24
24
|
#
|
25
25
|
def initialize(unified_diff, options={})
|
26
26
|
@unified_diff = unified_diff
|
27
|
-
@
|
28
|
-
@out_encoding =
|
29
|
-
@generator = validate_generator( options[:generator] || BasicGenerator )
|
27
|
+
@generator = validate_generator(options[:generator] || BasicGenerator)
|
30
28
|
@out_encoding = options[:out_encoding] || 'utf-8'
|
29
|
+
@options = options
|
31
30
|
end
|
32
31
|
|
33
32
|
def metadata
|
data/pretty_diff.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "pretty_diff"
|
8
|
-
s.version = "2.1.
|
8
|
+
s.version = "2.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ilya Sabanin"]
|
12
|
-
s.date = "2014-02-
|
12
|
+
s.date = "2014-02-24"
|
13
13
|
s.description = "PrettyDiff is a highly customizable library for creating fully featured HTML\n listings out of unified diff format strings.\n Include copy/paste-safe line numbers and built-in syntax highlighting."
|
14
14
|
s.email = "ilya.sabanin@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pretty_diff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Sabanin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: charlock_holmes
|