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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16786f83eab5bf2847c9420acff71955412a6555
4
- data.tar.gz: aefb5d1305e748d4d13dc8d8be54e2933fd3e273
3
+ metadata.gz: 5376198f8d0264ccc14036bde93a5d30c911b159
4
+ data.tar.gz: 856a61c4f3c6162abdae4b606be8628747fc31b4
5
5
  SHA512:
6
- metadata.gz: 7f702f447c961b5011f8769f127654143517b227af09f726fda473b7253bfe88f8c1267da0051047c7b1bee9728fba484ebcc191caf9ee9bdad6fa380129bf6c
7
- data.tar.gz: a0a85d0ddb3c17cd3d4b443e89e9bb8059c3a388b94b1bc7973f079252f091e7579a439f801a08d5eea7f9ce379ad076c24f7343ba0745040bbdd000c385a30e
6
+ metadata.gz: 308413d3e3ae07dea394001bf0eb60c2d91eb9b6726da21ac029ed9a26e179fa6fce4409128740b66745fd3bccf3d046b918a63da66005e9d16781d45e7c6819
7
+ data.tar.gz: 008c91a01ba17e12b1538f694740e83cd6d26c9f6dee4d769b756890c9ec787a456c3d84cd8a68098da3ff61b969aed97712cb0045e00f7f3511b4df6c54bd06
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Visdiff
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-15 00:00:00.000000000 Z
11
+ date: 2015-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday