water 0.1 → 0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/water.rb +3 -2
- data/readme.textile +1 -3
- data/water.gemspec +4 -9
- metadata +14 -7
data/lib/water.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'coderay'
|
2
|
+
require 'launchy'
|
2
3
|
|
3
4
|
module Water
|
4
5
|
DIFF_FILE_NAME = 'diff.html'
|
@@ -9,7 +10,7 @@ module Water
|
|
9
10
|
file.write CodeRay.scan(ARGF.read, :diff).page
|
10
11
|
end
|
11
12
|
|
12
|
-
|
13
|
-
|
13
|
+
url = "file://#{File.join Dir.pwd, DIFF_FILE_NAME}"
|
14
|
+
Launchy.open url
|
14
15
|
end
|
15
16
|
end
|
data/readme.textile
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
h1. Water
|
2
2
|
|
3
|
-
Water takes a unified diff as its input and opens a browser window
|
4
|
-
with a nicely formatted display of it. It uses CodeRay to highlight the code
|
5
|
-
inside of the diff.
|
3
|
+
Water takes a unified diff as its input and opens a browser window with a nicely formatted display of it. It uses CodeRay to highlight the code inside of the diff.
|
6
4
|
|
7
5
|
h2. Usage
|
8
6
|
|
data/water.gemspec
CHANGED
@@ -3,21 +3,16 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "water"
|
6
|
-
s.version = '0.
|
6
|
+
s.version = '0.2'
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Kornelius Kalnbach"]
|
9
9
|
s.email = ["murphy@rubychan.de"]
|
10
10
|
s.homepage = "http://water.rubychan.de"
|
11
|
-
s.summary = "
|
12
|
-
s.description =
|
13
|
-
Water takes a unified diff as its input and opens a browser window
|
14
|
-
with a nicely formatted display of it. It uses CodeRay to highlight the code
|
15
|
-
inside of the diff.
|
16
|
-
DESCRIPTION
|
17
|
-
|
18
|
-
# s.rubyforge_project = "water"
|
11
|
+
s.summary = "diff viewer with code highlighting"
|
12
|
+
s.description = "The diff washing machine. See your code changes clearly."
|
19
13
|
|
20
14
|
s.add_dependency "coderay", '= 1.0.0.738.pre'
|
15
|
+
s.add_dependency "launchy", '~> 0.4.0'
|
21
16
|
|
22
17
|
s.files = `git ls-files`.split("\n")
|
23
18
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: water
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: "0.
|
5
|
+
version: "0.2"
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Kornelius Kalnbach
|
@@ -23,11 +23,18 @@ dependencies:
|
|
23
23
|
version: 1.0.0.738.pre
|
24
24
|
type: :runtime
|
25
25
|
version_requirements: *id001
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: launchy
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 0.4.0
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id002
|
37
|
+
description: The diff washing machine. See your code changes clearly.
|
31
38
|
email:
|
32
39
|
- murphy@rubychan.de
|
33
40
|
executables:
|
@@ -72,6 +79,6 @@ rubyforge_project:
|
|
72
79
|
rubygems_version: 1.8.5
|
73
80
|
signing_key:
|
74
81
|
specification_version: 3
|
75
|
-
summary:
|
82
|
+
summary: diff viewer with code highlighting
|
76
83
|
test_files: []
|
77
84
|
|