percy-client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/percy/client/resources.rb +5 -0
- data/lib/percy/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0fe4c59629946c8db83a08b32bcd1f6d284dcb9
|
4
|
+
data.tar.gz: 1b0788495c7a59eac1d6c7fa0b38c44509ce3760
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/percy/client/version.rb
CHANGED