itunes-client 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: 79c089f2ddb09b0aa2309fe3f3402f6e329c2d7d
4
- data.tar.gz: ab12e3c68a3f6a170c431cd0ee18ff7b1ddb62a7
3
+ metadata.gz: 73cbf11e4ffba3ff0928c8a872eb181e7ad6d941
4
+ data.tar.gz: a7ee4be0ffb87dd6169c8a2c6291cf942d7d71d5
5
5
  SHA512:
6
- metadata.gz: 1d7b9346b6d7094eef7a595095eb441d8818137d3cb45b3e91c55d36e106b9ba95342998ab00a23aaedc584f1c7c21660e132b6d10601dcf19c87904990b0f08
7
- data.tar.gz: 0890c651c6994ea78f94d9397366899b42a07283428aaec02e7a0631f7bd17f2f62c6fc141ecc5945dfff3db251b7b46e25b636a35a8be37e08ca4b0287057be
6
+ metadata.gz: 63183e8d33a3c6237361293e7e0f77f72f52748199d5dd30e8a8598ff47217222a86924be98d426dd9d778adf0dc3fa044e742fa96fce5bcda0b16e97460659d
7
+ data.tar.gz: 5e17dac860ead5cd8903a4879f2a7bb24cec14ea0760d1b86161e408274ece35e7919980da56259278d8972f2997ea664b15e11ae1611abe7d408b1ccdfa0a6d
@@ -13,7 +13,7 @@ module Itunes
13
13
 
14
14
  def add(file_path)
15
15
  persistent_id = execute_script("#{script_dir}/add.scpt", file_path)
16
- Track.find_by(persistent_id: persistent_id)
16
+ Track.find_by(persistent_id: persistent_id).first
17
17
  end
18
18
 
19
19
  def stop
@@ -1,3 +1,3 @@
1
1
  module Itunes
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -28,11 +28,8 @@ describe Application do
28
28
  end
29
29
 
30
30
  it 'returns an array of track instance' do
31
- tracks = add
32
-
33
- expect(tracks).to be_an(Array)
34
- expect(tracks.size).to eq(1)
35
- expect(tracks.first.persistent_id).to eq(new_persistent_id)
31
+ expect(add).to be_a(Track)
32
+ expect(add.persistent_id).to eq(new_persistent_id)
36
33
  end
37
34
  end
38
35
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itunes-client
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
  - ryo katsuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-29 00:00:00.000000000 Z
11
+ date: 2013-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake