frinkiac 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/frinkiac/screencap.rb +2 -1
- data/lib/frinkiac/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: 753ed7748829a1d8a6aeef0ea217310a45fdafb6
|
4
|
+
data.tar.gz: 68385591600c5c1460bac35b7d60d110ad7fbf4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f50526b7a01cf65c0d1e19d718fe5f33ac85137328f9919dac153e6b1fb61be7db927487a564527cc3ea96d16f41ff93f499694329a9636e62a9ac37996cc49
|
7
|
+
data.tar.gz: d86d02d7ab988fd0b21a95f63eea36e24ba478d192e59fdcb1db5c850ebf59c6e913deae8c3c061e463648b14c6b2c3b97fbec7a90b5321e1dc7cc7868829f75
|
data/lib/frinkiac/screencap.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'faraday'
|
2
2
|
require 'json'
|
3
3
|
require 'word_wrap'
|
4
|
+
require 'base64'
|
4
5
|
|
5
6
|
SITE_URL = 'https://frinkiac.com'
|
6
7
|
API_URL = "#{SITE_URL}/api/search"
|
@@ -24,7 +25,7 @@ module Frinkiac
|
|
24
25
|
caption = self.caption if caption.nil?
|
25
26
|
caption = caption.join("\n") if caption.is_a?(Array)
|
26
27
|
|
27
|
-
"#{SITE_URL}/meme/#{episode}/#{timestamp}.jpg?
|
28
|
+
"#{SITE_URL}/meme/#{episode}/#{timestamp}.jpg?b64lines=#{Base64.strict_encode64 caption}"
|
28
29
|
end
|
29
30
|
|
30
31
|
def caption
|
data/lib/frinkiac/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frinkiac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cesar Camacho
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|