dramsay-streamtagger 0.1.1

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 (5) hide show
  1. data/Changelog +2 -0
  2. data/LICENSE +21 -0
  3. data/README.rdoc +61 -0
  4. data/bin/stag +12 -0
  5. metadata +63 -0
data/Changelog ADDED
@@ -0,0 +1,2 @@
1
+ 2009-02-10
2
+ - Created initial version of gem
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2009 Doug Ramsay
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,61 @@
1
+ = streamtagger
2
+
3
+ * http://github.com/dramsay/streamtagger
4
+ * streamtagger.rubyforge.org
5
+
6
+ == DESCRIPTION:
7
+
8
+ Streamtagger provides command-line ability to save the artist and name of the track currently being streamed in iTunes.
9
+
10
+ == FEATURES/PROBLEMS:
11
+
12
+ Streamtagger is compatible with Mac OS X only.
13
+
14
+ == SYNOPSIS:
15
+
16
+ I usually work in Terminal or MacVim and I don't want to have to switch to iTunes and copy the information if I hear a track I love and want to check out later.
17
+
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
+ 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.
21
+
22
+ (By the way, I recommend Groove Salad on http://soma.fm.)
23
+
24
+ == REQUIREMENTS:
25
+
26
+ Streamtagger depends on a fork of the rubyosa gem (hosted at http://github.com/dramsay/rubyosa) which in turn depends on version 0.3.8.4 of the libxml-ruby gem.
27
+
28
+ == INSTALL:
29
+
30
+ If you haven't already, add gems.github.com to your gem sources (you only need to do this once):
31
+
32
+ sudo gem sources -a http://gems.github.com
33
+
34
+ Then, install the gem:
35
+
36
+ sudo gem install dramsay-streamtagger
37
+
38
+ == LICENSE:
39
+
40
+ (The MIT License)
41
+
42
+ Copyright (c) 2009 Doug Ramsay
43
+
44
+ Permission is hereby granted, free of charge, to any person obtaining
45
+ a copy of this software and associated documentation files (the
46
+ 'Software'), to deal in the Software without restriction, including
47
+ without limitation the rights to use, copy, modify, merge, publish,
48
+ distribute, sublicense, and/or sell copies of the Software, and to
49
+ permit persons to whom the Software is furnished to do so, subject to
50
+ the following conditions:
51
+
52
+ The above copyright notice and this permission notice shall be
53
+ included in all copies or substantial portions of the Software.
54
+
55
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
56
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
57
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
58
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
59
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
60
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
61
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/bin/stag ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'rbosa'
5
+
6
+ tagger_file = File.expand_path(ENV["TAGGER_FILE"]) || File.expand_path("~/Desktop/streamtagger.txt")
7
+
8
+ itunes = OSA.app("iTunes")
9
+
10
+ File.open(tagger_file, "a") do |f|
11
+ f.puts itunes.current_stream_title
12
+ end
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dramsay-streamtagger
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Doug Ramsay
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-02-05 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: dramsay-rubyosa
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - "="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.4.0
23
+ version:
24
+ description: Streamtagger allows you to tag the current stream playing in iTunes, storing info to a text file
25
+ email: dramsay on github
26
+ executables:
27
+ - stag
28
+ extensions: []
29
+
30
+ extra_rdoc_files: []
31
+
32
+ files:
33
+ - README.rdoc
34
+ - Changelog
35
+ - LICENSE
36
+ has_rdoc: false
37
+ homepage: http://github.com/dramsay/streamtagger
38
+ post_install_message:
39
+ rdoc_options: []
40
+
41
+ require_paths:
42
+ - lib
43
+ required_ruby_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: "0"
48
+ version:
49
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ version:
55
+ requirements: []
56
+
57
+ rubyforge_project:
58
+ rubygems_version: 1.2.0
59
+ signing_key:
60
+ specification_version: 2
61
+ summary: Streamtagger allows you to tag the current stream playing in iTunes, storing info to a text file
62
+ test_files: []
63
+