zoomit 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +11 -0
- data/.gitignore +42 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +41 -0
- data/LICENSE +20 -0
- data/README.rdoc +46 -0
- data/Rakefile +56 -0
- data/lib/zoomit.rb +37 -0
- data/lib/zoomit/content.rb +23 -0
- data/lib/zoomit/error.rb +10 -0
- data/lib/zoomit/response.rb +5 -0
- data/lib/zoomit/version.rb +3 -0
- data/spec/.rspec +1 -0
- data/spec/responses/zoomit_create_url.response +1 -0
- data/spec/spec_helper.rb +36 -0
- data/spec/zoomit/content_spec.rb +57 -0
- data/spec/zoomit/response_spec.rb +10 -0
- data/spec/zoomit_spec.rb +31 -0
- data/zoomit.gemspec +97 -0
- metadata +282 -0
data/.document
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# .document is used by rdoc and yard to know how to generate documentation
|
2
|
+
# for example, it can be used to control how rdoc gets built when you do `gem install foo`
|
3
|
+
|
4
|
+
README.rdoc
|
5
|
+
lib/**/*.rb
|
6
|
+
bin/*
|
7
|
+
|
8
|
+
# Files below this - are treated as 'extra files', and aren't parsed for ruby code
|
9
|
+
-
|
10
|
+
features/**/*.feature
|
11
|
+
LICENSE
|
data/.gitignore
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# rcov generated
|
2
|
+
coverage
|
3
|
+
|
4
|
+
# rdoc generated
|
5
|
+
rdoc
|
6
|
+
|
7
|
+
# yard generated
|
8
|
+
doc
|
9
|
+
.yardoc
|
10
|
+
|
11
|
+
# bundler
|
12
|
+
.bundle
|
13
|
+
|
14
|
+
# jeweler generated
|
15
|
+
pkg
|
16
|
+
|
17
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
18
|
+
#
|
19
|
+
# * Create a file at ~/.gitignore
|
20
|
+
# * Include files you want ignored
|
21
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
22
|
+
#
|
23
|
+
# After doing this, these files will be ignored in all your git projects,
|
24
|
+
# saving you from having to 'pollute' every project you touch with them
|
25
|
+
#
|
26
|
+
# 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)
|
27
|
+
#
|
28
|
+
# For MacOS:
|
29
|
+
#
|
30
|
+
.DS_Store
|
31
|
+
#
|
32
|
+
# For TextMate
|
33
|
+
*.tmproj
|
34
|
+
tmtags
|
35
|
+
#
|
36
|
+
# For emacs:
|
37
|
+
#*~
|
38
|
+
#\#*
|
39
|
+
#.\#*
|
40
|
+
#
|
41
|
+
# For vim:
|
42
|
+
#*.swp
|
data/Gemfile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
|
3
|
+
gem "httparty", ">= 0.6.1"
|
4
|
+
gem "hashie" , ">= 0.4.0"
|
5
|
+
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem "rspec", ">= 2.0.0.beta.22"
|
9
|
+
gem "webmock", ">= 1.3.5"
|
10
|
+
gem "bundler", "~> 1.0.0"
|
11
|
+
gem "jeweler", "~> 1.5.0.pre3"
|
12
|
+
gem "rcov", ">= 0"
|
13
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.2.1)
|
5
|
+
crack (0.1.8)
|
6
|
+
diff-lcs (1.1.2)
|
7
|
+
git (1.2.5)
|
8
|
+
hashie (0.4.0)
|
9
|
+
httparty (0.6.1)
|
10
|
+
crack (= 0.1.8)
|
11
|
+
jeweler (1.5.0.pre3)
|
12
|
+
bundler (~> 1.0.0)
|
13
|
+
git (>= 1.2.5)
|
14
|
+
rake
|
15
|
+
rake (0.8.7)
|
16
|
+
rcov (0.9.8)
|
17
|
+
rspec (2.0.0.beta.22)
|
18
|
+
rspec-core (= 2.0.0.beta.22)
|
19
|
+
rspec-expectations (= 2.0.0.beta.22)
|
20
|
+
rspec-mocks (= 2.0.0.beta.22)
|
21
|
+
rspec-core (2.0.0.beta.22)
|
22
|
+
rspec-expectations (2.0.0.beta.22)
|
23
|
+
diff-lcs (>= 1.1.2)
|
24
|
+
rspec-mocks (2.0.0.beta.22)
|
25
|
+
rspec-core (= 2.0.0.beta.22)
|
26
|
+
rspec-expectations (= 2.0.0.beta.22)
|
27
|
+
webmock (1.3.5)
|
28
|
+
addressable (>= 2.1.1)
|
29
|
+
crack (>= 0.1.7)
|
30
|
+
|
31
|
+
PLATFORMS
|
32
|
+
ruby
|
33
|
+
|
34
|
+
DEPENDENCIES
|
35
|
+
bundler (~> 1.0.0)
|
36
|
+
hashie (>= 0.4.0)
|
37
|
+
httparty (>= 0.6.1)
|
38
|
+
jeweler (~> 1.5.0.pre3)
|
39
|
+
rcov
|
40
|
+
rspec (>= 2.0.0.beta.22)
|
41
|
+
webmock (>= 1.3.5)
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2010 Tobias Matthies
|
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.rdoc
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
= zoomit
|
2
|
+
|
3
|
+
API wrapper for the Live Labs zoom.it API
|
4
|
+
|
5
|
+
== Installation
|
6
|
+
|
7
|
+
gem install zoomit
|
8
|
+
|
9
|
+
== Usage
|
10
|
+
|
11
|
+
require 'zoomit'
|
12
|
+
@zoomit = Zoomit::Content.create('http://www.example.org')
|
13
|
+
=> <#Zoomit::Response dzi=<#Zoomit::Response height=840 tileFormat="png" tileOverlap=1 tileSize=254 url="http://cache.zoom.it/content/7nA.dzi" width=1024> embedHtml="<script src=\"http://zoom.it/7nA.js?width=auto&height=400px\"></script>" failed=false id="7nA" progress=1 ready=true shareUrl="http://zoom.it/7nA" url="http://www.mit2m.de/">
|
14
|
+
@zoomit.shareURL
|
15
|
+
=> "http://zoom.it/7nA"
|
16
|
+
@zoomit.dzi.tileFormat
|
17
|
+
=> "png"
|
18
|
+
|
19
|
+
To search for zoom.it content by id, use Zoomit::Content.find(id)
|
20
|
+
|
21
|
+
@zoomit = Zoomit::Content.find('7nA')
|
22
|
+
=> <#Zoomit::Response dzi=<#Zoomit::Response height=840 tileFormat="png" tileOverlap=1 tileSize=254 url="http://cache.zoom.it/content/7nA.dzi" width=1024> embedHtml="<script src=\"http://zoom.it/7nA.js?width=auto&height=400px\"></script>" failed=false id="7nA" progress=1 ready=true shareUrl="http://zoom.it/7nA" url="http://www.mit2m.de/">
|
23
|
+
|
24
|
+
To search by url use Zoomit::Content.find_by_url(url)
|
25
|
+
|
26
|
+
@zoomit = Zoomit::Content.find_by_url('http://www.mit2m.de')
|
27
|
+
=> <#Zoomit::Response dzi=<#Zoomit::Response height=840 tileFormat="png" tileOverlap=1 tileSize=254 url="http://cache.zoom.it/content/7nA.dzi" width=1024> embedHtml="<script src=\"http://zoom.it/7nA.js?width=auto&height=400px\"></script>" failed=false id="7nA" progress=1 ready=true shareUrl="http://zoom.it/7nA" url="http://www.mit2m.de/">
|
28
|
+
|
29
|
+
== Todo
|
30
|
+
|
31
|
+
* Rubyfy response hash keys
|
32
|
+
* Documentation
|
33
|
+
|
34
|
+
== Note on Patches/Pull Requests
|
35
|
+
|
36
|
+
* Fork the project.
|
37
|
+
* Make your feature addition or bug fix.
|
38
|
+
* Add tests for it. This is important so I don't break it in a
|
39
|
+
future version unintentionally.
|
40
|
+
* Commit, do not mess with rakefile, version, or history.
|
41
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
42
|
+
* Send me a pull request. Bonus points for topic branches.
|
43
|
+
|
44
|
+
== Copyright
|
45
|
+
|
46
|
+
Copyright (c) 2010 Tobias Matthies. See LICENSE for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/lib/zoomit/version.rb"
|
2
|
+
require 'rubygems'
|
3
|
+
require 'bundler'
|
4
|
+
begin
|
5
|
+
Bundler.setup(:default, :development)
|
6
|
+
rescue Bundler::BundlerError => e
|
7
|
+
$stderr.puts e.message
|
8
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
9
|
+
exit e.status_code
|
10
|
+
end
|
11
|
+
require 'rake'
|
12
|
+
|
13
|
+
require 'jeweler'
|
14
|
+
Jeweler::Tasks.new do |gem|
|
15
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
16
|
+
gem.version = Zoomit::VERSION
|
17
|
+
gem.name = "zoomit"
|
18
|
+
gem.summary = %Q{API wrapper for the Live Labs zoom.it API}
|
19
|
+
gem.description = %Q{API wrapper for the Live Labs zoom.it API}
|
20
|
+
gem.email = "tm@mit2m.de"
|
21
|
+
gem.homepage = "http://github.com/tobmatth/zoomit"
|
22
|
+
gem.authors = ["Tobias Matthies"]
|
23
|
+
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
24
|
+
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
25
|
+
# spec.add_runtime_dependency 'jabber4r', '> 0.1'
|
26
|
+
# spec.add_development_dependency 'rspec', '> 1.2.3'
|
27
|
+
gem.add_development_dependency "rspec", ">= 2.0.0.beta.22"
|
28
|
+
gem.add_development_dependency "webmock", ">= 1.3.5"
|
29
|
+
gem.add_development_dependency "bundler", "~> 1.0.0"
|
30
|
+
gem.add_development_dependency "jeweler", "~> 1.5.0.pre3"
|
31
|
+
gem.add_development_dependency "rcov", ">= 0"
|
32
|
+
end
|
33
|
+
Jeweler::RubygemsDotOrgTasks.new
|
34
|
+
|
35
|
+
require 'rspec/core'
|
36
|
+
require 'rspec/core/rake_task'
|
37
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
38
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
39
|
+
end
|
40
|
+
|
41
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
42
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
43
|
+
spec.rcov = true
|
44
|
+
end
|
45
|
+
|
46
|
+
task :default => :spec
|
47
|
+
|
48
|
+
require 'rake/rdoctask'
|
49
|
+
Rake::RDocTask.new do |rdoc|
|
50
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
51
|
+
|
52
|
+
rdoc.rdoc_dir = 'rdoc'
|
53
|
+
rdoc.title = "zoomit #{version}"
|
54
|
+
rdoc.rdoc_files.include('README*')
|
55
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
56
|
+
end
|
data/lib/zoomit.rb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
require 'hashie'
|
3
|
+
require 'zoomit/response'
|
4
|
+
require 'zoomit/content'
|
5
|
+
require 'zoomit/error'
|
6
|
+
|
7
|
+
|
8
|
+
module Zoomit
|
9
|
+
include HTTParty
|
10
|
+
|
11
|
+
API_VERSION = "v1".freeze
|
12
|
+
base_uri "api.zoom.it/#{API_VERSION}"
|
13
|
+
format :json
|
14
|
+
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def self.perform_get(url, options={})
|
19
|
+
response = get(url, options)
|
20
|
+
raise_exception_on_errors(response)
|
21
|
+
response
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.raise_exception_on_errors(response)
|
25
|
+
case response.code.to_i
|
26
|
+
when 400
|
27
|
+
raise BadRequestError, response.parsed_response
|
28
|
+
when 404
|
29
|
+
raise NotFoundError, response.parsed_response
|
30
|
+
when 500
|
31
|
+
raise ServerError, response.parsed_response
|
32
|
+
when 502..503
|
33
|
+
raise UnavailableError, response.parsed_response
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Zoomit
|
2
|
+
|
3
|
+
|
4
|
+
class Content
|
5
|
+
|
6
|
+
def self.find(id, options={})
|
7
|
+
response = Zoomit.perform_get("/content/#{id}", options)
|
8
|
+
Response.new(response.parsed_response)
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.find_by_url(url, options={})
|
12
|
+
response = Zoomit.perform_get("/content", options.merge!(:query => {:url => url}))
|
13
|
+
Response.new(response.parsed_response)
|
14
|
+
end
|
15
|
+
|
16
|
+
class << self
|
17
|
+
alias :create :find_by_url
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
end
|
data/lib/zoomit/error.rb
ADDED
data/spec/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
@@ -0,0 +1 @@
|
|
1
|
+
{"id":"7nA","url":"http:\/\/www.mit2m.de\/","ready":true,"failed":false,"progress":1,"shareUrl":"http:\/\/zoom.it\/7nA","embedHtml":"<script src=\"http:\/\/zoom.it\/7nA.js?width=auto&height=400px\"><\/script>","dzi":{"url":"http:\/\/cache.zoom.it\/content\/7nA.dzi","width":1024,"height":840,"tileSize":254,"tileOverlap":1,"tileFormat":"png"}}
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
begin
|
3
|
+
Bundler.setup(:default, :development)
|
4
|
+
rescue Bundler::BundlerError => e
|
5
|
+
$stderr.puts e.message
|
6
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
7
|
+
exit e.status_code
|
8
|
+
end
|
9
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
10
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
11
|
+
|
12
|
+
require 'zoomit'
|
13
|
+
require 'rspec'
|
14
|
+
require 'webmock/rspec'
|
15
|
+
|
16
|
+
# Requires supporting files with custom matchers and macros, etc,
|
17
|
+
# in ./support/ and its subdirectories.
|
18
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
19
|
+
|
20
|
+
RSpec.configure do |config|
|
21
|
+
config.include WebMock
|
22
|
+
end
|
23
|
+
|
24
|
+
|
25
|
+
WebMock.disable_net_connect!
|
26
|
+
|
27
|
+
def mock_get(response_code, response_fixture=nil)
|
28
|
+
response = {:status => response_code}
|
29
|
+
response.merge!(:body => mocked_response(response_fixture)) if response_fixture
|
30
|
+
stub_http_request(:get, /api.zoom.it*/).to_return(response)
|
31
|
+
end
|
32
|
+
|
33
|
+
def mocked_response(response_fixture)
|
34
|
+
File.read(File.join(File.dirname(__FILE__), 'responses', response_fixture))
|
35
|
+
end
|
36
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
|
4
|
+
describe Zoomit::Content do
|
5
|
+
|
6
|
+
describe ".find" do
|
7
|
+
|
8
|
+
it "should return a Zoomit Response object" do
|
9
|
+
mock_get(200, 'zoomit_create_url.response')
|
10
|
+
response = Zoomit::Content.find('7nA')
|
11
|
+
response.class.should == Zoomit::Response
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should raise a Zoomit::NotFoundError if a content element could not be found" do
|
15
|
+
mock_get(404)
|
16
|
+
lambda { Zoomit::Content.find('f4444444444iL') }.should raise_error(Zoomit::NotFoundError)
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should raise a Zoomit::ServerError if zoom.it fails" do
|
20
|
+
mock_get(500)
|
21
|
+
lambda { Zoomit::Content.find('7nA') }.should raise_error(Zoomit::ServerError)
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should raise a Zoomit::UnavailableError if zoom.it can't scale" do
|
25
|
+
mock_get(503)
|
26
|
+
lambda { Zoomit::Content.find('7nA') }.should raise_error(Zoomit::UnavailableError)
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
describe ".create / .find_by_url" do
|
33
|
+
|
34
|
+
it "should return a Zoomit Response object" do
|
35
|
+
mock_get(200, 'zoomit_create_url.response')
|
36
|
+
response = Zoomit::Content.create('http://www.mit2m.de')
|
37
|
+
response.class.should == Zoomit::Response
|
38
|
+
end
|
39
|
+
|
40
|
+
it "should raise a Zoomit::BadRequestError if an invalid url is passed" do
|
41
|
+
mock_get(400)
|
42
|
+
lambda { Zoomit::Content.create('htp:/f41L.org') }.should raise_error(Zoomit::BadRequestError)
|
43
|
+
end
|
44
|
+
|
45
|
+
it "should raise a Zoomit::ServerError if zoom.it fails" do
|
46
|
+
mock_get(500)
|
47
|
+
lambda { Zoomit::Content.create('htp:/f41L.org') }.should raise_error(Zoomit::ServerError)
|
48
|
+
end
|
49
|
+
|
50
|
+
it "should raise a Zoomit::UnavailableError if zoom.it can't scale" do
|
51
|
+
mock_get(503)
|
52
|
+
lambda { Zoomit::Content.create('http:/overload.org') }.should raise_error(Zoomit::UnavailableError)
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
data/spec/zoomit_spec.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
|
4
|
+
describe Zoomit do
|
5
|
+
|
6
|
+
it "should include HTTParty" do
|
7
|
+
Zoomit.ancestors.include?(HTTParty).should be_true
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should set the HTTParty base_uri" do
|
11
|
+
Zoomit.base_uri.should == "http://api.zoom.it/#{Zoomit::API_VERSION}"
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should set the HTTParty format" do
|
15
|
+
Zoomit.format.should == :json
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should set the API version" do
|
19
|
+
Zoomit::API_VERSION.should == "v1"
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
describe ".perform_get" do
|
24
|
+
|
25
|
+
it "should fail if url is absent" do
|
26
|
+
lambda { Zoomit.perform_get }.should raise_error(ArgumentError)
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
data/zoomit.gemspec
ADDED
@@ -0,0 +1,97 @@
|
|
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{zoomit}
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Tobias Matthies"]
|
12
|
+
s.date = %q{2010-09-20}
|
13
|
+
s.description = %q{API wrapper for the Live Labs zoom.it API}
|
14
|
+
s.email = %q{tm@mit2m.de}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"lib/zoomit.rb",
|
28
|
+
"lib/zoomit/content.rb",
|
29
|
+
"lib/zoomit/error.rb",
|
30
|
+
"lib/zoomit/response.rb",
|
31
|
+
"lib/zoomit/version.rb",
|
32
|
+
"spec/.rspec",
|
33
|
+
"spec/responses/zoomit_create_url.response",
|
34
|
+
"spec/spec_helper.rb",
|
35
|
+
"spec/zoomit/content_spec.rb",
|
36
|
+
"spec/zoomit/response_spec.rb",
|
37
|
+
"spec/zoomit_spec.rb",
|
38
|
+
"zoomit.gemspec"
|
39
|
+
]
|
40
|
+
s.homepage = %q{http://github.com/tobmatth/zoomit}
|
41
|
+
s.require_paths = ["lib"]
|
42
|
+
s.rubygems_version = %q{1.3.7}
|
43
|
+
s.summary = %q{API wrapper for the Live Labs zoom.it API}
|
44
|
+
s.test_files = [
|
45
|
+
"spec/spec_helper.rb",
|
46
|
+
"spec/zoomit/content_spec.rb",
|
47
|
+
"spec/zoomit/response_spec.rb",
|
48
|
+
"spec/zoomit_spec.rb"
|
49
|
+
]
|
50
|
+
|
51
|
+
if s.respond_to? :specification_version then
|
52
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
53
|
+
s.specification_version = 3
|
54
|
+
|
55
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
56
|
+
s.add_runtime_dependency(%q<httparty>, [">= 0.6.1"])
|
57
|
+
s.add_runtime_dependency(%q<hashie>, [">= 0.4.0"])
|
58
|
+
s.add_development_dependency(%q<rspec>, [">= 2.0.0.beta.22"])
|
59
|
+
s.add_development_dependency(%q<webmock>, [">= 1.3.5"])
|
60
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
61
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.0.pre3"])
|
62
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
63
|
+
s.add_development_dependency(%q<rspec>, [">= 2.0.0.beta.22"])
|
64
|
+
s.add_development_dependency(%q<webmock>, [">= 1.3.5"])
|
65
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
66
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.0.pre3"])
|
67
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
68
|
+
else
|
69
|
+
s.add_dependency(%q<httparty>, [">= 0.6.1"])
|
70
|
+
s.add_dependency(%q<hashie>, [">= 0.4.0"])
|
71
|
+
s.add_dependency(%q<rspec>, [">= 2.0.0.beta.22"])
|
72
|
+
s.add_dependency(%q<webmock>, [">= 1.3.5"])
|
73
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
74
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre3"])
|
75
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
76
|
+
s.add_dependency(%q<rspec>, [">= 2.0.0.beta.22"])
|
77
|
+
s.add_dependency(%q<webmock>, [">= 1.3.5"])
|
78
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
79
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre3"])
|
80
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
81
|
+
end
|
82
|
+
else
|
83
|
+
s.add_dependency(%q<httparty>, [">= 0.6.1"])
|
84
|
+
s.add_dependency(%q<hashie>, [">= 0.4.0"])
|
85
|
+
s.add_dependency(%q<rspec>, [">= 2.0.0.beta.22"])
|
86
|
+
s.add_dependency(%q<webmock>, [">= 1.3.5"])
|
87
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
88
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre3"])
|
89
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
90
|
+
s.add_dependency(%q<rspec>, [">= 2.0.0.beta.22"])
|
91
|
+
s.add_dependency(%q<webmock>, [">= 1.3.5"])
|
92
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
93
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre3"])
|
94
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
metadata
ADDED
@@ -0,0 +1,282 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zoomit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Tobias Matthies
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-09-20 00:00:00 +02:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 5
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 6
|
31
|
+
- 1
|
32
|
+
version: 0.6.1
|
33
|
+
type: :runtime
|
34
|
+
name: httparty
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 15
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
- 4
|
47
|
+
- 0
|
48
|
+
version: 0.4.0
|
49
|
+
type: :runtime
|
50
|
+
name: hashie
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 62196431
|
60
|
+
segments:
|
61
|
+
- 2
|
62
|
+
- 0
|
63
|
+
- 0
|
64
|
+
- beta
|
65
|
+
- 22
|
66
|
+
version: 2.0.0.beta.22
|
67
|
+
type: :development
|
68
|
+
name: rspec
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *id003
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 17
|
78
|
+
segments:
|
79
|
+
- 1
|
80
|
+
- 3
|
81
|
+
- 5
|
82
|
+
version: 1.3.5
|
83
|
+
type: :development
|
84
|
+
name: webmock
|
85
|
+
prerelease: false
|
86
|
+
version_requirements: *id004
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
hash: 23
|
94
|
+
segments:
|
95
|
+
- 1
|
96
|
+
- 0
|
97
|
+
- 0
|
98
|
+
version: 1.0.0
|
99
|
+
type: :development
|
100
|
+
name: bundler
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *id005
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
hash: 270495430
|
110
|
+
segments:
|
111
|
+
- 1
|
112
|
+
- 5
|
113
|
+
- 0
|
114
|
+
- pre3
|
115
|
+
version: 1.5.0.pre3
|
116
|
+
type: :development
|
117
|
+
name: jeweler
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: *id006
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
hash: 3
|
127
|
+
segments:
|
128
|
+
- 0
|
129
|
+
version: "0"
|
130
|
+
type: :development
|
131
|
+
name: rcov
|
132
|
+
prerelease: false
|
133
|
+
version_requirements: *id007
|
134
|
+
- !ruby/object:Gem::Dependency
|
135
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
136
|
+
none: false
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
hash: 62196431
|
141
|
+
segments:
|
142
|
+
- 2
|
143
|
+
- 0
|
144
|
+
- 0
|
145
|
+
- beta
|
146
|
+
- 22
|
147
|
+
version: 2.0.0.beta.22
|
148
|
+
type: :development
|
149
|
+
name: rspec
|
150
|
+
prerelease: false
|
151
|
+
version_requirements: *id008
|
152
|
+
- !ruby/object:Gem::Dependency
|
153
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
hash: 17
|
159
|
+
segments:
|
160
|
+
- 1
|
161
|
+
- 3
|
162
|
+
- 5
|
163
|
+
version: 1.3.5
|
164
|
+
type: :development
|
165
|
+
name: webmock
|
166
|
+
prerelease: false
|
167
|
+
version_requirements: *id009
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
170
|
+
none: false
|
171
|
+
requirements:
|
172
|
+
- - ~>
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
hash: 23
|
175
|
+
segments:
|
176
|
+
- 1
|
177
|
+
- 0
|
178
|
+
- 0
|
179
|
+
version: 1.0.0
|
180
|
+
type: :development
|
181
|
+
name: bundler
|
182
|
+
prerelease: false
|
183
|
+
version_requirements: *id010
|
184
|
+
- !ruby/object:Gem::Dependency
|
185
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
186
|
+
none: false
|
187
|
+
requirements:
|
188
|
+
- - ~>
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
hash: 270495430
|
191
|
+
segments:
|
192
|
+
- 1
|
193
|
+
- 5
|
194
|
+
- 0
|
195
|
+
- pre3
|
196
|
+
version: 1.5.0.pre3
|
197
|
+
type: :development
|
198
|
+
name: jeweler
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: *id011
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
203
|
+
none: false
|
204
|
+
requirements:
|
205
|
+
- - ">="
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
hash: 3
|
208
|
+
segments:
|
209
|
+
- 0
|
210
|
+
version: "0"
|
211
|
+
type: :development
|
212
|
+
name: rcov
|
213
|
+
prerelease: false
|
214
|
+
version_requirements: *id012
|
215
|
+
description: API wrapper for the Live Labs zoom.it API
|
216
|
+
email: tm@mit2m.de
|
217
|
+
executables: []
|
218
|
+
|
219
|
+
extensions: []
|
220
|
+
|
221
|
+
extra_rdoc_files:
|
222
|
+
- LICENSE
|
223
|
+
- README.rdoc
|
224
|
+
files:
|
225
|
+
- .document
|
226
|
+
- .gitignore
|
227
|
+
- Gemfile
|
228
|
+
- Gemfile.lock
|
229
|
+
- LICENSE
|
230
|
+
- README.rdoc
|
231
|
+
- Rakefile
|
232
|
+
- lib/zoomit.rb
|
233
|
+
- lib/zoomit/content.rb
|
234
|
+
- lib/zoomit/error.rb
|
235
|
+
- lib/zoomit/response.rb
|
236
|
+
- lib/zoomit/version.rb
|
237
|
+
- spec/.rspec
|
238
|
+
- spec/responses/zoomit_create_url.response
|
239
|
+
- spec/spec_helper.rb
|
240
|
+
- spec/zoomit/content_spec.rb
|
241
|
+
- spec/zoomit/response_spec.rb
|
242
|
+
- spec/zoomit_spec.rb
|
243
|
+
- zoomit.gemspec
|
244
|
+
has_rdoc: true
|
245
|
+
homepage: http://github.com/tobmatth/zoomit
|
246
|
+
licenses: []
|
247
|
+
|
248
|
+
post_install_message:
|
249
|
+
rdoc_options: []
|
250
|
+
|
251
|
+
require_paths:
|
252
|
+
- lib
|
253
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
254
|
+
none: false
|
255
|
+
requirements:
|
256
|
+
- - ">="
|
257
|
+
- !ruby/object:Gem::Version
|
258
|
+
hash: 3
|
259
|
+
segments:
|
260
|
+
- 0
|
261
|
+
version: "0"
|
262
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
|
+
none: false
|
264
|
+
requirements:
|
265
|
+
- - ">="
|
266
|
+
- !ruby/object:Gem::Version
|
267
|
+
hash: 3
|
268
|
+
segments:
|
269
|
+
- 0
|
270
|
+
version: "0"
|
271
|
+
requirements: []
|
272
|
+
|
273
|
+
rubyforge_project:
|
274
|
+
rubygems_version: 1.3.7
|
275
|
+
signing_key:
|
276
|
+
specification_version: 3
|
277
|
+
summary: API wrapper for the Live Labs zoom.it API
|
278
|
+
test_files:
|
279
|
+
- spec/spec_helper.rb
|
280
|
+
- spec/zoomit/content_spec.rb
|
281
|
+
- spec/zoomit/response_spec.rb
|
282
|
+
- spec/zoomit_spec.rb
|