dramsay-streamtagger 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.rdoc +19 -1
  2. data/bin/stag +4 -1
  3. metadata +1 -1
data/README.rdoc CHANGED
@@ -17,7 +17,7 @@ I usually work in Terminal or MacVim and I don't want to have to switch to iTune
17
17
 
18
18
  With streamtagger installed, all I have to do is type 'stag' from the command line and the info is stored without breaking my current train of thought.
19
19
  The storage file defaults to /Users/<your username>/Desktop/streamtagger.txt, but can be changed by adding a TAGGER_FILE environment variable with the value of your
20
- preferred path.
20
+ preferred path. If you want the streamed track info printed out to the terminal as well as added to your tagger file, add a TAGGER_INFO environment variable.
21
21
 
22
22
  If you'd like to quickly see your tagged songs, you can use "stag list" to print out your song file.
23
23
 
@@ -36,6 +36,24 @@ If you haven't already, add gems.github.com to your gem sources (you only need t
36
36
  Then, install the gem:
37
37
 
38
38
  sudo gem install dramsay-streamtagger
39
+
40
+ == USAGE:
41
+
42
+ To add the current stream track info to your tagger file:
43
+
44
+ stag
45
+
46
+ To show the current contents of your tagger file:
47
+
48
+ stag list
49
+
50
+ To clear the ocntents of your tagger file:
51
+
52
+ stag clear
53
+
54
+ To simply display the current stream track info without adding it to your tagger file:
55
+
56
+ stag info
39
57
 
40
58
  == LICENSE:
41
59
 
data/bin/stag CHANGED
@@ -13,9 +13,12 @@ if ARGV[0] == 'list'
13
13
  print `cat #{tagger_file}`
14
14
  elsif ARGV[0] == 'clear'
15
15
  `> #{tagger_file}`
16
+ elsif ARGV[0] == 'info'
17
+ itunes = OSA.app("iTunes")
18
+ puts itunes.current_stream_title
16
19
  else
17
20
  itunes = OSA.app("iTunes")
18
-
21
+ puts itunes.current_stream_title if ENV["TAGGER_INFO"]
19
22
  File.open(tagger_file, "a") do |f|
20
23
  f.puts itunes.current_stream_title
21
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dramsay-streamtagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Ramsay