percy-client 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a82de11a13b2a403586e6e50adc8afeda0bc32e1
4
- data.tar.gz: 79849f84e7c401e6e310f4208a6db745f1f3e1e1
3
+ metadata.gz: d0fe4c59629946c8db83a08b32bcd1f6d284dcb9
4
+ data.tar.gz: 1b0788495c7a59eac1d6c7fa0b38c44509ce3760
5
5
  SHA512:
6
- metadata.gz: 33a045cccc8e025003506b6a0d1a7504bf1bec9d3b718dc77b6fde44eb829a183e77c3471b085796b136eb0a1a9b48c928895ef36ab01430b65e1c7711af4f05
7
- data.tar.gz: 223a6d07e57d67d95248d1bd3d385b396663d6435e6f8cdfbb025cca4699fa77ad9f016195f21b87f008869f782d53d97161c85a5240e93549af6fca2d81c67a
6
+ metadata.gz: 58705c360df0b083edbdf5b4cb63307c06226c08a7648c944cfce7da4a983b2378f22d0e9a684b90f5355e213ef3ab169bd797a063048cb1ec65861955213fe1
7
+ data.tar.gz: 66945b217e5b81e4a10d224ac2210466166597d187f4d35c44e9021f02e10f78f50c3935ab34c4e414eb66c9913b63d8985504fc37502adb9e7719031e11bcf4
@@ -10,12 +10,17 @@ module Percy
10
10
  attr_accessor :resource_url
11
11
  attr_accessor :is_root
12
12
  attr_accessor :mimetype
13
+ attr_accessor :content
13
14
 
14
15
  def initialize(sha, resource_url, options = {})
15
16
  @sha = sha
16
17
  @resource_url = resource_url
17
18
  @is_root = options[:is_root]
18
19
  @mimetype = options[:mimetype]
20
+
21
+ # For user convenience of temporarily storing content with other data, but the actual data
22
+ # is never included when serialized.
23
+ @content = options[:content]
19
24
  end
20
25
 
21
26
  def serialize
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  class Client
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percy-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perceptual Inc.