artemv-diff_to_html 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +33 -0
- data/{diff_to_html.rb → lib/diff_to_html.rb} +0 -0
- metadata +11 -9
- data/README +0 -0
- data/init.rb +0 -1
data/README.rdoc
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
= diff_to_html
|
2
|
+
|
3
|
+
This is a Ruby class for converting unified diff, like the one you get with 'svn diff', to HTML like in
|
4
|
+
changeset viewer of a tool like Trac, GitHub or Codenotifier,
|
5
|
+
e.g. http://codenotifier.com/projects/49/commits/47#F0.
|
6
|
+
|
7
|
+
It's based on code from http://gurge.com/blog/2006/10/03/subversion-diff-viewer-cgi-in-ruby (thanks Adam
|
8
|
+
Doppelt!), adopted lightly to support multifile diffs and have more familiar output. It definitely have
|
9
|
+
things to improve, so contribution/patches are very welcome.
|
10
|
+
|
11
|
+
* install the gem:
|
12
|
+
|
13
|
+
gem install artemv-diff_to_html --source=http://gems.github.com
|
14
|
+
|
15
|
+
* go to gem's 'examples' dir (it's .../ruby/lib/ruby/gems/1.8/gems/artemv-diff_to_html-x.x.x/examples/) and run 'ruby test.rb >out.html' -
|
16
|
+
this will get diff from sample 'svn diff' and generate out.html. Resulting html is linked to diff.css in 'examples' directory - you'll need
|
17
|
+
to copy it to your project's dir to use it.
|
18
|
+
* To use in Rails project:
|
19
|
+
|
20
|
+
require 'diff_to_html'
|
21
|
+
...
|
22
|
+
converter = DiffToHtml.new
|
23
|
+
...
|
24
|
+
|
25
|
+
== License
|
26
|
+
|
27
|
+
diff_to_html is released under the MIT license.
|
28
|
+
|
29
|
+
== Authors and credits
|
30
|
+
|
31
|
+
Authors:: Artem Vasiliev
|
32
|
+
Original code:: Adam Doppelt, http://gurge.com/blog/2006/10/03/subversion-diff-viewer-cgi-in-ruby
|
33
|
+
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artemv-diff_to_html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Vasiliev
|
@@ -19,21 +19,23 @@ executables: []
|
|
19
19
|
|
20
20
|
extensions: []
|
21
21
|
|
22
|
-
extra_rdoc_files:
|
23
|
-
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.rdoc
|
24
24
|
files:
|
25
|
-
- diff_to_html.rb
|
25
|
+
- lib/diff_to_html.rb
|
26
26
|
- examples/diff.css
|
27
27
|
- examples/test.rb
|
28
28
|
- examples/test.sh
|
29
|
-
- init.rb
|
30
29
|
- lib
|
31
|
-
- README
|
32
|
-
has_rdoc:
|
30
|
+
- README.rdoc
|
31
|
+
has_rdoc: true
|
33
32
|
homepage: http://github.com/artemv/diff_to_html.rb
|
34
33
|
post_install_message:
|
35
|
-
rdoc_options:
|
36
|
-
|
34
|
+
rdoc_options:
|
35
|
+
- --main
|
36
|
+
- README.rdoc
|
37
|
+
- --inline-source
|
38
|
+
- --charset=UTF-8
|
37
39
|
require_paths:
|
38
40
|
- lib
|
39
41
|
required_ruby_version: !ruby/object:Gem::Requirement
|
data/README
DELETED
File without changes
|
data/init.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'diff_to_html'
|