diffy 2.1.1 → 2.1.2

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.

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