Skip to content

Commit

Permalink
Merge pull request #5 from acechase/master
Browse files Browse the repository at this point in the history
Added upload resource to the API
  • Loading branch information
mikelarkin committed Apr 13, 2012
2 parents dad567b + 10e06ac commit 310bd8a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG
@@ -1,3 +1,5 @@
v.1.2.5 Upload Support

v.1.2.4 Removed dependency on ActiveRecord and Active Support

v.1.2.3 Invalid Path
Expand All @@ -18,4 +20,4 @@ v.0.2.1 Prelim rework

v.0.2 Functionality for Downloads and Account

v.0.1 Functionality for Orders and Items
v.0.1 Functionality for Orders and Items
1 change: 1 addition & 0 deletions Manifest
Expand Up @@ -4,6 +4,7 @@ init.rb
lib/fetchapp-api-ruby/account.rb
lib/fetchapp-api-ruby/base.rb
lib/fetchapp-api-ruby/download.rb
lib/fetchapp-api-ruby/upload.rb
lib/fetchapp-api-ruby/item.rb
lib/fetchapp-api-ruby/order.rb
lib/fetchapp-api-ruby-ruby.rb
Expand Down
6 changes: 3 additions & 3 deletions fetchapp-api-ruby.gemspec
Expand Up @@ -2,15 +2,15 @@

Gem::Specification.new do |s|
s.name = %q{fetchapp-api-ruby}
s.version = "1.2.4"
s.version = "1.2.5"
s.platform = Gem::Platform::RUBY
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
s.authors = ["Michael Larkin"]
s.date = Date.today.strftime('%Y-%m-%d')
s.description = %q{Integrate your site with http://fetchapp.com for seamless digital delivery.}
s.email = %q{support@fetchapp.com}
s.extra_rdoc_files = ["CHANGELOG", "lib/fetchapp-api-ruby/account.rb", "lib/fetchapp-api-ruby/base.rb", "lib/fetchapp-api-ruby/download.rb", "lib/fetchapp-api-ruby/item.rb", "lib/fetchapp-api-ruby/order.rb", "lib/fetchapp-api-ruby.rb", "LICENSE", "README.md"]
s.files = ["CHANGELOG", "fetchapp-api-ruby.gemspec", "init.rb", "lib/fetchapp-api-ruby/account.rb", "lib/fetchapp-api-ruby/base.rb", "lib/fetchapp-api-ruby/download.rb", "lib/fetchapp-api-ruby/item.rb", "lib/fetchapp-api-ruby/order.rb", "lib/fetchapp-api-ruby.rb", "LICENSE", "Manifest", "Rakefile", "README.md"]
s.extra_rdoc_files = ["CHANGELOG", "lib/fetchapp-api-ruby/account.rb", "lib/fetchapp-api-ruby/base.rb", "lib/fetchapp-api-ruby/download.rb", "lib/fetchapp-api-ruby/upload.rb", "lib/fetchapp-api-ruby/item.rb", "lib/fetchapp-api-ruby/order.rb", "lib/fetchapp-api-ruby.rb", "LICENSE", "README.md"]
s.files = ["CHANGELOG", "fetchapp-api-ruby.gemspec", "init.rb", "lib/fetchapp-api-ruby/account.rb", "lib/fetchapp-api-ruby/base.rb", "lib/fetchapp-api-ruby/download.rb", "lib/fetchapp-api-ruby/upload.rb", "lib/fetchapp-api-ruby/item.rb", "lib/fetchapp-api-ruby/order.rb", "lib/fetchapp-api-ruby.rb", "LICENSE", "Manifest", "Rakefile", "README.md"]
s.has_rdoc = true
s.homepage = %q{http://github.com/getsy/fetchapp-api-ruby}
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "fetchapp-api-ruby", "--main", "README.md"]
Expand Down
1 change: 1 addition & 0 deletions lib/fetchapp-api-ruby.rb
Expand Up @@ -6,5 +6,6 @@
require 'fetchapp-api-ruby/base'
require 'fetchapp-api-ruby/account'
require 'fetchapp-api-ruby/download'
require 'fetchapp-api-ruby/upload'
require 'fetchapp-api-ruby/item'
require 'fetchapp-api-ruby/order'
11 changes: 11 additions & 0 deletions lib/fetchapp-api-ruby/upload.rb
@@ -0,0 +1,11 @@
module FetchAPI
class Upload < FetchAPI::Base
attr_accessor :id, :attributes

# Find :all downloads or the specified ID
def self.find(selector, params={})
super(selector, params)
end

end
end

0 comments on commit 310bd8a

Please sign in to comment.