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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 29c3cc9a5756c4275ce59da395e80643854f8dec
4
- data.tar.gz: a5e6942ac0b6fa2d7242682c32506842421f68ac
2
+ SHA256:
3
+ metadata.gz: 2f4cc3a573245931086f08c49cb0f1f648b03a6eb4d06b58c08bc326b4d77bb3
4
+ data.tar.gz: a390a0e11679e8a4ac0b818e329faa01b987eec57559bc312a66b43fe2f70252
5
5
  SHA512:
6
- metadata.gz: 5bcb3bda2e129e52030e22e4bde12b016646205967a7f4ab7be13337d6bca4483f6b3b66217a822a2d9f4f5b22d0b114f58a85b9c853275d23e6a3433218b5dc
7
- data.tar.gz: d711c5880bfaca342a734ee69c1f9c93e635e09ea62535d145b7dbe000b80ee496a2497e706da9c007b98bedd58afd0288a19d2e4cb23c436b9e4b204c3ebe09
6
+ metadata.gz: ce64610612be25dfa6f02ea9d596af157e19a3912716e9fb18caec8f8f32ba77c0b55ad7cc35d9c10cb9e8437ca210e07328723310d906e145521933ef14c14b
7
+ data.tar.gz: 0adc67eb7b3bc4ae591fd516f759301d3e7d794cea3d38a01277f64f19b6a561ed5ff21f60a673c21fd4cde9493604a8130091915f9510e2338e49f48705603c
data/.gitignore CHANGED
@@ -4,4 +4,5 @@ Gemfile.lock
4
4
  tags
5
5
  vendor/bundle
6
6
  bin
7
-
7
+ doc
8
+ pkg
@@ -4,10 +4,10 @@ before_install:
4
4
  rvm:
5
5
  - ruby-head
6
6
  - jruby-head
7
- - 2.3.0
8
- - 2.2.4
9
- - 2.1.8
10
- - jruby-9.0.5.0
7
+ - 2.4.2
8
+ - 2.3.5
9
+ - 2.2.8
10
+ - jruby-9.1.13.0
11
11
  matrix:
12
12
  allow_failures:
13
13
  - rvm: jruby-head
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 1.9.2 or greater
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) 2013 Krists Ozols. See LICENSE.txt for
91
+ Copyright (c) 2017 Krists Ozols. See LICENSE.txt for
92
92
  further details.
@@ -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", "~> 11.1.1"
23
- s.add_development_dependency "rdoc", "~> 4.2.2"
24
- s.add_development_dependency "rspec", "~> 3.4.0"
25
- s.add_development_dependency "simplecov", "~> 0.11.2"
26
- s.add_development_dependency 'coveralls', "~> 0.8.13"
27
- s.add_development_dependency 'pry', "~> 0.10.3"
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 < BasicFrame
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(usable_content).genres
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
@@ -1,3 +1,3 @@
1
1
  module ID3Tag
2
- VERSION = "0.9.0"
2
+ VERSION = "0.10.0"
3
3
  end
@@ -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 3" do
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.9.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: 2017-10-11 00:00:00.000000000 Z
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: 11.1.1
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: 11.1.1
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: 4.2.2
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: 4.2.2
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.4.0
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.4.0
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.11.2
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.11.2
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.13
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.13
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.10.3
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.10.3
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.6.13
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