id3tag 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +2 -1
- data/.travis.yml +4 -4
- data/README.md +2 -2
- data/id3tag.gemspec +6 -6
- data/lib/id3tag/frames/v2/genre_frame.rb +6 -3
- data/lib/id3tag/version.rb +1 -1
- data/spec/lib/id3tag/frames/v2/genre_frame_spec.rb +2 -3
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2f4cc3a573245931086f08c49cb0f1f648b03a6eb4d06b58c08bc326b4d77bb3
|
4
|
+
data.tar.gz: a390a0e11679e8a4ac0b818e329faa01b987eec57559bc312a66b43fe2f70252
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce64610612be25dfa6f02ea9d596af157e19a3912716e9fb18caec8f8f32ba77c0b55ad7cc35d9c10cb9e8437ca210e07328723310d906e145521933ef14c14b
|
7
|
+
data.tar.gz: 0adc67eb7b3bc4ae591fd516f759301d3e7d794cea3d38a01277f64f19b6a561ed5ff21f60a673c21fd4cde9493604a8130091915f9510e2338e49f48705603c
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@ Native Ruby ID3 tag reader that aims for 100% covarage of ID3v2.x and ID3v1.x st
|
|
3
3
|
|
4
4
|
## Install
|
5
5
|
|
6
|
-
Make sure you are using ruby
|
6
|
+
Make sure you are using ruby 2.2 or greater
|
7
7
|
|
8
8
|
Install ID3Tag at the command prompt:
|
9
9
|
```
|
@@ -88,5 +88,5 @@ end
|
|
88
88
|
[![Code Climate](https://codeclimate.com/github/krists/id3tag.png)](https://codeclimate.com/github/krists/id3tag) [![Build Status](https://travis-ci.org/krists/id3tag.png?branch=master)](https://travis-ci.org/krists/id3tag) [![Coverage Status](https://coveralls.io/repos/krists/id3tag/badge.png?branch=master)](https://coveralls.io/r/krists/id3tag) [![Gem Version](https://badge.fury.io/rb/id3tag.png)](http://badge.fury.io/rb/id3tag)
|
89
89
|
## Copyright
|
90
90
|
|
91
|
-
Copyright (c)
|
91
|
+
Copyright (c) 2017 Krists Ozols. See LICENSE.txt for
|
92
92
|
further details.
|
data/id3tag.gemspec
CHANGED
@@ -19,10 +19,10 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
|
20
20
|
|
21
21
|
s.add_development_dependency "bundler"
|
22
|
-
s.add_development_dependency "rake", "~>
|
23
|
-
s.add_development_dependency "rdoc", "~>
|
24
|
-
s.add_development_dependency "rspec", "~> 3.
|
25
|
-
s.add_development_dependency "simplecov", "~> 0.
|
26
|
-
s.add_development_dependency 'coveralls', "~> 0.8.
|
27
|
-
s.add_development_dependency 'pry', "~> 0.
|
22
|
+
s.add_development_dependency "rake", "~> 12.1.0"
|
23
|
+
s.add_development_dependency "rdoc", "~> 5.1.0"
|
24
|
+
s.add_development_dependency "rspec", "~> 3.6.0"
|
25
|
+
s.add_development_dependency "simplecov", "~> 0.14.1"
|
26
|
+
s.add_development_dependency 'coveralls', "~> 0.8.21"
|
27
|
+
s.add_development_dependency 'pry', "~> 0.11.1"
|
28
28
|
end
|
@@ -1,13 +1,16 @@
|
|
1
1
|
module ID3Tag
|
2
2
|
module Frames
|
3
3
|
module V2
|
4
|
-
class GenreFrame <
|
4
|
+
class GenreFrame < TextFrame
|
5
5
|
class MissingGenreParser < StandardError; end
|
6
6
|
|
7
7
|
def genres
|
8
8
|
@genres ||= get_genres
|
9
9
|
end
|
10
10
|
|
11
|
+
alias text_frame_content content
|
12
|
+
private :text_frame_content
|
13
|
+
|
11
14
|
def content
|
12
15
|
genres.join(", ")
|
13
16
|
end
|
@@ -17,7 +20,7 @@ module ID3Tag
|
|
17
20
|
private
|
18
21
|
|
19
22
|
def get_genres
|
20
|
-
genre_parser.new(
|
23
|
+
genre_parser.new(text_frame_content).genres
|
21
24
|
end
|
22
25
|
|
23
26
|
def genre_parser
|
@@ -27,7 +30,7 @@ module ID3Tag
|
|
27
30
|
when 4
|
28
31
|
GenreParser24
|
29
32
|
else
|
30
|
-
raise(MissingGenreParser,"Missing genre parser for tag version v.2.#{@major_version_number}")
|
33
|
+
raise(MissingGenreParser, "Missing genre parser for tag version v.2.#{@major_version_number}")
|
31
34
|
end
|
32
35
|
end
|
33
36
|
end
|
data/lib/id3tag/version.rb
CHANGED
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
3
3
|
|
4
4
|
describe ID3Tag::Frames::V2::GenreFrame do
|
5
5
|
let(:id) { "TCON" }
|
6
|
-
let(:raw_content) { "(17)" }
|
6
|
+
let(:raw_content) { "\x03(17)" }
|
7
7
|
let(:flags) { nil }
|
8
8
|
let(:major_version_number) { 3 }
|
9
9
|
let(:frame) { described_class.new(id, raw_content, flags, major_version_number) }
|
@@ -16,14 +16,13 @@ describe ID3Tag::Frames::V2::GenreFrame do
|
|
16
16
|
describe '#content' do
|
17
17
|
subject { frame.content }
|
18
18
|
|
19
|
-
context "when tag major version is pre
|
19
|
+
context "when tag major version is pre 4" do
|
20
20
|
let(:major_version_number) { 3 }
|
21
21
|
|
22
22
|
context "when one genre" do
|
23
23
|
before do
|
24
24
|
allow_any_instance_of(ID3Tag::Frames::V2::GenreFrame::GenreParserPre24).to receive(:genres) { ['A'] }
|
25
25
|
end
|
26
|
-
|
27
26
|
it { is_expected.to eq('A') }
|
28
27
|
end
|
29
28
|
context "when two genres" do
|
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.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krists Ozols
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,84 +30,84 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.1.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 12.1.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rdoc
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 5.1.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 5.1.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.
|
61
|
+
version: 3.6.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 3.
|
68
|
+
version: 3.6.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: simplecov
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.14.1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.14.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: coveralls
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.8.
|
89
|
+
version: 0.8.21
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.8.
|
96
|
+
version: 0.8.21
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: pry
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.11.1
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.11.1
|
111
111
|
description: Native Ruby ID3 tag reader that aims for 100% covarage of ID3v2.x and
|
112
112
|
ID3v1.x standards
|
113
113
|
email: krists.ozols@gmail.com
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
requirements: []
|
227
227
|
rubyforge_project:
|
228
|
-
rubygems_version: 2.
|
228
|
+
rubygems_version: 2.7.3
|
229
229
|
signing_key:
|
230
230
|
specification_version: 4
|
231
231
|
summary: Native Ruby ID3 tag reader that aims for 100% covarage of ID3v2.x and ID3v1.x
|