wahwah 0.1.0.pre.test → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +8 -0
  3. data/.travis.yml +5 -0
  4. data/Gemfile +6 -0
  5. data/Gemfile.lock +22 -0
  6. data/README.md +35 -0
  7. data/Rakefile +10 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +8 -0
  10. data/lib/wahwah.rb +3 -74
  11. data/lib/wahwah/version.rb +2 -4
  12. data/wahwah.gemspec +27 -0
  13. metadata +25 -96
  14. data/LICENSE +0 -21
  15. data/lib/wahwah/asf/object.rb +0 -39
  16. data/lib/wahwah/asf_tag.rb +0 -220
  17. data/lib/wahwah/errors.rb +0 -6
  18. data/lib/wahwah/flac/block.rb +0 -57
  19. data/lib/wahwah/flac/streaminfo_block.rb +0 -51
  20. data/lib/wahwah/flac_tag.rb +0 -84
  21. data/lib/wahwah/helper.rb +0 -37
  22. data/lib/wahwah/id3/comment_frame_body.rb +0 -21
  23. data/lib/wahwah/id3/frame.rb +0 -180
  24. data/lib/wahwah/id3/frame_body.rb +0 -36
  25. data/lib/wahwah/id3/genre_frame_body.rb +0 -15
  26. data/lib/wahwah/id3/image_frame_body.rb +0 -60
  27. data/lib/wahwah/id3/text_frame_body.rb +0 -16
  28. data/lib/wahwah/id3/v1.rb +0 -96
  29. data/lib/wahwah/id3/v2.rb +0 -60
  30. data/lib/wahwah/id3/v2_header.rb +0 -53
  31. data/lib/wahwah/mp3/mpeg_frame_header.rb +0 -141
  32. data/lib/wahwah/mp3/vbri_header.rb +0 -47
  33. data/lib/wahwah/mp3/xing_header.rb +0 -45
  34. data/lib/wahwah/mp3_tag.rb +0 -110
  35. data/lib/wahwah/mp4/atom.rb +0 -105
  36. data/lib/wahwah/mp4_tag.rb +0 -126
  37. data/lib/wahwah/ogg/flac_tag.rb +0 -37
  38. data/lib/wahwah/ogg/opus_tag.rb +0 -33
  39. data/lib/wahwah/ogg/packets.rb +0 -41
  40. data/lib/wahwah/ogg/page.rb +0 -121
  41. data/lib/wahwah/ogg/pages.rb +0 -24
  42. data/lib/wahwah/ogg/vorbis_comment.rb +0 -51
  43. data/lib/wahwah/ogg/vorbis_tag.rb +0 -35
  44. data/lib/wahwah/ogg_tag.rb +0 -66
  45. data/lib/wahwah/riff/chunk.rb +0 -54
  46. data/lib/wahwah/riff_tag.rb +0 -140
  47. data/lib/wahwah/tag.rb +0 -59
  48. data/lib/wahwah/tag_delegate.rb +0 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4f8d14cd1c6aa34326a6b0bb4e5ac8bed06778a7b981ca0accb86214f7ad9ee
4
- data.tar.gz: 0763f36ffc903dc02dd47b885c71e11df3248aa3bc513d53d78c41e7f149cda0
3
+ metadata.gz: 4f0442dc7cdc627cfe026cd772f5c244089b4d3ab0ac2c1343381b4462efe7de
4
+ data.tar.gz: 69f88a13f1e4aa4df4e76f9ab25d698448468176f74023ee6f9cdc7018236811
5
5
  SHA512:
6
- metadata.gz: 2570bfd1bdaa7705048d23f9e5a89b3f954817b48d2a520ca93901a5b7cad34e32eafa9d46f4d4bb97b371b82fcd1df463ac96a698a10043b65ecc07d470cff1
7
- data.tar.gz: 045d228d65fbadbe5363a916897f2b812df0e6d2e0fc94e4dc9cd6e09c7f737ad00a96add2fa52564c5c813e6d588e0d4fd1f6d8dfc4b3ed80f4662dee1b68e3
6
+ metadata.gz: 2ee68cdad4790218492dbd49545a421a6be8ccdc006ca0eb20254f2f0c083f11b580b5c39778af899e01a341136a84203e89e6f6eb55df3f9ce3d584d364ea24
7
+ data.tar.gz: 9493abddeaa6997bd6368e83b3ff225dd579ecfd3a29780cab227aec6a9aefab025cdae73a9684093c5a3ea9fb9559bdcab0e4723ca2326e07ae721a23d11f87
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.16.1
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in wahwah.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,22 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ wahwah (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ minitest (5.11.3)
10
+ rake (10.5.0)
11
+
12
+ PLATFORMS
13
+ ruby
14
+
15
+ DEPENDENCIES
16
+ bundler (~> 1.16)
17
+ minitest (~> 5.0)
18
+ rake (~> 10.0)
19
+ wahwah!
20
+
21
+ BUNDLED WITH
22
+ 1.16.1
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # Wahwah
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/wahwah`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'wahwah'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install wahwah
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/wahwah.
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "wahwah"
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__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lib/wahwah.rb CHANGED
@@ -1,76 +1,5 @@
1
- # frozen_string_literal: true
1
+ require "wahwah/version"
2
2
 
3
- require 'wahwah/version'
4
- require 'wahwah/errors'
5
- require 'wahwah/helper'
6
- require 'wahwah/tag_delegate'
7
- require 'wahwah/tag'
8
-
9
- require 'wahwah/id3/v1'
10
- require 'wahwah/id3/v2'
11
- require 'wahwah/id3/v2_header'
12
- require 'wahwah/id3/frame'
13
- require 'wahwah/id3/frame_body'
14
- require 'wahwah/id3/text_frame_body'
15
- require 'wahwah/id3/genre_frame_body'
16
- require 'wahwah/id3/comment_frame_body'
17
- require 'wahwah/id3/image_frame_body'
18
-
19
- require 'wahwah/mp3/mpeg_frame_header'
20
- require 'wahwah/mp3/xing_header'
21
- require 'wahwah/mp3/vbri_header'
22
-
23
- require 'wahwah/riff/chunk'
24
-
25
- require 'wahwah/flac/block'
26
- require 'wahwah/flac/streaminfo_block'
27
-
28
- require 'wahwah/ogg/page'
29
- require 'wahwah/ogg/pages'
30
- require 'wahwah/ogg/packets'
31
- require 'wahwah/ogg/vorbis_comment'
32
- require 'wahwah/ogg/vorbis_tag'
33
- require 'wahwah/ogg/opus_tag'
34
- require 'wahwah/ogg/flac_tag'
35
-
36
- require 'wahwah/asf/object'
37
-
38
- require 'wahwah/mp4/atom'
39
-
40
- require 'wahwah/mp3_tag'
41
- require 'wahwah/mp4_tag'
42
- require 'wahwah/ogg_tag'
43
- require 'wahwah/riff_tag'
44
- require 'wahwah/asf_tag'
45
- require 'wahwah/flac_tag'
46
-
47
- module WahWah
48
- FORMATE_MAPPING = {
49
- Mp3Tag: ['mp3'],
50
- OggTag: ['ogg', 'oga', 'opus'],
51
- RiffTag: ['wav'],
52
- FlacTag: ['flac'],
53
- AsfTag: ['wma'],
54
- Mp4Tag: ['m4a']
55
- }.freeze
56
-
57
- def self.open(file_path)
58
- file_path = file_path.to_path if file_path.respond_to? :to_path
59
- file_path = file_path.to_str
60
-
61
- file_format = Helper.file_format(file_path)
62
-
63
- raise WahWahArgumentError, 'File is not exists' unless File.exist? file_path
64
- raise WahWahArgumentError, 'File is unreadable' unless File.readable? file_path
65
- raise WahWahArgumentError, 'File is empty' unless File.size(file_path) > 0
66
- raise WahWahArgumentError, 'No supported format found' unless support_formats.include? file_format
67
-
68
- FORMATE_MAPPING.each do |tag, formats|
69
- break const_get(tag).new(file_path) if formats.include?(file_format)
70
- end
71
- end
72
-
73
- def self.support_formats
74
- FORMATE_MAPPING.values.flatten
75
- end
3
+ module Wahwah
4
+ # Your code goes here...
76
5
  end
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
- module WahWah
4
- VERSION = '0.1.0-test'
1
+ module Wahwah
2
+ VERSION = "0.1.0"
5
3
  end
data/wahwah.gemspec ADDED
@@ -0,0 +1,27 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "wahwah/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "wahwah"
8
+ spec.version = Wahwah::VERSION
9
+ spec.authors = ["aidewoode"]
10
+ spec.email = ["aidewoode@gmail.com"]
11
+
12
+ spec.summary = 'complete later'
13
+ spec.description = 'complete later'
14
+ spec.homepage = 'https://github.com/aidewoode'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.16"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "minitest", "~> 5.0"
27
+ end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wahwah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.test
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - aidewoode
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2018-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.16'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.16'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '13.0'
33
+ version: '10.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: '13.0'
40
+ version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,97 +52,26 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
- - !ruby/object:Gem::Dependency
56
- name: rubocop
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 0.80.1
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 0.80.1
69
- - !ruby/object:Gem::Dependency
70
- name: rubocop-performance
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 1.5.2
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 1.5.2
83
- - !ruby/object:Gem::Dependency
84
- name: codecov
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 0.1.17
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 0.1.17
97
- description: WahWah is an audio metadata reader ruby gem, it supports many popular
98
- formats including mp3(ID3 v1, v2.2, v2.3, v2.4), m4a, ogg, oga, opus, wav, flac
99
- and wma.
55
+ description: complete later
100
56
  email:
101
57
  - aidewoode@gmail.com
102
58
  executables: []
103
59
  extensions: []
104
60
  extra_rdoc_files: []
105
61
  files:
106
- - LICENSE
62
+ - ".gitignore"
63
+ - ".travis.yml"
64
+ - Gemfile
65
+ - Gemfile.lock
66
+ - README.md
67
+ - Rakefile
68
+ - bin/console
69
+ - bin/setup
107
70
  - lib/wahwah.rb
108
- - lib/wahwah/asf/object.rb
109
- - lib/wahwah/asf_tag.rb
110
- - lib/wahwah/errors.rb
111
- - lib/wahwah/flac/block.rb
112
- - lib/wahwah/flac/streaminfo_block.rb
113
- - lib/wahwah/flac_tag.rb
114
- - lib/wahwah/helper.rb
115
- - lib/wahwah/id3/comment_frame_body.rb
116
- - lib/wahwah/id3/frame.rb
117
- - lib/wahwah/id3/frame_body.rb
118
- - lib/wahwah/id3/genre_frame_body.rb
119
- - lib/wahwah/id3/image_frame_body.rb
120
- - lib/wahwah/id3/text_frame_body.rb
121
- - lib/wahwah/id3/v1.rb
122
- - lib/wahwah/id3/v2.rb
123
- - lib/wahwah/id3/v2_header.rb
124
- - lib/wahwah/mp3/mpeg_frame_header.rb
125
- - lib/wahwah/mp3/vbri_header.rb
126
- - lib/wahwah/mp3/xing_header.rb
127
- - lib/wahwah/mp3_tag.rb
128
- - lib/wahwah/mp4/atom.rb
129
- - lib/wahwah/mp4_tag.rb
130
- - lib/wahwah/ogg/flac_tag.rb
131
- - lib/wahwah/ogg/opus_tag.rb
132
- - lib/wahwah/ogg/packets.rb
133
- - lib/wahwah/ogg/page.rb
134
- - lib/wahwah/ogg/pages.rb
135
- - lib/wahwah/ogg/vorbis_comment.rb
136
- - lib/wahwah/ogg/vorbis_tag.rb
137
- - lib/wahwah/ogg_tag.rb
138
- - lib/wahwah/riff/chunk.rb
139
- - lib/wahwah/riff_tag.rb
140
- - lib/wahwah/tag.rb
141
- - lib/wahwah/tag_delegate.rb
142
71
  - lib/wahwah/version.rb
72
+ - wahwah.gemspec
143
73
  homepage: https://github.com/aidewoode
144
- licenses:
145
- - MIT
74
+ licenses: []
146
75
  metadata: {}
147
76
  post_install_message:
148
77
  rdoc_options: []
@@ -152,16 +81,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
81
  requirements:
153
82
  - - ">="
154
83
  - !ruby/object:Gem::Version
155
- version: 2.5.0
84
+ version: '0'
156
85
  required_rubygems_version: !ruby/object:Gem::Requirement
157
86
  requirements:
158
- - - ">"
87
+ - - ">="
159
88
  - !ruby/object:Gem::Version
160
- version: 1.3.1
89
+ version: '0'
161
90
  requirements: []
162
91
  rubyforge_project:
163
- rubygems_version: 2.7.6.2
92
+ rubygems_version: 2.7.6
164
93
  signing_key:
165
94
  specification_version: 4
166
- summary: Audio metadata reader ruby gem
95
+ summary: complete later
167
96
  test_files: []
data/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Aidewoode <aidewoode@gmail.com>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.