diffy 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of diffy might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb3152afec5714e6d4d53141e64f7b38ff4d5d56
4
- data.tar.gz: b62571f6f39522143e47dcd050a6d14ab58b8a24
3
+ metadata.gz: 8126b4d4207609139dafef922f5ac9079dbe775b
4
+ data.tar.gz: 9b7eb9af119aed244cf82e9caa2bc89340ac8f27
5
5
  SHA512:
6
- metadata.gz: 263e73f0eca76d22efa7e31642a04a5c1ace9141d19b5a0a82e5f8f99ca0e5ae9765c277533d45562fd0d60115133440d2df16c218e732e3d858a9b10fe8fbf4
7
- data.tar.gz: 56b3365be58e311517718a44bbf56561b61c1e82fb5538c55e667810e035c8a2004250dc98be655e4b13d6479d44c266cdc65cabee6af53979db89fddcd712c3
6
+ metadata.gz: b9a542ef87e8b5a4f7eaba863bb0cc6157d462e478153b3aa68fc0303fbd92367ec8fb8fe5a3ca215023d595164c97c7414355829c809deb511c96c5e614f60b
7
+ data.tar.gz: 0cd0450cda92e1c04283fa93122284abd027a9fe9ebffc86348228aa0c37c993781fa5faaf8cbe52e00cba1412f4100006e4873a3ba0bed11b3384dedefc921f
@@ -1,5 +1,6 @@
1
1
  language: ruby
2
2
  sudo: false
3
+ cache: bundler
3
4
  rvm:
4
5
  - 1.8.7
5
6
  - 1.9.3-p551
@@ -8,12 +9,7 @@ rvm:
8
9
  - 2.2.6
9
10
  - 2.3.3
10
11
  - 2.4.0
11
- - jruby-9.1.5.0
12
- - rbx
13
- - rbx-2
12
+ - jruby-9.1.12.0
14
13
  matrix:
15
14
  allow_failures:
16
15
  - rvm: 1.8.7
17
- - rvm: jruby-9.1.5.0
18
- - rvm: rbx
19
- - rvm: rbx-2
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ == 3.2.1 ==
2
+ Fix default options on alpine linux. Thanks @evgen!
1
3
  == 3.1.0 ==
2
4
  Side by side diffs. Thanks Runar Skaare Tveiten!
3
5
 
@@ -11,3 +11,4 @@
11
11
  * JasonBarnabe
12
12
  * Skye Shaw
13
13
  * Abinoam P. Marques Jr.
14
+ * evgen
data/Gemfile CHANGED
@@ -4,4 +4,4 @@ platforms :rbx do
4
4
  gem 'rubysl', '~> 2.0'
5
5
  end
6
6
 
7
- gemspec
7
+ gemspec
data/README.md CHANGED
@@ -24,11 +24,11 @@ A default format can be set like so:
24
24
  Installation
25
25
  ------------
26
26
 
27
- ###on Unix
27
+ ### on Unix
28
28
 
29
29
  gem install diffy
30
30
 
31
- ###on Windows:
31
+ ### on Windows:
32
32
 
33
33
  1. Ensure that you have a working `diff` on your machine and in your search path.
34
34
 
@@ -213,7 +213,7 @@ You can diff files instead of strings by using the `:source` option.
213
213
  ### Full Diff Output
214
214
 
215
215
  By default Diffy removes the superfluous diff output. This is because its
216
- default is to show the complete diff'ed file (`diff -U 10000` is the default).
216
+ default is to show the complete diff'ed file (`diff -U10000` is the default).
217
217
 
218
218
  Diffy does support full output, just use the `:include_diff_info => true`
219
219
  option when initializing:
@@ -270,7 +270,7 @@ file).
270
270
  ### Overriding the command line options passed to diff.
271
271
 
272
272
  You can use the `:diff` option to override the command line options that are
273
- passed to unix diff. They default to `-U 10000`. This option will noop if
273
+ passed to unix diff. They default to `-U10000`. This option will noop if
274
274
  combined with the `:context` option.
275
275
 
276
276
  >> puts Diffy::Diff.new(" foo\nbar\n", "foo\nbar\n", :diff => "-w")
@@ -285,9 +285,9 @@ You can set the default options for new `Diffy::Diff`s using the
285
285
  Options passed to `Diffy::Diff.new` will be merged into the default options.
286
286
 
287
287
  >> Diffy::Diff.default_options
288
- => {:diff=>"-U 10000", :source=>"strings", :include_diff_info=>false, :include_plus_and_minus_in_html=>false}
288
+ => {:diff=>"-U10000", :source=>"strings", :include_diff_info=>false, :include_plus_and_minus_in_html=>false}
289
289
  >> Diffy::Diff.default_options.merge!(:source => 'files')
290
- => {:diff=>"-U 10000", :source=>"files", :include_diff_info=>false, :include_plus_and_minus_in_html=>false}
290
+ => {:diff=>"-U10000", :source=>"files", :include_diff_info=>false, :include_plus_and_minus_in_html=>false}
291
291
 
292
292
 
293
293
  Custom Formats
@@ -20,4 +20,4 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "rake"
22
22
  spec.add_development_dependency "rspec"
23
- end
23
+ end
@@ -1,7 +1,7 @@
1
1
  module Diffy
2
2
  class Diff
3
3
  ORIGINAL_DEFAULT_OPTIONS = {
4
- :diff => '-U 10000',
4
+ :diff => '-U10000',
5
5
  :source => 'strings',
6
6
  :include_diff_info => false,
7
7
  :include_plus_and_minus_in_html => false,
@@ -3,7 +3,7 @@ module Diffy
3
3
  # ANSI color output suitable for terminal output
4
4
  def color
5
5
  map do |line|
6
- case line
6
+ case line
7
7
  when /^(---|\+\+\+|\\\\)/
8
8
  "\033[90m#{line.chomp}\033[0m"
9
9
  when /^\+/
@@ -1,3 +1,3 @@
1
1
  module Diffy
2
- VERSION = '3.2.0'
2
+ VERSION = '3.2.1'
3
3
  end
@@ -590,7 +590,7 @@ end
590
590
 
591
591
  describe Diffy::SplitDiff do
592
592
  before do
593
- ::Diffy::Diff.default_options.merge!(:diff => '-U 10000')
593
+ ::Diffy::Diff.default_options.merge!(:diff => '-U10000')
594
594
  end
595
595
 
596
596
  it "should fail with invalid format" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diffy
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Goldstein
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-11 00:00:00.000000000 Z
11
+ date: 2018-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.5.1
87
+ rubygems_version: 2.6.11
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: A convenient way to diff string in ruby