buzzsprout 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'time'
3
3
 
4
- require 'activesupport'
4
+ #require 'active_support'
5
5
 
6
6
  require 'hashie'
7
7
  require 'httparty'
@@ -14,6 +14,8 @@ Hash.send :include, Hashie::HashExtensions
14
14
 
15
15
  module Buzzsprout
16
16
 
17
+ VERSION = '0.0.4'.freeze
18
+
17
19
  # List all the episodes for a podcast
18
20
  #
19
21
  # @param [Fixnum] podcast_id The ID for the podcast
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- class TestBuzzsprout < Test::Unit::TestCase
3
+ class BuzzsproutTest < Test::Unit::TestCase
4
4
  context "When hitting the Buzzsprout API" do
5
5
 
6
6
  should "return a list of episodes for a podcast" do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Wynn Netherland
@@ -14,69 +14,53 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-06 00:00:00 -05:00
17
+ date: 2010-08-30 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: activesupport
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 2
29
- - 3
30
- - 2
31
- version: 2.3.2
32
- type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: hashie
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
38
22
  requirements:
39
- - - ">="
23
+ - - ~>
40
24
  - !ruby/object:Gem::Version
41
25
  segments:
42
26
  - 0
43
27
  - 2
44
28
  - 0
45
29
  version: 0.2.0
30
+ name: hashie
31
+ prerelease: false
32
+ requirement: *id001
46
33
  type: :runtime
47
- version_requirements: *id002
48
34
  - !ruby/object:Gem::Dependency
49
- name: httparty
50
- prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: &id002 !ruby/object:Gem::Requirement
52
36
  requirements:
53
- - - ">="
37
+ - - ~>
54
38
  - !ruby/object:Gem::Version
55
39
  segments:
56
40
  - 0
57
41
  - 5
58
- - 0
59
- version: 0.5.0
42
+ - 2
43
+ version: 0.5.2
44
+ name: httparty
45
+ prerelease: false
46
+ requirement: *id002
60
47
  type: :runtime
61
- version_requirements: *id003
62
48
  - !ruby/object:Gem::Dependency
63
- name: shoulda
64
- prerelease: false
65
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ version_requirements: &id003 !ruby/object:Gem::Requirement
66
50
  requirements:
67
- - - ">="
51
+ - - ~>
68
52
  - !ruby/object:Gem::Version
69
53
  segments:
70
54
  - 2
71
55
  - 10
72
- - 1
73
- version: 2.10.1
56
+ - 0
57
+ version: 2.10.0
58
+ name: shoulda
59
+ prerelease: false
60
+ requirement: *id003
74
61
  type: :development
75
- version_requirements: *id004
76
62
  - !ruby/object:Gem::Dependency
77
- name: jnunemaker-matchy
78
- prerelease: false
79
- requirement: &id005 !ruby/object:Gem::Requirement
63
+ version_requirements: &id004 !ruby/object:Gem::Requirement
80
64
  requirements:
81
65
  - - "="
82
66
  - !ruby/object:Gem::Version
@@ -85,68 +69,57 @@ dependencies:
85
69
  - 4
86
70
  - 0
87
71
  version: 0.4.0
72
+ name: jnunemaker-matchy
73
+ prerelease: false
74
+ requirement: *id004
88
75
  type: :development
89
- version_requirements: *id005
90
76
  - !ruby/object:Gem::Dependency
91
- name: fakeweb
92
- prerelease: false
93
- requirement: &id006 !ruby/object:Gem::Requirement
77
+ version_requirements: &id005 !ruby/object:Gem::Requirement
94
78
  requirements:
95
79
  - - ">="
96
80
  - !ruby/object:Gem::Version
97
81
  segments:
98
- - 1
99
- - 2
100
- - 5
101
- version: 1.2.5
82
+ - 0
83
+ - 9
84
+ - 4
85
+ version: 0.9.4
86
+ name: mocha
87
+ prerelease: false
88
+ requirement: *id005
102
89
  type: :development
103
- version_requirements: *id006
104
90
  - !ruby/object:Gem::Dependency
105
- name: yard
106
- prerelease: false
107
- requirement: &id007 !ruby/object:Gem::Requirement
91
+ version_requirements: &id006 !ruby/object:Gem::Requirement
108
92
  requirements:
109
93
  - - ">="
110
94
  - !ruby/object:Gem::Version
111
95
  segments:
112
- - 0
113
- version: "0"
96
+ - 1
97
+ - 2
98
+ - 5
99
+ version: 1.2.5
100
+ name: fakeweb
101
+ prerelease: false
102
+ requirement: *id006
114
103
  type: :development
115
- version_requirements: *id007
116
104
  description: Ruby wrapper for the stealth mode Buzzsprout API
117
105
  email: wynn.netherland@gmail.com
118
106
  executables: []
119
107
 
120
108
  extensions: []
121
109
 
122
- extra_rdoc_files:
123
- - LICENSE
124
- - README.md
110
+ extra_rdoc_files: []
111
+
125
112
  files:
126
- - .document
127
- - .gitignore
128
- - .yardopts
129
- - LICENSE
130
- - README.md
131
- - Rakefile
132
- - VERSION
133
- - buzzsprout.gemspec
134
- - changelog.md
135
- - lib/buzzsprout.rb
136
113
  - lib/buzzsprout/client.rb
137
114
  - lib/buzzsprout/episode.rb
138
- - test/fixtures/episode.json
139
- - test/fixtures/episode_list.json
140
- - test/fixtures/tagged.json
141
- - test/helper.rb
142
- - test/test_buzzsprout.rb
115
+ - lib/buzzsprout.rb
143
116
  has_rdoc: true
144
- homepage: http://wynnnetherland.com/projects/buzzsprout
117
+ homepage: http://wynnnetherland.com/projects/buzzsprout/
145
118
  licenses: []
146
119
 
147
120
  post_install_message:
148
- rdoc_options:
149
- - --charset=UTF-8
121
+ rdoc_options: []
122
+
150
123
  require_paths:
151
124
  - lib
152
125
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -161,15 +134,20 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
134
  - - ">="
162
135
  - !ruby/object:Gem::Version
163
136
  segments:
164
- - 0
165
- version: "0"
137
+ - 1
138
+ - 3
139
+ - 6
140
+ version: 1.3.6
166
141
  requirements: []
167
142
 
168
143
  rubyforge_project:
169
144
  rubygems_version: 1.3.6
170
145
  signing_key:
171
146
  specification_version: 3
172
- summary: Ruby wrapper for the stealth mode Buzzsprout API
147
+ summary: Wrapper for the stealth mode Buzzsprout API
173
148
  test_files:
149
+ - test/buzzsprout_test.rb
150
+ - test/fixtures/episode.json
151
+ - test/fixtures/episode_list.json
152
+ - test/fixtures/tagged.json
174
153
  - test/helper.rb
175
- - test/test_buzzsprout.rb
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
data/.gitignore DELETED
@@ -1,22 +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
- .yardoc
21
-
22
- ## PROJECT::SPECIFIC
data/.yardopts DELETED
@@ -1,7 +0,0 @@
1
- --readme README.md
2
- --markup markdown
3
- --markup-provider rdiscount
4
- --default-return nil
5
- -p ../yardoc_templates
6
- -o ../../sites/wynn/public/projects/buzzsprout/api
7
- --no-private
data/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2009 Wynn Netherland
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md DELETED
@@ -1,45 +0,0 @@
1
- # buzzsprout
2
-
3
- Ruby wrapper for the (yet unreleased, undocumented) [Buzzsprout](http://buzzsprout.com) API.
4
-
5
- ## Installation
6
-
7
- sudo gem install buzzsprout
8
-
9
- ## Usage
10
-
11
- Getting a list of episodes
12
-
13
- # get your podcast ID from your RSS feed http://www.buzzsprout.com/105.rss
14
- Buzzsprout.episodes(105)
15
- => [<#Buzzsprout::Episode artist="Adam Stacoviak and Wynn Netherland" created_at=Mon Jan 25 11:53:02 -0600 2010 date=Mon, 25 Jan 2010 description="Adam and Wynn talk with Chris Wanstrath aka @defunkt from GitHub about the magic of Git, the past, present and future of GitHub, building a bootstrapped startup and some other cool stuff you'll just have to hear for yourself." duration=4675 id=2274 live=true podcast_id=105 s3=true size=37400482 tags="git, github, interview, bootstrapping, business, startups" title="Episode 0.1.0 - Chris Wanstrath from GitHub" updated_at=Mon Jan 25 13:36:42 -0600 2010>]
16
-
17
-
18
- Get a list of tagged episodes
19
- >> tags = %w(git github)
20
- Buzzsprout.episodes(105, tags)
21
- => [<#Buzzsprout::Episode artist="Adam Stacoviak and Wynn Netherland" created_at=Mon Jan 25 11:53:02 -0600 2010 date=Mon, 25 Jan 2010 description="Adam and Wynn talk with Chris Wanstrath aka @defunkt from GitHub about the magic of Git, the past, present and future of GitHub, building a bootstrapped startup and some other cool stuff you'll just have to hear for yourself." duration=4675 id=2274 live=true podcast_id=105 s3=true size=37400482 tags="git, github, interview, bootstrapping, business, startups" title="Episode 0.1.0 - Chris Wanstrath from GitHub" updated_at=Mon Jan 25 13:36:42 -0600 2010>]
22
-
23
- Get a single episode
24
- # podcast_id, episode_id
25
- Buzzsprout.episodes(105, 2274)
26
- => <#Buzzsprout::Episode artist="Adam Stacoviak and Wynn Netherland" created_at=Mon Jan 25 11:53:02 -0600 2010 date=Mon, 25 Jan 2010 description="Adam and Wynn talk with Chris Wanstrath aka @defunkt from GitHub about the magic of Git, the past, present and future of GitHub, building a bootstrapped startup and some other cool stuff you'll just have to hear for yourself." duration=4675 id=2274 live=true podcast_id=105 s3=true size=37400482 tags="git, github, interview, bootstrapping, business, startups" title="Episode 0.1.0 - Chris Wanstrath from GitHub" updated_at=Mon Jan 25 13:36:42 -0600 2010>
27
-
28
- Get a single episode from URL
29
-
30
- Buzzsprout.episode_from_url('http://changelogshow.com/105/12191-episode-0-3-0-sencha-touch-with-david-kaneda')
31
-
32
- ## Note on Patches/Pull Requests
33
-
34
- * Fork the project.
35
- * Make your feature addition or bug fix.
36
- * Add tests for it. This is important so I don't break it in a
37
- future version unintentionally.
38
- * Commit, do not mess with rakefile, version, or history.
39
- (if you want to have your own version, that is fine but
40
- bump version in a commit by itself I can ignore when I pull)
41
- * Send me a pull request. Bonus points for topic branches.
42
-
43
- ## Copyright
44
-
45
- Copyright (c) 2010 [Wynn Netherland](http://wynnnetherland.com). See LICENSE for details.
data/Rakefile DELETED
@@ -1,59 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "buzzsprout"
8
- gem.summary = %Q{Ruby wrapper for the stealth mode Buzzsprout API}
9
- gem.description = %Q{Ruby wrapper for the stealth mode Buzzsprout API}
10
- gem.email = "wynn.netherland@gmail.com"
11
- gem.homepage = "http://wynnnetherland.com/projects/buzzsprout"
12
- gem.authors = ["Wynn Netherland"]
13
- gem.add_dependency('activesupport', '>= 2.3.2')
14
- gem.add_dependency('hashie', '>= 0.2.0')
15
- gem.add_dependency('httparty', '>= 0.5.0')
16
-
17
- gem.add_development_dependency('shoulda', '>= 2.10.1')
18
- gem.add_development_dependency('jnunemaker-matchy', '0.4.0')
19
- gem.add_development_dependency('fakeweb', '>= 1.2.5')
20
- gem.add_development_dependency "yard", ">= 0"
21
- end
22
- Jeweler::GemcutterTasks.new
23
- rescue LoadError
24
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
25
- end
26
-
27
- require 'rake/testtask'
28
- Rake::TestTask.new(:test) do |test|
29
- test.libs << 'lib' << 'test'
30
- test.pattern = 'test/**/test_*.rb'
31
- test.verbose = true
32
- end
33
-
34
- begin
35
- require 'rcov/rcovtask'
36
- Rcov::RcovTask.new do |test|
37
- test.libs << 'test'
38
- test.pattern = 'test/**/test_*.rb'
39
- test.verbose = true
40
- end
41
- rescue LoadError
42
- task :rcov do
43
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
44
- end
45
- end
46
-
47
- task :test => :check_dependencies
48
-
49
- task :default => :test
50
-
51
- require 'rake/rdoctask'
52
- Rake::RDocTask.new do |rdoc|
53
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
54
-
55
- rdoc.rdoc_dir = 'rdoc'
56
- rdoc.title = "buzzsprout #{version}"
57
- rdoc.rdoc_files.include('README*')
58
- rdoc.rdoc_files.include('lib/**/*.rb')
59
- end
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.0.3
@@ -1,79 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{buzzsprout}
8
- s.version = "0.0.3"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Wynn Netherland"]
12
- s.date = %q{2010-08-06}
13
- s.description = %q{Ruby wrapper for the stealth mode Buzzsprout API}
14
- s.email = %q{wynn.netherland@gmail.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.md"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".gitignore",
22
- ".yardopts",
23
- "LICENSE",
24
- "README.md",
25
- "Rakefile",
26
- "VERSION",
27
- "buzzsprout.gemspec",
28
- "changelog.md",
29
- "lib/buzzsprout.rb",
30
- "lib/buzzsprout/client.rb",
31
- "lib/buzzsprout/episode.rb",
32
- "test/fixtures/episode.json",
33
- "test/fixtures/episode_list.json",
34
- "test/fixtures/tagged.json",
35
- "test/helper.rb",
36
- "test/test_buzzsprout.rb"
37
- ]
38
- s.homepage = %q{http://wynnnetherland.com/projects/buzzsprout}
39
- s.rdoc_options = ["--charset=UTF-8"]
40
- s.require_paths = ["lib"]
41
- s.rubygems_version = %q{1.3.6}
42
- s.summary = %q{Ruby wrapper for the stealth mode Buzzsprout API}
43
- s.test_files = [
44
- "test/helper.rb",
45
- "test/test_buzzsprout.rb"
46
- ]
47
-
48
- if s.respond_to? :specification_version then
49
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
50
- s.specification_version = 3
51
-
52
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
53
- s.add_runtime_dependency(%q<activesupport>, [">= 2.3.2"])
54
- s.add_runtime_dependency(%q<hashie>, [">= 0.2.0"])
55
- s.add_runtime_dependency(%q<httparty>, [">= 0.5.0"])
56
- s.add_development_dependency(%q<shoulda>, [">= 2.10.1"])
57
- s.add_development_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
58
- s.add_development_dependency(%q<fakeweb>, [">= 1.2.5"])
59
- s.add_development_dependency(%q<yard>, [">= 0"])
60
- else
61
- s.add_dependency(%q<activesupport>, [">= 2.3.2"])
62
- s.add_dependency(%q<hashie>, [">= 0.2.0"])
63
- s.add_dependency(%q<httparty>, [">= 0.5.0"])
64
- s.add_dependency(%q<shoulda>, [">= 2.10.1"])
65
- s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
66
- s.add_dependency(%q<fakeweb>, [">= 1.2.5"])
67
- s.add_dependency(%q<yard>, [">= 0"])
68
- end
69
- else
70
- s.add_dependency(%q<activesupport>, [">= 2.3.2"])
71
- s.add_dependency(%q<hashie>, [">= 0.2.0"])
72
- s.add_dependency(%q<httparty>, [">= 0.5.0"])
73
- s.add_dependency(%q<shoulda>, [">= 2.10.1"])
74
- s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
75
- s.add_dependency(%q<fakeweb>, [">= 1.2.5"])
76
- s.add_dependency(%q<yard>, [">= 0"])
77
- end
78
- end
79
-
@@ -1,2 +0,0 @@
1
- ## August 6, 2010
2
- * Added Client#episode_from_url method