sadikzzz-heyspread-ruby 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/heyspread.rb +8 -3
  2. metadata +3 -2
data/lib/heyspread.rb CHANGED
@@ -2,13 +2,14 @@ require "net/http"
2
2
  require "rubygems"
3
3
  require "hpricot"
4
4
  require "cgi"
5
+ require "time"
5
6
 
6
7
  # Hey!Spread: Video Promoting Web Service
7
8
  #
8
9
  # * Address: http://heyspread.com
9
10
  # * Email: bruno.celeste@particle-s.com
10
11
  # * Blog: http://particle-s.com
11
- # * Twitter: http://twitter.com/HeyWatch
12
+ # * Twitter: http://twitter.com/particles
12
13
  #
13
14
  # * API documentation: http://heyspread.com/page/api-documentation
14
15
  # * Valid site names to use the API: http://heyspread.com/page/api-documentation-sites
@@ -59,7 +60,7 @@ module HeySpread
59
60
 
60
61
  class Video
61
62
  attr_accessor :id, :title, :description, :tags, :category, :file, :url,
62
- :ping, :destinations
63
+ :ping, :destinations, :watermark_image_url, :watermark_position, :convert
63
64
 
64
65
  attr_reader :links, :errors, :uploads, :status, :stat, :created_at,
65
66
  :updated_at, :auto_stat_updated_at, :total_views
@@ -95,6 +96,7 @@ module HeySpread
95
96
  # video.destinations["dailymotion"] = ["login", password"]
96
97
  def initialize(attributes={})
97
98
  @destinations = {}
99
+ @convert = false
98
100
  attributes_to_instance_variables(attributes)
99
101
  end
100
102
 
@@ -124,7 +126,10 @@ module HeySpread
124
126
  :category => @category,
125
127
  :file => @file,
126
128
  :url => @url,
127
- :ping => @ping
129
+ :ping => @ping,
130
+ :watermark_image_url => @watermark_image_url,
131
+ :watermark_position => @watermark_position,
132
+ :convert => @convert
128
133
  }.merge(credentials)
129
134
  )
130
135
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sadikzzz-heyspread-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.1"
4
+ version: "0.2"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Celeste
@@ -9,11 +9,12 @@ autorequire: heyspread
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-08 00:00:00 -07:00
12
+ date: 2009-02-25 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hpricot
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements: