bindef 0.0.5 → 0.0.6

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: '084daa530dfd9700ac802d6227b9561488479fdc92ce6967b454d09308cef15f'
4
- data.tar.gz: 2b14f81b258a349864b1f455da646ec22eb9369596a01e9f779c14f456e237d1
3
+ metadata.gz: 05652fe2741d34eb181ce1511ed815b6fae22bec659cc232973cbeca32b642aa
4
+ data.tar.gz: 2ac64883af476f0d7ad2371ebb1bdde116c737f7b93b304f6cbf67e6f275ab22
5
5
  SHA512:
6
- metadata.gz: 5046b3c30a98ef0d9d04dfd11ae104e7f85e46ff78b58293468455afea67daf6c9620aabdb32929a1e858559adf7907edfbbcb2a500df1bbf6cac4eb14efa341
7
- data.tar.gz: a150d571f28c67f2dbf8252e1b859f308f174be0e9fc9af60845536852abaae9e699fa9279197f287958cbcac40c3cca0fde1b72cab106f2c8a3bcab6bcfe53e
6
+ metadata.gz: 1ec1c23f12c5b579e2dcd4f7a3f6f7f62f4c36f4c006b8e5c56ece06e2c36ba602b524b8c3f2844ed24798903c6f9afad335c95b80a2690ec86007269704f15f
7
+ data.tar.gz: 543f80a5e086a9ef85ec34a820cc1163e05c1a36837c2e5d914b45772273a8cea22da751bc1827794fb7b3a73675497208e0292ea4564fa5e89baca93dc96fd7
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ The MIT License (MIT) with restrictions
2
2
 
3
- Copyright (c) 2018 William Woodruff <william @ yossarian.net>
3
+ Copyright (c) 2020 William Woodruff <william @ yossarian.net>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +19,30 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  THE SOFTWARE.
22
+
23
+ The following terms additionally apply and override any above terms for
24
+ applicable parties:
25
+
26
+ You may not use, copy, modify, merge, publish, distribute, sublicense,
27
+ and/or sell copies of the Software in a military or law enforcement context,
28
+ defined as follows:
29
+
30
+ 1. A military context is a professional context where the intended application
31
+ of the Software is integration or use with or by military software, tools
32
+ (software or hardware), or personnel. This includes contractors and
33
+ subcontractors as well as research affiliates of any military organization.
34
+
35
+ 2. A law enforcement context is a professional context where the intended
36
+ application of the Software is integration or use with or by law enforcement
37
+ software, tools (software or hardware), or personnel. This includes
38
+ contractors and subcontractors as well as research affiliates of any law
39
+ enforcement organization.
40
+
41
+ Entities that sell or license to military or law enforcement organizations
42
+ may use the Software under the original terms, but only in contexts that do
43
+ not assist or supplement the sold or licensed product.
44
+
45
+ Students and academics who are affiliated with research institutions may use
46
+ the Software under the original terms, but only in contexts that do not assist
47
+ or supplement collaboration or affiliation with any military or law
48
+ enforcement organization.
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  bindef
2
2
  ========
3
3
 
4
+ ![license](https://raster.shields.io/badge/license-MIT%20with%20restrictions-green.png)
4
5
  [![Gem Version](https://badge.fury.io/rb/bindef.svg)](https://badge.fury.io/rb/bindef)
5
- [![Build Status](https://travis-ci.org/woodruffw/bindef.svg?branch=master)](https://travis-ci.org/woodruffw/bindef)
6
+ [![Build Status](https://img.shields.io/github/workflow/status/woodruffw/bindef/CI/master)](https://github.com/woodruffw/bindef/actions?query=workflow%3ACI)
6
7
  [![Coverage Status](https://codecov.io/gh/woodruffw/bindef/branch/master/graph/badge.svg)](https://codecov.io/gh/woodruffw/bindef)
7
8
  [![Maintainability](https://api.codeclimate.com/v1/badges/bc780f5233688a8e5951/maintainability)](https://codeclimate.com/github/woodruffw/bindef/maintainability)
8
9
 
data/bin/bd CHANGED
@@ -25,7 +25,7 @@ OptionParser.new do |parser|
25
25
  options[:input] = File.open(input, "r")
26
26
  end
27
27
 
28
- parser.on "-o", "--output FILE", String, "Write output to FILE (default: stderr)" do |output|
28
+ parser.on "-o", "--output FILE", String, "Write output to FILE (default: stdout)" do |output|
29
29
  abort("Error: #{output} exists, not overwriting") if File.file?(output)
30
30
  options[:output] = File.open(output, "wb")
31
31
  end
@@ -43,7 +43,7 @@ OptionParser.new do |parser|
43
43
  end
44
44
 
45
45
  parser.on "-V", "--version" do
46
- STDERR.puts "bd (bindef) version #{Bindef::VERSION}"
46
+ puts "bd (bindef) version #{Bindef::VERSION}"
47
47
  exit
48
48
  end
49
49
  end.parse!
@@ -67,6 +67,11 @@ class Bindef
67
67
  raise CommandError, "unknown command: #{args.join(" ")}"
68
68
  end
69
69
 
70
+ # @api private
71
+ def respond_to_missing?(*_args)
72
+ true
73
+ end
74
+
70
75
  # Changes the values of the given pragma keys.
71
76
  # @see PRAGMA_SCHEMA
72
77
  # @param hsh [Hash] the keys and values to update the pragma state with
@@ -85,10 +90,10 @@ class Bindef
85
90
  pragmas[key] = value
86
91
  end
87
92
 
88
- if block_given?
89
- yield
90
- pragmas.replace old_pragmas
91
- end
93
+ return unless block_given?
94
+
95
+ yield
96
+ pragmas.replace old_pragmas
92
97
  end
93
98
 
94
99
  # Emits a string.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Bindef
3
+ class Bindef # rubocop:disable Style/Documentation
4
4
  module Extras
5
5
  # Helpers for {Extras::Ctrl}.
6
6
  module CtrlHelper
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Bindef
3
+ class Bindef # rubocop:disable Style/Documentation
4
4
  module Extras
5
5
  # Potentially useful 128-bit integer emission commands.
6
6
  module Int128
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Bindef
3
+ class Bindef # rubocop:disable Style/Documentation
4
4
  module Extras
5
5
  # Potentially useful extra string emission commands.
6
6
  module String
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Bindef
3
+ class Bindef # rubocop:disable Style/Documentation
4
4
  module Extras
5
5
  # Potentially useful TLV (tag-length-value) commands.
6
6
  #
@@ -2,5 +2,5 @@
2
2
 
3
3
  class Bindef
4
4
  # The current {Bindef} version.
5
- VERSION = "0.0.5"
5
+ VERSION = "0.0.6"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bindef
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Woodruff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-08 00:00:00.000000000 Z
11
+ date: 2020-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: yard
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -61,7 +75,7 @@ files:
61
75
  - lib/bindef/version.rb
62
76
  homepage: https://github.com/woodruffw/bindef
63
77
  licenses:
64
- - MIT
78
+ - Nonstandard
65
79
  metadata: {}
66
80
  post_install_message:
67
81
  rdoc_options: []
@@ -78,8 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
92
  - !ruby/object:Gem::Version
79
93
  version: '0'
80
94
  requirements: []
81
- rubyforge_project:
82
- rubygems_version: 2.7.6
95
+ rubygems_version: 3.1.2
83
96
  signing_key:
84
97
  specification_version: 4
85
98
  summary: bindef - A DSL and command-line tool for generating binary files