xdr 1.0.0 → 2.0.0

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
  SHA1:
3
- metadata.gz: b24c48ffd27b5c67a69f0d55cc19e95f647c4523
4
- data.tar.gz: 3d5d64c5b6282ad0d780413e553f45a3e60a0c89
3
+ metadata.gz: 841aa4d6061ac4e1989f6eb231c3b78fdc69b43f
4
+ data.tar.gz: d3342bce08c239465be256c53311d242d15fe658
5
5
  SHA512:
6
- metadata.gz: 6658735971aa0ed6a7bc21290d83ffd88560846e544cab8f734484d79284fa5cf1cdf4b7947d0bc62f1247f02e10b72044e0ade90e5d389e109a66b7a091b5be
7
- data.tar.gz: 99be5a4e551ef005438b802103fdf7038b2a9bb021155cba47597c0fcbd0f5f28b87e62f66ec4ba9e464b008f172e547990008b470ba0d25764675f217341731
6
+ metadata.gz: faaa298dac8ceed46a0f9d7c654e5e4daad1bf8fad2dfdd1cee350c84ec54c653b193653289ef4fecbc92922f72e79c32a41285a59b392f98c14e596861afd6a
7
+ data.tar.gz: 1bc9c094fec32a7e39338122696fb58cb3058099f29929abf7b87da9972d3ddab2e1e58ca691ac3ab8956694ffb767eb354ec6f39b3c80b9245be3f74123757b
@@ -1,14 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.0
4
- - 2.1.5
5
- - 2.0.0
6
- - 1.9.3
7
- - jruby-1.7.9
8
- - jruby-head
3
+ - 2.2.6
4
+ - 2.3.3
5
+ - 2.4.0
6
+ - jruby
9
7
  notifications:
10
8
  slack:
11
9
  secure: fXYggrDRoLB/4yvyW0kWwyrV5yWa/GC0btPyGu7Hx6ZOaXDC+ejiXSfx7nRyY+uZBs5UF12O4gkUXwBbnWDT5JtQRxzZd5s0cyeGQfAakALexI+FuR2jDcV1prCCaYI4IYoUt61MlfDmuCYVm8hGZ3qsgk/GPHHPnZ8a1FBd2ls=
12
- matrix:
13
- allow_failures:
14
- - rvm: jruby-head
data/lib/xdr.rb CHANGED
@@ -10,7 +10,6 @@ require "active_support/core_ext/hash/indifferent_access"
10
10
  require "active_support/core_ext/string/inflections"
11
11
  require "active_support/logger"
12
12
  require "active_support/ordered_hash"
13
- require "backports/2.1.0"
14
13
 
15
14
  module XDR
16
15
  extend ActiveSupport::Autoload
@@ -2,7 +2,7 @@ module XDR::DSL::Enum
2
2
 
3
3
  def member(name, value)
4
4
  raise ArgumentError, "#{self} is sealed" if self.sealed
5
- raise ArgumentError, "#{value} is not Fixnum" unless value.is_a?(Fixnum)
5
+ raise ArgumentError, "#{value} is not Integer" unless value.is_a?(Integer)
6
6
  raise ArgumentError, "#{value} is already used" unless
7
7
 
8
8
  name = name.to_s.underscore
@@ -74,7 +74,7 @@ class XDR::Struct
74
74
  end
75
75
 
76
76
  def hash
77
- [self.class, self.attribues].hash
77
+ [self.class, self.attributes].hash
78
78
  end
79
79
 
80
80
  def read_attribute(attr)
@@ -1,3 +1,3 @@
1
1
  module XDR
2
- VERSION = "1.0.0"
2
+ VERSION = "2.0.0"
3
3
  end
@@ -15,7 +15,7 @@ describe XDR::DSL::Enum, "#member" do
15
15
  expect(subject.members[:two]).to eq(subject.two)
16
16
  end
17
17
 
18
- it "raises ArgumentError if a non-fixnum value is used" do
18
+ it "raises ArgumentError if a non-integer value is used" do
19
19
  expect {
20
20
  Class.new(XDR::Enum) do
21
21
  member :one, "hi!"
@@ -11,15 +11,14 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = %q{XDR Helper Library}
12
12
  spec.homepage = "https://github.com/stellar/ruby-xdr"
13
13
  spec.license = "Apache 2.0"
14
+ spec.required_ruby_version = '>= 2.2.0'
14
15
 
15
16
  spec.files = `git ls-files -z`.split("\x0")
16
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
19
  spec.require_paths = ["lib"]
19
-
20
- spec.add_dependency "activesupport", "~> 4"
21
- spec.add_dependency "activemodel", "~> 4"
22
- spec.add_dependency "backports", "~> 3.6"
20
+ spec.add_dependency "activesupport", ">= 4.2.7"
21
+ spec.add_dependency "activemodel", ">= 4.2.7"
23
22
 
24
23
  spec.add_development_dependency "bundler", "~> 1.7"
25
24
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,57 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xdr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Fleckenstein
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-02 00:00:00.000000000 Z
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4'
19
+ version: 4.2.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '4'
26
+ version: 4.2.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '4'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '4'
41
- - !ruby/object:Gem::Dependency
42
- name: backports
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
31
+ - - ">="
46
32
  - !ruby/object:Gem::Version
47
- version: '3.6'
33
+ version: 4.2.7
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - "~>"
38
+ - - ">="
53
39
  - !ruby/object:Gem::Version
54
- version: '3.6'
40
+ version: 4.2.7
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: bundler
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -216,7 +202,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
216
202
  requirements:
217
203
  - - ">="
218
204
  - !ruby/object:Gem::Version
219
- version: '0'
205
+ version: 2.2.0
220
206
  required_rubygems_version: !ruby/object:Gem::Requirement
221
207
  requirements:
222
208
  - - ">="
@@ -224,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
210
  version: '0'
225
211
  requirements: []
226
212
  rubyforge_project:
227
- rubygems_version: 2.2.2
213
+ rubygems_version: 2.4.5.2
228
214
  signing_key:
229
215
  specification_version: 4
230
216
  summary: XDR Helper Library
@@ -255,4 +241,3 @@ test_files:
255
241
  - spec/lib/xdr/void_spec.rb
256
242
  - spec/spec_helper.rb
257
243
  - spec/support/matchers/eq_bytes.rb
258
- has_rdoc: