jugyo-twitpic 0.3.0 → 0.3.1

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.
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 -5
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'
data/bin/twitpic CHANGED
@@ -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!
data/lib/twitpic.rb CHANGED
@@ -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: jugyo-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 -07:00
12
+ date: 2009-07-07 00:00:00 -07:00
13
13
  default_executable: twitpic
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -57,9 +57,9 @@ files:
57
57
  - History.txt
58
58
  - bin/twitpic
59
59
  - lib/twitpic.rb
60
- - spec/test.txt
61
60
  - spec/twitpic_spec.rb
62
- has_rdoc: false
61
+ - spec/test.txt
62
+ has_rdoc: true
63
63
  homepage: http://github.com/jugyo/twitpic
64
64
  post_install_message:
65
65
  rdoc_options:
@@ -86,7 +86,7 @@ requirements: []
86
86
  rubyforge_project: twitpic
87
87
  rubygems_version: 1.2.0
88
88
  signing_key:
89
- specification_version: 3
89
+ specification_version: 2
90
90
  summary: Library for TwitPic API.
91
91
  test_files: []
92
92