xrc 0.1.8 → 0.2.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 +5 -5
- data/.github/release.yml +23 -0
- data/.github/workflows/actions.lock +37 -0
- data/.github/workflows/bump-request.yml +26 -0
- data/.github/workflows/ci.yml +26 -0
- data/.github/workflows/release.yml +11 -0
- data/lib/xrc/method_loggable.rb +2 -2
- data/lib/xrc/version.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- data/xrc.gemspec +10 -2
- metadata +52 -22
- data/CHANGELOG.md +0 -45
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 5a6ce85e40125c45a1b29bc8926af9d3245063d7a53a31afe3b7b602112f562a
|
|
4
|
+
data.tar.gz: 15e2dc1ccd75a86ab9f6e09b0f3101bb02dc0b94ea5fdbecece768897905ab85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97946aab03bcb43556bed1f9e3c4de240748a6a5317eceb2caea268e279e682e049c0ca3b649f9bd811b2e97ad210f1a0cd9035b5d6d75151839c6b2ab93c0f2
|
|
7
|
+
data.tar.gz: 8eb5265508eccd68ee206e1058cd5bbefe018c3dc4c9179537d4a35353f50889e49edd5d2e44f00bea23f0290eb27a44685deffde52fae1c3d04c66c80e2297d
|
data/.github/release.yml
ADDED
|
@@ -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/ci.yml':
|
|
11
|
+
- 'actions/checkout@v7.0.1'
|
|
12
|
+
- 'ruby/setup-ruby@v1.336.0'
|
|
13
|
+
'.github/workflows/release.yml': []
|
|
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/xrc/version.rb
|
|
25
|
+
bundle install
|
|
26
|
+
version: ${{ inputs.version }}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
name: Ruby ${{ matrix.ruby }}
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
ruby:
|
|
17
|
+
- '3.3'
|
|
18
|
+
- '3.4'
|
|
19
|
+
- '4.0'
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v7.0.1
|
|
22
|
+
- uses: ruby/setup-ruby@v1.336.0
|
|
23
|
+
with:
|
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
|
25
|
+
bundler-cache: true
|
|
26
|
+
- run: bundle exec rspec
|
data/lib/xrc/method_loggable.rb
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require "active_support/core_ext/module/aliasing"
|
|
2
1
|
require "active_support/logger"
|
|
3
2
|
|
|
4
3
|
module Xrc
|
|
@@ -16,7 +15,8 @@ module Xrc
|
|
|
16
15
|
Xrc::MethodLoggable.logger.info(instance_exec(*args, &block))
|
|
17
16
|
__send__("#{method_name}_without_log", *args)
|
|
18
17
|
end
|
|
19
|
-
|
|
18
|
+
alias_method "#{method_name}_without_log", method_name
|
|
19
|
+
alias_method method_name, "#{method_name}_with_log"
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
end
|
data/lib/xrc/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/xrc.gemspec
CHANGED
|
@@ -11,14 +11,22 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.homepage = "https://github.com/r7kamura/xrc"
|
|
12
12
|
spec.license = "MIT"
|
|
13
13
|
|
|
14
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
15
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
16
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/releases"
|
|
17
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
18
|
+
|
|
14
19
|
spec.files = `git ls-files -z`.split("\x0")
|
|
15
20
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
16
21
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
17
22
|
spec.require_paths = ["lib"]
|
|
23
|
+
spec.required_ruby_version = ">= 3.3"
|
|
18
24
|
|
|
19
25
|
spec.add_dependency "activesupport"
|
|
20
|
-
spec.
|
|
26
|
+
spec.add_dependency "base64"
|
|
27
|
+
spec.add_dependency "ostruct"
|
|
28
|
+
spec.add_dependency "rexml"
|
|
21
29
|
spec.add_development_dependency "pry"
|
|
22
30
|
spec.add_development_dependency "rake"
|
|
23
|
-
spec.add_development_dependency "rspec"
|
|
31
|
+
spec.add_development_dependency "rspec"
|
|
24
32
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xrc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryo Nakamura
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activesupport
|
|
@@ -25,19 +24,47 @@ dependencies:
|
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '0'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
27
|
+
name: base64
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
|
-
- - "
|
|
30
|
+
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
34
|
-
type: :
|
|
32
|
+
version: '0'
|
|
33
|
+
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
|
-
- - "
|
|
37
|
+
- - ">="
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
39
|
+
version: '0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: ostruct
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: rexml
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - ">="
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '0'
|
|
61
|
+
type: :runtime
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - ">="
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '0'
|
|
41
68
|
- !ruby/object:Gem::Dependency
|
|
42
69
|
name: pry
|
|
43
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -70,25 +97,28 @@ dependencies:
|
|
|
70
97
|
name: rspec
|
|
71
98
|
requirement: !ruby/object:Gem::Requirement
|
|
72
99
|
requirements:
|
|
73
|
-
- -
|
|
100
|
+
- - ">="
|
|
74
101
|
- !ruby/object:Gem::Version
|
|
75
|
-
version:
|
|
102
|
+
version: '0'
|
|
76
103
|
type: :development
|
|
77
104
|
prerelease: false
|
|
78
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
106
|
requirements:
|
|
80
|
-
- -
|
|
107
|
+
- - ">="
|
|
81
108
|
- !ruby/object:Gem::Version
|
|
82
|
-
version:
|
|
83
|
-
description:
|
|
109
|
+
version: '0'
|
|
84
110
|
email:
|
|
85
111
|
- r7kamura@gmail.com
|
|
86
112
|
executables: []
|
|
87
113
|
extensions: []
|
|
88
114
|
extra_rdoc_files: []
|
|
89
115
|
files:
|
|
116
|
+
- ".github/release.yml"
|
|
117
|
+
- ".github/workflows/actions.lock"
|
|
118
|
+
- ".github/workflows/bump-request.yml"
|
|
119
|
+
- ".github/workflows/ci.yml"
|
|
120
|
+
- ".github/workflows/release.yml"
|
|
90
121
|
- ".gitignore"
|
|
91
|
-
- CHANGELOG.md
|
|
92
122
|
- Gemfile
|
|
93
123
|
- LICENSE.txt
|
|
94
124
|
- README.md
|
|
@@ -132,8 +162,11 @@ files:
|
|
|
132
162
|
homepage: https://github.com/r7kamura/xrc
|
|
133
163
|
licenses:
|
|
134
164
|
- MIT
|
|
135
|
-
metadata:
|
|
136
|
-
|
|
165
|
+
metadata:
|
|
166
|
+
homepage_uri: https://github.com/r7kamura/xrc
|
|
167
|
+
source_code_uri: https://github.com/r7kamura/xrc
|
|
168
|
+
changelog_uri: https://github.com/r7kamura/xrc/releases
|
|
169
|
+
rubygems_mfa_required: 'true'
|
|
137
170
|
rdoc_options: []
|
|
138
171
|
require_paths:
|
|
139
172
|
- lib
|
|
@@ -141,19 +174,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
141
174
|
requirements:
|
|
142
175
|
- - ">="
|
|
143
176
|
- !ruby/object:Gem::Version
|
|
144
|
-
version: '
|
|
177
|
+
version: '3.3'
|
|
145
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
179
|
requirements:
|
|
147
180
|
- - ">="
|
|
148
181
|
- !ruby/object:Gem::Version
|
|
149
182
|
version: '0'
|
|
150
183
|
requirements: []
|
|
151
|
-
|
|
152
|
-
rubygems_version: 2.4.5
|
|
153
|
-
signing_key:
|
|
184
|
+
rubygems_version: 4.0.20
|
|
154
185
|
specification_version: 4
|
|
155
186
|
summary: XMPP Ruby Client.
|
|
156
187
|
test_files:
|
|
157
188
|
- spec/spec_helper.rb
|
|
158
189
|
- spec/xrc/jid_spec.rb
|
|
159
|
-
has_rdoc:
|
data/CHANGELOG.md
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
## 0.1.8
|
|
2
|
-
* Always add id attribute on all post message
|
|
3
|
-
|
|
4
|
-
## 0.1.7
|
|
5
|
-
* Fix error class loading problem
|
|
6
|
-
|
|
7
|
-
## 0.1.6
|
|
8
|
-
* Ignore text node in feature element
|
|
9
|
-
* Provide custom error for authentication failure
|
|
10
|
-
|
|
11
|
-
## 0.1.5
|
|
12
|
-
* Supress control characters in given message (Thx @masutaka)
|
|
13
|
-
|
|
14
|
-
## 0.1.4
|
|
15
|
-
* Add `on_connection_established` callback
|
|
16
|
-
|
|
17
|
-
## 0.1.3
|
|
18
|
-
* Fix `room_name` method for invitation message
|
|
19
|
-
|
|
20
|
-
## 0.1.2
|
|
21
|
-
* Support hosts option
|
|
22
|
-
|
|
23
|
-
## 0.1.1
|
|
24
|
-
* Support invite message
|
|
25
|
-
|
|
26
|
-
## 0.1.0
|
|
27
|
-
* Support comma-separated multi room JIDs
|
|
28
|
-
|
|
29
|
-
## 0.0.6
|
|
30
|
-
* Add `Xrc::Messages::Base#delayed?` method
|
|
31
|
-
|
|
32
|
-
## 0.0.5
|
|
33
|
-
* Add attr_writer for Xrc::Jid's attributes
|
|
34
|
-
|
|
35
|
-
## 0.0.4
|
|
36
|
-
* Unescape HTML entities in message body
|
|
37
|
-
|
|
38
|
-
## 0.0.3
|
|
39
|
-
* Make Xrc::Client#say public
|
|
40
|
-
|
|
41
|
-
## 0.0.2
|
|
42
|
-
* Fix authentication timing
|
|
43
|
-
|
|
44
|
-
## 0.0.1
|
|
45
|
-
* 1st Release
|