fetchapp-api-ruby 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v.1.2.5 Upload Support
2
+
1
3
  v.1.2.4 Removed dependency on ActiveRecord and Active Support
2
4
 
3
5
  v.1.2.3 Invalid Path
@@ -18,4 +20,4 @@ v.0.2.1 Prelim rework
18
20
 
19
21
  v.0.2 Functionality for Downloads and Account
20
22
 
21
- v.0.1 Functionality for Orders and Items
23
+ v.0.1 Functionality for Orders and Items
data/Manifest CHANGED
@@ -4,6 +4,7 @@ init.rb
4
4
  lib/fetchapp-api-ruby/account.rb
5
5
  lib/fetchapp-api-ruby/base.rb
6
6
  lib/fetchapp-api-ruby/download.rb
7
+ lib/fetchapp-api-ruby/upload.rb
7
8
  lib/fetchapp-api-ruby/item.rb
8
9
  lib/fetchapp-api-ruby/order.rb
9
10
  lib/fetchapp-api-ruby-ruby.rb
data/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  ```ruby
11
11
  account = FetchAPI::Account.details
12
12
 
13
- token = FetchAPI::Account.new_token *Subsequent calls will use the new token automatically
13
+ token = FetchAPI::Account.new_token #Subsequent calls will use the new token automatically
14
14
  ```
15
15
  # Downloads
16
16
  ```ruby
@@ -31,7 +31,7 @@
31
31
 
32
32
  item.destroy
33
33
 
34
- downloads = item.downloads *Returns an array of FetchAPI::Downloads for this item
34
+ downloads = item.downloads #Returns an array of FetchAPI::Downloads for this item
35
35
  ```
36
36
  # Orders
37
37
  ```ruby
@@ -51,5 +51,5 @@
51
51
 
52
52
  order.destroy
53
53
 
54
- downloads = order.downloads *Returns an array of FetchAPI::Downloads for this order
54
+ downloads = order.downloads #Returns an array of FetchAPI::Downloads for this order
55
55
  ```
data/Rakefile CHANGED
@@ -0,0 +1,10 @@
1
+ require 'rake/testtask'
2
+ require 'bundler'
3
+ Bundler::GemHelper.install_tasks
4
+
5
+ desc 'Test Fetchapp API'
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << 'test'
8
+ t.pattern = 'test/**/*_test.rb'
9
+ t.verbose = true
10
+ end
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fetchapp-api-ruby}
5
- s.version = "1.2.4"
6
-
5
+ s.version = "1.2.5"
6
+ s.platform = Gem::Platform::RUBY
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Michael Larkin"]
9
9
  s.date = Date.today.strftime('%Y-%m-%d')
10
10
  s.description = %q{Integrate your site with http://fetchapp.com for seamless digital delivery.}
11
11
  s.email = %q{support@fetchapp.com}
12
- 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"]
13
- 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"]
12
+ 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"]
13
+ 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"]
14
14
  s.has_rdoc = true
15
15
  s.homepage = %q{http://github.com/getsy/fetchapp-api-ruby}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "fetchapp-api-ruby", "--main", "README.md"]
@@ -18,16 +18,8 @@ Gem::Specification.new do |s|
18
18
  s.rubygems_version = %q{1.3.1}
19
19
  s.summary = %q{This Ruby library allows you to integrate your site with http://fetchapp.com for seamless digital delivery so you can build additional functionality while retaining the core features of Fetch. Credit for the bulk of the code goes to Thomas Reynolds.}
20
20
 
21
- if s.respond_to? :specification_version then
22
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
- s.specification_version = 2
21
+ s.add_runtime_dependency("httparty")
22
+ s.add_development_dependency("fakeweb")
23
+ s.add_development_dependency("mocha")
24
24
 
25
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
26
- s.add_runtime_dependency(%q<httparty>, [">= 0"])
27
- else
28
- s.add_dependency(%q<httparty>, [">= 0"])
29
- end
30
- else
31
- s.add_dependency(%q<httparty>, [">= 0"])
32
- end
33
25
  end
@@ -6,5 +6,6 @@ $:.unshift(File.dirname(__FILE__))
6
6
  require 'fetchapp-api-ruby/base'
7
7
  require 'fetchapp-api-ruby/account'
8
8
  require 'fetchapp-api-ruby/download'
9
+ require 'fetchapp-api-ruby/upload'
9
10
  require 'fetchapp-api-ruby/item'
10
11
  require 'fetchapp-api-ruby/order'
@@ -0,0 +1,11 @@
1
+ module FetchAPI
2
+ class Upload < FetchAPI::Base
3
+ attr_accessor :id, :attributes
4
+
5
+ # Find :all uploads or the specified ID
6
+ def self.find(selector, params={})
7
+ super(selector, params)
8
+ end
9
+
10
+ end
11
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fetchapp-api-ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 4
10
- version: 1.2.4
9
+ - 5
10
+ version: 1.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Larkin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-09 00:00:00 -04:00
18
+ date: 2012-04-13 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -32,6 +32,34 @@ dependencies:
32
32
  version: "0"
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: fakeweb
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ type: :development
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: mocha
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
61
+ type: :development
62
+ version_requirements: *id003
35
63
  description: Integrate your site with http://fetchapp.com for seamless digital delivery.
36
64
  email: support@fetchapp.com
37
65
  executables: []
@@ -43,6 +71,7 @@ extra_rdoc_files:
43
71
  - lib/fetchapp-api-ruby/account.rb
44
72
  - lib/fetchapp-api-ruby/base.rb
45
73
  - lib/fetchapp-api-ruby/download.rb
74
+ - lib/fetchapp-api-ruby/upload.rb
46
75
  - lib/fetchapp-api-ruby/item.rb
47
76
  - lib/fetchapp-api-ruby/order.rb
48
77
  - lib/fetchapp-api-ruby.rb
@@ -55,6 +84,7 @@ files:
55
84
  - lib/fetchapp-api-ruby/account.rb
56
85
  - lib/fetchapp-api-ruby/base.rb
57
86
  - lib/fetchapp-api-ruby/download.rb
87
+ - lib/fetchapp-api-ruby/upload.rb
58
88
  - lib/fetchapp-api-ruby/item.rb
59
89
  - lib/fetchapp-api-ruby/order.rb
60
90
  - lib/fetchapp-api-ruby.rb
@@ -100,7 +130,7 @@ requirements: []
100
130
  rubyforge_project:
101
131
  rubygems_version: 1.5.3
102
132
  signing_key:
103
- specification_version: 2
133
+ specification_version: 3
104
134
  summary: This Ruby library allows you to integrate your site with http://fetchapp.com for seamless digital delivery so you can build additional functionality while retaining the core features of Fetch. Credit for the bulk of the code goes to Thomas Reynolds.
105
135
  test_files: []
106
136