syoboi_calendar 0.9.1 → 0.9.2

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: 1c6a3bc9030335c46951f952b015f41bcc659156
4
- data.tar.gz: 2006ec81adcb5ebc472ac68fe9d083a01e312c17
3
+ metadata.gz: 64bed26decc403c59c6b45cb43a52b982f359dbe
4
+ data.tar.gz: 4f60c7dedf22e16aad725086f91ee71610ab2046
5
5
  SHA512:
6
- metadata.gz: 6c7b75cb9c9b4791087d4d4eb461222d8599fbc380cc8733d79edc8a028faf478ecd3cf16fcc66db808c5f7a42b315740beb7049befcfcc319fca1ccc855641b
7
- data.tar.gz: 5bae958e577c981b030465ebb3daa12626187b231fc0593b197de95ee886e2c2f1e760b159f81ce2c6155938d8f64c6a3c4a0e24cd80fdfbd5a7434af5dcd2de
6
+ metadata.gz: 0e68be18c3062aeac3c5651647a24acc9db35080824994144035c1fd4af099b64ff1d7e92678230e98089002240b1a657e8b49556c7334f8fc0b2612fa3cf9a1
7
+ data.tar.gz: 773bce0b13f1612511d15a50f16ca85c9013130d3b5cab4ef723a22eff753e7c3303f68b30429f248a37fe3560f0b81c72dfb0f1f98f3dd577f249961803135b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.9.2
2
+
3
+ - Add `SyoboiCalendar::Resources::ProgramResource#rerun?`
4
+
1
5
  ## 0.9.1
2
6
 
3
7
  - Fix bug on personality role name splitting
data/README.md CHANGED
@@ -160,6 +160,7 @@ Available methods:
160
160
  - `#flag`
161
161
  - `#id`
162
162
  - `#iepg_name`
163
+ - `#rerun?`
163
164
  - `#revision`
164
165
  - `#started_at`
165
166
  - `#sub_title`
@@ -11,7 +11,6 @@ module SyoboiCalendar
11
11
  @connection ||= ::Faraday::Connection.new(url: ENDPOINT_BASE_URL) do |connection|
12
12
  connection.adapter :net_http
13
13
  connection.response :xml
14
- connection.response :raise_error
15
14
  end
16
15
  end
17
16
 
@@ -23,6 +23,7 @@ module SyoboiCalendar
23
23
  property :Command
24
24
  property :LastUpdate
25
25
 
26
+ # @param options [Hash]
26
27
  def initialize(options = {})
27
28
  @options = options
28
29
  end
@@ -49,12 +50,14 @@ module SyoboiCalendar
49
50
 
50
51
  private
51
52
 
53
+ # @private
52
54
  # @param value_or_values [Array, Integer, String]
53
55
  # @return [String]
54
56
  def format_comma_separated_values(value_or_values)
55
57
  Array(value_or_values).join(",")
56
58
  end
57
59
 
60
+ # @private
58
61
  # @param [Time, nil]
59
62
  # @return [String]
60
63
  def format_time(time)
@@ -63,6 +66,7 @@ module SyoboiCalendar
63
66
  end
64
67
  end
65
68
 
69
+ # @private
66
70
  # @param started_at [Time, nil]
67
71
  # @param finished_at [Time, nil]
68
72
  def format_time_range(started_at, finished_at)
@@ -74,6 +78,7 @@ module SyoboiCalendar
74
78
  end
75
79
  end
76
80
 
81
+ # @private
77
82
  # @return [Hash]
78
83
  def options
79
84
  @options
@@ -54,6 +54,11 @@ module SyoboiCalendar
54
54
  source["ChiEPGName"]
55
55
  end
56
56
 
57
+ # @return [Boolean]
58
+ def rerun?
59
+ !flag.nil? && flag & 0b1000 != 0
60
+ end
61
+
57
62
  # @return [Integer, nil]
58
63
  def revision
59
64
  if source["Revision"]
@@ -1,3 +1,3 @@
1
1
  module SyoboiCalendar
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syoboi_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-12 00:00:00.000000000 Z
11
+ date: 2017-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday