feh-hsdarcwriter 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: fc8fea65e2141fa49e6fb251787bdce08cb795d6bcb13bf93323bf568e67fc69
4
- data.tar.gz: 0c9c2a9746096edab92918dabbcec0f716426718d4a9eca3291670e01beb5871
3
+ metadata.gz: bd12955073fda8037a03aae12a9f6b75e57cbefbc13a025a4f25d5d9927b7142
4
+ data.tar.gz: e5dc897971814cad66aecdd9e1ad6efdb8f59fcb43c35f62bdd63d9104b64b2b
5
5
  SHA512:
6
- metadata.gz: d1f2cbf197939691480a4172a1220431b39151d437d89dd9fd4884cd3016baa51aea056dc79770bf994e506e1801f2c63fb2835585c2b7754bb8e11130046eb6
7
- data.tar.gz: b8b7dc36a11fd1863b084ed83708dc809f9051103d6e5aa228d81714c22720439afec3713f603d31fbbbec5b66a00589fd91bd6c7cf4dced6b75715fa7f7f80d
6
+ metadata.gz: '077953c2b8d84036d67c7317d20d3f5b7923b966888bb071e3dad67ecffac72f5dbb1ceeba11d1da3a46c58ac786a9de68d28fea2d4a20607c06470cd4962698'
7
+ data.tar.gz: 5218a5232012e6abc78d03e7ec6e6b3393889930ed5f677def848a1f3ead9069782b2f4a91f0dc172c8fb7ab5835feeb37a058268a900ccaa1925dc94f8937b9
data/README.md CHANGED
@@ -58,6 +58,10 @@ IO.binwrite('Move.bin', writer.hsdarc.pack('c*'))
58
58
 
59
59
  ## Changelog
60
60
 
61
+ ### V0.1.1
62
+
63
+ - `Feh::HSDArcWriter#string` now accepts a nil string and writes a null pointer
64
+
61
65
  ### V0.1.0
62
66
 
63
67
  - Initial release
@@ -76,12 +76,13 @@ module Feh
76
76
  end
77
77
 
78
78
  # Creates a pointer to an XOR-encrypted string.
79
- # @param str [String] UTF-8 string
79
+ # @param str [String, nil] UTF-8 string, writes a null pointer instead if
80
+ # equal to **nil**
80
81
  # @param xor [Array<Integer>] optional XOR cipher to use, writes unencrypted
81
82
  # strings by default
82
83
  # @return [HSDArcWriter] self
83
84
  def string(str, xor = [0])
84
- ptr {|blk| blk.xor_str(str, xor)}
85
+ str.nil? ? nullptr : ptr {|blk| blk.xor_str(str, xor)}
85
86
  end
86
87
 
87
88
  # Writes a null pointer.
@@ -3,6 +3,6 @@
3
3
  module Feh
4
4
  class HSDArcWriter
5
5
  # Version number.
6
- VERSION = "0.1.0"
6
+ VERSION = "0.1.1"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feh-hsdarcwriter
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
  - Quinton Miller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-29 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -65,8 +65,6 @@ files:
65
65
  - LICENSE.txt
66
66
  - README.md
67
67
  - Rakefile
68
- - bin/console
69
- - bin/setup
70
68
  - feh-hsdarcwriter.gemspec
71
69
  - lib/feh/hsdarc_writer.rb
72
70
  - lib/feh/hsdarc_writer/version.rb
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "feh/hsdarcwriter"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here