pretty_diff 2.1.3 → 2.1.4

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: ae29c6c794c6c58e1c62cc7bbba4505aa317f65b
4
- data.tar.gz: 7a053aa2276d927350ff6c91d099740dfbab105c
3
+ metadata.gz: d8f70aa67e5fe45ec2ec96368f29f6d868ed2336
4
+ data.tar.gz: 5c1946edb48ceb1b7c885f2722fa603d492d7e21
5
5
  SHA512:
6
- metadata.gz: 6784dc5c658d2299e4b78150e7099a091d0a87590abefac37aef5f3bc7fe517a8e52e800c278722335ddca5348b5fb346c263c36d6a15f6db0a1bd3a5d8d6e62
7
- data.tar.gz: 0427a8b0eeaba442360c7d66de38c1c4151fbb6bde6b2191a6c8be84e163bb8112c226713530a40b497abb612ffad786c4734964c5a27833de5b80573e12bc75
6
+ metadata.gz: 2b7af032d55fc70a3f6de12a9af396313bcad9f95b199d2d6b997c87bb61e5e60f5388cbcb1bb4c6d8b9346540824001c3308dcad9156df7f9c864ef2c74f521
7
+ data.tar.gz: 5eff8786b5edfeebb8a65174b42aca2c841d419eda4a3a2274a74861b07aebf34b0569588465a0f1b4e3cf5a2f9fb888792ebdb02e63fe4f11e642b2e5021635
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.3
1
+ 2.1.4
@@ -17,6 +17,10 @@ module PrettyDiff
17
17
 
18
18
  def wdiff(lines)
19
19
  PrettyDiff::WordDiffFinder.find_word_diffs(lines)
20
+
21
+ rescue StandardError
22
+ # Screw per-word diffing, let's at least render the diff.
23
+ lines
20
24
  end
21
25
 
22
26
  def find_lines
data/pretty_diff.gemspec CHANGED
@@ -2,16 +2,18 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: pretty_diff 2.1.4 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
- s.name = "pretty_diff"
8
- s.version = "2.1.3"
8
+ s.name = "pretty_diff".freeze
9
+ s.version = "2.1.4"
9
10
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Ilya Sabanin"]
12
- s.date = "2014-04-22"
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
- s.email = "ilya.sabanin@gmail.com"
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Ilya Sabanin".freeze]
14
+ s.date = "2016-09-14"
15
+ 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.".freeze
16
+ s.email = "ilya.sabanin@gmail.com".freeze
15
17
  s.extra_rdoc_files = [
16
18
  "LICENSE",
17
19
  "README.rdoc"
@@ -63,36 +65,35 @@ Gem::Specification.new do |s|
63
65
  "test/line_test.rb",
64
66
  "test/word_diff_finder_test.rb"
65
67
  ]
66
- s.homepage = "http://github.com/isabanin/pretty_diff"
67
- s.require_paths = ["lib"]
68
- s.rubygems_version = "2.0.3"
69
- s.summary = "Library for converting unified diff format into HTML listings."
68
+ s.homepage = "http://github.com/isabanin/pretty_diff".freeze
69
+ s.rubygems_version = "2.6.4".freeze
70
+ s.summary = "Library for converting unified diff format into HTML listings.".freeze
70
71
 
71
72
  if s.respond_to? :specification_version then
72
73
  s.specification_version = 4
73
74
 
74
75
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
75
- s.add_runtime_dependency(%q<charlock_holmes>, ["~> 0.6"])
76
- s.add_runtime_dependency(%q<levenshtein-ffi>, ["~> 1.0.3"])
77
- s.add_runtime_dependency(%q<diff_match_patch_native>, ["~> 1.0.2"])
78
- s.add_development_dependency(%q<jeweler>, [">= 0"])
79
- s.add_development_dependency(%q<builder>, [">= 0"])
80
- s.add_development_dependency(%q<turn>, [">= 0"])
76
+ s.add_runtime_dependency(%q<charlock_holmes>.freeze, ["~> 0.6"])
77
+ s.add_runtime_dependency(%q<levenshtein-ffi>.freeze, ["~> 1.0.3"])
78
+ s.add_runtime_dependency(%q<diff_match_patch_native>.freeze, ["~> 1.0.2"])
79
+ s.add_development_dependency(%q<jeweler>.freeze, [">= 0"])
80
+ s.add_development_dependency(%q<builder>.freeze, [">= 0"])
81
+ s.add_development_dependency(%q<turn>.freeze, [">= 0"])
81
82
  else
82
- s.add_dependency(%q<charlock_holmes>, ["~> 0.6"])
83
- s.add_dependency(%q<levenshtein-ffi>, ["~> 1.0.3"])
84
- s.add_dependency(%q<diff_match_patch_native>, ["~> 1.0.2"])
85
- s.add_dependency(%q<jeweler>, [">= 0"])
86
- s.add_dependency(%q<builder>, [">= 0"])
87
- s.add_dependency(%q<turn>, [">= 0"])
83
+ s.add_dependency(%q<charlock_holmes>.freeze, ["~> 0.6"])
84
+ s.add_dependency(%q<levenshtein-ffi>.freeze, ["~> 1.0.3"])
85
+ s.add_dependency(%q<diff_match_patch_native>.freeze, ["~> 1.0.2"])
86
+ s.add_dependency(%q<jeweler>.freeze, [">= 0"])
87
+ s.add_dependency(%q<builder>.freeze, [">= 0"])
88
+ s.add_dependency(%q<turn>.freeze, [">= 0"])
88
89
  end
89
90
  else
90
- s.add_dependency(%q<charlock_holmes>, ["~> 0.6"])
91
- s.add_dependency(%q<levenshtein-ffi>, ["~> 1.0.3"])
92
- s.add_dependency(%q<diff_match_patch_native>, ["~> 1.0.2"])
93
- s.add_dependency(%q<jeweler>, [">= 0"])
94
- s.add_dependency(%q<builder>, [">= 0"])
95
- s.add_dependency(%q<turn>, [">= 0"])
91
+ s.add_dependency(%q<charlock_holmes>.freeze, ["~> 0.6"])
92
+ s.add_dependency(%q<levenshtein-ffi>.freeze, ["~> 1.0.3"])
93
+ s.add_dependency(%q<diff_match_patch_native>.freeze, ["~> 1.0.2"])
94
+ s.add_dependency(%q<jeweler>.freeze, [">= 0"])
95
+ s.add_dependency(%q<builder>.freeze, [">= 0"])
96
+ s.add_dependency(%q<turn>.freeze, [">= 0"])
96
97
  end
97
98
  end
98
99
 
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.3
4
+ version: 2.1.4
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-04-22 00:00:00.000000000 Z
11
+ date: 2016-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: charlock_holmes
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  requirements: []
171
171
  rubyforge_project:
172
- rubygems_version: 2.0.3
172
+ rubygems_version: 2.6.4
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Library for converting unified diff format into HTML listings.