goraku 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbf0288e1f5ea51d0e88be36c5ca488be371f6c4
4
- data.tar.gz: 855453e29910eb181db973c8aab7aedd5afd8696
3
+ metadata.gz: 5c816a595b2045ff87c6337a1f7b7c37cd37b3ec
4
+ data.tar.gz: 66844be593e95360401d17f55e8b38df73bba62b
5
5
  SHA512:
6
- metadata.gz: 835b0071c5028b793d90a611d24504fc8d4116c74d85e6f55d2fe2a4115fa94472d1c57f09fcb7c820cca7b040732d8f6edb5d5e83543b0b7c9d82114b81b8d4
7
- data.tar.gz: 46d535993fb1c47d97b36cee4eb91a51964ab8e2c835eb32385511c09acda6871eda9a2131492b1033b4e6290026729f0024c25c4017f47a426448f32bdf8bc6
6
+ metadata.gz: 80c8c0dce92b09eb24c6fef8e7b36ccecdaadee0e3a917993a68fcaf35667c7e1930f84b2a3762b8f945746fdada0b71fe4419f50c63dc522820956c26d88ba0
7
+ data.tar.gz: 671a3ba6b9e01ca0f4eb9bc08ca1d92c648e97d1d1ff7d38559c76a1208874033c4f6a391a202e31c546255ba222552aa85ee6e028d7812d524dd32f7f490477
@@ -1,3 +1,11 @@
1
+ # 0.2.0
2
+
3
+ - Implements StatusAPI
4
+ - Implements StorageAPI
5
+ - Implements LogAPI
6
+ - Add format param for RecordedProgramFileAPI
7
+ - Add ReservedProgramActionAPI
8
+
1
9
  # 0.1.2
2
10
 
3
11
  Fix ScheduleChannelProgramsAPI endpoint
@@ -3,6 +3,7 @@ require 'sawyer'
3
3
  require 'goraku/configurable'
4
4
  require 'goraku/authentication'
5
5
 
6
+ require 'goraku/client/log'
6
7
  require 'goraku/client/program'
7
8
  require 'goraku/client/recorded'
8
9
  require 'goraku/client/recording'
@@ -10,6 +11,8 @@ require 'goraku/client/reserves'
10
11
  require 'goraku/client/rules'
11
12
  require 'goraku/client/schedule'
12
13
  require 'goraku/client/scheduler'
14
+ require 'goraku/client/status'
15
+ require 'goraku/client/storage'
13
16
 
14
17
  module Goraku
15
18
  class Client
@@ -17,6 +20,7 @@ module Goraku
17
20
  include Goraku::Configurable
18
21
  include Goraku::Authentication
19
22
 
23
+ include Goraku::Client::Log
20
24
  include Goraku::Client::Program
21
25
  include Goraku::Client::Recorded
22
26
  include Goraku::Client::Recording
@@ -24,6 +28,8 @@ module Goraku
24
28
  include Goraku::Client::Rules
25
29
  include Goraku::Client::Schedule
26
30
  include Goraku::Client::Scheduler
31
+ include Goraku::Client::Status
32
+ include Goraku::Client::Storage
27
33
 
28
34
  def initialize(options = {})
29
35
  Configurable.keys.each do |key|
@@ -0,0 +1,18 @@
1
+ module Goraku
2
+ class Client
3
+ module Log
4
+
5
+ def operator_log
6
+ get '/log/operator.txt'
7
+ end
8
+
9
+ def wui_log
10
+ get '/log/wui.txt'
11
+ end
12
+
13
+ def scheduler_log
14
+ get '/log/scheduler.txt'
15
+ end
16
+ end
17
+ end
18
+ end
@@ -14,8 +14,8 @@ module Goraku
14
14
  delete "/recorded/#{program_id}.json"
15
15
  end
16
16
 
17
- def recorded_program_file(program_id)
18
- get "/recorded/#{program_id}/file.json"
17
+ def recorded_program_file(program_id, format = 'json')
18
+ get "/recorded/#{program_id}/file.#{format}"
19
19
  end
20
20
 
21
21
  def recorded_program_preview(program_id, format = 'png', options = {})
@@ -13,6 +13,14 @@ module Goraku
13
13
  def delete_reserved_program(program_id)
14
14
  delete "/reserves/#{program_id}.json"
15
15
  end
16
+
17
+ def skip_reserved_program(program_id)
18
+ put "/reserves/#{program_id}/skip.json"
19
+ end
20
+
21
+ def unskip_reserved_program(program_id)
22
+ put "/reserves/#{program_id}/unskip.json"
23
+ end
16
24
  end
17
25
  end
18
26
  end
@@ -0,0 +1,11 @@
1
+ module Goraku
2
+ class Client
3
+ module Status
4
+
5
+ def status
6
+ get "/status.json"
7
+ end
8
+
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ module Goraku
2
+ class Client
3
+ module Storage
4
+
5
+ def storage
6
+ get '/storage.json'
7
+ end
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module Goraku
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goraku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kinoshita.Yasuhiro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-17 00:00:00.000000000 Z
11
+ date: 2015-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sawyer
@@ -114,6 +114,7 @@ files:
114
114
  - lib/goraku.rb
115
115
  - lib/goraku/authentication.rb
116
116
  - lib/goraku/client.rb
117
+ - lib/goraku/client/log.rb
117
118
  - lib/goraku/client/program.rb
118
119
  - lib/goraku/client/recorded.rb
119
120
  - lib/goraku/client/recording.rb
@@ -121,6 +122,8 @@ files:
121
122
  - lib/goraku/client/rules.rb
122
123
  - lib/goraku/client/schedule.rb
123
124
  - lib/goraku/client/scheduler.rb
125
+ - lib/goraku/client/status.rb
126
+ - lib/goraku/client/storage.rb
124
127
  - lib/goraku/configurable.rb
125
128
  - lib/goraku/status_error.rb
126
129
  - lib/goraku/version.rb