connpass_api_v2 0.1.0 → 0.1.2.beta1
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 +4 -4
- data/CHANGELOG.md +8 -1
- data/README.md +15 -0
- data/lib/connpass_api_v2/client/event_methods.rb +1 -0
- data/lib/connpass_api_v2/client/group_methods.rb +1 -0
- data/lib/connpass_api_v2/client/user_methods.rb +1 -0
- data/lib/connpass_api_v2/client.rb +2 -1
- data/lib/connpass_api_v2/response.rb +15 -0
- data/lib/connpass_api_v2/version.rb +1 -1
- data/rbs_collection.lock.yaml +32 -20
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a9e194bb009152e67970d3702e391134e7d2c067ec57e4ec0d576cc9620804b
|
|
4
|
+
data.tar.gz: 31849eb78513b17b0ec3bba450bb6de59633829acad3bbfa55a6d8c644a0355f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d1c410706f4e67618ec2e5cc804109a7c99b54b3678ba830f545deb9ea05d418ec05c05a5e96c6d90ce4edf92dd9b8d70533096c067e80d9f8ca7b7a66c5b93
|
|
7
|
+
data.tar.gz: 25738cf270744b5cb71ec81e37c67da928a8b9418d726e463a674cfd40b8d763c8514a464ec6dbbd151ee033f1edb0a949c57eae538bcf1cca57136b18cbb99e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
|
+
[full changelog](http://github.com/sue445/connpass_api_v2-ruby/compare/v0.1.1...main)
|
|
2
3
|
|
|
3
|
-
## [
|
|
4
|
+
## [v0.1.1](https://github.com/sue445/connpass_api_v2-ruby/releases/tag/v0.1.1) - 2025-11-29
|
|
5
|
+
[full changelog](http://github.com/sue445/connpass_api_v2-ruby/compare/v0.1.0...v0.1.1)
|
|
6
|
+
|
|
7
|
+
* Release gem from GitHub Actions
|
|
8
|
+
* https://github.com/sue445/connpass_api_v2-ruby/pull/33
|
|
9
|
+
|
|
10
|
+
## [v0.1.0](https://github.com/sue445/connpass_api_v2-ruby/releases/tag/v0.1.0) - 2025-04-05
|
|
4
11
|
|
|
5
12
|
- Initial release
|
data/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# ConnpassApiV2
|
|
2
2
|
[connpass API v2](https://connpass.com/about/api/v2/) client for Ruby
|
|
3
3
|
|
|
4
|
+
[](https://badge.fury.io/rb/connpass_api_v2)
|
|
4
5
|
[](https://github.com/sue445/connpass_api_v2-ruby/actions/workflows/test.yml)
|
|
5
6
|
|
|
7
|
+
## Requirements
|
|
8
|
+
* [connpass API key](https://connpass.com/about/api/v2/#section/%E6%A6%82%E8%A6%81/%E8%AA%8D%E8%A8%BC)
|
|
9
|
+
|
|
6
10
|
## Installation
|
|
7
11
|
|
|
8
12
|
Install the gem and add to the application's Gemfile by executing:
|
|
@@ -24,6 +28,17 @@ require "connpass_api_v2"
|
|
|
24
28
|
client = ConnpassApiV2.client(ENV["CONNPASS_API_KEY"])
|
|
25
29
|
|
|
26
30
|
client.get_events
|
|
31
|
+
|
|
32
|
+
res = client.get_events(nickname: "sue445", count: 100)
|
|
33
|
+
|
|
34
|
+
res.events.count
|
|
35
|
+
#=> 100
|
|
36
|
+
|
|
37
|
+
res.events[0].title
|
|
38
|
+
#=> "STORES.rb RubyKaigi 2025 直前スペシャル"
|
|
39
|
+
|
|
40
|
+
res.events[0].url
|
|
41
|
+
#=> "https://hey.connpass.com/event/347445/"
|
|
27
42
|
```
|
|
28
43
|
|
|
29
44
|
All methods are followings
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module ConnpassApiV2
|
|
4
|
+
# connpass API client
|
|
4
5
|
class Client
|
|
5
6
|
autoload :EventMethods, "connpass_api_v2/client/event_methods"
|
|
6
7
|
autoload :GroupMethods, "connpass_api_v2/client/group_methods"
|
|
@@ -68,7 +69,7 @@ module ConnpassApiV2
|
|
|
68
69
|
newest: 3,
|
|
69
70
|
}
|
|
70
71
|
|
|
71
|
-
order_to_num[order] || order
|
|
72
|
+
order_to_num[order] || order
|
|
72
73
|
end
|
|
73
74
|
|
|
74
75
|
private
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
# @!parse
|
|
4
|
+
# module Hashie
|
|
5
|
+
# # @see https://www.rubydoc.info/gems/hashie/Hashie/Hash
|
|
6
|
+
# class Hash < ::Hash
|
|
7
|
+
# end
|
|
8
|
+
#
|
|
9
|
+
# # @see https://www.rubydoc.info/gems/hashie/Hashie/Mash
|
|
10
|
+
# class Mash < Hash
|
|
11
|
+
# end
|
|
12
|
+
# end
|
|
13
|
+
|
|
3
14
|
module ConnpassApiV2
|
|
15
|
+
# connpass API response
|
|
16
|
+
#
|
|
17
|
+
# @see https://www.rubydoc.info/gems/hashie/Hashie/Hash
|
|
18
|
+
# @see https://www.rubydoc.info/gems/hashie/Hashie/Mash
|
|
4
19
|
class Response < Hashie::Mash
|
|
5
20
|
disable_warnings # steep:ignore
|
|
6
21
|
end
|
data/rbs_collection.lock.yaml
CHANGED
|
@@ -6,7 +6,7 @@ gems:
|
|
|
6
6
|
source:
|
|
7
7
|
type: git
|
|
8
8
|
name: ruby/gem_rbs_collection
|
|
9
|
-
revision:
|
|
9
|
+
revision: bc8394e60b1d20e2332104e60b64b283d025be57
|
|
10
10
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
11
11
|
repo_dir: gems
|
|
12
12
|
- name: ast
|
|
@@ -14,23 +14,19 @@ gems:
|
|
|
14
14
|
source:
|
|
15
15
|
type: git
|
|
16
16
|
name: ruby/gem_rbs_collection
|
|
17
|
-
revision:
|
|
17
|
+
revision: bc8394e60b1d20e2332104e60b64b283d025be57
|
|
18
18
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
19
19
|
repo_dir: gems
|
|
20
20
|
- name: bigdecimal
|
|
21
|
-
version:
|
|
21
|
+
version: 4.1.2
|
|
22
22
|
source:
|
|
23
|
-
type:
|
|
24
|
-
name: ruby/gem_rbs_collection
|
|
25
|
-
revision: 61a28f2cc8fe29f87c6d9d7da03615f5f0289c36
|
|
26
|
-
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
27
|
-
repo_dir: gems
|
|
23
|
+
type: rubygems
|
|
28
24
|
- name: binding_of_caller
|
|
29
25
|
version: '1.0'
|
|
30
26
|
source:
|
|
31
27
|
type: git
|
|
32
28
|
name: ruby/gem_rbs_collection
|
|
33
|
-
revision:
|
|
29
|
+
revision: bc8394e60b1d20e2332104e60b64b283d025be57
|
|
34
30
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
35
31
|
repo_dir: gems
|
|
36
32
|
- name: date
|
|
@@ -42,7 +38,7 @@ gems:
|
|
|
42
38
|
source:
|
|
43
39
|
type: git
|
|
44
40
|
name: ruby/gem_rbs_collection
|
|
45
|
-
revision:
|
|
41
|
+
revision: bc8394e60b1d20e2332104e60b64b283d025be57
|
|
46
42
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
47
43
|
repo_dir: gems
|
|
48
44
|
- name: faraday
|
|
@@ -50,7 +46,7 @@ gems:
|
|
|
50
46
|
source:
|
|
51
47
|
type: git
|
|
52
48
|
name: ruby/gem_rbs_collection
|
|
53
|
-
revision:
|
|
49
|
+
revision: bc8394e60b1d20e2332104e60b64b283d025be57
|
|
54
50
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
55
51
|
repo_dir: gems
|
|
56
52
|
- name: fileutils
|
|
@@ -66,7 +62,7 @@ gems:
|
|
|
66
62
|
source:
|
|
67
63
|
type: git
|
|
68
64
|
name: ruby/gem_rbs_collection
|
|
69
|
-
revision:
|
|
65
|
+
revision: bc8394e60b1d20e2332104e60b64b283d025be57
|
|
70
66
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
71
67
|
repo_dir: gems
|
|
72
68
|
- name: hashie
|
|
@@ -74,7 +70,7 @@ gems:
|
|
|
74
70
|
source:
|
|
75
71
|
type: git
|
|
76
72
|
name: ruby/gem_rbs_collection
|
|
77
|
-
revision:
|
|
73
|
+
revision: bc8394e60b1d20e2332104e60b64b283d025be57
|
|
78
74
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
79
75
|
repo_dir: gems
|
|
80
76
|
- name: json
|
|
@@ -82,9 +78,13 @@ gems:
|
|
|
82
78
|
source:
|
|
83
79
|
type: stdlib
|
|
84
80
|
- name: logger
|
|
85
|
-
version: '
|
|
81
|
+
version: '1.7'
|
|
86
82
|
source:
|
|
87
|
-
type:
|
|
83
|
+
type: git
|
|
84
|
+
name: ruby/gem_rbs_collection
|
|
85
|
+
revision: bc8394e60b1d20e2332104e60b64b283d025be57
|
|
86
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
87
|
+
repo_dir: gems
|
|
88
88
|
- name: monitor
|
|
89
89
|
version: '0'
|
|
90
90
|
source:
|
|
@@ -102,25 +102,37 @@ gems:
|
|
|
102
102
|
source:
|
|
103
103
|
type: git
|
|
104
104
|
name: ruby/gem_rbs_collection
|
|
105
|
-
revision:
|
|
105
|
+
revision: bc8394e60b1d20e2332104e60b64b283d025be57
|
|
106
106
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
107
107
|
repo_dir: gems
|
|
108
|
+
- name: prism
|
|
109
|
+
version: 1.9.0
|
|
110
|
+
source:
|
|
111
|
+
type: rubygems
|
|
108
112
|
- name: rake
|
|
109
113
|
version: '13.0'
|
|
110
114
|
source:
|
|
111
115
|
type: git
|
|
112
116
|
name: ruby/gem_rbs_collection
|
|
113
|
-
revision:
|
|
117
|
+
revision: bc8394e60b1d20e2332104e60b64b283d025be57
|
|
114
118
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
115
119
|
repo_dir: gems
|
|
120
|
+
- name: rdoc
|
|
121
|
+
version: '0'
|
|
122
|
+
source:
|
|
123
|
+
type: stdlib
|
|
116
124
|
- name: rspec-parameterized-core
|
|
117
|
-
version:
|
|
125
|
+
version: 2.0.2
|
|
118
126
|
source:
|
|
119
127
|
type: rubygems
|
|
120
128
|
- name: rspec-parameterized-table_syntax
|
|
121
|
-
version: 1.
|
|
129
|
+
version: 2.1.1
|
|
122
130
|
source:
|
|
123
131
|
type: rubygems
|
|
132
|
+
- name: strscan
|
|
133
|
+
version: '0'
|
|
134
|
+
source:
|
|
135
|
+
type: stdlib
|
|
124
136
|
- name: timeout
|
|
125
137
|
version: '0'
|
|
126
138
|
source:
|
|
@@ -134,7 +146,7 @@ gems:
|
|
|
134
146
|
source:
|
|
135
147
|
type: git
|
|
136
148
|
name: ruby/gem_rbs_collection
|
|
137
|
-
revision:
|
|
149
|
+
revision: bc8394e60b1d20e2332104e60b64b283d025be57
|
|
138
150
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
139
151
|
repo_dir: gems
|
|
140
152
|
gemfile_lock_path: Gemfile.lock
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: connpass_api_v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2.beta1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: faraday
|
|
@@ -79,6 +79,20 @@ dependencies:
|
|
|
79
79
|
- - ">="
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
81
|
version: '0'
|
|
82
|
+
- !ruby/object:Gem::Dependency
|
|
83
|
+
name: rdoc
|
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - ">="
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '0'
|
|
89
|
+
type: :development
|
|
90
|
+
prerelease: false
|
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
92
|
+
requirements:
|
|
93
|
+
- - ">="
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: '0'
|
|
82
96
|
- !ruby/object:Gem::Dependency
|
|
83
97
|
name: rspec
|
|
84
98
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -216,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
216
230
|
- !ruby/object:Gem::Version
|
|
217
231
|
version: '0'
|
|
218
232
|
requirements: []
|
|
219
|
-
rubygems_version:
|
|
233
|
+
rubygems_version: 4.0.16
|
|
220
234
|
specification_version: 4
|
|
221
235
|
summary: connpass API v2 client for Ruby
|
|
222
236
|
test_files: []
|