visdiff 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/visdiff/client.rb +2 -2
- data/lib/visdiff/revision.rb +4 -3
- data/lib/visdiff/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5376198f8d0264ccc14036bde93a5d30c911b159
|
4
|
+
data.tar.gz: 856a61c4f3c6162abdae4b606be8628747fc31b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 308413d3e3ae07dea394001bf0eb60c2d91eb9b6726da21ac029ed9a26e179fa6fce4409128740b66745fd3bccf3d046b918a63da66005e9d16781d45e7c6819
|
7
|
+
data.tar.gz: 008c91a01ba17e12b1538f694740e83cd6d26c9f6dee4d769b756890c9ec787a456c3d84cd8a68098da3ff61b969aed97712cb0045e00f7f3511b4df6c54bd06
|
data/lib/visdiff/client.rb
CHANGED
@@ -8,8 +8,8 @@ module Visdiff
|
|
8
8
|
@config = config
|
9
9
|
end
|
10
10
|
|
11
|
-
def revision identifier, images=[]
|
12
|
-
revision = Revision.new(identifier, images)
|
11
|
+
def revision identifier, images=[], description=nil
|
12
|
+
revision = Revision.new(identifier, images, description)
|
13
13
|
revision.client = self
|
14
14
|
yield revision if block_given?
|
15
15
|
revision
|
data/lib/visdiff/revision.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
module Visdiff
|
2
2
|
class Revision
|
3
|
-
attr_reader :identifier, :images
|
3
|
+
attr_reader :identifier, :images, :description
|
4
4
|
attr_accessor :client
|
5
5
|
|
6
|
-
def initialize identifier, images=[]
|
6
|
+
def initialize identifier, images=[], description=nil
|
7
7
|
@identifier = identifier
|
8
8
|
@images = images
|
9
|
+
@description = description
|
9
10
|
end
|
10
11
|
|
11
12
|
def add_image identifier, filename
|
@@ -33,7 +34,7 @@ module Visdiff
|
|
33
34
|
{
|
34
35
|
identifier: identifier,
|
35
36
|
image_attributes: images.map do |image|
|
36
|
-
{identifier: image.identifier, signature: image.signature}
|
37
|
+
{identifier: image.identifier, description: description, signature: image.signature}
|
37
38
|
end
|
38
39
|
}
|
39
40
|
end
|
data/lib/visdiff/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: visdiff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Hawthorn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|