differ 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +38 -0
  2. data/VERSION.yml +1 -1
  3. data/differ.gemspec +63 -0
  4. data/lib/differ/diff.rb +2 -2
  5. metadata +33 -13
@@ -0,0 +1,38 @@
1
+ require 'rake'
2
+
3
+ begin
4
+ require 'jeweler'
5
+ Jeweler::Tasks.new do |gem|
6
+ gem.name = "differ"
7
+ gem.summary = "A simple gem for generating string diffs"
8
+ gem.email = "pvande@gmail.com"
9
+ gem.homepage = "http://github.com/pvande/differ"
10
+ gem.authors = [ "Pieter van de Bruggen" ]
11
+ end
12
+ rescue LoadError
13
+ puts "Jeweler not available. Install it with: gem install jeweler"
14
+ end
15
+
16
+ require 'rake/rdoctask'
17
+ Rake::RDocTask.new do |rdoc|
18
+ rdoc.rdoc_dir = 'rdoc'
19
+ rdoc.title = 'differ'
20
+ rdoc.options << '--line-numbers' << '--inline-source'
21
+ rdoc.rdoc_files.include('README*')
22
+ rdoc.rdoc_files.include('lib/**/*.rb')
23
+ end
24
+
25
+ require 'spec/rake/spectask'
26
+ Spec::Rake::SpecTask.new(:spec) do |spec|
27
+ spec.libs << 'lib' << 'spec'
28
+ spec.spec_files = FileList['spec/**/*_spec.rb']
29
+ end
30
+
31
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
32
+ spec.libs << 'lib' << 'spec'
33
+ spec.pattern = 'spec/**/*_spec.rb'
34
+ spec.rcov = true
35
+ end
36
+
37
+
38
+ task :default => :spec
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 1
2
+ :patch: 2
3
3
  :major: 0
4
4
  :minor: 1
@@ -0,0 +1,63 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{differ}
8
+ s.version = "0.1.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Pieter van de Bruggen"]
12
+ s.date = %q{2011-02-17}
13
+ s.email = %q{pvande@gmail.com}
14
+ s.extra_rdoc_files = [
15
+ "README.rdoc"
16
+ ]
17
+ s.files = [
18
+ "README.rdoc",
19
+ "Rakefile",
20
+ "VERSION.yml",
21
+ "differ.gemspec",
22
+ "lib/differ.rb",
23
+ "lib/differ/change.rb",
24
+ "lib/differ/diff.rb",
25
+ "lib/differ/format/ascii.rb",
26
+ "lib/differ/format/color.rb",
27
+ "lib/differ/format/html.rb",
28
+ "lib/differ/string.rb",
29
+ "spec/differ/change_spec.rb",
30
+ "spec/differ/diff_spec.rb",
31
+ "spec/differ/format/ascii_spec.rb",
32
+ "spec/differ/format/color_spec.rb",
33
+ "spec/differ/format/html_spec.rb",
34
+ "spec/differ/string_spec.rb",
35
+ "spec/differ_spec.rb",
36
+ "spec/spec_helper.rb"
37
+ ]
38
+ s.homepage = %q{http://github.com/pvande/differ}
39
+ s.require_paths = ["lib"]
40
+ s.rubygems_version = %q{1.3.7}
41
+ s.summary = %q{A simple gem for generating string diffs}
42
+ s.test_files = [
43
+ "spec/differ/change_spec.rb",
44
+ "spec/differ/diff_spec.rb",
45
+ "spec/differ/format/ascii_spec.rb",
46
+ "spec/differ/format/color_spec.rb",
47
+ "spec/differ/format/html_spec.rb",
48
+ "spec/differ/string_spec.rb",
49
+ "spec/differ_spec.rb",
50
+ "spec/spec_helper.rb"
51
+ ]
52
+
53
+ if s.respond_to? :specification_version then
54
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
55
+ s.specification_version = 3
56
+
57
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
58
+ else
59
+ end
60
+ else
61
+ end
62
+ end
63
+
@@ -68,7 +68,7 @@ module Differ
68
68
  end
69
69
 
70
70
  def to_s
71
- @raw.to_s
71
+ @raw.join()
72
72
  end
73
73
 
74
74
  def format_as(f)
@@ -92,4 +92,4 @@ module Differ
92
92
  "#{$;}"
93
93
  end
94
94
  end
95
- end
95
+ end
metadata CHANGED
@@ -1,15 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: differ
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ hash: 31
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 2
10
+ version: 0.1.2
5
11
  platform: ruby
6
12
  authors:
7
- - Pieter Vande Bruggen
13
+ - Pieter van de Bruggen
8
14
  autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-03-29 00:00:00 -07:00
18
+ date: 2011-02-17 00:00:00 -08:00
13
19
  default_executable:
14
20
  dependencies: []
15
21
 
@@ -23,14 +29,16 @@ extra_rdoc_files:
23
29
  - README.rdoc
24
30
  files:
25
31
  - README.rdoc
32
+ - Rakefile
26
33
  - VERSION.yml
34
+ - differ.gemspec
35
+ - lib/differ.rb
27
36
  - lib/differ/change.rb
28
37
  - lib/differ/diff.rb
29
38
  - lib/differ/format/ascii.rb
30
39
  - lib/differ/format/color.rb
31
40
  - lib/differ/format/html.rb
32
41
  - lib/differ/string.rb
33
- - lib/differ.rb
34
42
  - spec/differ/change_spec.rb
35
43
  - spec/differ/diff_spec.rb
36
44
  - spec/differ/format/ascii_spec.rb
@@ -44,29 +52,41 @@ homepage: http://github.com/pvande/differ
44
52
  licenses: []
45
53
 
46
54
  post_install_message:
47
- rdoc_options:
48
- - --inline-source
49
- - --charset=UTF-8
55
+ rdoc_options: []
56
+
50
57
  require_paths:
51
58
  - lib
52
59
  required_ruby_version: !ruby/object:Gem::Requirement
60
+ none: false
53
61
  requirements:
54
62
  - - ">="
55
63
  - !ruby/object:Gem::Version
64
+ hash: 3
65
+ segments:
66
+ - 0
56
67
  version: "0"
57
- version:
58
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
59
70
  requirements:
60
71
  - - ">="
61
72
  - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
62
76
  version: "0"
63
- version:
64
77
  requirements: []
65
78
 
66
79
  rubyforge_project:
67
- rubygems_version: 1.3.5
80
+ rubygems_version: 1.3.7
68
81
  signing_key:
69
- specification_version: 2
82
+ specification_version: 3
70
83
  summary: A simple gem for generating string diffs
71
- test_files: []
72
-
84
+ test_files:
85
+ - spec/differ/change_spec.rb
86
+ - spec/differ/diff_spec.rb
87
+ - spec/differ/format/ascii_spec.rb
88
+ - spec/differ/format/color_spec.rb
89
+ - spec/differ/format/html_spec.rb
90
+ - spec/differ/string_spec.rb
91
+ - spec/differ_spec.rb
92
+ - spec/spec_helper.rb