xdr 2.0.0 → 3.0.3

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.
Files changed (75) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +26 -7
  3. data/README.md +21 -19
  4. data/lib/xdr/array.rb +3 -3
  5. data/lib/xdr/bool.rb +7 -7
  6. data/lib/xdr/concerns/array_converter.rb +2 -2
  7. data/lib/xdr/concerns/converts_to_xdr.rb +40 -41
  8. data/lib/xdr/concerns/float_converter.rb +1 -1
  9. data/lib/xdr/concerns/integer_converter.rb +1 -1
  10. data/lib/xdr/concerns/reads_bytes.rb +10 -1
  11. data/lib/xdr/concerns/string_converter.rb +1 -1
  12. data/lib/xdr/double.rb +2 -3
  13. data/lib/xdr/dsl/enum.rb +8 -9
  14. data/lib/xdr/dsl/struct.rb +1 -2
  15. data/lib/xdr/dsl/union.rb +12 -12
  16. data/lib/xdr/dsl.rb +1 -1
  17. data/lib/xdr/enum.rb +6 -6
  18. data/lib/xdr/float.rb +2 -3
  19. data/lib/xdr/hyper.rb +2 -2
  20. data/lib/xdr/int.rb +2 -2
  21. data/lib/xdr/namespace.rb +7 -9
  22. data/lib/xdr/opaque.rb +5 -5
  23. data/lib/xdr/option.rb +5 -5
  24. data/lib/xdr/quadruple.rb +1 -1
  25. data/lib/xdr/rpc/record.rb +2 -2
  26. data/lib/xdr/rpc/record_reader.rb +7 -7
  27. data/lib/xdr/string.rb +4 -4
  28. data/lib/xdr/struct.rb +15 -16
  29. data/lib/xdr/struct_validator.rb +1 -1
  30. data/lib/xdr/union.rb +44 -36
  31. data/lib/xdr/union_validator.rb +1 -1
  32. data/lib/xdr/unsigned_hyper.rb +2 -2
  33. data/lib/xdr/unsigned_int.rb +2 -2
  34. data/lib/xdr/var_array.rb +4 -4
  35. data/lib/xdr/var_opaque.rb +3 -3
  36. data/lib/xdr/version.rb +1 -1
  37. data/lib/xdr/void.rb +1 -1
  38. data/lib/xdr.rb +16 -10
  39. metadata +37 -150
  40. data/.gitignore +0 -15
  41. data/.travis.yml +0 -9
  42. data/.yardopts +0 -7
  43. data/Gemfile +0 -4
  44. data/Guardfile +0 -5
  45. data/Rakefile +0 -9
  46. data/examples/enum.rb +0 -30
  47. data/examples/struct.rb +0 -24
  48. data/examples/union.rb +0 -29
  49. data/spec/lib/xdr/array_spec.rb +0 -73
  50. data/spec/lib/xdr/bool_spec.rb +0 -43
  51. data/spec/lib/xdr/concerns/converts_to_xdr_spec.rb +0 -88
  52. data/spec/lib/xdr/concerns/reads_bytes_spec.rb +0 -31
  53. data/spec/lib/xdr/double_spec.rb +0 -38
  54. data/spec/lib/xdr/dsl/enum_spec.rb +0 -44
  55. data/spec/lib/xdr/dsl/struct_spec.rb +0 -29
  56. data/spec/lib/xdr/dsl/union_spec.rb +0 -69
  57. data/spec/lib/xdr/enum_spec.rb +0 -70
  58. data/spec/lib/xdr/float_spec.rb +0 -37
  59. data/spec/lib/xdr/hyper_spec.rb +0 -40
  60. data/spec/lib/xdr/int_spec.rb +0 -40
  61. data/spec/lib/xdr/opaque_spec.rb +0 -36
  62. data/spec/lib/xdr/option_spec.rb +0 -36
  63. data/spec/lib/xdr/quadruple_spec.rb +0 -14
  64. data/spec/lib/xdr/rpc/record_reader_spec.rb +0 -27
  65. data/spec/lib/xdr/string_spec.rb +0 -41
  66. data/spec/lib/xdr/struct_spec.rb +0 -101
  67. data/spec/lib/xdr/union_spec.rb +0 -248
  68. data/spec/lib/xdr/unsigned_hyper_spec.rb +0 -36
  69. data/spec/lib/xdr/unsigned_int_spec.rb +0 -36
  70. data/spec/lib/xdr/var_array_spec.rb +0 -71
  71. data/spec/lib/xdr/var_opaque_spec.rb +0 -43
  72. data/spec/lib/xdr/void_spec.rb +0 -46
  73. data/spec/spec_helper.rb +0 -15
  74. data/spec/support/matchers/eq_bytes.rb +0 -6
  75. data/xdr.gemspec +0 -28
@@ -2,6 +2,6 @@ XDR::RPC::Record = Struct.new(:last, :length, :content)
2
2
 
3
3
  XDR::RPC::Record.class_eval do
4
4
  def last?
5
- self.last
5
+ last
6
6
  end
7
- end
7
+ end
@@ -1,16 +1,16 @@
1
1
  class XDR::RPC::RecordReader
2
2
  include XDR::Concerns::ReadsBytes
3
3
 
4
- LAST_MASK = 0x80000000
4
+ LAST_MASK = 0x80000000
5
5
  LENGTH_MASK = 0x7FFFFFFF
6
6
 
7
7
  def read(io)
8
- header = read_bytes(io, 4).unpack("L>").first
9
- length = header & LENGTH_MASK
10
- last = (header & LAST_MASK) > 0
8
+ header = read_bytes(io, 4).unpack1("L>")
9
+ length = header & LENGTH_MASK
10
+ last = (header & LAST_MASK) > 0
11
11
  raw_content = read_bytes(io, length)
12
- content = StringIO.new(raw_content)
13
-
12
+ content = StringIO.new(raw_content)
13
+
14
14
  XDR::RPC::Record.new(last, length, content)
15
15
  end
16
- end
16
+ end
data/lib/xdr/string.rb CHANGED
@@ -3,8 +3,8 @@ class XDR::String
3
3
  include XDR::Concerns::StringConverter
4
4
 
5
5
  singleton_class.send(:alias_method, :[], :new)
6
-
7
- def initialize(length=XDR::MAX_SIZE)
6
+
7
+ def initialize(length = XDR::MAX_SIZE)
8
8
  @length = length
9
9
  end
10
10
 
@@ -31,6 +31,6 @@ class XDR::String
31
31
 
32
32
  # read and return length bytes
33
33
  # throw away padding bytes
34
- read_bytes(io, length).tap{ read_bytes(io, padding) }
34
+ read_bytes(io, length).tap { read_zeros(io, padding) }
35
35
  end
36
- end
36
+ end
data/lib/xdr/struct.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'base64'
1
+ require "base64"
2
2
 
3
3
  class XDR::Struct
4
4
  include ActiveModel::Model
@@ -7,8 +7,8 @@ class XDR::Struct
7
7
  extend XDR::Concerns::ConvertsToXDR
8
8
  extend XDR::DSL::Struct
9
9
 
10
- attribute_method_prefix 'read_'
11
- attribute_method_suffix 'write_'
10
+ attribute_method_prefix "read_"
11
+ attribute_method_suffix "write_"
12
12
 
13
13
  class_attribute :fields
14
14
  self.fields = ActiveSupport::OrderedHash.new
@@ -36,26 +36,25 @@ class XDR::Struct
36
36
  val.is_a?(self)
37
37
  end
38
38
 
39
- def initialize(attributes={})
39
+ def initialize(attributes = {})
40
40
  @attributes = {}
41
41
  super
42
42
  end
43
43
 
44
-
45
44
  #
46
45
  # Serializes struct to xdr, return a string of bytes
47
46
  #
48
- # @param format=:raw [Symbol] The encoding used for the bytes produces, one of (:raw, :hex, :base64)
47
+ # @param format [:raw, :hex, :base64] The encoding used for the bytes produces, one of (:raw, :hex, :base64)
49
48
  #
50
49
  # @return [String] The encoded bytes of this struct
51
- def to_xdr(format=:raw)
50
+ def to_xdr(format = :raw)
52
51
  raw = self.class.to_xdr(self)
53
52
 
54
53
  case format
55
- when :raw ; raw
56
- when :hex ; raw.unpack("H*").first
57
- when :base64 ; Base64.strict_encode64(raw)
58
- else ;
54
+ when :raw then raw
55
+ when :hex then raw.unpack1("H*")
56
+ when :base64 then Base64.strict_encode64(raw)
57
+ else
59
58
  raise ArgumentError, "Invalid format #{format.inspect}; must be :raw, :hex, or :base64"
60
59
  end
61
60
  end
@@ -63,18 +62,18 @@ class XDR::Struct
63
62
  #
64
63
  # Compares two structs for equality
65
64
  #
66
- def == (other)
65
+ def ==(other)
67
66
  return false unless other.is_a?(self.class)
68
- other.attributes == self.attributes
67
+ other.attributes == attributes
69
68
  end
70
69
 
71
- def eql? (other)
70
+ def eql?(other)
72
71
  return false unless other.is_a?(self.class)
73
- other.attributes.eql? self.attributes
72
+ other.attributes.eql? attributes
74
73
  end
75
74
 
76
75
  def hash
77
- [self.class, self.attributes].hash
76
+ [self.class, attributes].hash
78
77
  end
79
78
 
80
79
  def read_attribute(attr)
@@ -3,4 +3,4 @@ class XDR::StructValidator < ActiveModel::Validator
3
3
  # validate each field
4
4
  # TODO
5
5
  end
6
- end
6
+ end
data/lib/xdr/union.rb CHANGED
@@ -5,20 +5,19 @@ class XDR::Union
5
5
  extend XDR::Concerns::ConvertsToXDR
6
6
  extend XDR::DSL::Union
7
7
 
8
-
9
8
  class_attribute :arms
10
9
  class_attribute :switches
11
10
  class_attribute :switch_type
12
11
  class_attribute :switch_name
13
- attr_reader :switch
14
- attr_reader :arm
12
+ attr_reader :switch
13
+ attr_reader :arm
15
14
 
16
- self.arms = ActiveSupport::OrderedHash.new
17
- self.switches = ActiveSupport::OrderedHash.new
15
+ self.arms = ActiveSupport::OrderedHash.new
16
+ self.switches = ActiveSupport::OrderedHash.new
18
17
  self.switch_type = nil
19
18
  self.switch_name = nil
20
19
 
21
- attribute_method_suffix '!'
20
+ attribute_method_suffix "!"
22
21
 
23
22
  def self.arm_for_switch(switch)
24
23
  begin
@@ -38,50 +37,55 @@ class XDR::Union
38
37
  end
39
38
 
40
39
  def self.normalize_switch(switch)
41
- case
42
- when switch.is_a?(self.switch_type)
40
+ if switch.is_a?(switch_type)
43
41
  switch
44
- when self.switch_type.valid?(switch)
42
+ elsif switch_type.valid?(switch)
45
43
  switch
46
- when self.switch_type.respond_to?(:from_name)
47
- self.switch_type.from_name(switch)
44
+ elsif switch_type.respond_to?(:from_name)
45
+ switch_type.from_name(switch)
48
46
  else
49
- raise ArgumentError, "Cannot normalize switch: #{switch.inspect} to type: #{self.switch_type}"
47
+ raise ArgumentError, "Cannot normalize switch: #{switch.inspect} to type: #{switch_type}"
50
48
  end
51
49
  end
52
50
 
53
51
  def self.read(io)
54
- switch = switch_type.read(io)
55
- arm = arm_for_switch(switch)
52
+ switch = switch_type.read(io)
53
+ arm = arm_for_switch(switch)
56
54
  arm_type = arms[arm] || XDR::Void
57
- value = arm_type.read(io)
55
+ value = arm_type.read(io)
58
56
  new(switch, value)
59
57
  end
60
58
 
61
59
  def self.write(val, io)
62
60
  switch_type.write(val.switch, io)
63
61
  arm_type = arms[val.arm] || XDR::Void
64
- arm_type.write(val.get,io)
62
+ arm_type.write(val.get, io)
65
63
  end
66
64
 
67
65
  def self.valid?(val)
68
66
  val.is_a?(self)
69
67
  end
70
68
 
71
- def initialize(switch=:__unset__, value=:void)
72
- @switch = nil
73
- @arm = nil
74
- @value = nil
69
+ def initialize(switch = :__unset__, value = :void)
70
+ @switch = nil
71
+ @arm = nil
72
+ @value = nil
75
73
  set(switch, value) unless switch == :__unset__
76
74
  end
77
75
 
78
- def to_xdr
79
- self.class.to_xdr self
76
+ #
77
+ # Serializes struct to xdr, return a string of bytes
78
+ #
79
+ # @param format [:raw, :hex, :base64] The encoding used for the bytes produces, one of (:raw, :hex, :base64)
80
+ #
81
+ # @return [String] The encoded bytes of this struct
82
+ def to_xdr(format = :raw)
83
+ self.class.to_xdr(self, format)
80
84
  end
81
85
 
82
- def set(switch, value=:void)
86
+ def set(switch, value = :void)
83
87
  @switch = self.class.normalize_switch switch
84
- @arm = self.class.arm_for_switch @switch
88
+ @arm = self.class.arm_for_switch @switch
85
89
 
86
90
  raise XDR::InvalidValueError unless valid_for_arm_type(value, @arm)
87
91
 
@@ -94,37 +98,41 @@ class XDR::Union
94
98
  @value unless @value == :void
95
99
  end
96
100
 
97
- alias get value
101
+ alias_method :get, :value
98
102
 
99
- def attribute!(attr)
100
- if @arm.to_s != attr
101
- raise XDR::ArmNotSetError, "#{attr} is not the set arm"
102
- end
103
+ def attribute(attr)
104
+ return nil unless @arm.to_s == attr
103
105
 
104
106
  get
105
107
  end
106
108
 
109
+ def attribute!(attr)
110
+ raise XDR::ArmNotSetError, "#{attr} is not the set arm" unless @arm.to_s == attr
111
+
112
+ get
113
+ end
107
114
 
108
115
  #
109
116
  # Compares two unions for equality
110
117
  #
111
- def == (other)
118
+ def ==(other)
112
119
  return false unless other.is_a?(self.class)
113
- return false unless other.switch == self.switch
114
- other.value == self.value
120
+ return false unless other.switch == switch
121
+ other.value == value
115
122
  end
116
123
 
117
124
  def eql?(other)
118
125
  return false unless other.is_a?(self.class)
119
- return false unless other.switch.eql? self.switch
120
- other.value.eql? self.value
126
+ return false unless other.switch.eql? switch
127
+ other.value.eql? value
121
128
  end
122
-
129
+
123
130
  def hash
124
- [self.class, self.switch, self.value].hash
131
+ [self.class, switch, value].hash
125
132
  end
126
133
 
127
134
  private
135
+
128
136
  def valid_for_arm_type(value, arm)
129
137
  arm_type = arms[@arm]
130
138
 
@@ -4,4 +4,4 @@ class XDR::UnionValidator < ActiveModel::Validator
4
4
  # validate the arm is compatible with the set discriminant
5
5
  # TODO
6
6
  end
7
- end
7
+ end
@@ -9,6 +9,6 @@ module XDR::UnsignedHyper
9
9
  end
10
10
 
11
11
  def self.read(io)
12
- read_bytes(io, 8).unpack("Q>").first
12
+ read_bytes(io, 8).unpack1("Q>")
13
13
  end
14
- end
14
+ end
@@ -9,6 +9,6 @@ module XDR::UnsignedInt
9
9
  end
10
10
 
11
11
  def self.read(io)
12
- read_bytes(io, 4).unpack("L>").first
12
+ read_bytes(io, 4).unpack1("L>")
13
13
  end
14
- end
14
+ end
data/lib/xdr/var_array.rb CHANGED
@@ -4,8 +4,8 @@ class XDR::VarArray
4
4
 
5
5
  singleton_class.send(:alias_method, :[], :new)
6
6
 
7
- def initialize(child_type, length=XDR::MAX_SIZE)
8
- @child_type = child_type
7
+ def initialize(child_type, length = XDR::MAX_SIZE)
8
+ @child_type = child_type
9
9
  @length = length
10
10
  end
11
11
 
@@ -29,10 +29,10 @@ class XDR::VarArray
29
29
  raise XDR::ReadError, "VarArray length #{length} is greater than max #{@length}"
30
30
  end
31
31
 
32
- length.times.map{ @child_type.read(io) }
32
+ length.times.map { @child_type.read(io) }
33
33
  end
34
34
 
35
35
  def valid?(val)
36
36
  super(val) && val.length <= @length
37
37
  end
38
- end
38
+ end
@@ -4,7 +4,7 @@ class XDR::VarOpaque
4
4
 
5
5
  singleton_class.send(:alias_method, :[], :new)
6
6
 
7
- def initialize(length=XDR::MAX_SIZE)
7
+ def initialize(length = XDR::MAX_SIZE)
8
8
  @length = length
9
9
  end
10
10
 
@@ -31,6 +31,6 @@ class XDR::VarOpaque
31
31
 
32
32
  # read and return length bytes
33
33
  # throw away padding bytes
34
- read_bytes(io, length).tap{ read_bytes(io, padding) }
34
+ read_bytes(io, length).tap { read_zeros(io, padding) }
35
35
  end
36
- end
36
+ end
data/lib/xdr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module XDR
2
- VERSION = "2.0.0"
2
+ VERSION = "3.0.3"
3
3
  end
data/lib/xdr/void.rb CHANGED
@@ -11,4 +11,4 @@ module XDR::Void
11
11
  def self.valid?(val)
12
12
  val == :void
13
13
  end
14
- end
14
+ end
data/lib/xdr.rb CHANGED
@@ -56,17 +56,23 @@ module XDR
56
56
  autoload :ArrayConverter
57
57
  end
58
58
 
59
- class Error < StandardError ; end
60
- class ReadError < Error ; end
61
- class EnumValueError < ReadError ; end
62
- class EnumNameError < ReadError ; end
63
- class WriteError < Error ; end
59
+ class Error < StandardError; end
64
60
 
65
- class InvalidSwitchError < Error ; end
66
- class InvalidValueError < Error ; end
67
- class ArmNotSetError < Error ; end
61
+ class ReadError < Error; end
62
+
63
+ class EnumValueError < ReadError; end
64
+
65
+ class EnumNameError < ReadError; end
66
+
67
+ class WriteError < Error; end
68
+
69
+ class InvalidSwitchError < Error; end
70
+
71
+ class InvalidValueError < Error; end
72
+
73
+ class ArmNotSetError < Error; end
68
74
 
69
75
  mattr_accessor :logger
70
- self.logger = ActiveSupport::Logger.new(STDOUT)
71
- self.logger.level = Logger::WARN
76
+ self.logger = ActiveSupport::Logger.new($stdout)
77
+ logger.level = Logger::WARN
72
78
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xdr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Fleckenstein
8
- autorequire:
9
- bindir: bin
8
+ autorequire:
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-02 00:00:00.000000000 Z
11
+ date: 2022-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,117 +16,53 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.7
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
19
+ version: '4.2'
20
+ - - "<"
25
21
  - !ruby/object:Gem::Version
26
- version: 4.2.7
27
- - !ruby/object:Gem::Dependency
28
- name: activemodel
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 4.2.7
22
+ version: '8.0'
34
23
  type: :runtime
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
38
27
  - - ">="
39
28
  - !ruby/object:Gem::Version
40
- version: 4.2.7
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.7'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
29
+ version: '4.2'
30
+ - - "<"
53
31
  - !ruby/object:Gem::Version
54
- version: '1.7'
32
+ version: '8.0'
55
33
  - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '10.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '10.0'
69
- - !ruby/object:Gem::Dependency
70
- name: rspec
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '3.1'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '3.1'
83
- - !ruby/object:Gem::Dependency
84
- name: guard-rspec
34
+ name: activemodel
85
35
  requirement: !ruby/object:Gem::Requirement
86
36
  requirements:
87
37
  - - ">="
88
38
  - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: simplecov
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
39
+ version: '4.2'
40
+ - - "<"
102
41
  - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
42
+ version: '8.0'
43
+ type: :runtime
105
44
  prerelease: false
106
45
  version_requirements: !ruby/object:Gem::Requirement
107
46
  requirements:
108
47
  - - ">="
109
48
  - !ruby/object:Gem::Version
110
- version: '0'
111
- description:
49
+ version: '4.2'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '8.0'
53
+ description:
112
54
  email:
113
55
  - scott@stellar.org
114
56
  executables: []
115
57
  extensions: []
116
- extra_rdoc_files: []
58
+ extra_rdoc_files:
59
+ - README.md
60
+ - LICENSE.txt
61
+ - CHANGELOG.md
117
62
  files:
118
- - ".gitignore"
119
- - ".travis.yml"
120
- - ".yardopts"
121
63
  - CHANGELOG.md
122
- - Gemfile
123
- - Guardfile
124
64
  - LICENSE.txt
125
65
  - README.md
126
- - Rakefile
127
- - examples/enum.rb
128
- - examples/struct.rb
129
- - examples/union.rb
130
66
  - lib/xdr.rb
131
67
  - lib/xdr/array.rb
132
68
  - lib/xdr/bool.rb
@@ -163,38 +99,16 @@ files:
163
99
  - lib/xdr/var_opaque.rb
164
100
  - lib/xdr/version.rb
165
101
  - lib/xdr/void.rb
166
- - spec/lib/xdr/array_spec.rb
167
- - spec/lib/xdr/bool_spec.rb
168
- - spec/lib/xdr/concerns/converts_to_xdr_spec.rb
169
- - spec/lib/xdr/concerns/reads_bytes_spec.rb
170
- - spec/lib/xdr/double_spec.rb
171
- - spec/lib/xdr/dsl/enum_spec.rb
172
- - spec/lib/xdr/dsl/struct_spec.rb
173
- - spec/lib/xdr/dsl/union_spec.rb
174
- - spec/lib/xdr/enum_spec.rb
175
- - spec/lib/xdr/float_spec.rb
176
- - spec/lib/xdr/hyper_spec.rb
177
- - spec/lib/xdr/int_spec.rb
178
- - spec/lib/xdr/opaque_spec.rb
179
- - spec/lib/xdr/option_spec.rb
180
- - spec/lib/xdr/quadruple_spec.rb
181
- - spec/lib/xdr/rpc/record_reader_spec.rb
182
- - spec/lib/xdr/string_spec.rb
183
- - spec/lib/xdr/struct_spec.rb
184
- - spec/lib/xdr/union_spec.rb
185
- - spec/lib/xdr/unsigned_hyper_spec.rb
186
- - spec/lib/xdr/unsigned_int_spec.rb
187
- - spec/lib/xdr/var_array_spec.rb
188
- - spec/lib/xdr/var_opaque_spec.rb
189
- - spec/lib/xdr/void_spec.rb
190
- - spec/spec_helper.rb
191
- - spec/support/matchers/eq_bytes.rb
192
- - xdr.gemspec
193
- homepage: https://github.com/stellar/ruby-xdr
102
+ homepage: https://github.com/astroband/ruby-xdr
194
103
  licenses:
195
- - Apache 2.0
196
- metadata: {}
197
- post_install_message:
104
+ - Apache-2.0
105
+ metadata:
106
+ bug_tracker_uri: https://github.com/astroband/ruby-xdr/issues
107
+ changelog_uri: https://github.com/astroband/ruby-xdr/blob/v3.0.3/CHANGELOG.md
108
+ documentation_uri: https://rubydoc.info/gems/xdr/3.0.3/
109
+ github_repo: https://github.com/astroband/ruby-xdr
110
+ source_code_uri: https://github.com/astroband/ruby-xdr/tree/v3.0.3
111
+ post_install_message:
198
112
  rdoc_options: []
199
113
  require_paths:
200
114
  - lib
@@ -202,42 +116,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
202
116
  requirements:
203
117
  - - ">="
204
118
  - !ruby/object:Gem::Version
205
- version: 2.2.0
119
+ version: 2.4.0
206
120
  required_rubygems_version: !ruby/object:Gem::Requirement
207
121
  requirements:
208
122
  - - ">="
209
123
  - !ruby/object:Gem::Version
210
124
  version: '0'
211
125
  requirements: []
212
- rubyforge_project:
213
- rubygems_version: 2.4.5.2
214
- signing_key:
126
+ rubygems_version: 3.3.5
127
+ signing_key:
215
128
  specification_version: 4
216
129
  summary: XDR Helper Library
217
- test_files:
218
- - spec/lib/xdr/array_spec.rb
219
- - spec/lib/xdr/bool_spec.rb
220
- - spec/lib/xdr/concerns/converts_to_xdr_spec.rb
221
- - spec/lib/xdr/concerns/reads_bytes_spec.rb
222
- - spec/lib/xdr/double_spec.rb
223
- - spec/lib/xdr/dsl/enum_spec.rb
224
- - spec/lib/xdr/dsl/struct_spec.rb
225
- - spec/lib/xdr/dsl/union_spec.rb
226
- - spec/lib/xdr/enum_spec.rb
227
- - spec/lib/xdr/float_spec.rb
228
- - spec/lib/xdr/hyper_spec.rb
229
- - spec/lib/xdr/int_spec.rb
230
- - spec/lib/xdr/opaque_spec.rb
231
- - spec/lib/xdr/option_spec.rb
232
- - spec/lib/xdr/quadruple_spec.rb
233
- - spec/lib/xdr/rpc/record_reader_spec.rb
234
- - spec/lib/xdr/string_spec.rb
235
- - spec/lib/xdr/struct_spec.rb
236
- - spec/lib/xdr/union_spec.rb
237
- - spec/lib/xdr/unsigned_hyper_spec.rb
238
- - spec/lib/xdr/unsigned_int_spec.rb
239
- - spec/lib/xdr/var_array_spec.rb
240
- - spec/lib/xdr/var_opaque_spec.rb
241
- - spec/lib/xdr/void_spec.rb
242
- - spec/spec_helper.rb
243
- - spec/support/matchers/eq_bytes.rb
130
+ test_files: []
data/.gitignore DELETED
@@ -1,15 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/generated
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
15
- .DS_Store
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.6
4
- - 2.3.3
5
- - 2.4.0
6
- - jruby
7
- notifications:
8
- slack:
9
- secure: fXYggrDRoLB/4yvyW0kWwyrV5yWa/GC0btPyGu7Hx6ZOaXDC+ejiXSfx7nRyY+uZBs5UF12O4gkUXwBbnWDT5JtQRxzZd5s0cyeGQfAakALexI+FuR2jDcV1prCCaYI4IYoUt61MlfDmuCYVm8hGZ3qsgk/GPHHPnZ8a1FBd2ls=