radiospieler 0.3.12 → 2012.09.13

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,51 @@
1
+ # rcov generated
2
+ coverage
3
+ coverage.data
4
+
5
+ # rdoc generated
6
+ rdoc
7
+
8
+ # yard generated
9
+ doc
10
+ .yardoc
11
+
12
+ # bundler
13
+ .bundle
14
+
15
+ # jeweler generated
16
+ pkg
17
+
18
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
19
+ #
20
+ # * Create a file at ~/.gitignore
21
+ # * Include files you want ignored
22
+ # * Run: git config --global core.excludesfile ~/.gitignore
23
+ #
24
+ # After doing this, these files will be ignored in all your git projects,
25
+ # saving you from having to 'pollute' every project you touch with them
26
+ #
27
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
28
+ #
29
+ # For MacOS:
30
+ #
31
+ #.DS_Store
32
+
33
+ # For TextMate
34
+ #*.tmproj
35
+ #tmtags
36
+
37
+ # For emacs:
38
+ #*~
39
+ #\#*
40
+ #.\#*
41
+
42
+ # For vim:
43
+ #*.swp
44
+
45
+ # For redcar:
46
+ #.redcar
47
+
48
+ # For rubinius:
49
+ #*.rbc
50
+ app.tmproj
51
+ radiospieler.tmproj
data/Gemfile CHANGED
@@ -1,8 +1,10 @@
1
1
  source "http://rubygems.org"
2
+
2
3
  # Add dependencies required to use your gem here.
3
4
  # Example:
4
5
  # gem "activesupport", ">= 2.3.5"
5
6
 
7
+ gem "rake"
6
8
  gem "htmlentities"
7
9
  gem "simple_cache_rs"
8
10
  gem "nokogiri"
@@ -10,9 +12,8 @@ gem "addressable"
10
12
 
11
13
  # Add dependencies to develop your gem here.
12
14
  # Include everything needed to run rake, tests, features, etc.
13
- group :development do
15
+ group :development, :test do
14
16
  gem "bundler"
15
- gem "jeweler"
16
17
 
17
18
  # vcr stuff: this needs psych or else will crash
18
19
  gem "vcr"
@@ -22,5 +23,5 @@ group :development do
22
23
  gem 'simplecov', :require => false
23
24
  gem "ruby-debug19"
24
25
  gem "simple_cov"
26
+ gem "test-unit"
25
27
  end
26
-
data/Gemfile.lock CHANGED
@@ -5,22 +5,13 @@ GEM
5
5
  archive-tar-minitar (0.5.2)
6
6
  columnize (0.3.6)
7
7
  crack (0.3.1)
8
- git (1.2.5)
9
8
  htmlentities (4.3.1)
10
- jeweler (1.8.3)
11
- bundler (~> 1.0)
12
- git (>= 1.2.5)
13
- rake
14
- rdoc
15
- json (1.7.0)
16
9
  linecache19 (0.5.12)
17
10
  ruby_core_source (>= 0.1.4)
18
- multi_json (1.3.4)
11
+ multi_json (1.3.6)
19
12
  nokogiri (1.5.2)
20
13
  psych (1.3.2)
21
14
  rake (0.9.2.2)
22
- rdoc (3.12)
23
- json (~> 1.4)
24
15
  ruby-debug-base19 (0.11.25)
25
16
  columnize (>= 0.3.1)
26
17
  linecache19 (>= 0.5.11)
@@ -34,13 +25,14 @@ GEM
34
25
  simple_cache_rs (0.9.3)
35
26
  sqlite3
36
27
  simple_cov (0.2.0)
37
- simplecov (0.6.2)
38
- multi_json (~> 1.3)
28
+ simplecov (0.6.4)
29
+ multi_json (~> 1.0)
39
30
  simplecov-html (~> 0.5.3)
40
31
  simplecov-html (0.5.3)
41
32
  sqlite3 (1.3.6)
42
- vcr (2.1.1)
43
- webmock (1.8.6)
33
+ test-unit (2.5.2)
34
+ vcr (2.2.4)
35
+ webmock (1.8.9)
44
36
  addressable (>= 2.2.7)
45
37
  crack (>= 0.1.7)
46
38
 
@@ -51,12 +43,13 @@ DEPENDENCIES
51
43
  addressable
52
44
  bundler
53
45
  htmlentities
54
- jeweler
55
46
  nokogiri
56
47
  psych
48
+ rake
57
49
  ruby-debug19
58
50
  simple_cache_rs
59
51
  simple_cov
60
52
  simplecov
53
+ test-unit
61
54
  vcr
62
55
  webmock
data/Rakefile CHANGED
@@ -1,29 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "radiospieler"
18
- gem.homepage = "http://github.com/radiospiel/radiospieler"
19
- gem.license = "MIT"
20
- gem.summary = %Q{Application base code}
21
- gem.description = %Q{Some basics that your application could benefit from.}
22
- gem.email = "eno@open-lab.org"
23
- gem.authors = ["radiospiel"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
3
+ require 'bundler/setup'
4
+ require "bundler/gem_tasks"
27
5
 
28
6
  require 'rake/testtask'
29
7
  Rake::TestTask.new(:test) do |test|
@@ -13,6 +13,8 @@ module Http
13
13
 
14
14
  # the default expiration time for get requests.
15
15
  module MaxAge
16
+ DEFAULT_MAX_AGE = 86_400
17
+
16
18
  def self.config
17
19
  @config ||= (App.config["cache-max-age"] || {}).to_a
18
20
  end
@@ -21,7 +23,8 @@ module Http
21
23
  config.each do |pattern, max_age|
22
24
  return max_age if url.index(pattern)
23
25
  end
24
- nil
26
+
27
+ DEFAULT_MAX_AGE
25
28
  end
26
29
  end
27
30
 
data/radiospieler.gemspec CHANGED
@@ -1,115 +1,46 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ class Gem::Specification
2
+ class GemfileEvaluator
3
+ def initialize(scope)
4
+ @scope = scope
5
+ end
6
+
7
+ def load_dependencies(path)
8
+ instance_eval File.read(path)
9
+ end
10
+
11
+ def source(*args); end
12
+ def group(*args); end
13
+
14
+ def gem(name, options = {})
15
+ @scope.add_dependency(name)
16
+ end
17
+ end
18
+
19
+ def load_dependencies(file)
20
+ GemfileEvaluator.new(self).load_dependencies(file)
21
+ end
22
+ end
23
+
24
+ Gem::Specification.new do |gem|
25
+ gem.name = "radiospieler"
26
+ gem.authors = ["radiospiel"]
27
+ gem.email = ["eno@open-lab.org"]
28
+ gem.description = %q{Some basics that your application could benefit from.}
29
+ gem.summary = gem.description
30
+ gem.homepage = "http://github.com/radiospiel/radiospieler"
31
+ gem.licenses = ["MIT"]
5
32
 
6
- Gem::Specification.new do |s|
7
- s.name = "radiospieler"
8
- s.version = "0.3.12"
33
+ gem.load_dependencies "Gemfile"
34
+
35
+ gem.files = `git ls-files`.split($\)
36
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
37
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
38
+ gem.require_paths = ["lib"]
39
+ gem.version = Time.now.strftime "%Y\.%m\.%d"
40
+ gem.date = Time.now.strftime "%Y-%m-%d"
9
41
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["radiospiel"]
12
- s.date = "2012-05-09"
13
- s.description = "Some basics that your application could benefit from."
14
- s.email = "eno@open-lab.org"
15
- s.extra_rdoc_files = [
42
+ gem.extra_rdoc_files = [
16
43
  "LICENSE.txt",
17
44
  "README.rdoc"
18
45
  ]
19
- s.files = [
20
- ".document",
21
- "Gemfile",
22
- "Gemfile.lock",
23
- "LICENSE.txt",
24
- "README.rdoc",
25
- "Rakefile",
26
- "VERSION",
27
- "config/app.yml",
28
- "lib/core-extensions/array_ext.rb",
29
- "lib/core-extensions/benchmark-logger.rb",
30
- "lib/core-extensions/cgi_ext.rb",
31
- "lib/core-extensions/hash_ext.rb",
32
- "lib/core-extensions/impl_missing.rb",
33
- "lib/core-extensions/object_ext.rb",
34
- "lib/core-extensions/string_ext.rb",
35
- "lib/core-extensions/string_without_accents.rb",
36
- "lib/core-extensions/tls.rb",
37
- "lib/core-extensions/uids.rb",
38
- "lib/core-extensions/uri_ext.rb",
39
- "lib/extensions/http.rb",
40
- "lib/radiospieler.rb",
41
- "lib/radiospieler/radiospieler.rb",
42
- "lib/radiospieler/radiospieler/config.rb",
43
- "lib/radiospieler/radiospieler/logger.rb",
44
- "lib/radiospieler/radiospieler/root.rb",
45
- "lib/radiospieler/radiospieler/zz_initialise.rb",
46
- "radiospieler.gemspec",
47
- "radiospieler.tmproj",
48
- "script/watchr",
49
- "test/app_test.rb",
50
- "test/array_ext_test.rb",
51
- "test/cgi_ext_test.rb",
52
- "test/config.yml",
53
- "test/config_test.rb",
54
- "test/fixtures-vcr/http_test.yml",
55
- "test/hash_ext_test.rb",
56
- "test/http_test.rb",
57
- "test/impl_missing_test.rb",
58
- "test/string_ext_test.rb",
59
- "test/test_helper.rb",
60
- "test/tls_test.rb",
61
- "test/uid_test.rb",
62
- "test/uri_test.rb"
63
- ]
64
- s.homepage = "http://github.com/radiospiel/radiospieler"
65
- s.licenses = ["MIT"]
66
- s.require_paths = ["lib"]
67
- s.rubygems_version = "1.8.10"
68
- s.summary = "Application base code"
69
-
70
- if s.respond_to? :specification_version then
71
- s.specification_version = 3
72
-
73
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
74
- s.add_runtime_dependency(%q<htmlentities>, [">= 0"])
75
- s.add_runtime_dependency(%q<simple_cache_rs>, [">= 0"])
76
- s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
77
- s.add_runtime_dependency(%q<addressable>, [">= 0"])
78
- s.add_development_dependency(%q<bundler>, [">= 0"])
79
- s.add_development_dependency(%q<jeweler>, [">= 0"])
80
- s.add_development_dependency(%q<vcr>, [">= 0"])
81
- s.add_development_dependency(%q<webmock>, [">= 0"])
82
- s.add_development_dependency(%q<psych>, [">= 0"])
83
- s.add_development_dependency(%q<simplecov>, [">= 0"])
84
- s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
85
- s.add_development_dependency(%q<simple_cov>, [">= 0"])
86
- else
87
- s.add_dependency(%q<htmlentities>, [">= 0"])
88
- s.add_dependency(%q<simple_cache_rs>, [">= 0"])
89
- s.add_dependency(%q<nokogiri>, [">= 0"])
90
- s.add_dependency(%q<addressable>, [">= 0"])
91
- s.add_dependency(%q<bundler>, [">= 0"])
92
- s.add_dependency(%q<jeweler>, [">= 0"])
93
- s.add_dependency(%q<vcr>, [">= 0"])
94
- s.add_dependency(%q<webmock>, [">= 0"])
95
- s.add_dependency(%q<psych>, [">= 0"])
96
- s.add_dependency(%q<simplecov>, [">= 0"])
97
- s.add_dependency(%q<ruby-debug19>, [">= 0"])
98
- s.add_dependency(%q<simple_cov>, [">= 0"])
99
- end
100
- else
101
- s.add_dependency(%q<htmlentities>, [">= 0"])
102
- s.add_dependency(%q<simple_cache_rs>, [">= 0"])
103
- s.add_dependency(%q<nokogiri>, [">= 0"])
104
- s.add_dependency(%q<addressable>, [">= 0"])
105
- s.add_dependency(%q<bundler>, [">= 0"])
106
- s.add_dependency(%q<jeweler>, [">= 0"])
107
- s.add_dependency(%q<vcr>, [">= 0"])
108
- s.add_dependency(%q<webmock>, [">= 0"])
109
- s.add_dependency(%q<psych>, [">= 0"])
110
- s.add_dependency(%q<simplecov>, [">= 0"])
111
- s.add_dependency(%q<ruby-debug19>, [">= 0"])
112
- s.add_dependency(%q<simple_cov>, [">= 0"])
113
- end
114
46
  end
115
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiospieler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 2012.09.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-09 00:00:00.000000000 Z
12
+ date: 2012-09-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: htmlentities
16
- requirement: &70165777812300 !ruby/object:Gem::Requirement
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,32 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70165777812300
25
- - !ruby/object:Gem::Dependency
26
- name: simple_cache_rs
27
- requirement: &70165777810260 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
28
25
  none: false
29
26
  requirements:
30
27
  - - ! '>='
31
28
  - !ruby/object:Gem::Version
32
29
  version: '0'
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *70165777810260
36
- - !ruby/object:Gem::Dependency
37
- name: nokogiri
38
- requirement: &70165777808960 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
- type: :runtime
45
- prerelease: false
46
- version_requirements: *70165777808960
47
30
  - !ruby/object:Gem::Dependency
48
- name: addressable
49
- requirement: &70165777800440 !ruby/object:Gem::Requirement
31
+ name: htmlentities
32
+ requirement: !ruby/object:Gem::Requirement
50
33
  none: false
51
34
  requirements:
52
35
  - - ! '>='
@@ -54,97 +37,63 @@ dependencies:
54
37
  version: '0'
55
38
  type: :runtime
56
39
  prerelease: false
57
- version_requirements: *70165777800440
58
- - !ruby/object:Gem::Dependency
59
- name: bundler
60
- requirement: &70165777797680 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
61
41
  none: false
62
42
  requirements:
63
43
  - - ! '>='
64
44
  - !ruby/object:Gem::Version
65
45
  version: '0'
66
- type: :development
67
- prerelease: false
68
- version_requirements: *70165777797680
69
46
  - !ruby/object:Gem::Dependency
70
- name: jeweler
71
- requirement: &70165777796860 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :development
78
- prerelease: false
79
- version_requirements: *70165777796860
80
- - !ruby/object:Gem::Dependency
81
- name: vcr
82
- requirement: &70165777795380 !ruby/object:Gem::Requirement
47
+ name: simple_cache_rs
48
+ requirement: !ruby/object:Gem::Requirement
83
49
  none: false
84
50
  requirements:
85
51
  - - ! '>='
86
52
  - !ruby/object:Gem::Version
87
53
  version: '0'
88
- type: :development
54
+ type: :runtime
89
55
  prerelease: false
90
- version_requirements: *70165777795380
91
- - !ruby/object:Gem::Dependency
92
- name: webmock
93
- requirement: &70165777793980 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
94
57
  none: false
95
58
  requirements:
96
59
  - - ! '>='
97
60
  - !ruby/object:Gem::Version
98
61
  version: '0'
99
- type: :development
100
- prerelease: false
101
- version_requirements: *70165777793980
102
62
  - !ruby/object:Gem::Dependency
103
- name: psych
104
- requirement: &70165777791560 !ruby/object:Gem::Requirement
63
+ name: nokogiri
64
+ requirement: !ruby/object:Gem::Requirement
105
65
  none: false
106
66
  requirements:
107
67
  - - ! '>='
108
68
  - !ruby/object:Gem::Version
109
69
  version: '0'
110
- type: :development
70
+ type: :runtime
111
71
  prerelease: false
112
- version_requirements: *70165777791560
113
- - !ruby/object:Gem::Dependency
114
- name: simplecov
115
- requirement: &70165777790460 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
116
73
  none: false
117
74
  requirements:
118
75
  - - ! '>='
119
76
  - !ruby/object:Gem::Version
120
77
  version: '0'
121
- type: :development
122
- prerelease: false
123
- version_requirements: *70165777790460
124
78
  - !ruby/object:Gem::Dependency
125
- name: ruby-debug19
126
- requirement: &70165777789420 !ruby/object:Gem::Requirement
79
+ name: addressable
80
+ requirement: !ruby/object:Gem::Requirement
127
81
  none: false
128
82
  requirements:
129
83
  - - ! '>='
130
84
  - !ruby/object:Gem::Version
131
85
  version: '0'
132
- type: :development
86
+ type: :runtime
133
87
  prerelease: false
134
- version_requirements: *70165777789420
135
- - !ruby/object:Gem::Dependency
136
- name: simple_cov
137
- requirement: &70165777787920 !ruby/object:Gem::Requirement
88
+ version_requirements: !ruby/object:Gem::Requirement
138
89
  none: false
139
90
  requirements:
140
91
  - - ! '>='
141
92
  - !ruby/object:Gem::Version
142
93
  version: '0'
143
- type: :development
144
- prerelease: false
145
- version_requirements: *70165777787920
146
94
  description: Some basics that your application could benefit from.
147
- email: eno@open-lab.org
95
+ email:
96
+ - eno@open-lab.org
148
97
  executables: []
149
98
  extensions: []
150
99
  extra_rdoc_files:
@@ -152,12 +101,12 @@ extra_rdoc_files:
152
101
  - README.rdoc
153
102
  files:
154
103
  - .document
104
+ - .gitignore
155
105
  - Gemfile
156
106
  - Gemfile.lock
157
107
  - LICENSE.txt
158
108
  - README.rdoc
159
109
  - Rakefile
160
- - VERSION
161
110
  - config/app.yml
162
111
  - lib/core-extensions/array_ext.rb
163
112
  - lib/core-extensions/benchmark-logger.rb
@@ -209,7 +158,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
209
158
  version: '0'
210
159
  segments:
211
160
  - 0
212
- hash: -2400321605713930899
161
+ hash: -1395649975848724854
213
162
  required_rubygems_version: !ruby/object:Gem::Requirement
214
163
  none: false
215
164
  requirements:
@@ -218,8 +167,22 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
167
  version: '0'
219
168
  requirements: []
220
169
  rubyforge_project:
221
- rubygems_version: 1.8.10
170
+ rubygems_version: 1.8.24
222
171
  signing_key:
223
172
  specification_version: 3
224
- summary: Application base code
225
- test_files: []
173
+ summary: Some basics that your application could benefit from.
174
+ test_files:
175
+ - test/app_test.rb
176
+ - test/array_ext_test.rb
177
+ - test/cgi_ext_test.rb
178
+ - test/config.yml
179
+ - test/config_test.rb
180
+ - test/fixtures-vcr/http_test.yml
181
+ - test/hash_ext_test.rb
182
+ - test/http_test.rb
183
+ - test/impl_missing_test.rb
184
+ - test/string_ext_test.rb
185
+ - test/test_helper.rb
186
+ - test/tls_test.rb
187
+ - test/uid_test.rb
188
+ - test/uri_test.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.3.12