rspreedly 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +13 -1
- data/VERSION +1 -1
- data/lib/rspreedly/invoice.rb +1 -0
- data/lib/rspreedly/subscriber.rb +2 -0
- data/rspreedly.gemspec +88 -0
- metadata +2 -1
data/README.rdoc
CHANGED
@@ -6,10 +6,22 @@ Ruby library to access the Spreedly API (all of it).
|
|
6
6
|
|
7
7
|
There are a few of these knocking about, but I couldn't find one particular to my needs:
|
8
8
|
|
9
|
-
* Well covered with specs
|
9
|
+
* Well covered with specs - currently 100% coverage
|
10
10
|
* Covers the entire API, not just parts of it
|
11
11
|
* Rubyish/ActiveRecord style access
|
12
12
|
|
13
|
+
== Installation
|
14
|
+
|
15
|
+
It's on Gemcutter, so as long as you're setup to use that:
|
16
|
+
|
17
|
+
gem install rspreedly
|
18
|
+
|
19
|
+
Otherwise
|
20
|
+
|
21
|
+
gem install gemcutter
|
22
|
+
gem tumble
|
23
|
+
gem install rspreedly
|
24
|
+
|
13
25
|
== Usage
|
14
26
|
|
15
27
|
Configure your API key and site name for your account:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
data/lib/rspreedly/invoice.rb
CHANGED
data/lib/rspreedly/subscriber.rb
CHANGED
@@ -82,6 +82,7 @@ module RSpreedly
|
|
82
82
|
rescue RSpreedly::Error::Base
|
83
83
|
# gulp those errors down
|
84
84
|
# TODO - set self.errors or something?
|
85
|
+
nil
|
85
86
|
end
|
86
87
|
end
|
87
88
|
|
@@ -97,6 +98,7 @@ module RSpreedly
|
|
97
98
|
rescue RSpreedly::Error::Base
|
98
99
|
# gulp those errors down
|
99
100
|
# TODO - set self.errors or something?
|
101
|
+
nil
|
100
102
|
end
|
101
103
|
end
|
102
104
|
|
data/rspreedly.gemspec
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{rspreedly}
|
5
|
+
s.version = "0.1.0"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Richard Livsey"]
|
9
|
+
s.date = %q{2009-10-29}
|
10
|
+
s.email = %q{richard@livsey.org}
|
11
|
+
s.extra_rdoc_files = [
|
12
|
+
"LICENSE",
|
13
|
+
"README.rdoc"
|
14
|
+
]
|
15
|
+
s.files = [
|
16
|
+
".document",
|
17
|
+
".gitignore",
|
18
|
+
"LICENSE",
|
19
|
+
"README.rdoc",
|
20
|
+
"Rakefile",
|
21
|
+
"VERSION",
|
22
|
+
"lib/rspreedly.rb",
|
23
|
+
"lib/rspreedly/base.rb",
|
24
|
+
"lib/rspreedly/complimentary_subscription.rb",
|
25
|
+
"lib/rspreedly/complimentary_time_extension.rb",
|
26
|
+
"lib/rspreedly/config.rb",
|
27
|
+
"lib/rspreedly/error.rb",
|
28
|
+
"lib/rspreedly/invoice.rb",
|
29
|
+
"lib/rspreedly/line_item.rb",
|
30
|
+
"lib/rspreedly/payment_method.rb",
|
31
|
+
"lib/rspreedly/subscriber.rb",
|
32
|
+
"lib/rspreedly/subscription_plan.rb",
|
33
|
+
"rspreedly.gemspec",
|
34
|
+
"spec/config_spec.rb",
|
35
|
+
"spec/fixtures/complimentary_failed_active.xml",
|
36
|
+
"spec/fixtures/complimentary_failed_inactive.xml",
|
37
|
+
"spec/fixtures/complimentary_not_valid.xml",
|
38
|
+
"spec/fixtures/complimentary_success.xml",
|
39
|
+
"spec/fixtures/create_subscriber.xml",
|
40
|
+
"spec/fixtures/existing_subscriber.xml",
|
41
|
+
"spec/fixtures/free_plan_not_elligable.xml",
|
42
|
+
"spec/fixtures/free_plan_not_free.xml",
|
43
|
+
"spec/fixtures/free_plan_not_set.xml",
|
44
|
+
"spec/fixtures/free_plan_success.xml",
|
45
|
+
"spec/fixtures/invalid_subscriber.xml",
|
46
|
+
"spec/fixtures/invalid_update.xml",
|
47
|
+
"spec/fixtures/invoice_created.xml",
|
48
|
+
"spec/fixtures/invoice_invalid.xml",
|
49
|
+
"spec/fixtures/no_plans.xml",
|
50
|
+
"spec/fixtures/no_subscribers.xml",
|
51
|
+
"spec/fixtures/payment_already_paid.xml",
|
52
|
+
"spec/fixtures/payment_invalid.xml",
|
53
|
+
"spec/fixtures/payment_not_found.xml",
|
54
|
+
"spec/fixtures/payment_success.xml",
|
55
|
+
"spec/fixtures/plan_disabled.xml",
|
56
|
+
"spec/fixtures/plan_not_found.xml",
|
57
|
+
"spec/fixtures/subscriber.xml",
|
58
|
+
"spec/fixtures/subscriber_not_found.xml",
|
59
|
+
"spec/fixtures/subscribers.xml",
|
60
|
+
"spec/fixtures/subscription_plan_list.xml",
|
61
|
+
"spec/invoice_spec.rb",
|
62
|
+
"spec/spec_helper.rb",
|
63
|
+
"spec/subscriber_spec.rb",
|
64
|
+
"spec/subscription_plan_spec.rb"
|
65
|
+
]
|
66
|
+
s.homepage = %q{http://github.com/rlivsey/rspreedly}
|
67
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
68
|
+
s.require_paths = ["lib"]
|
69
|
+
s.rubygems_version = %q{1.3.5}
|
70
|
+
s.summary = %q{Ruby library for the Spreedly API}
|
71
|
+
s.test_files = [
|
72
|
+
"spec/config_spec.rb",
|
73
|
+
"spec/invoice_spec.rb",
|
74
|
+
"spec/spec_helper.rb",
|
75
|
+
"spec/subscriber_spec.rb",
|
76
|
+
"spec/subscription_plan_spec.rb"
|
77
|
+
]
|
78
|
+
|
79
|
+
if s.respond_to? :specification_version then
|
80
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
81
|
+
s.specification_version = 3
|
82
|
+
|
83
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
84
|
+
else
|
85
|
+
end
|
86
|
+
else
|
87
|
+
end
|
88
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspreedly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Livsey
|
@@ -40,6 +40,7 @@ files:
|
|
40
40
|
- lib/rspreedly/payment_method.rb
|
41
41
|
- lib/rspreedly/subscriber.rb
|
42
42
|
- lib/rspreedly/subscription_plan.rb
|
43
|
+
- rspreedly.gemspec
|
43
44
|
- spec/config_spec.rb
|
44
45
|
- spec/fixtures/complimentary_failed_active.xml
|
45
46
|
- spec/fixtures/complimentary_failed_inactive.xml
|