lyrics 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -68,7 +68,9 @@ module OptionsParser
68
68
  def self.split( text )
69
69
  ret = []
70
70
  start_idx = 0
71
- while ( (chunk, start_idx = get_text_chunk( text, start_idx )) && chunk != nil )
71
+ loop do
72
+ chunk, start_idx = get_text_chunk( text, start_idx )
73
+ break if !chunk
72
74
  ret << chunk
73
75
  end
74
76
  return ret
@@ -21,7 +21,7 @@ require File.expand_path( File.dirname( __FILE__ ) + "/../i18n/i18n" )
21
21
  require File.expand_path( File.dirname( __FILE__ ) + "/pluginadapter" )
22
22
  require File.expand_path( File.dirname( __FILE__ ) + "/plugins" )
23
23
 
24
- require "md5"
24
+ require "digest/md5"
25
25
  require "uri"
26
26
 
27
27
  module WikiPluginAdapter
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2006-2008 by Sergio Pistone
2
3
  # sergio_pistone@yahoo.com.ar
3
4
  #
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2006-2008 by Sergio Pistone
2
3
  # sergio_pistone@yahoo.com.ar
3
4
  #
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2007-2008 by
2
3
  # Swapan Sarkar <swapan@yahoo.com>
3
4
  # Sergio Pistone <sergio_pistone@yahoo.com.ar>
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2006-2008 by
2
3
  # Eduardo Robles Elvira <edulix@gmail.com>
3
4
  # Sergio Pistone <sergio_pistone@yahoo.com.ar>
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2006-2008 by Sergio Pistone
2
3
  # sergio_pistone@yahoo.com.ar
3
4
  #
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2007 by Sergio Pistone
2
3
  # sergio_pistone@yahoo.com.ar
3
4
  #
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2006-2008 by Sergio Pistone
2
3
  # sergio_pistone@yahoo.com.ar
3
4
  #
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2007 by Sergio Pistone
2
3
  # sergio_pistone@yahoo.com.ar
3
4
  #
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2007-2008 by
2
3
  # Davide Lo Re <boyska@gmail.com>
3
4
  # Sergio Pistone <sergio_pistone@yahoo.com.ar>
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2006-2008 by Sergio Pistone
2
3
  # sergio_pistone@yahoo.com.ar
3
4
  #
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2007 by Sergio Pistone
2
3
  # sergio_pistone@yahoo.com.ar
3
4
  #
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2006-2008 by Sergio Pistone
2
3
  # sergio_pistone@yahoo.com.ar
3
4
  #
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2006-2008 by Sergio Pistone
2
3
  # sergio_pistone@yahoo.com.ar
3
4
  #
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2006-2008 by Sergio Pistone
2
3
  # sergio_pistone@yahoo.com.ar
3
4
  #
@@ -25,7 +26,7 @@ require "utils/htmlentities"
25
26
  require "i18n/i18n"
26
27
  require "lyrics"
27
28
 
28
- require "md5"
29
+ require "digest/md5"
29
30
  require "cgi"
30
31
 
31
32
  class MediaWikiLyrics < Lyrics
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Copyright (C) 2006-2008 by Sergio Pistone
2
3
  # sergio_pistone@yahoo.com.ar
3
4
  #
@@ -20,7 +21,9 @@ require File.expand_path( File.dirname( __FILE__ ) + "/htmlentities" )
20
21
 
21
22
  require "cgi"
22
23
 
23
- $KCODE="u" # unicode support
24
+ if RUBY_VERSION < "1.9.0"
25
+ $KCODE="u" # unicode support
26
+ end
24
27
 
25
28
  module Strings
26
29
 
@@ -1,89 +1,83 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{lyrics}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David A. Cuadrado"]
12
- s.date = %q{2010-07-21}
12
+ s.date = %q{2011-06-13}
13
13
  s.default_executable = %q{lyrics}
14
14
  s.description = %q{lib and cli to fetch lyrics}
15
15
  s.email = %q{krawek@gmail.com}
16
16
  s.executables = ["lyrics"]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE",
19
- "README.rdoc"
19
+ "README.rdoc"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
- ".gitignore",
24
- "LICENSE",
25
- "README.rdoc",
26
- "Rakefile",
27
- "VERSION",
28
- "bin/lyrics",
29
- "lib/lyrics.rb",
30
- "lib/lyrics/cli/application.rb",
31
- "lib/lyrics/cli/optionsparser.rb",
32
- "lib/lyrics/cli/pluginadapter.rb",
33
- "lib/lyrics/cli/plugins.rb",
34
- "lib/lyrics/cli/wikipluginadapter.rb",
35
- "lib/lyrics/i18n/README",
36
- "lib/lyrics/i18n/en.rb",
37
- "lib/lyrics/i18n/es.rb",
38
- "lib/lyrics/i18n/i18n.rb",
39
- "lib/lyrics/i18n/sk.rb",
40
- "lib/lyrics/itrans/COPYRIGHT",
41
- "lib/lyrics/itrans/itrans",
42
- "lib/lyrics/itrans/itrans.txt",
43
- "lib/lyrics/itrans/lyric.txt",
44
- "lib/lyrics/itrans/udvng.ifm",
45
- "lib/lyrics/lyrics.rb",
46
- "lib/lyrics/lyrics_AZLyrics.rb",
47
- "lib/lyrics/lyrics_DarkLyrics.rb",
48
- "lib/lyrics/lyrics_Giitaayan.rb",
49
- "lib/lyrics/lyrics_Jamendo.rb",
50
- "lib/lyrics/lyrics_LeosLyrics.rb",
51
- "lib/lyrics/lyrics_LoudSongs.rb",
52
- "lib/lyrics/lyrics_LyricWiki.rb",
53
- "lib/lyrics/lyrics_LyricsDownload.rb",
54
- "lib/lyrics/lyrics_LyricsMania.rb",
55
- "lib/lyrics/lyrics_Lyriki.rb",
56
- "lib/lyrics/lyrics_SeekLyrics.rb",
57
- "lib/lyrics/lyrics_Sing365.rb",
58
- "lib/lyrics/lyrics_TerraLetras.rb",
59
- "lib/lyrics/mediawikilyrics.rb",
60
- "lib/lyrics/utils/formdata.rb",
61
- "lib/lyrics/utils/htmlentities.rb",
62
- "lib/lyrics/utils/http.rb",
63
- "lib/lyrics/utils/itrans.rb",
64
- "lib/lyrics/utils/logger.rb",
65
- "lib/lyrics/utils/strings.rb",
66
- "lib/lyrics/utils/xmlhash.rb",
67
- "lyrics.gemspec",
68
- "spec/lyrics_spec.rb",
69
- "spec/spec.opts",
70
- "spec/spec_helper.rb"
23
+ "LICENSE",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "bin/lyrics",
28
+ "lib/lyrics.rb",
29
+ "lib/lyrics/cli/application.rb",
30
+ "lib/lyrics/cli/optionsparser.rb",
31
+ "lib/lyrics/cli/pluginadapter.rb",
32
+ "lib/lyrics/cli/plugins.rb",
33
+ "lib/lyrics/cli/wikipluginadapter.rb",
34
+ "lib/lyrics/i18n/README",
35
+ "lib/lyrics/i18n/en.rb",
36
+ "lib/lyrics/i18n/es.rb",
37
+ "lib/lyrics/i18n/i18n.rb",
38
+ "lib/lyrics/i18n/sk.rb",
39
+ "lib/lyrics/itrans/COPYRIGHT",
40
+ "lib/lyrics/itrans/itrans",
41
+ "lib/lyrics/itrans/itrans.txt",
42
+ "lib/lyrics/itrans/lyric.txt",
43
+ "lib/lyrics/itrans/udvng.ifm",
44
+ "lib/lyrics/lyrics.rb",
45
+ "lib/lyrics/lyrics_AZLyrics.rb",
46
+ "lib/lyrics/lyrics_DarkLyrics.rb",
47
+ "lib/lyrics/lyrics_Giitaayan.rb",
48
+ "lib/lyrics/lyrics_Jamendo.rb",
49
+ "lib/lyrics/lyrics_LeosLyrics.rb",
50
+ "lib/lyrics/lyrics_LoudSongs.rb",
51
+ "lib/lyrics/lyrics_LyricWiki.rb",
52
+ "lib/lyrics/lyrics_LyricsDownload.rb",
53
+ "lib/lyrics/lyrics_LyricsMania.rb",
54
+ "lib/lyrics/lyrics_Lyriki.rb",
55
+ "lib/lyrics/lyrics_SeekLyrics.rb",
56
+ "lib/lyrics/lyrics_Sing365.rb",
57
+ "lib/lyrics/lyrics_TerraLetras.rb",
58
+ "lib/lyrics/mediawikilyrics.rb",
59
+ "lib/lyrics/utils/formdata.rb",
60
+ "lib/lyrics/utils/htmlentities.rb",
61
+ "lib/lyrics/utils/http.rb",
62
+ "lib/lyrics/utils/itrans.rb",
63
+ "lib/lyrics/utils/logger.rb",
64
+ "lib/lyrics/utils/strings.rb",
65
+ "lib/lyrics/utils/xmlhash.rb",
66
+ "lyrics.gemspec",
67
+ "spec/lyrics_spec.rb",
68
+ "spec/spec.opts",
69
+ "spec/spec_helper.rb"
71
70
  ]
72
71
  s.homepage = %q{http://github.com/dcu/lyrics}
73
- s.rdoc_options = ["--charset=UTF-8"]
74
72
  s.require_paths = ["lib"]
75
- s.rubygems_version = %q{1.3.6}
73
+ s.rubygems_version = %q{1.3.7}
76
74
  s.summary = %q{lib and cli to fetch lyrics}
77
- s.test_files = [
78
- "spec/lyrics_spec.rb",
79
- "spec/spec_helper.rb"
80
- ]
81
75
 
82
76
  if s.respond_to? :specification_version then
83
77
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
84
78
  s.specification_version = 3
85
79
 
86
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
80
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
87
81
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
88
82
  s.add_development_dependency(%q<yard>, [">= 0"])
89
83
  else
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - David A. Cuadrado
@@ -14,13 +14,14 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-21 00:00:00 -05:00
17
+ date: 2011-06-13 00:00:00 -05:00
18
18
  default_executable: lyrics
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
24
25
  requirements:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
@@ -35,6 +36,7 @@ dependencies:
35
36
  name: yard
36
37
  prerelease: false
37
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
38
40
  requirements:
39
41
  - - ">="
40
42
  - !ruby/object:Gem::Version
@@ -54,7 +56,6 @@ extra_rdoc_files:
54
56
  - README.rdoc
55
57
  files:
56
58
  - .document
57
- - .gitignore
58
59
  - LICENSE
59
60
  - README.rdoc
60
61
  - Rakefile
@@ -107,11 +108,12 @@ homepage: http://github.com/dcu/lyrics
107
108
  licenses: []
108
109
 
109
110
  post_install_message:
110
- rdoc_options:
111
- - --charset=UTF-8
111
+ rdoc_options: []
112
+
112
113
  require_paths:
113
114
  - lib
114
115
  required_ruby_version: !ruby/object:Gem::Requirement
116
+ none: false
115
117
  requirements:
116
118
  - - ">="
117
119
  - !ruby/object:Gem::Version
@@ -119,6 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
121
  - 0
120
122
  version: "0"
121
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
+ none: false
122
125
  requirements:
123
126
  - - ">="
124
127
  - !ruby/object:Gem::Version
@@ -128,10 +131,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
131
  requirements: []
129
132
 
130
133
  rubyforge_project:
131
- rubygems_version: 1.3.6
134
+ rubygems_version: 1.3.7
132
135
  signing_key:
133
136
  specification_version: 3
134
137
  summary: lib and cli to fetch lyrics
135
- test_files:
136
- - spec/lyrics_spec.rb
137
- - spec/spec_helper.rb
138
+ test_files: []
139
+
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC