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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/goraku/client.rb +6 -0
- data/lib/goraku/client/log.rb +18 -0
- data/lib/goraku/client/recorded.rb +2 -2
- data/lib/goraku/client/reserves.rb +8 -0
- data/lib/goraku/client/status.rb +11 -0
- data/lib/goraku/client/storage.rb +10 -0
- data/lib/goraku/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c816a595b2045ff87c6337a1f7b7c37cd37b3ec
|
4
|
+
data.tar.gz: 66844be593e95360401d17f55e8b38df73bba62b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80c8c0dce92b09eb24c6fef8e7b36ccecdaadee0e3a917993a68fcaf35667c7e1930f84b2a3762b8f945746fdada0b71fe4419f50c63dc522820956c26d88ba0
|
7
|
+
data.tar.gz: 671a3ba6b9e01ca0f4eb9bc08ca1d92c648e97d1d1ff7d38559c76a1208874033c4f6a391a202e31c546255ba222552aa85ee6e028d7812d524dd32f7f490477
|
data/CHANGELOG.md
CHANGED
data/lib/goraku/client.rb
CHANGED
@@ -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|
|
@@ -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
|
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
|
data/lib/goraku/version.rb
CHANGED
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.
|
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-
|
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
|