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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70c4f08466ce28e543aad3104f077bcb7826e4aa
4
- data.tar.gz: 68ceec3a8aee9418fc8cd37a48a3c937a07a9c5e
3
+ metadata.gz: 753ed7748829a1d8a6aeef0ea217310a45fdafb6
4
+ data.tar.gz: 68385591600c5c1460bac35b7d60d110ad7fbf4b
5
5
  SHA512:
6
- metadata.gz: 698a5c84d7625c336d45835c0ba149e49c4cfa7f737f2e630ed38e28572212a771a309d77363e94bbf3f821cb838bc4237a3a82be9a3d2e325a68d1af4ba4711
7
- data.tar.gz: 24449eddfc56184ed166035dfbea2d717f6f30ee93ad764fa1d7500e98cc7a882f754ae95872076a25921f620c947ac510b6f804896fdc310017ab24388e660a
6
+ metadata.gz: 2f50526b7a01cf65c0d1e19d718fe5f33ac85137328f9919dac153e6b1fb61be7db927487a564527cc3ea96d16f41ff93f499694329a9636e62a9ac37996cc49
7
+ data.tar.gz: d86d02d7ab988fd0b21a95f63eea36e24ba478d192e59fdcb1db5c850ebf59c6e913deae8c3c061e463648b14c6b2c3b97fbec7a90b5321e1dc7cc7868829f75
@@ -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?lines=#{URI.escape caption}"
28
+ "#{SITE_URL}/meme/#{episode}/#{timestamp}.jpg?b64lines=#{Base64.strict_encode64 caption}"
28
29
  end
29
30
 
30
31
  def caption
@@ -1,3 +1,3 @@
1
1
  module Frinkiac
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
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.3
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-22 00:00:00.000000000 Z
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler