xmlrpc 0.3.1 → 0.3.3

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
  SHA256:
3
- metadata.gz: '033781b41a00cd9ae6a6a5f82fe72f89a94cdfe724c38721c593fa28ee4002c6'
4
- data.tar.gz: a6bc844abbc8e8829ebf1c6ca5884f176cbf1caf8d94b1530a2b0b6e60c3ebd7
3
+ metadata.gz: 53431a8134df4bd293125d6805ef0c71d29a3843ce264a52d15f34390d25159c
4
+ data.tar.gz: a0a644953cb08ed360be98054d8afe974f84e01a0b1e83c40ab0103fe175f973
5
5
  SHA512:
6
- metadata.gz: 0a1ebb33a2e8e9dbf8aabbdbf622f181687582d991acdd258db31a2430162f592393520b8cd73a7340b6bd8cac15bad731c6e7abc2beeffdaff32d4c59bbf72b
7
- data.tar.gz: cfbff48a3ddf0af2ac256f1dd4596570d86cd65e10b4bef97b785fb4bf27074597e411749a9b919c6f72b9eb8cb2489f1c22368bcaa7dbcf9b99486f6b8693c2
6
+ metadata.gz: 79a802bf935c8a7e0fe4aebfa3b927dc5106c9a05d57d75c5f6ace965077972e6f99c63fe7ce5dca60af134fa9c3232db6cb48afeca8997d1a8dc4fc64188e60
7
+ data.tar.gz: d0395846e7cc156e06ef8afd00bddd062ad629c1c039ce8a7f3b6943f40f58440eeb8fb973c1872ea33788e3e5005610f50b23202a736132b619495d8a972e68
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: 'github-actions'
4
+ directory: '/'
5
+ schedule:
6
+ interval: 'weekly'
@@ -0,0 +1,30 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "*"
7
+
8
+ jobs:
9
+ github:
10
+ name: GitHub
11
+ runs-on: ubuntu-latest
12
+ timeout-minutes: 10
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - name: Extract release note
16
+ run: |
17
+ ruby \
18
+ -e 'print("## xmlrpc "); \
19
+ puts(ARGF.read.split(/^## /)[1])' \
20
+ NEWS.md > release-note.md
21
+ - name: Upload to release
22
+ run: |
23
+ title=$(head -n1 release-note.md | sed -e 's/^## //')
24
+ tail -n +2 release-note.md > release-note-without-version.md
25
+ gh release create ${GITHUB_REF_NAME} \
26
+ --discussion-category Announcements \
27
+ --notes-file release-note-without-version.md \
28
+ --title "${title}"
29
+ env:
30
+ GH_TOKEN: ${{ github.token }}
@@ -17,9 +17,10 @@ jobs:
17
17
  - macos
18
18
  - windows
19
19
  ruby:
20
- - 2.5
21
- - 2.6
22
- - 2.7
20
+ - "2.5"
21
+ - "2.6"
22
+ - "2.7"
23
+ - "3.0"
23
24
  - head
24
25
  include:
25
26
  - { os: windows , ruby: mingw }
@@ -27,9 +28,9 @@ jobs:
27
28
  exclude:
28
29
  - { os: windows , ruby: head }
29
30
  steps:
30
- - uses: actions/checkout@v2
31
+ - uses: actions/checkout@v3
31
32
  - uses: ruby/setup-ruby@v1
32
33
  with:
33
34
  ruby-version: ${{ matrix.ruby }}
34
- - run: bundle install
35
- - run: rake
35
+ bundler-cache: true # 'bundle install' and cache gems
36
+ - run: bundle exec rake
data/NEWS.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # News
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### Improvements
6
+
7
+ * GH-36: Stopped to unmarshal all classes. Classes that include
8
+ `XMLRPC::Marshallable` are only allowed.
9
+
10
+ [Patch by ooooooo-q]
11
+ [Found by ooooooo-q and plenumlab separately]
12
+
13
+ ### Thanks
14
+
15
+ * ooooooo-q
16
+ * plenumlab
17
+
18
+ ## 0.3.2
19
+
20
+ ### Improvements
21
+
22
+ * Added support for Ruby 3.0.
23
+ [GitHub#27][Reported by Herwin Weststrate]
24
+
25
+ ### Thanks
26
+
27
+ * Herwin Weststrate
28
+
3
29
  ## 0.3.1
4
30
 
5
31
  ### Improvements
data/lib/xmlrpc/parser.rb CHANGED
@@ -113,6 +113,7 @@ module XMLRPC # :nodoc:
113
113
  begin
114
114
  mod = Module
115
115
  klass.split("::").each {|const| mod = mod.const_get(const.strip)}
116
+ return hash unless mod.included_modules.include?(XMLRPC::Marshallable)
116
117
 
117
118
  obj = mod.allocate
118
119
 
data/lib/xmlrpc.rb CHANGED
@@ -289,5 +289,5 @@
289
289
  #
290
290
  # You can change the XML-writer by calling method ParserWriterChooseMixin#set_writer.
291
291
  module XMLRPC
292
- VERSION = "0.3.1"
292
+ VERSION = "0.3.3"
293
293
  end
data/xmlrpc.gemspec CHANGED
@@ -6,8 +6,8 @@ require 'xmlrpc'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "xmlrpc"
8
8
  spec.version = XMLRPC::VERSION
9
- spec.authors = ["SHIBATA Hiroshi"]
10
- spec.email = ["hsbt@ruby-lang.org"]
9
+ spec.authors = ["SHIBATA Hiroshi", "Sutou Kouhei"]
10
+ spec.email = ["hsbt@ruby-lang.org", "kou@cozmixng.org"]
11
11
 
12
12
  spec.summary = %q{XMLRPC is a lightweight protocol that enables remote procedure calls over HTTP.}
13
13
  spec.description = %q{XMLRPC is a lightweight protocol that enables remote procedure calls over HTTP.}
@@ -15,12 +15,13 @@ Gem::Specification.new do |spec|
15
15
  spec.licenses = ["Ruby", "BSD-2-Clause"]
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
- spec.bindir = "exe"
19
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
18
  spec.require_paths = ["lib"]
21
19
  spec.required_ruby_version = ">= 2.3"
22
20
 
21
+ spec.add_dependency "webrick"
22
+
23
23
  spec.add_development_dependency "bundler"
24
24
  spec.add_development_dependency "rake"
25
+ spec.add_development_dependency "rexml"
25
26
  spec.add_development_dependency "test-unit"
26
27
  end
metadata CHANGED
@@ -1,15 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlrpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - SHIBATA Hiroshi
8
- autorequire:
9
- bindir: exe
8
+ - Sutou Kouhei
9
+ autorequire:
10
+ bindir: bin
10
11
  cert_chain: []
11
- date: 2020-11-22 00:00:00.000000000 Z
12
+ date: 2023-08-01 00:00:00.000000000 Z
12
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: webrick
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
13
28
  - !ruby/object:Gem::Dependency
14
29
  name: bundler
15
30
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +53,20 @@ dependencies:
38
53
  - - ">="
39
54
  - !ruby/object:Gem::Version
40
55
  version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rexml
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
41
70
  - !ruby/object:Gem::Dependency
42
71
  name: test-unit
43
72
  requirement: !ruby/object:Gem::Requirement
@@ -56,10 +85,13 @@ description: XMLRPC is a lightweight protocol that enables remote procedure call
56
85
  over HTTP.
57
86
  email:
58
87
  - hsbt@ruby-lang.org
88
+ - kou@cozmixng.org
59
89
  executables: []
60
90
  extensions: []
61
91
  extra_rdoc_files: []
62
92
  files:
93
+ - ".github/dependabot.yml"
94
+ - ".github/workflows/release.yml"
63
95
  - ".github/workflows/test.yml"
64
96
  - ".gitignore"
65
97
  - Gemfile
@@ -85,7 +117,7 @@ licenses:
85
117
  - Ruby
86
118
  - BSD-2-Clause
87
119
  metadata: {}
88
- post_install_message:
120
+ post_install_message:
89
121
  rdoc_options: []
90
122
  require_paths:
91
123
  - lib
@@ -100,8 +132,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
132
  - !ruby/object:Gem::Version
101
133
  version: '0'
102
134
  requirements: []
103
- rubygems_version: 3.2.0.rc.2
104
- signing_key:
135
+ rubygems_version: 3.5.0.dev
136
+ signing_key:
105
137
  specification_version: 4
106
138
  summary: XMLRPC is a lightweight protocol that enables remote procedure calls over
107
139
  HTTP.