id3tag 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -3
- data/README.md +1 -1
- data/lib/id3tag/string_util.rb +1 -1
- data/lib/id3tag/version.rb +1 -1
- data/spec/lib/id3tag/string_util_spec.rb +15 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f472ca0d17fce8372d1bca854965d2d1ae862e74933e5da9cc8cf6e7614e3d59
|
4
|
+
data.tar.gz: 4faf983540a5f81630294fe91ca353e30a09dc378b1fb1e8377f30a293fd212d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc4ec4101cca2e2b35ff722abc5d5d4a5cfd517d946d059e8f6b3775cc022335284bae1f14b868a2629765f1de94a14448ceecbee80eb6737b0ee506ca8b5a5e
|
7
|
+
data.tar.gz: 64fab8761e94835e3b7c05cfe4463c3f9ab1ec646ef85f6a4ced501695e8e9c73995973a00080b7d7ca284fc8810e46d9ce04617149c982eca2dbad15b7c41ee
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
data/lib/id3tag/string_util.rb
CHANGED
data/lib/id3tag/version.rb
CHANGED
@@ -47,6 +47,21 @@ describe ID3Tag::StringUtil do
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
+
describe "cut_at_null_byte" do
|
51
|
+
let(:input) { }
|
52
|
+
subject { described_class.cut_at_null_byte(input) }
|
53
|
+
|
54
|
+
context 'when content is empty' do
|
55
|
+
let(:input) { '' }
|
56
|
+
it { is_expected.to eq('') }
|
57
|
+
end
|
58
|
+
|
59
|
+
context 'when content is present' do
|
60
|
+
let(:input) { "a\u0000b" }
|
61
|
+
it { is_expected.to eq('a') }
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
50
65
|
describe "split_by_null_byte" do
|
51
66
|
let(:input) { }
|
52
67
|
subject { described_class.split_by_null_byte(input) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: id3tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krists Ozols
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|