bindata 2.4.14 → 2.4.15

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: 991ca0b6e07c8ef180244a7495796d7da21b1b27091d00b9ab6218c7208251d3
4
- data.tar.gz: c72cdce5b44d3a5837d6172271d69ac1a56b1227945bfcb9edce592da9d822c1
3
+ metadata.gz: 80617b407b7a7c2213a57dd816a4c34b144dc7bf84cfbedb021b4121f733d375
4
+ data.tar.gz: 4a71111bd4ee444bd71bde4d2e1cf4242501618d4884b93f72eabdc7f0cd6ed6
5
5
  SHA512:
6
- metadata.gz: d53ac6de7495ae457d73b642190460adf0b5715c9b9538ad131ab8925f705df4cfa1ccf61c26361654998a9dabd32e0de33cb281954c346f8a724b5ee19249c8
7
- data.tar.gz: '089fc03d8e7e8989553aec6b2878d71c41a2bb3ab98f4ba67c680176ff75c243afb48298b7e54abd439c1ff084433850373f5659b4edc058240387fc10a37fa5'
6
+ metadata.gz: 4de56ea71fa7e19e79d668eca56fd767a6dc781ce2184ef6d0373835ca73650d423cecd65c9066a1cd3e2055d66f87223688b78737da5630401cda06ec6ab5ee
7
+ data.tar.gz: 33865f2dca175323ed73af86b52ec4c507b3b1ef1af6b4eeef103fbfe422607cb40476e558dda85e13ffad603ab6f8150a5798bdd1051a164dc54604ec7c5cf1
data/ChangeLog.rdoc CHANGED
@@ -1,5 +1,14 @@
1
1
  = BinData Changelog
2
2
 
3
+ == Version 2.4.15 (2023-02-07)
4
+
5
+ * Added ruby 2.4.0 requirement to gemspec. Thanks to theldoria.
6
+ * Added github CI action. Thanks to Peter Goldstein.
7
+ * Convert file from latin1 to UTF-8. Thanks to Cédric Boutillier.
8
+ * Move license from dual license to solely BSD-2-Clause.
9
+ * Remove unnecessary files from gem. Requested by Orien Madgwick.
10
+ * Allow multiple calls to auto_call_delayed_io. Thanks to dwelch-r7.
11
+
3
12
  == Version 2.4.14 (2022-10-31)
4
13
 
5
14
  * Use Comparable#clamp instead of manual calculations.
data/LICENSE ADDED
@@ -0,0 +1,25 @@
1
+ BSD 2-Clause License
2
+
3
+ Copyright (c) 2007-2022, Dion Mendel
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/NEWS.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ = 2.4.15
2
+
3
+ This software was originally dual licensed under the Ruby license and the
4
+ BSD-2-Clause license. It is now licensed solely as BSD-2-Clause.
5
+
1
6
  = 2.4.0
2
7
 
3
8
  This release changes the internal API for sanitizing parameters. This only
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # What is BinData?
2
2
 
3
- [![Version ](http://img.shields.io/gem/v/bindata.svg) ](https://rubygems.org/gems/bindata)
4
- [![Travis CI ](http://img.shields.io/travis/dmendel/bindata/master.svg) ](https://travis-ci.org/dmendel/bindata)
5
- [![Coverage ](http://img.shields.io/coveralls/dmendel/bindata.svg) ](https://coveralls.io/r/dmendel/bindata)
3
+ [![Version ](https://img.shields.io/gem/v/bindata.svg) ](https://rubygems.org/gems/bindata)
4
+ [![Github CI ](https://github.com/dmendel/bindata/actions/workflows/ci.yml/badge.svg) ](https://github.com/dmendel/bindata/actions/workflows/ci.yml)
5
+ [![Coverage ](https://img.shields.io/coveralls/dmendel/bindata.svg) ](https://coveralls.io/r/dmendel/bindata)
6
6
 
7
7
  Do you ever find yourself writing code like this?
8
8
 
data/bindata.gemspec CHANGED
@@ -12,8 +12,13 @@ Gem::Specification.new do |s|
12
12
  s.require_path = 'lib'
13
13
  s.extra_rdoc_files = ['NEWS.rdoc']
14
14
  s.rdoc_options << '--main' << 'NEWS.rdoc'
15
- s.files = `git ls-files`.split("\n")
16
- s.license = 'Ruby'
15
+ s.files = Dir.chdir(__dir__) do
16
+ `git ls-files -z`.split("\x0").reject do |file|
17
+ file.start_with?(*%w[.git INSTALL])
18
+ end
19
+ end
20
+ s.license = 'BSD-2-Clause'
21
+ s.required_ruby_version = ">= 2.4.0"
17
22
 
18
23
  s.add_development_dependency('rake')
19
24
  s.add_development_dependency('minitest', "> 5.0.0", "< 5.12.0")
data/examples/NBT.txt CHANGED
@@ -107,7 +107,7 @@ You should end up with this:
107
107
  TAG_Short("shortTest"): 32767
108
108
  TAG_Long("longTest"): 9223372036854775807
109
109
  TAG_Float("floatTest"): 0.49823147
110
- TAG_String("stringTest"): HELLO WORLD THIS IS A TEST STRING ���!
110
+ TAG_String("stringTest"): HELLO WORLD THIS IS A TEST STRING ÅÄÖ!
111
111
  TAG_Int("intTest"): 2147483647
112
112
  TAG_Compound("nested compound test"): 2 entries
113
113
  {
@@ -159,9 +159,10 @@ module BinData
159
159
  # The +auto_call_delayed_io+ keyword sets a data object tree to perform
160
160
  # multi pass I/O automatically.
161
161
  def auto_call_delayed_io
162
+ include AutoCallDelayedIO
163
+
162
164
  return if DelayedIO.method_defined? :initialize_instance_without_record_io
163
165
 
164
- include AutoCallDelayedIO
165
166
  DelayedIO.send(:alias_method, :initialize_instance_without_record_io, :initialize_instance)
166
167
  DelayedIO.send(:define_method, :initialize_instance) do
167
168
  if @parent && !defined? @delayed_io_recorded
@@ -1,3 +1,3 @@
1
1
  module BinData
2
- VERSION = "2.4.14"
2
+ VERSION = "2.4.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bindata
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.14
4
+ version: 2.4.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dion Mendel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-30 00:00:00.000000000 Z
11
+ date: 2023-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -71,13 +71,9 @@ extensions: []
71
71
  extra_rdoc_files:
72
72
  - NEWS.rdoc
73
73
  files:
74
- - ".gitignore"
75
- - ".travis.yml"
76
- - BSDL
77
- - COPYING
78
74
  - ChangeLog.rdoc
79
75
  - Gemfile
80
- - INSTALL
76
+ - LICENSE
81
77
  - NEWS.rdoc
82
78
  - README.md
83
79
  - Rakefile
@@ -151,7 +147,7 @@ files:
151
147
  - test/warnings_test.rb
152
148
  homepage: https://github.com/dmendel/bindata
153
149
  licenses:
154
- - Ruby
150
+ - BSD-2-Clause
155
151
  metadata: {}
156
152
  post_install_message:
157
153
  rdoc_options:
@@ -163,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
159
  requirements:
164
160
  - - ">="
165
161
  - !ruby/object:Gem::Version
166
- version: '0'
162
+ version: 2.4.0
167
163
  required_rubygems_version: !ruby/object:Gem::Requirement
168
164
  requirements:
169
165
  - - ">="
data/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- Gemfile.lock
2
- wiki
data/.travis.yml DELETED
@@ -1,15 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2
4
- - 2.3
5
- - 2.4
6
- - 2.5
7
- - 2.6
8
- - 2.7
9
- - jruby
10
- - ruby-head
11
-
12
- matrix:
13
- allow_failures:
14
- - rvm: jruby
15
- - rvm: ruby-head
data/BSDL DELETED
@@ -1,22 +0,0 @@
1
- Copyright (C) 2007-2012 Dion Mendel. All rights reserved.
2
-
3
- Redistribution and use in source and binary forms, with or without
4
- modification, are permitted provided that the following conditions
5
- are met:
6
- 1. Redistributions of source code must retain the above copyright
7
- notice, this list of conditions and the following disclaimer.
8
- 2. Redistributions in binary form must reproduce the above copyright
9
- notice, this list of conditions and the following disclaimer in the
10
- documentation and/or other materials provided with the distribution.
11
-
12
- THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15
- ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18
- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19
- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20
- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21
- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22
- SUCH DAMAGE.
data/COPYING DELETED
@@ -1,52 +0,0 @@
1
- BinData is copyrighted free software by Dion Mendel <bindata@dm9.info>.
2
- You can redistribute it and/or modify it under either the terms of the
3
- 2-clause BSDL (see the file BSDL), or the conditions below:
4
-
5
- 1. You may make and give away verbatim copies of the source form of the
6
- software without restriction, provided that you duplicate all of the
7
- original copyright notices and associated disclaimers.
8
-
9
- 2. You may modify your copy of the software in any way, provided that
10
- you do at least ONE of the following:
11
-
12
- a) place your modifications in the Public Domain or otherwise
13
- make them Freely Available, such as by posting said
14
- modifications to Usenet or an equivalent medium, or by allowing
15
- the author to include your modifications in the software.
16
-
17
- b) use the modified software only within your corporation or
18
- organization.
19
-
20
- c) give non-standard binaries non-standard names, with
21
- instructions on where to get the original software distribution.
22
-
23
- d) make other distribution arrangements with the author.
24
-
25
- 3. You may distribute the software in object code or binary form,
26
- provided that you do at least ONE of the following:
27
-
28
- a) distribute the binaries and library files of the software,
29
- together with instructions (in the manual page or equivalent)
30
- on where to get the original distribution.
31
-
32
- b) accompany the distribution with the machine-readable source of
33
- the software.
34
-
35
- c) give non-standard binaries non-standard names, with
36
- instructions on where to get the original software distribution.
37
-
38
- d) make other distribution arrangements with the author.
39
-
40
- 4. You may modify and include the part of the software into any other
41
- software (possibly commercial).
42
-
43
- 5. The scripts and library files supplied as input to or produced as
44
- output from the software do not automatically fall under the
45
- copyright of the software, but belong to whomever generated them,
46
- and may be sold commercially, and may be aggregated with this
47
- software.
48
-
49
- 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
50
- IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
51
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
52
- PURPOSE.
data/INSTALL DELETED
@@ -1,12 +0,0 @@
1
- This package is designed to be installed with rubygems.
2
-
3
- $ gem install bindata
4
-
5
- If you are using ruby 1.8
6
-
7
- $ gem install bindata -v '~> 1.8.0'
8
-
9
- If you are not using rubygems, you may like to install BinData with
10
- Minero Aoki's setup.rb found at:
11
-
12
- https://github.com/rubyworks/setup