rbrainz 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/LICENSE +25 -0
  2. data/README +11 -0
  3. data/Rakefile +110 -0
  4. data/TODO +24 -0
  5. data/doc/README.rdoc +68 -0
  6. data/examples/getartist.rb +54 -0
  7. data/lib/rbrainz.rb +11 -0
  8. data/lib/rbrainz/data/countrynames.rb +259 -0
  9. data/lib/rbrainz/data/languagenames.rb +404 -0
  10. data/lib/rbrainz/data/scriptnames.rb +64 -0
  11. data/lib/rbrainz/model.rb +48 -0
  12. data/lib/rbrainz/model/alias.rb +23 -0
  13. data/lib/rbrainz/model/artist.rb +54 -0
  14. data/lib/rbrainz/model/disc.rb +30 -0
  15. data/lib/rbrainz/model/entity.rb +72 -0
  16. data/lib/rbrainz/model/incomplete_date.rb +76 -0
  17. data/lib/rbrainz/model/label.rb +55 -0
  18. data/lib/rbrainz/model/mbid.rb +82 -0
  19. data/lib/rbrainz/model/release.rb +50 -0
  20. data/lib/rbrainz/model/release_event.rb +34 -0
  21. data/lib/rbrainz/model/track.rb +27 -0
  22. data/lib/rbrainz/webservice.rb +6 -0
  23. data/lib/rbrainz/webservice/filter.rb +132 -0
  24. data/lib/rbrainz/webservice/includes.rb +150 -0
  25. data/lib/rbrainz/webservice/mbxml.rb +404 -0
  26. data/lib/rbrainz/webservice/query.rb +61 -0
  27. data/lib/rbrainz/webservice/webservice.rb +69 -0
  28. data/test/lib/test_entity.rb +58 -0
  29. data/test/lib/testing_helper.rb +13 -0
  30. data/test/test-data/README +13 -0
  31. data/test/test-data/invalid/artist/basic_1.xml +12 -0
  32. data/test/test-data/invalid/artist/basic_2.xml +12 -0
  33. data/test/test-data/invalid/artist/empty_1.xml +0 -0
  34. data/test/test-data/invalid/artist/empty_2.xml +3 -0
  35. data/test/test-data/invalid/artist/empty_3.xml +7 -0
  36. data/test/test-data/invalid/artist/search_result_1.xml +11 -0
  37. data/test/test-data/valid/artist/Tchaikovsky-1.xml +90 -0
  38. data/test/test-data/valid/artist/Tori_Amos_1.xml +8 -0
  39. data/test/test-data/valid/artist/Tori_Amos_2.xml +53 -0
  40. data/test/test-data/valid/artist/Tori_Amos_3.xml +25 -0
  41. data/test/test-data/valid/artist/Tori_Amos_4.xml +14 -0
  42. data/test/test-data/valid/artist/Tori_Amos_5.xml +13 -0
  43. data/test/test-data/valid/artist/empty_1.xml +7 -0
  44. data/test/test-data/valid/artist/empty_2.xml +11 -0
  45. data/test/test-data/valid/artist/search_result_1.xml +19 -0
  46. data/test/test-data/valid/label/Atlantic_Records_1.xml +9 -0
  47. data/test/test-data/valid/label/Atlantic_Records_2.xml +11 -0
  48. data/test/test-data/valid/label/search_result_1.xml +14 -0
  49. data/test/test-data/valid/release/Highway_61_Revisited_1.xml +68 -0
  50. data/test/test-data/valid/release/Little_Earthquakes_1.xml +24 -0
  51. data/test/test-data/valid/release/Little_Earthquakes_2.xml +73 -0
  52. data/test/test-data/valid/release/Mission_Impossible_2.xml +155 -0
  53. data/test/test-data/valid/release/Under_the_Pink_1.xml +16 -0
  54. data/test/test-data/valid/release/Under_the_Pink_2.xml +14 -0
  55. data/test/test-data/valid/release/Under_the_Pink_3.xml +16 -0
  56. data/test/test-data/valid/release/search_result_1.xml +29 -0
  57. data/test/test-data/valid/track/Silent_All_These_Years_1.xml +7 -0
  58. data/test/test-data/valid/track/Silent_All_These_Years_2.xml +21 -0
  59. data/test/test-data/valid/track/Silent_All_These_Years_3.xml +16 -0
  60. data/test/test-data/valid/track/Silent_All_These_Years_4.xml +30 -0
  61. data/test/test-data/valid/track/Silent_All_These_Years_5.xml +20 -0
  62. data/test/test-data/valid/track/search_result_1.xml +45 -0
  63. data/test/test-data/valid/user/User_1.xml +15 -0
  64. data/test/test_alias.rb +50 -0
  65. data/test/test_artist.rb +132 -0
  66. data/test/test_artist_filter.rb +36 -0
  67. data/test/test_artist_includes.rb +63 -0
  68. data/test/test_disc.rb +38 -0
  69. data/test/test_incomplete_date.rb +60 -0
  70. data/test/test_label.rb +129 -0
  71. data/test/test_label_filter.rb +36 -0
  72. data/test/test_label_includes.rb +55 -0
  73. data/test/test_mbid.rb +99 -0
  74. data/test/test_mbxml.rb +368 -0
  75. data/test/test_query.rb +24 -0
  76. data/test/test_release.rb +161 -0
  77. data/test/test_release_event.rb +67 -0
  78. data/test/test_release_filter.rb +57 -0
  79. data/test/test_release_includes.rb +73 -0
  80. data/test/test_track.rb +102 -0
  81. data/test/test_track_filter.rb +57 -0
  82. data/test/test_track_includes.rb +61 -0
  83. data/test/test_webservice.rb +23 -0
  84. metadata +138 -0
metadata ADDED
@@ -0,0 +1,138 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.0
3
+ specification_version: 1
4
+ name: rbrainz
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.1.0
7
+ date: 2007-05-23 00:00:00 +02:00
8
+ summary: Ruby library for the MusicBrainz XML webservice.
9
+ require_paths:
10
+ - lib
11
+ email: phw@rubyforge.org
12
+ homepage: http://rbrainz.rubyforge.org
13
+ rubyforge_project: rbrainz
14
+ description: RBrainz is a Ruby client library to access the MusicBrainz XML webservice written in pure Ruby. RBrainz follows the design of python-musicbrainz2, the reference implementation for a MusicBrainz client library. Developers used to python-musicbrainz2 should already know most of RBrainz' interface. However, RBrainz differs from python-musicbrainz2 wherever it makes the library more Ruby like or easier to use. RBrainz supports the MusicBrainz XML Metadata Version 1.1, including support for labels and extended release events.
15
+ autorequire: rbrainz
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Philipp Wolfer
31
+ files:
32
+ - Rakefile
33
+ - LICENSE
34
+ - README
35
+ - TODO
36
+ - doc/README.rdoc
37
+ - examples/getartist.rb
38
+ - lib/rbrainz.rb
39
+ - lib/rbrainz/model.rb
40
+ - lib/rbrainz/webservice.rb
41
+ - lib/rbrainz/model/entity.rb
42
+ - lib/rbrainz/model/alias.rb
43
+ - lib/rbrainz/model/mbid.rb
44
+ - lib/rbrainz/model/label.rb
45
+ - lib/rbrainz/model/release.rb
46
+ - lib/rbrainz/model/track.rb
47
+ - lib/rbrainz/model/incomplete_date.rb
48
+ - lib/rbrainz/model/release_event.rb
49
+ - lib/rbrainz/model/disc.rb
50
+ - lib/rbrainz/model/artist.rb
51
+ - lib/rbrainz/webservice/query.rb
52
+ - lib/rbrainz/webservice/filter.rb
53
+ - lib/rbrainz/webservice/includes.rb
54
+ - lib/rbrainz/webservice/webservice.rb
55
+ - lib/rbrainz/webservice/mbxml.rb
56
+ - lib/rbrainz/data/languagenames.rb
57
+ - lib/rbrainz/data/scriptnames.rb
58
+ - lib/rbrainz/data/countrynames.rb
59
+ - test/test_track_filter.rb
60
+ - test/test_label.rb
61
+ - test/test_disc.rb
62
+ - test/test_release_filter.rb
63
+ - test/test_webservice.rb
64
+ - test/test_mbid.rb
65
+ - test/test_artist_includes.rb
66
+ - test/test_release.rb
67
+ - test/test_release_includes.rb
68
+ - test/test_mbxml.rb
69
+ - test/test_track_includes.rb
70
+ - test/test_label_filter.rb
71
+ - test/test_release_event.rb
72
+ - test/test_track.rb
73
+ - test/test_artist_filter.rb
74
+ - test/test_label_includes.rb
75
+ - test/test_artist.rb
76
+ - test/test_incomplete_date.rb
77
+ - test/test_query.rb
78
+ - test/test_alias.rb
79
+ - test/lib/test_entity.rb
80
+ - test/lib/testing_helper.rb
81
+ - test/test-data/valid
82
+ - test/test-data/invalid
83
+ - test/test-data/README
84
+ - test/test-data/valid/user
85
+ - test/test-data/valid/release
86
+ - test/test-data/valid/track
87
+ - test/test-data/valid/artist
88
+ - test/test-data/valid/label
89
+ - test/test-data/valid/user/User_1.xml
90
+ - test/test-data/valid/release/Mission_Impossible_2.xml
91
+ - test/test-data/valid/release/Highway_61_Revisited_1.xml
92
+ - test/test-data/valid/release/Little_Earthquakes_2.xml
93
+ - test/test-data/valid/release/Little_Earthquakes_1.xml
94
+ - test/test-data/valid/release/Under_the_Pink_1.xml
95
+ - test/test-data/valid/release/Under_the_Pink_2.xml
96
+ - test/test-data/valid/release/Under_the_Pink_3.xml
97
+ - test/test-data/valid/release/search_result_1.xml
98
+ - test/test-data/valid/track/Silent_All_These_Years_1.xml
99
+ - test/test-data/valid/track/Silent_All_These_Years_5.xml
100
+ - test/test-data/valid/track/Silent_All_These_Years_3.xml
101
+ - test/test-data/valid/track/Silent_All_These_Years_2.xml
102
+ - test/test-data/valid/track/Silent_All_These_Years_4.xml
103
+ - test/test-data/valid/track/search_result_1.xml
104
+ - test/test-data/valid/artist/empty_2.xml
105
+ - test/test-data/valid/artist/empty_1.xml
106
+ - test/test-data/valid/artist/Tori_Amos_4.xml
107
+ - test/test-data/valid/artist/Tori_Amos_1.xml
108
+ - test/test-data/valid/artist/Tori_Amos_2.xml
109
+ - test/test-data/valid/artist/Tori_Amos_3.xml
110
+ - test/test-data/valid/artist/Tori_Amos_5.xml
111
+ - test/test-data/valid/artist/search_result_1.xml
112
+ - test/test-data/valid/artist/Tchaikovsky-1.xml
113
+ - test/test-data/valid/label/Atlantic_Records_1.xml
114
+ - test/test-data/valid/label/Atlantic_Records_2.xml
115
+ - test/test-data/valid/label/search_result_1.xml
116
+ - test/test-data/invalid/release
117
+ - test/test-data/invalid/track
118
+ - test/test-data/invalid/artist
119
+ - test/test-data/invalid/artist/basic_2.xml
120
+ - test/test-data/invalid/artist/empty_2.xml
121
+ - test/test-data/invalid/artist/empty_1.xml
122
+ - test/test-data/invalid/artist/basic_1.xml
123
+ - test/test-data/invalid/artist/empty_3.xml
124
+ - test/test-data/invalid/artist/search_result_1.xml
125
+ test_files: []
126
+
127
+ rdoc_options: []
128
+
129
+ extra_rdoc_files:
130
+ - doc/README.rdoc
131
+ executables: []
132
+
133
+ extensions: []
134
+
135
+ requirements:
136
+ - none
137
+ dependencies: []
138
+