zencoder-fetcher 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,11 +9,12 @@ Run with the
9
9
  zencoder_fetcher [options] API_KEY
10
10
 
11
11
  Options:
12
- * --url, -u: URL to post the Zencoder notification (default: http://localhost:3000)
13
- * --loop, -l: Run the notifier in a loop.
14
- * --seconds, -s <i>: Check every x seconds. (Default: 60)
15
- * --count, -c <i>: Number of notifications to retrieve per page. (Default: 50)
16
- * --page, -p <i>: The page to load. (Default: 1)
12
+ * --url, -u: URL to post the Zencoder notification (default: http://localhost:3000)
13
+ * --loop, -l: Run the notifier in a loop, as a daemon.
14
+ * --seconds, -s <i>: Check every x seconds. (Default: 60)
15
+ * --count, -c <i>: Number of notifications to retrieve per page. (Default: 50)
16
+ * --page, -p <i>: The page to load. (Default: 1)
17
+ * --since_job_id, -p <i>: Load notifications since the given job_id. (Default gets all jobs)
17
18
 
18
19
  == Note on Patches/Pull Requests
19
20
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -12,7 +12,7 @@ opts = Trollop::options do
12
12
  Zencoder Fetcher helps developers create applications using Zencoder.
13
13
 
14
14
  Usage:
15
- bin/zencoder_fetcher [options] <api_key>
15
+ zencoder_fetcher [options] <api_key>
16
16
 
17
17
  where [options] are:
18
18
  EOS
@@ -21,6 +21,7 @@ EOS
21
21
  opt :seconds, "Check every x seconds.", :short => 's', :type => Integer, :default => 60
22
22
  opt :count, "Number of notifications to retrieve per page.", :short => 'c', :type => Integer, :default => 50
23
23
  opt :page, "The page to load.", :short => 'p', :type => Integer, :default => 1
24
+ opt :since_job_id, "Load notifications since the given job_id.", :short => 'j', :type => Integer, :default => nil
24
25
  opt :all, "Get all records on each request, rather than only new ones.", :short => 'a', :default => false
25
26
  end
26
27
 
@@ -34,7 +35,7 @@ Error: no API Key specified
34
35
 
35
36
  Usage:
36
37
 
37
- bin/zencoder_notifier [options] <api_key>
38
+ zencoder_fetcher [options] <api_key>
38
39
 
39
40
  EOS
40
41
  exit -1
@@ -50,6 +51,7 @@ options[:url] = opts[:url]
50
51
  options[:count] = opts[:count]
51
52
  options[:page] = opts[:page]
52
53
  options[:all] = opts[:all]
54
+ options[:since_job_id] = opts[:since_job_id]
53
55
 
54
56
  begin
55
57
  if opts[:loop]
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{zencoder-fetcher}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["chriswarren"]
12
- s.date = %q{2010-05-13}
12
+ s.date = %q{2010-06-10}
13
13
  s.default_executable = %q{zencoder_fetcher}
14
14
  s.description = %q{Fetches notifications from Zencoder for local development where Zencoder is unable to communicate to the server, usually because it's localhost.}
15
15
  s.email = %q{chris@zencoder.com}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 4
9
- version: 0.1.4
8
+ - 5
9
+ version: 0.1.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - chriswarren
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-13 00:00:00 -05:00
17
+ date: 2010-06-10 00:00:00 -05:00
18
18
  default_executable: zencoder_fetcher
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency