syoboi_calendar 0.9.3 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e883e8224c5b174aeceebe9868980696569aaec2
4
- data.tar.gz: 16a2a2704d64aaaa71ff8890e54cf7e28f1ce408
2
+ SHA256:
3
+ metadata.gz: 7613269270108da22ab26436487e38ee93012ab220c2e3c28f98772cfec2824b
4
+ data.tar.gz: 7a56f0611f6036b112a172b2f589be6872acde50fccbe5f90bd19d1fd4ee2dd6
5
5
  SHA512:
6
- metadata.gz: 49cc7b046996044c57b86c206356ca3e820e7d73c033cad3f3bd51642e0bffbf9e2d3a97547af8ae690e0436756c393799ebd6666093eefea8f4871adb791339
7
- data.tar.gz: d5b5d9901b05c32c45274ee0b344dd9d66d9c966cdc4db64dbe9d00476746b1c952ee8a25dcd5058f044a3d307b4259d01b9b80050e95fb7b8e0a2e93d92e8e3
6
+ metadata.gz: ecd433c451a6609585fc43edd3af9d94a10316f47e82912d181066f0246a4ab0271e0c90e79a9950e00db9e8228c1c00be46c3f3e64478dcaa1c8ccb20eb8005
7
+ data.tar.gz: 4d80b93395fd058ec8b0301ebc1b7920d2002897e3c80042e84646f627f674034101a6174f41aacbfdc6d3c22a470db83455fb3495ace0fc3077271369fb7abf
@@ -0,0 +1,23 @@
1
+ changelog:
2
+ categories:
3
+ - title: Added
4
+ labels:
5
+ - add
6
+ - title: Changed
7
+ labels:
8
+ - change
9
+ - title: Deprecated
10
+ labels:
11
+ - deprecate
12
+ - title: Fixed
13
+ labels:
14
+ - fix
15
+ - title: Removed
16
+ labels:
17
+ - remove
18
+ - title: Security
19
+ labels:
20
+ - security
21
+ - title: Others
22
+ labels:
23
+ - "*"
@@ -0,0 +1,37 @@
1
+ # This file is machine-generated by `gh actions-lock`.
2
+ # Do not edit by hand; run `gh actions-lock` to update.
3
+ # Docs: https://gh.io/actions-lockfile
4
+ version: 'v0.0.3'
5
+ workflows:
6
+ '.github/workflows/bump-request.yml':
7
+ - 'actions/checkout@v7.0.1'
8
+ - 'r7kamura/bump-request@v0.7.1'
9
+ - 'ruby/setup-ruby@v1.336.0'
10
+ '.github/workflows/release.yml': []
11
+ '.github/workflows/test.yml':
12
+ - 'actions/checkout@v7.0.1'
13
+ - 'ruby/setup-ruby@v1.336.0'
14
+ dependencies:
15
+ 'actions/checkout@v7.0.1':
16
+ ref: 'v7.0.1'
17
+ commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
18
+ owner_id: 44036562
19
+ repo_id: 197814629
20
+ 'actions/setup-node@v7.1.0':
21
+ ref: 'v7.1.0'
22
+ commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1'
23
+ owner_id: 44036562
24
+ repo_id: 189476904
25
+ 'r7kamura/bump-request@v0.7.1':
26
+ ref: 'v0.7.1'
27
+ commit: 'sha1-b27937188d404bc0c2fd442403e6de1d20f9b349'
28
+ owner_id: 111689
29
+ repo_id: 533135195
30
+ uses:
31
+ - 'actions/checkout@v7.0.1'
32
+ - 'actions/setup-node@v7.1.0'
33
+ 'ruby/setup-ruby@v1.336.0':
34
+ ref: 'v1.336.0'
35
+ commit: 'sha1-de492cf36cbab201753d720ce4f4e336cd688c94'
36
+ owner_id: 210414
37
+ repo_id: 231208785
@@ -0,0 +1,26 @@
1
+ name: bump-request
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: Version to change to.
8
+ required: true
9
+ type: string
10
+
11
+ jobs:
12
+ run:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v7.0.1
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1.336.0
18
+ with:
19
+ ruby-version: 3.3
20
+ bundler-cache: true
21
+ - uses: r7kamura/bump-request@v0.7.1
22
+ with:
23
+ command: |
24
+ sed -i -r 's/([0-9]+\.[0-9]+\.[0-9]+)/${{ inputs.version }}/' lib/*/version.rb
25
+ bundle install
26
+ version: ${{ inputs.version }}
@@ -0,0 +1,11 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ release:
10
+ uses: r7kamura/workflows/.github/workflows/gem-release.yml@main
11
+ if: github.repository_owner == 'r7kamura'
@@ -0,0 +1,24 @@
1
+ name: test
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - main
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby:
15
+ - '3.3'
16
+ - '3.4'
17
+ - '4.0'
18
+ steps:
19
+ - uses: actions/checkout@v7.0.1
20
+ - uses: ruby/setup-ruby@v1.336.0
21
+ with:
22
+ ruby-version: ${{ matrix.ruby }}
23
+ bundler-cache: true
24
+ - run: bundle exec rake
data/README.md CHANGED
@@ -1,14 +1,12 @@
1
1
  # SyoboiCalendar
2
2
 
3
- [![CircleCI](https://img.shields.io/circleci/project/github/r7kamura/syoboi_calendar.svg)](https://circleci.com/gh/r7kamura/syoboi_calendar)
4
- [![Gem Version](https://badge.fury.io/rb/syoboi_calendar.svg)](https://rubygems.org/gems/syoboi_calendar)
5
3
  [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/github/r7kamura/syoboi_calendar)
6
4
 
7
5
  An API Client library for http://cal.syoboi.jp/ written in Ruby.
8
6
 
9
7
  ## Requirements
10
8
 
11
- - Ruby 2.2.2 or higher
9
+ - Ruby 3.3 or higher
12
10
 
13
11
  ## Installation
14
12
 
@@ -9,8 +9,8 @@ module SyoboiCalendar
9
9
  # @return [Faraday::Connection]
10
10
  def connection
11
11
  @connection ||= ::Faraday::Connection.new(url: ENDPOINT_BASE_URL) do |connection|
12
- connection.adapter :net_http
13
12
  connection.response :xml
13
+ connection.adapter :net_http
14
14
  end
15
15
  end
16
16
 
@@ -1,3 +1,3 @@
1
1
  module SyoboiCalendar
2
- VERSION = "0.9.3"
2
+ VERSION = "0.10.0"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -4,7 +4,6 @@ require "syoboi_calendar"
4
4
  require "webmock/rspec"
5
5
 
6
6
  RSpec.configure do |config|
7
- config.treat_symbols_as_metadata_keys_with_true_values = true
8
7
  config.run_all_when_everything_filtered = true
9
8
  config.filter_run :focus
10
9
  end
@@ -193,14 +193,14 @@ describe ::SyoboiCalendar::Client do
193
193
 
194
194
  it "returns channels" do
195
195
  channels = subject
196
- channels.first.channel_group_id.should == 1
197
- channels.first.comment.should == "DummyComment"
198
- channels.first.epg_url.should == "http://example.com/epg-url"
199
- channels.first.id.should == 3
200
- channels.first.iepg_name.should == "DummyiEPGName"
201
- channels.first.name.should == "DummyChannelName"
202
- channels.first.number.should == 3
203
- channels.first.url.should == "http://example.com/"
196
+ expect(channels.first.channel_group_id).to eq(1)
197
+ expect(channels.first.comment).to eq("DummyComment")
198
+ expect(channels.first.epg_url).to eq("http://example.com/epg-url")
199
+ expect(channels.first.id).to eq(3)
200
+ expect(channels.first.iepg_name).to eq("DummyiEPGName")
201
+ expect(channels.first.name).to eq("DummyChannelName")
202
+ expect(channels.first.number).to eq(3)
203
+ expect(channels.first.url).to eq("http://example.com/")
204
204
  end
205
205
  end
206
206
  end
@@ -400,19 +400,19 @@ describe ::SyoboiCalendar::Client do
400
400
 
401
401
  it "returns programs" do
402
402
  programs = subject
403
- programs.first.channel_id.should == 3
404
- programs.first.comment.should == "DummyComment"
405
- programs.first.count.should == 1
406
- programs.first.deleted?.should == false
407
- programs.first.finished_at.should == Time.parse("2000-01-01 00:00:00")
408
- programs.first.flag.should == 9
409
- programs.first.id.should == 1
410
- programs.first.revision.should == 2
411
- programs.first.started_at.should == Time.parse("2000-01-01 00:00:00")
412
- programs.first.sub_title.should == "DummySubTitle"
413
- programs.first.title_id.should == 2
414
- programs.first.updated_at.should == Time.parse("2000-01-01 00:00:00")
415
- programs.first.warn.should == 1
403
+ expect(programs.first.channel_id).to eq(3)
404
+ expect(programs.first.comment).to eq("DummyComment")
405
+ expect(programs.first.count).to eq(1)
406
+ expect(programs.first.deleted?).to eq(false)
407
+ expect(programs.first.finished_at).to eq(Time.parse("2000-01-01 00:00:00"))
408
+ expect(programs.first.flag).to eq(9)
409
+ expect(programs.first.id).to eq(1)
410
+ expect(programs.first.revision).to eq(2)
411
+ expect(programs.first.started_at).to eq(Time.parse("2000-01-01 00:00:00"))
412
+ expect(programs.first.sub_title).to eq("DummySubTitle")
413
+ expect(programs.first.title_id).to eq(2)
414
+ expect(programs.first.updated_at).to eq(Time.parse("2000-01-01 00:00:00"))
415
+ expect(programs.first.warn).to eq(1)
416
416
  end
417
417
  end
418
418
  end
@@ -531,23 +531,23 @@ describe ::SyoboiCalendar::Client do
531
531
 
532
532
  it "returns titles" do
533
533
  titles = subject
534
- titles.first.category_id.should == 4
535
- titles.first.comment.should be_a ::SyoboiCalendar::Comment
536
- titles.first.first_channel.should == "DummyChannel"
537
- titles.first.first_end_month.should == 1
538
- titles.first.first_end_year.should == 2000
539
- titles.first.first_month.should == 1
540
- titles.first.first_year.should == 2000
541
- titles.first.keywords.should == "DummyKeywords"
542
- titles.first.short_title.should == "DummyShortTitle"
543
- titles.first.sub_titles.should == "DummySubTitles"
544
- titles.first.id.should == 2
545
- titles.first.name.should == "DummyTitle"
546
- titles.first.english_name.should == "DummyEnglishTitle"
547
- titles.first.flag.should == 0
548
- titles.first.kana.should == "ダミータイトル"
549
- titles.first.user_point.should == 6
550
- titles.first.user_point_rank.should == 1
534
+ expect(titles.first.category_id).to eq(4)
535
+ expect(titles.first.comment).to be_a(::SyoboiCalendar::Comment)
536
+ expect(titles.first.first_channel).to eq("DummyChannel")
537
+ expect(titles.first.first_end_month).to eq(1)
538
+ expect(titles.first.first_end_year).to eq(2000)
539
+ expect(titles.first.first_month).to eq(1)
540
+ expect(titles.first.first_year).to eq(2000)
541
+ expect(titles.first.keywords).to eq("DummyKeywords")
542
+ expect(titles.first.short_title).to eq("DummyShortTitle")
543
+ expect(titles.first.sub_titles).to eq("DummySubTitles")
544
+ expect(titles.first.id).to eq(2)
545
+ expect(titles.first.name).to eq("DummyTitle")
546
+ expect(titles.first.english_name).to eq("DummyEnglishTitle")
547
+ expect(titles.first.flag).to eq(0)
548
+ expect(titles.first.kana).to eq("ダミータイトル")
549
+ expect(titles.first.user_point).to eq(6)
550
+ expect(titles.first.user_point_rank).to eq(1)
551
551
  end
552
552
  end
553
553
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.required_ruby_version = ">= 2.2.2"
19
+ spec.required_ruby_version = ">= 3.3"
20
20
 
21
21
  spec.add_dependency "faraday"
22
22
  spec.add_dependency "faraday_middleware"
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "activesupport"
25
25
  spec.add_development_dependency "pry"
26
26
  spec.add_development_dependency "rake"
27
- spec.add_development_dependency "rspec", "2.14.1"
27
+ spec.add_development_dependency "rspec"
28
28
  spec.add_development_dependency "webmock"
29
29
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syoboi_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2017-02-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -98,16 +97,16 @@ dependencies:
98
97
  name: rspec
99
98
  requirement: !ruby/object:Gem::Requirement
100
99
  requirements:
101
- - - '='
100
+ - - ">="
102
101
  - !ruby/object:Gem::Version
103
- version: 2.14.1
102
+ version: '0'
104
103
  type: :development
105
104
  prerelease: false
106
105
  version_requirements: !ruby/object:Gem::Requirement
107
106
  requirements:
108
- - - '='
107
+ - - ">="
109
108
  - !ruby/object:Gem::Version
110
- version: 2.14.1
109
+ version: '0'
111
110
  - !ruby/object:Gem::Dependency
112
111
  name: webmock
113
112
  requirement: !ruby/object:Gem::Requirement
@@ -122,16 +121,19 @@ dependencies:
122
121
  - - ">="
123
122
  - !ruby/object:Gem::Version
124
123
  version: '0'
125
- description:
126
124
  email:
127
125
  - r7kamura@gmail.com
128
126
  executables: []
129
127
  extensions: []
130
128
  extra_rdoc_files: []
131
129
  files:
130
+ - ".github/release.yml"
131
+ - ".github/workflows/actions.lock"
132
+ - ".github/workflows/bump-request.yml"
133
+ - ".github/workflows/release.yml"
134
+ - ".github/workflows/test.yml"
132
135
  - ".gitignore"
133
136
  - ".rspec"
134
- - CHANGELOG.md
135
137
  - Gemfile
136
138
  - LICENSE
137
139
  - README.md
@@ -165,7 +167,6 @@ homepage: https://github.com/r7kamura/syoboi_calendar
165
167
  licenses:
166
168
  - MIT
167
169
  metadata: {}
168
- post_install_message:
169
170
  rdoc_options: []
170
171
  require_paths:
171
172
  - lib
@@ -173,16 +174,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
174
  requirements:
174
175
  - - ">="
175
176
  - !ruby/object:Gem::Version
176
- version: 2.2.2
177
+ version: '3.3'
177
178
  required_rubygems_version: !ruby/object:Gem::Requirement
178
179
  requirements:
179
180
  - - ">="
180
181
  - !ruby/object:Gem::Version
181
182
  version: '0'
182
183
  requirements: []
183
- rubyforge_project:
184
- rubygems_version: 2.5.2
185
- signing_key:
184
+ rubygems_version: 4.0.20
186
185
  specification_version: 4
187
186
  summary: An API Client library for http://cal.syoboi.jp/ written in Ruby.
188
187
  test_files:
data/CHANGELOG.md DELETED
@@ -1,78 +0,0 @@
1
- ## 0.9.3
2
-
3
- - Fix comment parser logic
4
-
5
- ## 0.9.2
6
-
7
- - Add `SyoboiCalendar::Resources::ProgramResource#rerun?`
8
-
9
- ## 0.9.1
10
-
11
- - Fix bug on personality role name splitting
12
- - Change `SyoboiCalendar::Song` interface
13
-
14
- ## 0.9.0
15
-
16
- - Add `SyoboiCalendar::Resources::TitleResource#casts`
17
- - Add `SyoboiCalendar::Resources::TitleResource#staffs`
18
- - Add `SyoboiCalendar::Resources::TitleResource#songs_ending`
19
- - Add `SyoboiCalendar::Resources::TitleResource#songs_inserted`
20
- - Add `SyoboiCalendar::Resources::TitleResource#songs_opening`
21
- - Add `SyoboiCalendar::Resources::TitleResource#songs_theme`
22
- - Change `SyoboiCalendar::Resources::TitleResource#comment` returned value
23
-
24
- ## 0.8.0
25
-
26
- - Add some methods for error handling
27
- - Add response classes for each API
28
- - Rename query classes
29
- - Deprecate response parser classes
30
-
31
- ## 0.7.0
32
-
33
- - Reveal `BaseResource#source`
34
- - Rename `TitleResource#rank` to `TitleResource#user_point_rank`
35
- - Rename `TitleResource#point` to `TitleResource#user_point`
36
- - Rename `ChannelGroupResource#order_score` to `ChannelGroupResource#order`
37
-
38
- ## 0.6.1
39
-
40
- - Separate response and response parser
41
-
42
- ## 0.6.0
43
-
44
- - Support channel groups
45
- - Change resource attribute name from `group_id` to `channel_group_id`
46
-
47
- ## 0.5.1
48
-
49
- - Support :title_id options on list_programs method
50
- - Support :fields option on list_programs and list_titles
51
- - Support multiple IDs and counts options on client methods
52
-
53
- ## 0.5.0
54
-
55
- - Refactor internal implementation
56
- - Remove `:include` option
57
- - Add `TID=*` query if no `:title_id` option given on `#list_titles`
58
-
59
- ## 0.4.0
60
-
61
- - Change client method names (e..g `#programs` to `#list_programs`)
62
-
63
- ## 0.3.1
64
-
65
- - Client#programs supports `:include` option for eager-loading related resources
66
-
67
- ## 0.3.0
68
-
69
- - SyoboiCalendar::Client returns an Array of resources
70
-
71
- ## 0.2.1
72
-
73
- - SyoboiCalendar::Client returns a Hashie::Mash as a response
74
-
75
- ## 0.2.0
76
-
77
- - Remake SyoboiCalendar::Client from scratch
78
- - Support GET /db.php API