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 +4 -4
- data/README.md +4 -0
- data/lib/feh/hsdarc_writer.rb +3 -2
- data/lib/feh/hsdarc_writer/version.rb +1 -1
- metadata +2 -4
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd12955073fda8037a03aae12a9f6b75e57cbefbc13a025a4f25d5d9927b7142
|
|
4
|
+
data.tar.gz: e5dc897971814cad66aecdd9e1ad6efdb8f59fcb43c35f62bdd63d9104b64b2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '077953c2b8d84036d67c7317d20d3f5b7923b966888bb071e3dad67ecffac72f5dbb1ceeba11d1da3a46c58ac786a9de68d28fea2d4a20607c06470cd4962698'
|
|
7
|
+
data.tar.gz: 5218a5232012e6abc78d03e7ec6e6b3393889930ed5f677def848a1f3ead9069782b2f4a91f0dc172c8fb7ab5835feeb37a058268a900ccaa1925dc94f8937b9
|
data/README.md
CHANGED
data/lib/feh/hsdarc_writer.rb
CHANGED
|
@@ -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.
|
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.
|
|
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-
|
|
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
|
data/bin/console
DELETED
|
@@ -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__)
|