diffy 2.1.2 → 2.1.3

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.

data/CONTRIBUTORS CHANGED
@@ -3,3 +3,4 @@
3
3
  * chaffeqa
4
4
  * Lincoln Ritter
5
5
  * Bernhard Weichel
6
+ * Yuichi Tateno
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.2
1
+ 2.1.3
data/diffy.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "diffy"
8
- s.version = "2.1.2"
8
+ s.version = "2.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sam Goldstein"]
data/lib/diffy/diff.rb CHANGED
@@ -72,7 +72,7 @@ module Diffy
72
72
  if block_given?
73
73
  lines.each{|line| yield line}
74
74
  else
75
- Enumerable::Enumerator.new(lines)
75
+ lines.to_enum
76
76
  end
77
77
  end
78
78
 
data/spec/diffy_spec.rb CHANGED
@@ -82,7 +82,6 @@ describe Diffy::Diff do
82
82
  describe "options[:context]" do
83
83
  it "should limit context lines to 1" do
84
84
  diff = Diffy::Diff.new("foo\nfoo\nBAR\nbang\nbaz", "foo\nfoo\nbar\nbang\nbaz", :context => 1)
85
- puts diff
86
85
  diff.to_s.should == <<-DIFF
87
86
  foo
88
87
  -BAR
metadata CHANGED
@@ -1,63 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: diffy
3
- version: !ruby/object:Gem::Version
4
- hash: 15
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.3
5
5
  prerelease:
6
- segments:
7
- - 2
8
- - 1
9
- - 2
10
- version: 2.1.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Sam Goldstein
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-12-28 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-12-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: !ruby/object:Gem::Requirement
22
17
  none: false
23
- requirements:
18
+ requirements:
24
19
  - - ~>
25
- - !ruby/object:Gem::Version
26
- hash: 3
27
- segments:
28
- - 2
29
- - 0
30
- version: "2.0"
31
- version_requirements: *id001
32
- name: rspec
33
- prerelease: false
20
+ - !ruby/object:Gem::Version
21
+ version: '2.0'
34
22
  type: :development
35
- - !ruby/object:Gem::Dependency
36
- requirement: &id002 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
37
25
  none: false
38
- requirements:
26
+ requirements:
39
27
  - - ~>
40
- - !ruby/object:Gem::Version
41
- hash: 63
42
- segments:
43
- - 0
44
- - 9
45
- - 2
46
- version: 0.9.2
47
- version_requirements: *id002
28
+ - !ruby/object:Gem::Version
29
+ version: '2.0'
30
+ - !ruby/object:Gem::Dependency
48
31
  name: rake
49
- prerelease: false
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 0.9.2
50
38
  type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.9.2
51
46
  description: Convenient diffing in ruby
52
47
  email: sgrock@gmail.com
53
48
  executables: []
54
-
55
49
  extensions: []
56
-
57
- extra_rdoc_files:
50
+ extra_rdoc_files:
58
51
  - LICENSE
59
52
  - README.md
60
- files:
53
+ files:
61
54
  - .rspec
62
55
  - .travis.yml
63
56
  - CHANGELOG
@@ -77,37 +70,28 @@ files:
77
70
  - spec/diffy_spec.rb
78
71
  homepage: http://github.com/samg/diffy/tree/master
79
72
  licenses: []
80
-
81
73
  post_install_message:
82
- rdoc_options:
74
+ rdoc_options:
83
75
  - --inline-source
84
76
  - --charset=UTF-8
85
- require_paths:
77
+ require_paths:
86
78
  - lib
87
- required_ruby_version: !ruby/object:Gem::Requirement
79
+ required_ruby_version: !ruby/object:Gem::Requirement
88
80
  none: false
89
- requirements:
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- hash: 3
93
- segments:
94
- - 0
95
- version: "0"
96
- required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ! '>='
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
86
  none: false
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- hash: 3
102
- segments:
103
- - 0
104
- version: "0"
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
105
91
  requirements: []
106
-
107
92
  rubyforge_project:
108
93
  rubygems_version: 1.8.24
109
94
  signing_key:
110
95
  specification_version: 3
111
96
  summary: A convenient way to diff string in ruby
112
97
  test_files: []
113
-