fetchapp-api-ruby 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +3 -1
- data/Manifest +1 -0
- data/README.md +3 -3
- data/Rakefile +10 -0
- data/fetchapp-api-ruby.gemspec +7 -15
- data/lib/fetchapp-api-ruby.rb +1 -0
- data/lib/fetchapp-api-ruby/upload.rb +11 -0
- metadata +35 -5
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
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
|
|
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
|
|
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
|
|
54
|
+
downloads = order.downloads #Returns an array of FetchAPI::Downloads for this order
|
|
55
55
|
```
|
data/Rakefile
CHANGED
data/fetchapp-api-ruby.gemspec
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
data/lib/fetchapp-api-ruby.rb
CHANGED
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:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 1.2.
|
|
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-
|
|
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:
|
|
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
|
|