random_yiff 0.3.1 → 0.3.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.
- checksums.yaml +8 -8
- data/lib/random_yiff/e621.rb +4 -4
- data/lib/random_yiff/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTJiZTBjYzBmNjBkOWNhYTZjYzZmZTJkNmQzZGZkZjQxOTZlMjA0Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Yzg4OTU4ZWJiOGVkYzY5MjQ3YTYzNGFhMTIwOTQ3YzE5MmEwNjkxYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzdhMTcxZDY1YmFhZjdkZWFiMWY3NTcyMTg0ZWEwYmQ3YTg0MjM2M2FjMjRl
|
10
|
+
YmQ5ZjY3ZGU4NWViMThlNjUyMDI0NTZmN2FmMzQ3OTJmMTc3ZmUwODgyZDQ4
|
11
|
+
OTcyOGIyN2E2M2NhZjU3ODU2YzVjYmU4MWM3ZjEzNjVjZDcyMGQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTgyNmI4MWViOWFlNzAxMzc4MmQzODNhNmI1ZDE4MGZiZmM3MDVlMWVlZWEy
|
14
|
+
ZjU2MTQ0NTBmMmExNTFmZjA0OTZhNDM3YjExMmIyZTAwNDZiZGRlZTUzY2Iy
|
15
|
+
ZmQ4YTY0NDVjM2IwNjJkMjZhNTg5ZTgzYTc2ZjUxYzkzN2Y0N2E=
|
data/lib/random_yiff/e621.rb
CHANGED
@@ -17,19 +17,19 @@ module RandomYiff
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def file_uri
|
20
|
-
URI(file_url)
|
20
|
+
@file_uri ||= URI(file_url)
|
21
21
|
end
|
22
22
|
|
23
23
|
def file_name
|
24
|
-
"#{md5}.#{file_ext}"
|
24
|
+
@file_name ||= "#{md5}.#{file_ext}"
|
25
25
|
end
|
26
26
|
|
27
27
|
def file
|
28
|
-
Net::HTTP.get(file_uri)
|
28
|
+
@file ||= Net::HTTP.get(file_uri)
|
29
29
|
end
|
30
30
|
|
31
31
|
def source
|
32
|
-
post['source'] || 'Unknown'
|
32
|
+
@source ||= post['source'] || 'Unknown'
|
33
33
|
end
|
34
34
|
|
35
35
|
def method_missing(m, *args, &block)
|
data/lib/random_yiff/version.rb
CHANGED