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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3df70faa6113ac924784cf30246325b7405baed6
4
- data.tar.gz: 560ebc7345d0e846ff3679cf7693b2983bea2e01
3
+ metadata.gz: d96db176c50639a2ce7788d3a8fd2bec416ed3a5
4
+ data.tar.gz: 718d0bac629504a4586829d404f1c1312df7c675
5
5
  SHA512:
6
- metadata.gz: 456d2fd936bfaedd4dc8b09c8310dcb9c29b9c7236a381de1bcb6738c14b2fb080e7fc24165d7c57af2cff02d6a13c005db18c470197906e303d321126d1d751
7
- data.tar.gz: c936cc60b3be9650b83dcc675e9e482c14d40716e3f24828433e3f3554841fe9e98864532bffb8699886763d4e7b857e2e3703a5fb7e77d6bd371a33a82edfa8
6
+ metadata.gz: 991110954aca9095aa2c4aa85221f0be10d785e931f12e9b3170d3e04b0c6b18a8c4cb5f2a9bda2bacc742e4afc57dbbe298a90d1a4a0a5ceb3d578010b0fa3a
7
+ data.tar.gz: 7da6f08d9c9f69cd971653d8a75f8bd829da17fbe20c1dbadc4f144b2f0cbeb5b79547c2af7db77b0d81cd6846aa0a8e177a4d3a9000c19ad2559111084a743f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.1.2
@@ -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
- @options = options
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.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-21"
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.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-21 00:00:00.000000000 Z
11
+ date: 2014-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: charlock_holmes