rrb-common 0.1.0 → 0.1.1
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/lib/{rune.rb → rune/common.rb} +3 -6
- data/lib/rune/network/buffer.rb +0 -1
- data/lib/rune/network/readable.rb +2 -2
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a89ece581da2c2543310b1bee958c9add7263270b4a95dfdb385fc3f38bf0c8a
|
4
|
+
data.tar.gz: 1ab02fc38ef1ef87aa339da23325f0773faa10dd9113b73f07192ce585bf58c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49d5cb0360eccc6cff918d8802507143c0fa29a5e215f5143caf17e455ae4d88f91bccf96b90319f9867f7328a8a9e89d56b75bec09fb3781827b7fd6f09762e
|
7
|
+
data.tar.gz: 896f914849b9fdde81daee2e3c6d8bc33d37b891f85961a35c2046edc4615f9f13c5251e08c4191c6ca485041fe7bd6b69da0e18eaff85cf7c3930f322812d13
|
@@ -1,13 +1,10 @@
|
|
1
1
|
Dir[File.dirname(__FILE__)].each { |file| $LOAD_PATH.unshift(file) if File.directory? file }
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
# <h1>RuneRb</h1>
|
6
|
-
# <p>A game server written in Ruby targeting the 2006 era (or the 317-377 protocols) of the popular MMORPG, RuneScape.</p>
|
7
|
-
#
|
3
|
+
# A game server written in Ruby targeting the 2006 era (or the 317-377 protocols) of the popular MMORPG, RuneScape.
|
8
4
|
#
|
5
|
+
# @title RuneRb
|
9
6
|
# @author Patrick W.
|
10
|
-
# @since 0.0
|
7
|
+
# @since 0.1.0
|
11
8
|
module RuneRb
|
12
9
|
|
13
10
|
# The Network module contains all common network related classes and modules.
|
data/lib/rune/network/buffer.rb
CHANGED
@@ -30,12 +30,12 @@ module RuneRb::Network::Readable
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
# Enables or Disables bit reading by setting the {
|
33
|
+
# Enables or Disables bit reading by setting the {Readable#bit_access} variable.
|
34
34
|
def switch_access
|
35
35
|
@bit_access = !@bit_access
|
36
36
|
end
|
37
37
|
|
38
|
-
# Completes a bit access by setting the {
|
38
|
+
# Completes a bit access by setting the {Readable#bit_position} to the start of the next byte, then toggling {Readable#bit_access}.
|
39
39
|
def finish_access
|
40
40
|
@bit_position = (@bit_position + 7) / 8
|
41
41
|
switch_access
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rrb-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick W.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: nio4r
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 2.5.9
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 2.5.9
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: dotenv
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,7 +100,7 @@ executables: []
|
|
114
100
|
extensions: []
|
115
101
|
extra_rdoc_files: []
|
116
102
|
files:
|
117
|
-
- lib/rune.rb
|
103
|
+
- lib/rune/common.rb
|
118
104
|
- lib/rune/network/buffer.rb
|
119
105
|
- lib/rune/network/constants.rb
|
120
106
|
- lib/rune/network/isaac.rb
|