pretty_diff 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "http://rubygems.org"
2
+
3
+ group :development do
4
+ gem "jeweler"
5
+ gem "builder"
6
+ end
@@ -0,0 +1,21 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ builder (3.1.4)
5
+ git (1.2.5)
6
+ jeweler (1.8.4)
7
+ bundler (~> 1.0)
8
+ git (>= 1.2.5)
9
+ rake
10
+ rdoc
11
+ json (1.7.7)
12
+ rake (10.0.4)
13
+ rdoc (4.0.1)
14
+ json (~> 1.4)
15
+
16
+ PLATFORMS
17
+ ruby
18
+
19
+ DEPENDENCIES
20
+ builder
21
+ jeweler
data/Rakefile CHANGED
@@ -1,24 +1,26 @@
1
1
  require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
2
10
  require 'rake'
3
11
 
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "pretty_diff"
8
- gem.summary = "Library for converting unified diff format into HTML listings."
9
- gem.description = "PrettyDiff is a highly customizable library for creating fully featured HTML
10
- listings out of unified diff format strings.
11
- Include copy/paste-safe line numbers and built-in syntax highlighting."
12
- gem.email = "ilya.sabanin@gmail.com"
13
- gem.homepage = "http://github.com/isabanin/pretty_diff"
14
- gem.authors = ["Ilya Sabanin"]
15
- gem.add_development_dependency "shoulda", ">= 0"
16
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
- end
18
- Jeweler::GemcutterTasks.new
19
- rescue LoadError
20
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ gem.name = "pretty_diff"
15
+ gem.summary = "Library for converting unified diff format into HTML listings."
16
+ gem.description = "PrettyDiff is a highly customizable library for creating fully featured HTML
17
+ listings out of unified diff format strings.
18
+ Include copy/paste-safe line numbers and built-in syntax highlighting."
19
+ gem.email = "ilya.sabanin@gmail.com"
20
+ gem.homepage = "http://github.com/isabanin/pretty_diff"
21
+ gem.authors = ["Ilya Sabanin"]
21
22
  end
23
+ Jeweler::RubygemsDotOrgTasks.new
22
24
 
23
25
  require 'rake/testtask'
24
26
  Rake::TestTask.new(:test) do |test|
@@ -27,29 +29,5 @@ Rake::TestTask.new(:test) do |test|
27
29
  test.verbose = true
28
30
  end
29
31
 
30
- begin
31
- require 'rcov/rcovtask'
32
- Rcov::RcovTask.new do |test|
33
- test.libs << 'test'
34
- test.pattern = 'test/**/test_*.rb'
35
- test.verbose = true
36
- end
37
- rescue LoadError
38
- task :rcov do
39
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
40
- end
41
- end
42
-
43
32
  task :test => :check_dependencies
44
-
45
33
  task :default => :test
46
-
47
- require 'rake/rdoctask'
48
- Rake::RDocTask.new do |rdoc|
49
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
50
-
51
- rdoc.rdoc_dir = 'rdoc'
52
- rdoc.title = "pretty_diff #{version}"
53
- rdoc.rdoc_files.include('README*')
54
- rdoc.rdoc_files.include('lib/**/*.rb')
55
- end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.2
1
+ 0.9.3
@@ -7,7 +7,7 @@ class PrettyDiff::DiffGenerator
7
7
  end
8
8
 
9
9
  def generate
10
- diff.chunks.map{|c| c.to_html}.to_s
10
+ diff.chunks.map{|c| c.to_html}.join('')
11
11
  end
12
12
 
13
13
  end
@@ -5,14 +5,14 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pretty_diff}
8
- s.version = "0.9.2"
8
+ s.version = "0.9.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilya Sabanin"]
12
- s.date = %q{2012-05-04}
12
+ s.date = %q{2013-04-05}
13
13
  s.description = %q{PrettyDiff is a highly customizable library for creating fully featured HTML
14
- listings out of unified diff format strings.
15
- Include copy/paste-safe line numbers and built-in syntax highlighting.}
14
+ listings out of unified diff format strings.
15
+ Include copy/paste-safe line numbers and built-in syntax highlighting.}
16
16
  s.email = %q{ilya.sabanin@gmail.com}
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE",
@@ -20,6 +20,8 @@ Gem::Specification.new do |s|
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
+ "Gemfile",
24
+ "Gemfile.lock",
23
25
  "LICENSE",
24
26
  "README.rdoc",
25
27
  "Rakefile",
@@ -44,27 +46,22 @@ Gem::Specification.new do |s|
44
46
  ]
45
47
  s.homepage = %q{http://github.com/isabanin/pretty_diff}
46
48
  s.require_paths = ["lib"]
47
- s.rubygems_version = %q{1.3.7}
49
+ s.rubygems_version = %q{1.6.2}
48
50
  s.summary = %q{Library for converting unified diff format into HTML listings.}
49
- s.test_files = [
50
- "test/chunk_test.rb",
51
- "test/diff_test.rb",
52
- "test/helper.rb",
53
- "test/html_generator_test.rb",
54
- "test/line_test.rb"
55
- ]
56
51
 
57
52
  if s.respond_to? :specification_version then
58
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
59
53
  s.specification_version = 3
60
54
 
61
55
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
62
- s.add_development_dependency(%q<shoulda>, [">= 0"])
56
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
57
+ s.add_development_dependency(%q<builder>, [">= 0"])
63
58
  else
64
- s.add_dependency(%q<shoulda>, [">= 0"])
59
+ s.add_dependency(%q<jeweler>, [">= 0"])
60
+ s.add_dependency(%q<builder>, [">= 0"])
65
61
  end
66
62
  else
67
- s.add_dependency(%q<shoulda>, [">= 0"])
63
+ s.add_dependency(%q<jeweler>, [">= 0"])
64
+ s.add_dependency(%q<builder>, [">= 0"])
68
65
  end
69
66
  end
70
67
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_diff
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
5
- prerelease: false
4
+ hash: 61
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 2
10
- version: 0.9.2
9
+ - 3
10
+ version: 0.9.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilya Sabanin
@@ -15,12 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-04 00:00:00 -04:00
18
+ date: 2013-04-05 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: shoulda
23
- prerelease: false
24
22
  requirement: &id001 !ruby/object:Gem::Requirement
25
23
  none: false
26
24
  requirements:
@@ -31,11 +29,27 @@ dependencies:
31
29
  - 0
32
30
  version: "0"
33
31
  type: :development
32
+ name: jeweler
34
33
  version_requirements: *id001
34
+ prerelease: false
35
+ - !ruby/object:Gem::Dependency
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ hash: 3
42
+ segments:
43
+ - 0
44
+ version: "0"
45
+ type: :development
46
+ name: builder
47
+ version_requirements: *id002
48
+ prerelease: false
35
49
  description: |-
36
50
  PrettyDiff is a highly customizable library for creating fully featured HTML
37
- listings out of unified diff format strings.
38
- Include copy/paste-safe line numbers and built-in syntax highlighting.
51
+ listings out of unified diff format strings.
52
+ Include copy/paste-safe line numbers and built-in syntax highlighting.
39
53
  email: ilya.sabanin@gmail.com
40
54
  executables: []
41
55
 
@@ -46,6 +60,8 @@ extra_rdoc_files:
46
60
  - README.rdoc
47
61
  files:
48
62
  - .document
63
+ - Gemfile
64
+ - Gemfile.lock
49
65
  - LICENSE
50
66
  - README.rdoc
51
67
  - Rakefile
@@ -97,13 +113,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
113
  requirements: []
98
114
 
99
115
  rubyforge_project:
100
- rubygems_version: 1.3.7
116
+ rubygems_version: 1.6.2
101
117
  signing_key:
102
118
  specification_version: 3
103
119
  summary: Library for converting unified diff format into HTML listings.
104
- test_files:
105
- - test/chunk_test.rb
106
- - test/diff_test.rb
107
- - test/helper.rb
108
- - test/html_generator_test.rb
109
- - test/line_test.rb
120
+ test_files: []
121
+