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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 339ea3353a55193acc1cbe6fcb8dc51f9731f72e9ffffeb864c10f4167c1cd84
4
- data.tar.gz: eff3b5a43e2efaed07990b15be1dfb42547bfbdc16cd980f6589f193cc91b258
3
+ metadata.gz: a89ece581da2c2543310b1bee958c9add7263270b4a95dfdb385fc3f38bf0c8a
4
+ data.tar.gz: 1ab02fc38ef1ef87aa339da23325f0773faa10dd9113b73f07192ce585bf58c0
5
5
  SHA512:
6
- metadata.gz: 7e2a4ccef86a0fbea08fc8c2ab5a143e350225df42d6d1a8ca56e1d97723429c8294fc2c1802c5dbde2b683e7c5f09e88989f829e0ef73a8c23b03e6d0a2083d
7
- data.tar.gz: 58aca74385f3e52b34d9252954481ddc388bcadd47b2203a58ca46033db0f851efba59fc6fb11193f3e9ad7726d6cbe2155b0f328e31c7b1f105d41374566725
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
- require 'nio/bytebuffer'
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.1
7
+ # @since 0.1.0
11
8
  module RuneRb
12
9
 
13
10
  # The Network module contains all common network related classes and modules.
@@ -4,7 +4,6 @@ module RuneRb::Network
4
4
  class Buffer
5
5
 
6
6
  # Constructs a new Buffer instance.
7
- # @param capacity [Integer] the capacity of the buffer.
8
7
  # @param mode [String] the mode of the buffer.
9
8
  def initialize(mode: 'rw')
10
9
  @data = String.new
@@ -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 {Buffer#bit_access} variable.
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 {Buffer#bit_position} to the start of the next byte, then toggling {bit_access}.
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.0
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-10 00:00:00.000000000 Z
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