pig-media-server 100000 → 1000000

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: 31b23c691ff8709fc9196e26ac2fc6515ba47f9f
4
- data.tar.gz: 047065ed414fe4a50ab640c69251302c5ed923d4
3
+ metadata.gz: ef0f8fb031c774ba1bd8a20c6c06fa3146825665
4
+ data.tar.gz: 8966f183428d1c76a1bf9a2fb78569ef081c1a40
5
5
  SHA512:
6
- metadata.gz: 0f936dd73b41a759fae676089c863b8339aa5354bbca96eca0fbca787633a1e24bc8b7a86794ee722ea2891b498853bab30d5bb5a4ae5c7c1d4a5f9e2ecfc13b
7
- data.tar.gz: bc6263cec89f0bee87fc858897518c6c7f79a8982d0a0515816a2493285bf571568a62765684faf6419a58564b9506f6d76e793cff2e81cd9e4d51a65ed2d0fc
6
+ metadata.gz: 366e4c23b85c025d32b876f9c3c88651386ff227a21f871352eae9fbb328ed64d9bac5c1e85d6edfa062f757520ba34f3eb4962fb686011daa783b52196a118f
7
+ data.tar.gz: d0f8961ce712fcd0f073031299d1b1036c9be38f7071d2d7747a473b0bc2b1fc08cc05bbd9b0c5641de312971b798d13175a3ce566921787f9ac3ec224245765
@@ -1,3 +1,3 @@
1
1
  module PigMediaServer
2
- VERSION = "100000"
2
+ VERSION = "1000000"
3
3
  end
@@ -38,6 +38,7 @@ module PigMediaServer
38
38
  img = url.sub(/data:image\/png;base64,/, '').unpack('m').first
39
39
  open(name, 'w'){|f| f.puts img}
40
40
  system "gm", "convert", name, jpg
41
+ jpg = name unless File.exists? jpg
41
42
  client = Twitter::REST::Client.new do |config|
42
43
  config.consumer_key = key
43
44
  config.consumer_secret = secret
@@ -46,8 +47,8 @@ module PigMediaServer
46
47
  end
47
48
 
48
49
  client.update_with_media(comment.to_s, open(jpg))# rescue nil
49
- FileUtils.rm name
50
- FileUtils.rm jpg
50
+ FileUtils.rm name rescue nil
51
+ FileUtils.rm jpg rescue nil
51
52
  end
52
53
  end
53
54
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pig-media-server
3
3
  version: !ruby/object:Gem::Version
4
- version: '100000'
4
+ version: '1000000'
5
5
  platform: ruby
6
6
  authors:
7
7
  - ssig33
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-10 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rroonga
@@ -409,7 +409,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
409
409
  version: '0'
410
410
  requirements: []
411
411
  rubyforge_project:
412
- rubygems_version: 2.5.1
412
+ rubygems_version: 2.4.5.1
413
413
  signing_key:
414
414
  specification_version: 4
415
415
  summary: Pig Media Server