under_fire 0.6.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.
@@ -0,0 +1,47 @@
1
+ require_relative '../../spec_helper'
2
+ require 'under_fire/album_fetch'
3
+ require 'ox'
4
+
5
+ module UnderFire
6
+ describe AlbumFetch do
7
+ subject {AlbumFetch.new(:gn_id => '7F28ADC369EB90E53A7F6CA3A70D56V')}
8
+
9
+ let(:xml){
10
+ '<queries>'+
11
+ '<auth>'+
12
+ '<client>1234454</client>'+
13
+ '<user>2353452345243545-454351435kj435j345434</user>'+
14
+ '</auth>'+
15
+ '<lang>eng</lang>'+
16
+ '<country>canada</country>'+
17
+ '<query cmd="album_fetch">'+
18
+ '<gn_id>7F28ADC369EB90E53A7F6CA3A70D56V</gn_id>'+
19
+ '</query>'+
20
+ '</queries>'}
21
+
22
+ before do
23
+ ENV['GRACENOTE_CLIENT_ID'] = '1234454'
24
+ ENV['GRACENOTE_USER_ID'] = '2353452345243545-454351435kj435j345434'
25
+ end
26
+
27
+ describe "instantiation" do
28
+ it "accepts an album GN_ID as input" do
29
+ AlbumFetch.new(:gn_id => '7F28ADC369EB90E53A7F6CA3A70D56V').must_be_kind_of UnderFire::AlbumFetch
30
+ end
31
+ end
32
+
33
+ describe "#query" do
34
+
35
+ it "returns properly formed xml" do
36
+ #`Ox.load` returns Ox::ParseError if xml is malformed
37
+ Ox.load(subject.query).must_be_kind_of Ox::Element
38
+ end
39
+
40
+ it "returns the correct xml query" do
41
+ subject.query.must_include "gn_id"
42
+ subject.query.must_include "ALBUM_FETCH"
43
+ subject.query.must_include "7F28ADC369EB90E53A7F6CA3A70D56V"
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,57 @@
1
+ require_relative '../../spec_helper.rb'
2
+ require 'ox'
3
+ require 'rr'
4
+
5
+ module UnderFire
6
+ describe AlbumSearch do
7
+ subject {AlbumSearch.new(mode: "SINGLE_BEST_COVER",
8
+ artist: "Radiohead",
9
+ track_title: "Paranoid Android",
10
+ album_title: "OK Computer")}
11
+ let(:xml){
12
+ '<queries><auth><client>1234454</client>'+
13
+ '<user>2353452345243545-454351435kj435j345434</user></auth>'+
14
+ '<lang>eng</lang><country>canada</country>'+
15
+ '<query cmd="ALBUM_SEARCH">'+
16
+ '<mode>SINGLE_BEST_COVER</mode>'+
17
+ '<text type="ALBUM_TITLE">OK Computer</text>'+
18
+ '<text type="TRACK_TITLE">Paranoid Android</text>'+
19
+ '<text type="ARTIST">Radiohead</text>'+
20
+ '</query></queries>'
21
+ }
22
+
23
+ before do
24
+ ENV['GRACENOTE_CLIENT_ID'] = '1234454'
25
+ ENV['GRACENOTE_USER_ID'] = '2353452345243545-454351435kj435j345434'
26
+ end
27
+
28
+ it "accepts a hash of arguments" do
29
+ subject.artist.must_equal "Radiohead"
30
+ subject.track_title.must_equal "Paranoid Android"
31
+ end
32
+
33
+ describe "#query" do
34
+ it "returns well formed xml" do
35
+ Ox.load(subject.query).must_be_kind_of Ox::Element
36
+ end
37
+
38
+ describe "with all fields" do
39
+ it "returns the correct xml query" do
40
+ subject.query.must_include "Radiohead"
41
+ end
42
+ end
43
+
44
+ describe "with artist" do
45
+ subject{AlbumSearch.new(artist: "Radiohead")}
46
+ it "returns an xml query with an artist name" do
47
+ subject.query.must_include "Radiohead"
48
+ end
49
+
50
+ it "does not return album_title or track_title fields" do
51
+ subject.query.wont_include "TRACK_TITLE"
52
+ subject.query.wont_include "ALBUM_TITLE"
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,44 @@
1
+ require_relative '../../spec_helper.rb'
2
+ require 'rr'
3
+ require 'ox'
4
+
5
+ module UnderFire
6
+ describe AlbumTOCSearch do
7
+ let(:toc){"182 10762 22515 32372 43735 53335 63867 78305 89792 98702 "+
8
+ "110612 122590 132127 141685"}
9
+ subject {AlbumTOCSearch.new(toc: toc)}
10
+
11
+ let(:xml){
12
+ '<queries><auth><client>1234454</client>'+
13
+ '<user>2353452345243545-454351435kj435j345434</user></auth>'+
14
+ '<lang>eng</lang><country>canada</country>'+
15
+ '<query cmd="ALBUM_TOC">'+
16
+ '<mode>SINGLE_BEST_COVER</mode>'+
17
+ '<toc><offsets>' + toc + '</offsets></toc>'+
18
+ '</query></queries>'}
19
+
20
+ before do
21
+ ENV['GRACENOTE_CLIENT_ID'] = '1234454'
22
+ ENV['GRACENOTE_USER_ID'] = '2353452345243545-454351435kj435j345434'
23
+ end
24
+
25
+
26
+ it "accepts a toc string" do
27
+ subject.toc.must_equal toc
28
+ end
29
+
30
+ describe "#query" do
31
+ it "returns properly formed xml" do
32
+ #`Ox.load` returns Ox::ParseError if xml is malformed
33
+ Ox.load(subject.query).must_be_kind_of Ox::Element
34
+ end
35
+
36
+ it "returns the correct query" do
37
+ subject.query.must_include "182 "
38
+ subject.query.must_include "98702 "
39
+ subject.query.must_include 'cmd="ALBUM_TOC"'
40
+ subject.query.must_include "SINGLE_BEST_COVER"
41
+ end
42
+ end
43
+ end
44
+ end
File without changes
@@ -0,0 +1,9 @@
1
+ require_relative '../../spec_helper.rb'
2
+
3
+ module UnderFire
4
+ describe Response do
5
+ it "works" do
6
+ Response.new(res).must_be Array
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,16 @@
1
+ require_relative '../../spec_helper.rb'
2
+ require 'nori'
3
+
4
+ module UnderFire
5
+ describe APIResponse do
6
+ let(:file_name){"../../../sample/response.xml"}
7
+ let(:res){File.open(File.expand_path file_name, __FILE__) {|f| f.read}}
8
+ subject{APIResponse.new(res)}
9
+
10
+ describe "#parse_response" do
11
+ it "returns a Hash" do
12
+ subject.to_h.must_be_kind_of Hash
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ require_relative "../../spec_helper"
2
+
3
+ module UnderFire
4
+ describe BaseQuery do
5
+ describe "instatiation" do
6
+ it "must accept a query mode" do
7
+ BaseQuery.new("SINGLE_BEST").mode.must_equal "SINGLE_BEST"
8
+ end
9
+
10
+ it "must default to SINGLE_BEST_COVER" do
11
+ BaseQuery.new().mode.must_equal "SINGLE_BEST_COVER"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,18 @@
1
+ require_relative '../../spec_helper'
2
+
3
+ module UnderFire
4
+ describe Configuration do
5
+ before do
6
+ ENV['GRACENOTE_CLIENT_ID'] = "12345668"
7
+ ENV['GRACENOTE_USER_ID'] = "1432145345-13413554646D35134"
8
+ end
9
+
10
+ it "has a client_id" do
11
+ UnderFire::Configuration.client_id.must_equal "12345668"
12
+ end
13
+
14
+ it "has a user_id" do
15
+ UnderFire::Configuration.user_id.must_equal "1432145345-13413554646D35134"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,130 @@
1
+ <RESPONSES>
2
+ <RESPONSE STATUS="OK">
3
+ <RANGE>
4
+ <COUNT>8</COUNT>
5
+ <START>1</START>
6
+ <END>8</END>
7
+ </RANGE>
8
+ <ALBUM ORD="1">
9
+ <GN_ID>7338170-668328E1DDE75B40898454B34C21AFA0</GN_ID>
10
+ <ARTIST>Brian Eno</ARTIST>
11
+ <TITLE>Taking Tiger Mountain By Strategy</TITLE>
12
+ <PKG_LANG>ENG</PKG_LANG>
13
+ <DATE>1974</DATE>
14
+ <GENRE NUM="105251" ID="35497">Downtempo, Lounge &amp; Ambient</GENRE>
15
+ <MATCHED_TRACK_NUM>6</MATCHED_TRACK_NUM>
16
+ <TRACK_COUNT>10</TRACK_COUNT>
17
+ <TRACK>
18
+ <TRACK_NUM>6</TRACK_NUM>
19
+ <GN_ID>7338176-DDA30906C2F6CD0C965672F06EB36110</GN_ID>
20
+ <TITLE>Third Uncle</TITLE>
21
+ </TRACK></ALBUM>
22
+ <ALBUM ORD="2">
23
+ <GN_ID>7678699-304E893066605AC1BCD828ACE04FB3C4</GN_ID>
24
+ <ARTIST>Brian Eno</ARTIST>
25
+ <TITLE>Eno Box II - Vocal [Disc 1]</TITLE>
26
+ <PKG_LANG>ENG</PKG_LANG>
27
+ <DATE>1993</DATE>
28
+ <GENRE NUM="105251" ID="35497">Downtempo, Lounge &amp; Ambient</GENRE>
29
+ <MATCHED_TRACK_NUM>13</MATCHED_TRACK_NUM>
30
+ <TRACK_COUNT>17</TRACK_COUNT>
31
+ <TRACK>
32
+ <TRACK_NUM>13</TRACK_NUM>
33
+ <GN_ID>7678712-22FBCA069102B45ACD2520F5CBAF1CB0</GN_ID>
34
+ <TITLE>Third Uncle</TITLE>
35
+ </TRACK>
36
+ </ALBUM>
37
+ <ALBUM ORD="3">
38
+ <GN_ID>6470586-0BA441D79095A79A3908E7F785F6706A</GN_ID>
39
+ <ARTIST>Gothic Compilation</ARTIST>
40
+ <TITLE>Industrial Revolution 2nd Edition [Disc 1]</TITLE>
41
+ <PKG_LANG>ENG</PKG_LANG>
42
+ <DATE>1994</DATE>
43
+ <GENRE NUM="105221" ID="35473">Industrial</GENRE>
44
+ <MATCHED_TRACK_NUM>8</MATCHED_TRACK_NUM>
45
+ <TRACK_COUNT>12</TRACK_COUNT>
46
+ <TRACK>
47
+ <TRACK_NUM>8</TRACK_NUM>
48
+ <GN_ID>6470594-084299DFF140395570E5BA4D6C673E26</GN_ID>
49
+ <ARTIST>Brian Eno</ARTIST>
50
+ <TITLE>Third Uncle</TITLE>
51
+ <GENRE NUM="105251" ID="35497">Downtempo, Lounge &amp; Ambient</GENRE>
52
+ </TRACK>
53
+ </ALBUM>
54
+ <ALBUM ORD="4">
55
+ <GN_ID>7487063-616E7509F133FBD5778FEB2A3F4B7D16</GN_ID>
56
+ <ARTIST>Various Artists</ARTIST>
57
+ <TITLE>Industrial Revolution, 1st Edition [Disc 1]</TITLE>
58
+ <PKG_LANG>ENG</PKG_LANG>
59
+ <DATE>1993</DATE>
60
+ <GENRE NUM="105221" ID="35473">Industrial</GENRE>
61
+ <MATCHED_TRACK_NUM>9</MATCHED_TRACK_NUM>
62
+ <TRACK_COUNT>11</TRACK_COUNT>
63
+ <TRACK>
64
+ <TRACK_NUM>9</TRACK_NUM>
65
+ <GN_ID>7487072-7BF8A96FEF6008EB024C4ACCF8C1CDE7</GN_ID>
66
+ <ARTIST>Brian Eno</ARTIST>
67
+ <TITLE>Third Uncle</TITLE>
68
+ <GENRE NUM="105251" ID="35497">Downtempo, Lounge &amp; Ambient</GENRE>
69
+ </TRACK>
70
+ </ALBUM>
71
+ <ALBUM ORD="5">
72
+ <GN_ID>4978379-40B68D992D35C6666D2A870FF27F89CF</GN_ID>
73
+ <ARTIST>Brian Eno</ARTIST>
74
+ <TITLE>Dali&apos;s Car (1976)</TITLE>
75
+ <PKG_LANG>ENG</PKG_LANG>
76
+ <DATE>1976</DATE>
77
+ <GENRE NUM="105251" ID="35497">Downtempo, Lounge &amp; Ambient</GENRE>
78
+ <MATCHED_TRACK_NUM>4</MATCHED_TRACK_NUM>
79
+ <TRACK_COUNT>6</TRACK_COUNT>
80
+ <TRACK>
81
+ <TRACK_NUM>4</TRACK_NUM>
82
+ <GN_ID>4978383-D4779178981ABF546AF66E9C8B66057C</GN_ID>
83
+ <TITLE>Third Uncle (Live)</TITLE>
84
+ </TRACK>
85
+ </ALBUM>
86
+ <ALBUM ORD="6">
87
+ <GN_ID>5588748-61C75CF09658DED2B67FDC4BB64D26DC</GN_ID>
88
+ <ARTIST>Various Artists</ARTIST>
89
+ <TITLE>A Tribute To Brian Eno</TITLE>
90
+ <PKG_LANG>JPN</PKG_LANG>
91
+ <DATE>2007</DATE>
92
+ <GENRE NUM="105247" ID="35495">Dance &amp; Club</GENRE>
93
+ <MATCHED_TRACK_NUM>7</MATCHED_TRACK_NUM>
94
+ <TRACK_COUNT>11</TRACK_COUNT>
95
+ <TRACK>
96
+ <TRACK_NUM>7</TRACK_NUM>
97
+ <GN_ID>5588755-69C3A7DD253F5937BFDEEF56A52A2E72</GN_ID>
98
+ <ARTIST>Various Artists - Brian Eno Tribute</ARTIST>
99
+ <TITLE>Third Uncle (Cover Version)</TITLE>
100
+ </TRACK> </ALBUM> <ALBUM ORD="7">
101
+ <GN_ID>48030335-4E8AF7AA36E2531F6BA80314589A0D58</GN_ID>
102
+ <ARTIST>Brian Eno</ARTIST>
103
+ <TITLE>UK Brian Eno</TITLE>
104
+ <PKG_LANG>ENG</PKG_LANG>
105
+ <DATE>2003</DATE>
106
+ <GENRE NUM="105251" ID="35497">Downtempo, Lounge &amp; Ambient</GENRE>
107
+ <MATCHED_TRACK_NUM>9</MATCHED_TRACK_NUM>
108
+ <TRACK_COUNT>14</TRACK_COUNT>
109
+ <TRACK>
110
+ <TRACK_NUM>9</TRACK_NUM>
111
+ <GN_ID>48030344-9EC1C3A6E3F3A9288BB54B6D6CC20FD3</GN_ID>
112
+ <TITLE>Third Uncle</TITLE>
113
+ </TRACK> </ALBUM> <ALBUM ORD="8">
114
+ <GN_ID>80271729-C165BEBA4E630B569983CCB8A9DFEF2D</GN_ID>
115
+ <ARTIST>Various Artists</ARTIST>
116
+ <TITLE>A Song By It&apos;s Cover (Inspiration Disc)</TITLE>
117
+ <PKG_LANG>ENG</PKG_LANG>
118
+ <GENRE NUM="105245" ID="35493">Western Pop</GENRE>
119
+ <MATCHED_TRACK_NUM>6</MATCHED_TRACK_NUM>
120
+ <TRACK_COUNT>21</TRACK_COUNT>
121
+ <TRACK>
122
+ <TRACK_NUM>6</TRACK_NUM>
123
+ <GN_ID>80271735-BE43A190B5A665931DF75CC98502E3FC</GN_ID>
124
+ <ARTIST>Brian Eno</ARTIST>
125
+ <TITLE>Third Uncle</TITLE>
126
+ <GENRE NUM="105251" ID="35497">Downtempo, Lounge &amp; Ambient</GENRE>
127
+ </TRACK>
128
+ </ALBUM>
129
+ </RESPONSE>
130
+ </RESPONSES>
@@ -0,0 +1 @@
1
+ A9080D0E 14 182 10762 22515 32372 43735 53335 63867 78305 89792 98702 110612 122590 132127 141685 2063
@@ -0,0 +1,3 @@
1
+ require 'minitest/doc_reporter'
2
+ require File.expand_path('../../lib/under_fire.rb', __FILE__)
3
+
data/tags ADDED
@@ -0,0 +1,81 @@
1
+ !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
2
+ !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
3
+ !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
4
+ !_TAG_PROGRAM_NAME Exuberant Ctags //
5
+ !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
6
+ !_TAG_PROGRAM_VERSION 5.8 //
7
+ APIRequest lib/under_fire/api_request.rb /^ class APIRequest$/;" c class:UnderFire
8
+ APIResponse lib/under_fire/api_response.rb /^ class APIResponse$/;" c class:UnderFire
9
+ AlbumSearch lib/under_fire/album_search.rb /^ class AlbumSearch < BaseQuery$/;" c class:UnderFire
10
+ AlbumTOCSearch lib/under_fire/album_toc_search.rb /^ class AlbumTOCSearch < BaseQuery$/;" c class:UnderFire
11
+ BaseQuery lib/under_fire/base_query.rb /^ class BaseQuery$/;" c class:UnderFire
12
+ CLI lib/under_fire/cli.rb /^ class CLI < Thor$/;" c class:UnderFire
13
+ Client lib/under_fire/client.rb /^ class Client$/;" c class:UnderFire
14
+ Configuration lib/under_fire/configuration.rb /^ module Configuration$/;" m class:UnderFire
15
+ Exec lib/under_fire/exec.rb /^ class Exec$/;" c class:UnderFire
16
+ Registration lib/under_fire/registration.rb /^ class Registration$/;" c class:UnderFire
17
+ Response lib/under_fire/response.rb /^ class Response$/;" c class:UnderFire
18
+ TOCReader lib/under_fire/toc_reader.rb /^ class TOCReader$/;" c class:UnderFire
19
+ UnderFire lib/under_fire.rb /^module UnderFire$/;" m
20
+ UnderFire lib/under_fire/album_search.rb /^module UnderFire$/;" m
21
+ UnderFire lib/under_fire/album_toc_search.rb /^module UnderFire$/;" m
22
+ UnderFire lib/under_fire/api_request.rb /^module UnderFire$/;" m
23
+ UnderFire lib/under_fire/api_response.rb /^module UnderFire$/;" m
24
+ UnderFire lib/under_fire/base_query.rb /^module UnderFire$/;" m
25
+ UnderFire lib/under_fire/cli.rb /^module UnderFire$/;" m
26
+ UnderFire lib/under_fire/client.rb /^module UnderFire$/;" m
27
+ UnderFire lib/under_fire/configuration.rb /^module UnderFire$/;" m
28
+ UnderFire lib/under_fire/exec.rb /^module UnderFire$/;" m
29
+ UnderFire lib/under_fire/registration.rb /^module UnderFire$/;" m
30
+ UnderFire lib/under_fire/response.rb /^module UnderFire$/;" m
31
+ UnderFire lib/under_fire/toc_reader.rb /^module UnderFire$/;" m
32
+ UnderFire lib/under_fire/version.rb /^module UnderFire$/;" m
33
+ UnderFire spec/lib/under_fire/album_search_spec.rb /^module UnderFire$/;" m
34
+ UnderFire spec/lib/under_fire/album_toc_search_spec.rb /^module UnderFire$/;" m
35
+ UnderFire spec/lib/under_fire/api_response.rb /^module UnderFire$/;" m
36
+ UnderFire spec/lib/under_fire/api_response_spec.rb /^module UnderFire$/;" m
37
+ UnderFire spec/lib/under_fire/base_query_spec.rb /^module UnderFire$/;" m
38
+ UnderFire spec/lib/under_fire/configuration_spec.rb /^module UnderFire$/;" m
39
+ accepted? lib/under_fire/exec.rb /^ def accepted?(item, accepted_collection)$/;" f class:UnderFire.Exec
40
+ album lib/under_fire/cli.rb /^ def album$/;" f class:UnderFire.CLI
41
+ album lib/under_fire/exec.rb /^ def album$/;" f class:UnderFire.Exec
42
+ album_options lib/under_fire/exec.rb /^ def album_options$/;" f class:UnderFire.Exec
43
+ api_url lib/under_fire/configuration.rb /^ def api_url$/;" f class:UnderFire.Configuration
44
+ build_base_query lib/under_fire/base_query.rb /^ def build_base_query(&block)$/;" f class:UnderFire.BaseQuery
45
+ build_query lib/under_fire/album_search.rb /^ def build_query$/;" f class:UnderFire.AlbumSearch.initialize
46
+ build_query lib/under_fire/album_toc_search.rb /^ def build_query$/;" f class:UnderFire.AlbumTOCSearch
47
+ build_query lib/under_fire/registration.rb /^ def build_query$/;" f class:UnderFire.Registration
48
+ client_id lib/under_fire/configuration.rb /^ def client_id$/;" f class:UnderFire.Configuration
49
+ client_id_string lib/under_fire/configuration.rb /^ def client_id_string$/;" f class:UnderFire.Configuration
50
+ client_tag lib/under_fire/configuration.rb /^ def client_tag$/;" f class:UnderFire.Configuration
51
+ commands lib/under_fire/exec.rb /^ def commands$/;" f class:UnderFire.Exec
52
+ cover lib/under_fire/cli.rb /^ def cover$/;" f class:UnderFire.CLI
53
+ execute lib/under_fire/exec.rb /^ def execute(item, options)$/;" f class:UnderFire.Exec
54
+ fetch_cover lib/under_fire/client.rb /^ def fetch_cover(response)$/;" f class:UnderFire.Client
55
+ find_album lib/under_fire/client.rb /^ def find_album(args)$/;" f class:UnderFire.Client
56
+ find_by_toc lib/under_fire/client.rb /^ def find_by_toc$/;" f class:UnderFire.Client
57
+ get_file lib/under_fire/api_request.rb /^ def self.get_file(url, filename)$/;" F class:UnderFire.APIRequest
58
+ get_toc lib/under_fire/client.rb /^ def get_toc$/;" f class:UnderFire.Client
59
+ help lib/under_fire/exec.rb /^ def help$/;" f class:UnderFire.Exec
60
+ initialize lib/under_fire/album_search.rb /^ def initialize(args={})$/;" f class:UnderFire.AlbumSearch
61
+ initialize lib/under_fire/album_toc_search.rb /^ def initialize(args)$/;" f class:UnderFire.AlbumTOCSearch
62
+ initialize lib/under_fire/api_response.rb /^ def initialize(response)$/;" f class:UnderFire.APIResponse
63
+ initialize lib/under_fire/base_query.rb /^ def initialize(mode="SINGLE_BEST_COVER")$/;" f class:UnderFire.BaseQuery
64
+ initialize lib/under_fire/cli.rb /^ def initialize(*)$/;" f class:UnderFire.CLI
65
+ initialize lib/under_fire/client.rb /^ def initialize$/;" f class:UnderFire.Client
66
+ initialize lib/under_fire/exec.rb /^ def initialize(args, input)$/;" f class:UnderFire.Exec
67
+ initialize lib/under_fire/registration.rb /^ def initialize$/;" f class:UnderFire.Registration
68
+ invalid_argument lib/under_fire/exec.rb /^ def invalid_argument(arg)$/;" f class:UnderFire.Exec
69
+ options lib/under_fire/exec.rb /^ def options$/;" f class:UnderFire.Exec
70
+ parse_input lib/under_fire/exec.rb /^ def parse_input(input)$/;" f class:UnderFire.Exec
71
+ parse_response lib/under_fire/api_response.rb /^ def parse_response(response)$/;" f class:UnderFire.APIResponse
72
+ post lib/under_fire/api_request.rb /^ def self.post(query, api_url)$/;" F class:UnderFire.APIRequest
73
+ read lib/under_fire/toc_reader.rb /^ def self.read$/;" F class:UnderFire.TOCReader
74
+ recursive_to_s lib/under_fire/api_response.rb /^ def recursive_to_s(hash)$/;" f class:UnderFire.APIResponse
75
+ success? lib/under_fire/api_response.rb /^ def success?$/;" f class:UnderFire.APIResponse
76
+ to_h lib/under_fire/api_response.rb /^ def to_h$/;" f class:UnderFire.APIResponse
77
+ to_s lib/under_fire/api_response.rb /^ def to_s$/;" f class:UnderFire.APIResponse
78
+ toc lib/under_fire/cli.rb /^ def toc$/;" f class:UnderFire.CLI
79
+ toc lib/under_fire/exec.rb /^ def toc$/;" f class:UnderFire.Exec
80
+ toc_options lib/under_fire/exec.rb /^ def toc_options$/;" f class:UnderFire.Exec
81
+ user_id lib/under_fire/configuration.rb /^ def user_id$/;" f class:UnderFire.Configuration
data/todo.txt ADDED
@@ -0,0 +1,6 @@
1
+ -Should discid be part of under_fire?
2
+ -To implement:
3
+ * ALBUM_FINGERPRINT
4
+ * ALBUM_FETCH
5
+ * REGISTRATION
6
+ -Use symbols for 'SINGLE_BEST' and 'SINGLE_BEST_COVER'
@@ -0,0 +1,40 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'under_fire/version'
5
+ require 'rbconfig'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "under_fire"
9
+ spec.version = UnderFire::VERSION
10
+ spec.authors = ["Jason Thompson"]
11
+ spec.email = ["jason@jthompson.ca"]
12
+ spec.description = %q{An unofficial wrapper for the Gracenote web API}
13
+ spec.summary = %q{An unofficial wrapper for the Gracenote web API}
14
+ spec.homepage = "http://github.com/jasonthompson/under_fire"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files`.split($/)
18
+ spec.executables << 'under-fire'
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.3"
23
+ spec.add_development_dependency "rake"
24
+ spec.add_development_dependency "pry"
25
+ spec.add_development_dependency "pry-doc"
26
+ spec.add_development_dependency "minitest"
27
+ spec.add_development_dependency "guard-minitest"
28
+ spec.add_development_dependency "rr"
29
+ spec.add_development_dependency "minitest-doc_reporter", "~> 0.6.0"
30
+ spec.add_development_dependency "ox"
31
+ if RbConfig::CONFIG['target_os'] =~ /mswin|mingw|cygwi/
32
+ spec.add_development_dependency "wdm", ">= 0.1.0"
33
+ end
34
+
35
+ spec.add_runtime_dependency "builder"
36
+ spec.add_runtime_dependency "nokogiri"
37
+ spec.add_runtime_dependency "nori"
38
+ spec.add_runtime_dependency "thor"
39
+ spec.add_runtime_dependency "discid"
40
+ end