nio4r 2.7.0 → 2.7.1

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: ae8b5e59a799c0161b454b1e4dcd97becc5bdb0b835ec6becf2a3a4488b648b5
4
- data.tar.gz: e5b186044e74c4ad7c3b9846d6244dd21938b831eb415eccb63a781a4ee5dc9e
3
+ metadata.gz: 54febf2b0d954eb8270ca97cd81e552f3c8ef975b4abb2d8265dcc6151df725f
4
+ data.tar.gz: 655358505bcbde6a568e585b3f166160d10d97ffd04d8b47ae983e3e6fd3119b
5
5
  SHA512:
6
- metadata.gz: c22f5d7466ede134956ab01ea87c4554ce38a950019519f0a7c4a9f16cbe81c5a338de488d885761bd49393cfd72bf20a857204db13b051d6f59f8e5bc52bc1d
7
- data.tar.gz: 27152f810d81a2f94b7428a3662e991441adb4756e24cb09753addd8d00b1a3a6ea80a2e89580eac76ab5d3328fa368cb43147ccaa9432d70e74a771ce22c863
6
+ metadata.gz: 32cbd3ff499173cd7adb3797fadfda14aea5e74638632609dd4d2bda625f274acd0941a1a6f5790bf080d041c7ecb1d2eb17379e13688500ecf904458e5f6070
7
+ data.tar.gz: b904ecc64938f5206ad046202bdd48d700457967aa49365ab78916584b035ce1b72c6eb77f56ecb9926e1b6aeb7df54960f0380142cba1300bb3edc59e2cb313
data/changes.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 2.6.2
1
+ ## 2.7.0
2
2
 
3
3
  * Convert NIO objects to TypedData API.
4
4
 
@@ -27,7 +27,7 @@ created by Upekshej
27
27
  */
28
28
  public class ByteBuffer extends RubyObject {
29
29
  private static final long serialVersionUID = -6903439483039149324L;
30
- private java.nio.ByteBuffer byteBuffer;
30
+ private transient java.nio.ByteBuffer byteBuffer;
31
31
 
32
32
  public static RaiseException newOverflowError(ThreadContext context, String message) {
33
33
  RubyClass klass = context.runtime.getModule("NIO").getClass("ByteBuffer").getClass("OverflowError");
@@ -14,9 +14,9 @@ import org.jruby.runtime.builtin.IRubyObject;
14
14
 
15
15
  public class Monitor extends RubyObject {
16
16
  private static final long serialVersionUID = -3733782997115074794L;
17
- private SelectionKey key;
17
+ private transient SelectionKey key;
18
18
  private RubyIO io;
19
- private IRubyObject interests, selector, value, closed;
19
+ private transient IRubyObject interests, selector, value, closed;
20
20
 
21
21
  public Monitor(final Ruby ruby, RubyClass rubyClass) {
22
22
  super(ruby, rubyClass);
@@ -22,7 +22,7 @@ import org.jruby.util.io.OpenFile;
22
22
 
23
23
  public class Selector extends RubyObject {
24
24
  private static final long serialVersionUID = -14562818539414873L;
25
- private java.nio.channels.Selector selector;
25
+ private transient java.nio.channels.Selector selector;
26
26
  private HashMap<SelectableChannel,SelectionKey> cancelledKeys;
27
27
  private volatile boolean wakeupFired;
28
28
 
@@ -234,7 +234,7 @@ public class Selector extends RubyObject {
234
234
 
235
235
  cancelKeys();
236
236
  try {
237
- context.getThread().beforeBlockingCall();
237
+ context.getThread().beforeBlockingCall(context);
238
238
  if(timeout.isNil()) {
239
239
  result = this.selector.select();
240
240
  } else {
data/lib/nio/version.rb CHANGED
@@ -6,5 +6,5 @@
6
6
  # Copyright, 2023, by Tsimnuj Hawj.
7
7
 
8
8
  module NIO
9
- VERSION = "2.7.0"
9
+ VERSION = "2.7.1"
10
10
  end
data/nio4r.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
6
6
  spec.authors = ["Tony Arcieri"]
7
7
  spec.email = ["bascule@gmail.com"]
8
8
  spec.homepage = "https://github.com/socketry/nio4r"
9
- spec.license = "MIT AND (BSD-2-Clause OR GPL-2.0-or-later)"
9
+ spec.licenses = ["MIT", "BSD-2-Clause"]
10
10
  spec.summary = "New IO for Ruby"
11
11
  spec.description = <<-DESCRIPTION.strip.gsub(/\s+/, " ")
12
12
  Cross-platform asynchronous I/O primitives for scalable network clients
data/readme.md CHANGED
@@ -68,6 +68,10 @@ to maintain a large codebase.
68
68
 
69
69
  ## Releases
70
70
 
71
+ Bump the version first:
72
+
73
+ bundle exec bake gem:release:version:patch
74
+
71
75
  ### CRuby
72
76
 
73
77
  rake clean
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nio4r
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-01 00:00:00.000000000 Z
11
+ date: 2024-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,12 +108,13 @@ files:
108
108
  - spec/support/selectable_examples.rb
109
109
  homepage: https://github.com/socketry/nio4r
110
110
  licenses:
111
- - MIT AND (BSD-2-Clause OR GPL-2.0-or-later)
111
+ - MIT
112
+ - BSD-2-Clause
112
113
  metadata:
113
114
  bug_tracker_uri: https://github.com/socketry/nio4r/issues
114
115
  changelog_uri: https://github.com/socketry/nio4r/blob/main/changes.md
115
- documentation_uri: https://www.rubydoc.info/gems/nio4r/2.6.1
116
- source_code_uri: https://github.com/socketry/nio4r/tree/v2.6.1
116
+ documentation_uri: https://www.rubydoc.info/gems/nio4r/2.7.1
117
+ source_code_uri: https://github.com/socketry/nio4r/tree/v2.7.1
117
118
  wiki_uri: https://github.com/socketry/nio4r/wiki
118
119
  funding_uri: https://github.com/sponsors/ioquatix/
119
120
  post_install_message:
@@ -131,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
132
  - !ruby/object:Gem::Version
132
133
  version: '0'
133
134
  requirements: []
134
- rubygems_version: 3.4.22
135
+ rubygems_version: 3.2.22
135
136
  signing_key:
136
137
  specification_version: 4
137
138
  summary: New IO for Ruby