xmlrpc 0.3.2 → 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: beb82c31668a9eac6cc5fec044fd06335c42126ce3d4f1f6defda2c987b42ac7
4
- data.tar.gz: 216663d8c70e048ad6522be02c15e737da9bb4f29ffb268cd65fd8e270d52f15
3
+ metadata.gz: 53431a8134df4bd293125d6805ef0c71d29a3843ce264a52d15f34390d25159c
4
+ data.tar.gz: a0a644953cb08ed360be98054d8afe974f84e01a0b1e83c40ab0103fe175f973
5
5
  SHA512:
6
- metadata.gz: f2bc2b1c23323a22e37b5cde407ce06440f16d7b4a7ad733aa996616f04524de93e56b4e4deb37a1bf8a7793234011f4bf88141e4146c1aa5940ffb851de272f
7
- data.tar.gz: 151dc29ed010ce4610c20d6673dea4ce939fdea3bcf287e7eebf728959768c868afe45a0fa8b0c4393754845efe14d0cf7e86b2c1ce046225aee1c8ca123860e
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 }}
@@ -28,9 +28,9 @@ jobs:
28
28
  exclude:
29
29
  - { os: windows , ruby: head }
30
30
  steps:
31
- - uses: actions/checkout@v2
31
+ - uses: actions/checkout@v3
32
32
  - uses: ruby/setup-ruby@v1
33
33
  with:
34
34
  ruby-version: ${{ matrix.ruby }}
35
- - run: bundle install
36
- - run: rake
35
+ bundler-cache: true # 'bundle install' and cache gems
36
+ - run: bundle exec rake
data/NEWS.md CHANGED
@@ -1,5 +1,20 @@
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
+
3
18
  ## 0.3.2
4
19
 
5
20
  ### 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.2"
292
+ VERSION = "0.3.3"
293
293
  end
data/xmlrpc.gemspec CHANGED
@@ -15,8 +15,6 @@ 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
 
@@ -24,5 +22,6 @@ Gem::Specification.new do |spec|
24
22
 
25
23
  spec.add_development_dependency "bundler"
26
24
  spec.add_development_dependency "rake"
25
+ spec.add_development_dependency "rexml"
27
26
  spec.add_development_dependency "test-unit"
28
27
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlrpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - SHIBATA Hiroshi
8
8
  - Sutou Kouhei
9
- autorequire:
10
- bindir: exe
9
+ autorequire:
10
+ bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-04 00:00:00.000000000 Z
12
+ date: 2023-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: webrick
@@ -53,6 +53,20 @@ dependencies:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
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'
56
70
  - !ruby/object:Gem::Dependency
57
71
  name: test-unit
58
72
  requirement: !ruby/object:Gem::Requirement
@@ -76,6 +90,8 @@ executables: []
76
90
  extensions: []
77
91
  extra_rdoc_files: []
78
92
  files:
93
+ - ".github/dependabot.yml"
94
+ - ".github/workflows/release.yml"
79
95
  - ".github/workflows/test.yml"
80
96
  - ".gitignore"
81
97
  - Gemfile
@@ -101,7 +117,7 @@ licenses:
101
117
  - Ruby
102
118
  - BSD-2-Clause
103
119
  metadata: {}
104
- post_install_message:
120
+ post_install_message:
105
121
  rdoc_options: []
106
122
  require_paths:
107
123
  - lib
@@ -116,8 +132,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
132
  - !ruby/object:Gem::Version
117
133
  version: '0'
118
134
  requirements: []
119
- rubygems_version: 3.3.0.dev
120
- signing_key:
135
+ rubygems_version: 3.5.0.dev
136
+ signing_key:
121
137
  specification_version: 4
122
138
  summary: XMLRPC is a lightweight protocol that enables remote procedure calls over
123
139
  HTTP.