rupeepeethree 0.0.5 → 0.0.6

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
2
  SHA1:
3
- metadata.gz: 9d164bd529a6b29dfbc38ab9dbfc5e15d2a8d235
4
- data.tar.gz: 227a2a280b026a882561df31f364a117322674ec
3
+ metadata.gz: 3a69a46fdb054ddc2941e941cedeb321d10905f5
4
+ data.tar.gz: f520929c64b43c02dfe77a9867309fa6c2509c8a
5
5
  SHA512:
6
- metadata.gz: 844a23a9d778c6eff31f2bf13f468376a80e86d31fff9eea010fdf495334909bda9771ef337f9e0c58009a67fdb83b6d000dd32f7a1c222f548b392460fede1b
7
- data.tar.gz: ff1e33dadbbcbd44b218518af59ecc42926ce516c07d36ed9d94ca6a709e8cfee0da493e1ce4dfbbd5b1968522b8c58d82fa78840a104e3b278fe7ed796f342e
6
+ metadata.gz: d31938cffc53559a4ce12ccc46740dd7f8fdf7ec9d86a93263f1562926a8639ea1bea21cbb9d89418623c894ba9f906165a6d62d1234d1244204837ab23bec09
7
+ data.tar.gz: 2bcd05aa59dcda4de7a0ceca2eac6907a3be7ca5a7d49b699dbe4c5ee41232010aef221cafbe37c6cc9919918aee9e1b76987f5dae473c43bcd785ab14aa9d96
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  *.gem
2
+ Gemfile.lock
@@ -1,10 +1,13 @@
1
- before_install: sudo apt-get install libtag1-dev
1
+ addons:
2
+ apt:
3
+ packages:
4
+ - libtag1-dev
5
+ sudo: false
2
6
  language: ruby
3
7
  notifications:
4
8
  email:
5
9
  - mcfiredrill@gmail.com
6
10
  rvm:
7
- - 1.9.2
8
11
  - 1.9.3
9
- - 2.0.0
12
+ - 2.3.0
10
13
  script: bundle exec rspec
data/Gemfile CHANGED
@@ -1,9 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'rspec'
4
- gem 'rake'
5
- gem 'taglib-ruby'
6
- gem 'trollop'
7
- gem 'cocaine'
8
- gem 'mime-types'
9
- gem 'fruity_formatter'
3
+ gemspec
@@ -51,6 +51,8 @@ module Rupeepeethree
51
51
  hash[:album] = t.album
52
52
  hash[:track_number] = t.track
53
53
  hash[:year] = t.year
54
+ properties = f.audio_properties
55
+ hash[:length] = properties.length
54
56
  end
55
57
  hash
56
58
  end
@@ -1,3 +1,3 @@
1
1
  module Rupeepeethree
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -30,6 +30,12 @@ Gem::Specification.new do |s|
30
30
  s.add_dependency 'trollop', '~> 2.0'
31
31
  s.add_dependency 'mime-types', '>= 1.16'
32
32
 
33
+ s.add_development_dependency "bundler", "~> 1.3"
34
+ s.add_development_dependency "rake"
35
+ s.add_development_dependency "rspec", "~> 3.0"
36
+ s.add_development_dependency "fruity_formatter"
37
+ s.add_development_dependency "cocaine"
38
+
33
39
  if s.respond_to? :specification_version then
34
40
  s.specification_version = 3
35
41
 
@@ -45,6 +45,11 @@ describe Rupeepeethree::Tagger do
45
45
  result.should_not match(/image:/)
46
46
  end
47
47
 
48
+ it "returns track length" do
49
+ tags = Rupeepeethree::Tagger.tags(mp3)
50
+ expect(tags[:length]).to eq 2
51
+ end
52
+
48
53
  it 'blows up if the mp3 file is not found' do
49
54
  expect do
50
55
  Rupeepeethree::Tagger.tags('not a file')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rupeepeethree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Miller
@@ -52,6 +52,76 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.16'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: fruity_formatter
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: cocaine
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
55
125
  - !ruby/object:Gem::Dependency
56
126
  name: rdoc
57
127
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +164,6 @@ files:
94
164
  - ".rspec"
95
165
  - ".travis.yml"
96
166
  - Gemfile
97
- - Gemfile.lock
98
167
  - History.txt
99
168
  - Manifest.txt
100
169
  - README.md
@@ -1,42 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- activesupport (3.2.12)
5
- i18n (~> 0.6)
6
- multi_json (~> 1.0)
7
- climate_control (0.0.3)
8
- activesupport (>= 3.0)
9
- cocaine (0.5.1)
10
- climate_control (>= 0.0.3, < 1.0)
11
- diff-lcs (1.2.1)
12
- fruity_formatter (0.0.1)
13
- rspec
14
- i18n (0.6.4)
15
- mime-types (1.21)
16
- multi_json (1.6.1)
17
- rake (10.0.3)
18
- rspec (2.13.0)
19
- rspec-core (~> 2.13.0)
20
- rspec-expectations (~> 2.13.0)
21
- rspec-mocks (~> 2.13.0)
22
- rspec-core (2.13.0)
23
- rspec-expectations (2.13.0)
24
- diff-lcs (>= 1.1.3, < 2.0)
25
- rspec-mocks (2.13.0)
26
- taglib-ruby (0.7.0)
27
- trollop (1.16.2)
28
-
29
- PLATFORMS
30
- ruby
31
-
32
- DEPENDENCIES
33
- cocaine
34
- fruity_formatter
35
- mime-types
36
- rake
37
- rspec
38
- taglib-ruby
39
- trollop
40
-
41
- BUNDLED WITH
42
- 1.10.6