ankoder 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/Manifest.txt CHANGED
@@ -14,6 +14,7 @@ lib/ankoder/download.rb
14
14
  lib/ankoder/ext.rb
15
15
  lib/ankoder/job.rb
16
16
  lib/ankoder/profile.rb
17
+ lib/ankoder/upload.rb
17
18
  lib/ankoder/version.rb
18
19
  lib/ankoder/video.rb
19
20
  log/debug.log
data/README.txt CHANGED
@@ -1 +1 @@
1
- README
1
+
data/lib/ankoder.rb CHANGED
@@ -6,7 +6,7 @@ require "cgi"
6
6
  module Ankoder
7
7
  HOST = "api.ankoder.com" unless const_defined? :HOST
8
8
  OUT_FORMAT = "xml" unless const_defined? :OUT_FORMAT
9
- RESOURCES = %w{job profile download video account} unless const_defined? :RESOURCES
9
+ RESOURCES = %w{job profile download video account upload} unless const_defined? :RESOURCES
10
10
  DEFAULT_EXPIRY = 300 unless const_defined? :DEFAULT_EXPIRY
11
11
 
12
12
  # These are error codes you receive if you use ping options
@@ -0,0 +1,10 @@
1
+ module Ankoder
2
+ # to get the list of the upload api url
3
+ #
4
+ # Upload.find(:all)
5
+ #
6
+ class Upload < Base
7
+
8
+ end
9
+ end
10
+
@@ -2,7 +2,7 @@ module Ankoder #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 2
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/website/index.html CHANGED
@@ -33,36 +33,40 @@
33
33
  <h1>ankoder</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/ankoder"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/ankoder" class="numbers">0.0.1</a>
36
+ <a href="http://rubyforge.org/projects/ankoder" class="numbers">0.0.2</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;ankoder&#8217;</h1>
39
39
 
40
40
 
41
41
  <h2>What</h2>
42
-
43
-
44
- <h2>Installing</h2>
45
-
46
-
47
- <p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">ankoder</span></pre></p>
48
-
49
-
50
- <h2>The basics</h2>
51
-
52
-
53
- <h2>Demonstration of usage</h2>
54
-
55
-
56
- <h2>Forum</h2>
42
+ <p>ankoder is a service provided by rorcraft that allows you convert a Video of any format (YouTube's videos,etc) to MPEG4 (AVI/MOV/MP4/MP3/3GP) or FLV file online. And this gem is to provide the API for you to send request to our video encoding server.</p>
43
+ <h2>Installing</h2>
44
+
45
+
46
+ <pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">ankoder</span></pre>
47
+ <h2>The basics</h2>
48
+ <p>As this service is still in private beta stage, for every developer start to use this api , have to apply for the private testing account. To apply the testing account, please fill in the form in <a href="http://free.ankoder.com/">http://free.ankoder.com/</a> .</p>
49
+ <h2>Demonstration of usage</h2>
50
+ <p>After we have approved the application , we will assign the username and password to login the service, for example, api_user as username , and api_passowrd as password.</p>
51
+ <h4>Add the following lines to ApplicationController</h4>
52
+ <p>require &quot;ankoder&quot;<br />
53
+ include &quot;Ankoder&quot;</p>
54
+ <h4>To create a user session<br />
55
+ </h4>
56
+ <p>user = Auth.create(&quot;api_user&quot;, &quot;api_password&quot;)</p>
57
+ <h4>To list out the available converting profile</h4>
58
+ <p>profiles = user.profiles.find(:all)</p>
59
+ <h4>To download a video from Youtube</h4>
60
+ <p>download = user.downloads.create('url' =&gt;&quot;http://www.youtube.com/watch?v=Sex4w4h7Tqk&quot;) </p>
61
+ <h4>To create a job to convert a video file</h4>
62
+ <p>convert_job.create(:video_id =&gt;download.id , :profile_id =&gt; profile.id )</p>
63
+ <h2>Forum</h2>
57
64
 
58
65
 
59
66
  <p><a href="http://groups.google.com/group/ankoder">http://groups.google.com/group/ankoder</a></p>
60
-
61
-
62
- <p><span class="caps">TODO</span> &#8211; create Google Group &#8211; ankoder</p>
63
-
64
-
65
- <h2>How to submit patches</h2>
67
+ <h2>Our development Blog</h2>
68
+ <p><a href="http://devblog.rorcraft.com/">http://devblog.rorcraft.com/</a></p>
69
+ <h2>How to submit patches</h2>
66
70
 
67
71
 
68
72
  <p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
@@ -80,11 +84,12 @@
80
84
  <h2>Contact</h2>
81
85
 
82
86
 
83
- <p>Comments are welcome. Send an email to <a href="mailto:FIXME"><span class="caps">FIXME</span> full name</a> email via the <a href="http://groups.google.com/group/ankoder">forum</a></p>
87
+ <p>Comments are welcome. Send an email to <a href="mailto:info@rorcraft.com">info@rorcraft.com</a></span> or via the <a href="http://groups.google.com/group/ankoder">forum</a></p>
84
88
  <p class="coda">
85
- <a href="FIXME email">FIXME full name</a>, 25th February 2008<br>
86
- Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
87
- </p>
89
+ <a href="FIXME email"></a>Ankoder, a service by RoRCraft Limited,<br />
90
+ Last Updated :
91
+ 27th February 2008<br>
92
+ Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a> </p>
88
93
  </div>
89
94
 
90
95
  <!-- insert site tracking codes here, like Google Urchin -->
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ankoder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ""
6
6
  authors:
7
7
  - RoRCraft.com
@@ -30,7 +30,7 @@ cert_chain:
30
30
  iplROzUF++Prmx2JGuO6kA==
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2008-02-25 00:00:00 +08:00
33
+ date: 2008-04-02 00:00:00 +08:00
34
34
  default_executable:
35
35
  dependencies: []
36
36
 
@@ -64,6 +64,7 @@ files:
64
64
  - lib/ankoder/ext.rb
65
65
  - lib/ankoder/job.rb
66
66
  - lib/ankoder/profile.rb
67
+ - lib/ankoder/upload.rb
67
68
  - lib/ankoder/version.rb
68
69
  - lib/ankoder/video.rb
69
70
  - log/debug.log
metadata.gz.sig CHANGED
Binary file