twitpic 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +1 -0
  2. data/bin/twitpic +1 -1
  3. data/lib/twitpic.rb +1 -1
  4. metadata +5 -7
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  $:.unshift File.dirname(__FILE__) + '/lib'
2
+ require 'rubygems'
2
3
  require 'twitpic'
3
4
  require 'spec/rake/spectask'
4
5
  require 'rake/clean'
@@ -41,7 +41,7 @@ if file.nil? && screencapture
41
41
  file = '/tmp/twitpic_screencapture.png'
42
42
  File.delete(file) if File.exists?(file)
43
43
  puts 'Please capture screen!'
44
- system 'screencapture', '-i', '-f', file
44
+ system('screencapture', '-i', '-f', file) || system('import', file)
45
45
  unless File.exists?(file)
46
46
  puts 'Aboat!'
47
47
  exit!
@@ -4,7 +4,7 @@ require 'mime/types'
4
4
  require "rexml/document"
5
5
 
6
6
  class TwitPic
7
- VERSION = '0.3.0'
7
+ VERSION = '0.3.1'
8
8
 
9
9
  class APIError < StandardError; end
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitpic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jugyo
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-06 00:00:00 +09:00
12
+ date: 2009-07-07 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -57,12 +57,10 @@ files:
57
57
  - History.txt
58
58
  - bin/twitpic
59
59
  - lib/twitpic.rb
60
- - spec/test.txt
61
60
  - spec/twitpic_spec.rb
61
+ - spec/test.txt
62
62
  has_rdoc: true
63
63
  homepage: http://github.com/jugyo/twitpic
64
- licenses: []
65
-
66
64
  post_install_message:
67
65
  rdoc_options:
68
66
  - --main
@@ -86,9 +84,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
84
  requirements: []
87
85
 
88
86
  rubyforge_project: twitpic
89
- rubygems_version: 1.3.4
87
+ rubygems_version: 1.3.1
90
88
  signing_key:
91
- specification_version: 3
89
+ specification_version: 2
92
90
  summary: Library for TwitPic API.
93
91
  test_files: []
94
92