id3tag 0.10.0 → 0.10.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: 2f4cc3a573245931086f08c49cb0f1f648b03a6eb4d06b58c08bc326b4d77bb3
4
- data.tar.gz: a390a0e11679e8a4ac0b818e329faa01b987eec57559bc312a66b43fe2f70252
3
+ metadata.gz: f472ca0d17fce8372d1bca854965d2d1ae862e74933e5da9cc8cf6e7614e3d59
4
+ data.tar.gz: 4faf983540a5f81630294fe91ca353e30a09dc378b1fb1e8377f30a293fd212d
5
5
  SHA512:
6
- metadata.gz: ce64610612be25dfa6f02ea9d596af157e19a3912716e9fb18caec8f8f32ba77c0b55ad7cc35d9c10cb9e8437ca210e07328723310d906e145521933ef14c14b
7
- data.tar.gz: 0adc67eb7b3bc4ae591fd516f759301d3e7d794cea3d38a01277f64f19b6a561ed5ff21f60a673c21fd4cde9493604a8130091915f9510e2338e49f48705603c
6
+ metadata.gz: fc4ec4101cca2e2b35ff722abc5d5d4a5cfd517d946d059e8f6b3775cc022335284bae1f14b868a2629765f1de94a14448ceecbee80eb6737b0ee506ca8b5a5e
7
+ data.tar.gz: 64fab8761e94835e3b7c05cfe4463c3f9ab1ec646ef85f6a4ced501695e8e9c73995973a00080b7d7ca284fc8810e46d9ce04617149c982eca2dbad15b7c41ee
@@ -4,9 +4,10 @@ before_install:
4
4
  rvm:
5
5
  - ruby-head
6
6
  - jruby-head
7
- - 2.4.2
8
- - 2.3.5
9
- - 2.2.8
7
+ - 2.5.1
8
+ - 2.4.4
9
+ - 2.3.7
10
+ - 2.2.10
10
11
  - jruby-9.1.13.0
11
12
  matrix:
12
13
  allow_failures:
data/README.md CHANGED
@@ -12,7 +12,7 @@ gem install id3tag
12
12
 
13
13
  Or add the gem to your Gemfile:
14
14
  ```
15
- gem 'id3tag'
15
+ gem 'id3tag', '~> 0.10.0'
16
16
  ```
17
17
 
18
18
  ## How to use
@@ -20,7 +20,7 @@ module ID3Tag
20
20
  end
21
21
 
22
22
  def self.cut_at_null_byte(string)
23
- string.split(NULL_BYTE, 2).first
23
+ string.split(NULL_BYTE, 2).first.to_s
24
24
  end
25
25
 
26
26
  def self.split_by_null_byte(string)
@@ -1,3 +1,3 @@
1
1
  module ID3Tag
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
@@ -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.0
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-03-16 00:00:00.000000000 Z
11
+ date: 2018-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler