pedrofranceschi-phtwitvid 0.1.3 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/phtwitvid.rb +4 -4
  2. data/phtwitvid.gemspec +1 -1
  3. metadata +3 -2
data/lib/phtwitvid.rb CHANGED
@@ -6,9 +6,8 @@ require 'open-uri'
6
6
 
7
7
  class PHTwitVid
8
8
 
9
- $api_url = "https://im.twitvid.com/api"
10
-
11
9
  def initialize
10
+ $api_url = "https://im.twitvid.com/api"
12
11
  end
13
12
 
14
13
  def get_token(username, password)
@@ -22,7 +21,7 @@ class PHTwitVid
22
21
  end
23
22
  end
24
23
 
25
- def upload(token, message, video_path, post)
24
+ def upload(token, message, video_path, post, source)
26
25
  f = File.new(video_path, File::RDWR)
27
26
  agent = WWW::Mechanize.new
28
27
  response = agent.post(
@@ -30,7 +29,8 @@ class PHTwitVid
30
29
  {
31
30
  :media => f,
32
31
  :token => token,
33
- :message => message
32
+ :message => message,
33
+ :source => source
34
34
  }
35
35
  )
36
36
  f.close
data/phtwitvid.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{phtwitvid}
3
- s.version = "0.1.3"
3
+ s.version = "1.0"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["pH (Pedro Henrique Cavallieri Franceschi)"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pedrofranceschi-phtwitvid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: "1.0"
5
5
  platform: ruby
6
6
  authors:
7
7
  - pH (Pedro Henrique Cavallieri Franceschi)
@@ -56,6 +56,7 @@ files:
56
56
  - lib/phtwitvid.rb
57
57
  has_rdoc: false
58
58
  homepage: http://www.iBlogeek.com
59
+ licenses:
59
60
  post_install_message:
60
61
  rdoc_options: []
61
62
 
@@ -76,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
77
  requirements: []
77
78
 
78
79
  rubyforge_project:
79
- rubygems_version: 1.2.0
80
+ rubygems_version: 1.3.5
80
81
  signing_key:
81
82
  specification_version: 2
82
83
  summary: A Library for TwitVid integration written in Ruby.