vitunes 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/vitunes.vim +5 -3
  2. data/lib/vitunes/version.rb +1 -1
  3. metadata +19 -27
@@ -274,7 +274,7 @@ function! s:openAddToPlaylistDropDown() range
274
274
  call <SID>commonDropDownConfig()
275
275
  let s:selectionList = split(system(s:getPlaylistsCommand), '\n')
276
276
  if (s:lastPlaylist != '')
277
- call insert(s:selectionList, s:lastPlaylist);
277
+ call insert(s:selectionList, s:lastPlaylist)
278
278
  endif
279
279
  call feedkeys("a\<c-x>\<c-u>\<c-p>", 't')
280
280
  endfunction
@@ -308,7 +308,9 @@ function! s:submitQueryOrSelection(command)
308
308
  echom bcommand
309
309
  let res = s:runCommand(bcommand)
310
310
  if a:command == 'addTracksToPlaylist'
311
- let res = system(s:vitunes_tool.'playlistTracks '.shellescape(query))
311
+ redraw
312
+ echom "Added to playlist '".query."'"
313
+ return
312
314
  endif
313
315
  setlocal modifiable
314
316
  silent! 1,$delete
@@ -317,7 +319,7 @@ function! s:submitQueryOrSelection(command)
317
319
  setlocal nomodifiable
318
320
  " position cursor at 1st track
319
321
  normal 3G
320
- if (a:command == 'playlistTracks' || a:command == 'addTracksToPlaylist')
322
+ if (a:command == 'playlistTracks') "
321
323
  let s:currentPlaylist = query
322
324
  let s:lastPlaylist = query
323
325
  else
@@ -1,3 +1,3 @@
1
1
  module ViTunes
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,31 +1,27 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: vitunes
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
4
5
  prerelease:
5
- version: 0.3.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Daniel Choi
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-07-02 00:00:00 -04:00
12
+ date: 2011-07-03 00:00:00.000000000 -04:00
14
13
  default_executable:
15
14
  dependencies: []
16
-
17
15
  description: Control iTunes with Vim
18
- email:
16
+ email:
19
17
  - dhchoi@gmail.com
20
- executables:
18
+ executables:
21
19
  - vitunes
22
20
  - vitunes-help
23
21
  - vitunes-install
24
22
  extensions: []
25
-
26
23
  extra_rdoc_files: []
27
-
28
- files:
24
+ files:
29
25
  - .gitignore
30
26
  - MIT-LICENSE.txt
31
27
  - NOTES
@@ -49,30 +45,26 @@ files:
49
45
  has_rdoc: true
50
46
  homepage: http://danielchoi.com/software/vitunes.html
51
47
  licenses: []
52
-
53
48
  post_install_message: Now please run vitunes-install to install the Vim plugin
54
49
  rdoc_options: []
55
-
56
- require_paths:
50
+ require_paths:
57
51
  - lib
58
- required_ruby_version: !ruby/object:Gem::Requirement
52
+ required_ruby_version: !ruby/object:Gem::Requirement
59
53
  none: false
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
63
57
  version: 1.8.6
64
- required_rubygems_version: !ruby/object:Gem::Requirement
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
59
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: "0"
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
70
64
  requirements: []
71
-
72
65
  rubyforge_project: vitunes
73
- rubygems_version: 1.6.1
66
+ rubygems_version: 1.6.2
74
67
  signing_key:
75
68
  specification_version: 3
76
69
  summary: A Vim interface to iTunes
77
70
  test_files: []
78
-