curdbee 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -2
- data/Gemfile.lock +27 -17
- data/Rakefile +0 -4
- data/VERSION +1 -1
- data/curdbee.gemspec +57 -67
- data/examples/list_invoices.rb +2 -2
- data/lib/curdbee/parser.rb +2 -0
- data/spec/spec_helper.rb +1 -1
- metadata +35 -32
data/Gemfile
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
3
|
group :runtime do
|
4
|
-
gem 'httparty', '~> 0.
|
4
|
+
gem 'httparty', '~> 0.9.0'
|
5
5
|
gem 'hashie', '~> 0.1.8'
|
6
6
|
gem 'json'
|
7
|
+
gem 'crack'
|
7
8
|
end
|
8
9
|
|
9
10
|
group :test do
|
10
11
|
gem 'jeweler'
|
11
12
|
gem 'rake'
|
12
|
-
gem 'bundler', '~> 1.0.0'
|
13
13
|
gem 'fakeweb', '>= 1.2.8'
|
14
14
|
gem 'rspec', '>= 1.3.0 '
|
15
15
|
gem 'activesupport', '~> 2.3.5', :require => 'active_support'
|
data/Gemfile.lock
CHANGED
@@ -1,34 +1,44 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activesupport (2.3.
|
5
|
-
crack (0.1.
|
6
|
-
|
7
|
-
|
4
|
+
activesupport (2.3.14)
|
5
|
+
crack (0.1.8)
|
6
|
+
diff-lcs (1.1.3)
|
7
|
+
fakeweb (1.3.0)
|
8
8
|
git (1.2.5)
|
9
9
|
hashie (0.1.8)
|
10
|
-
httparty (0.
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
httparty (0.9.0)
|
11
|
+
multi_json (~> 1.0)
|
12
|
+
multi_xml
|
13
|
+
jeweler (1.8.4)
|
14
|
+
bundler (~> 1.0)
|
14
15
|
git (>= 1.2.5)
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
rake
|
17
|
+
rdoc
|
18
|
+
json (1.7.5)
|
19
|
+
multi_json (1.3.6)
|
20
|
+
multi_xml (0.5.1)
|
21
|
+
rake (0.9.2.2)
|
22
|
+
rdoc (3.12)
|
23
|
+
json (~> 1.4)
|
24
|
+
rspec (2.11.0)
|
25
|
+
rspec-core (~> 2.11.0)
|
26
|
+
rspec-expectations (~> 2.11.0)
|
27
|
+
rspec-mocks (~> 2.11.0)
|
28
|
+
rspec-core (2.11.1)
|
29
|
+
rspec-expectations (2.11.3)
|
30
|
+
diff-lcs (~> 1.1.3)
|
31
|
+
rspec-mocks (2.11.3)
|
22
32
|
|
23
33
|
PLATFORMS
|
24
34
|
ruby
|
25
35
|
|
26
36
|
DEPENDENCIES
|
27
37
|
activesupport (~> 2.3.5)
|
28
|
-
|
38
|
+
crack
|
29
39
|
fakeweb (>= 1.2.8)
|
30
40
|
hashie (~> 0.1.8)
|
31
|
-
httparty (~> 0.
|
41
|
+
httparty (~> 0.9.0)
|
32
42
|
jeweler
|
33
43
|
json
|
34
44
|
rake
|
data/Rakefile
CHANGED
@@ -8,10 +8,6 @@ begin
|
|
8
8
|
gem.email = "lakshan@vesess.com"
|
9
9
|
gem.homepage = "http://github.com/vesess/curdbee"
|
10
10
|
gem.authors = ["Lakshan Perera"]
|
11
|
-
|
12
|
-
gem.add_dependency('httparty', '~> 0.5.2')
|
13
|
-
gem.add_dependency('hashie', '~> 0.1.8')
|
14
|
-
gem.add_dependency('json')
|
15
11
|
end
|
16
12
|
Jeweler::GemcutterTasks.new
|
17
13
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.10
|
data/curdbee.gemspec
CHANGED
@@ -1,105 +1,95 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{curdbee}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Lakshan Perera"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2012-10-09}
|
13
13
|
s.email = %q{lakshan@vesess.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
16
|
-
|
16
|
+
"README.markdown"
|
17
17
|
]
|
18
18
|
s.files = [
|
19
19
|
"Gemfile",
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
20
|
+
"Gemfile.lock",
|
21
|
+
"LICENSE",
|
22
|
+
"README.markdown",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"curdbee.gemspec",
|
26
|
+
"examples/create_invoice_for_new_client.rb",
|
27
|
+
"examples/list_invoices.rb",
|
28
|
+
"lib/curdbee.rb",
|
29
|
+
"lib/curdbee/base.rb",
|
30
|
+
"lib/curdbee/client.rb",
|
31
|
+
"lib/curdbee/config.rb",
|
32
|
+
"lib/curdbee/error.rb",
|
33
|
+
"lib/curdbee/estimate.rb",
|
34
|
+
"lib/curdbee/invoice.rb",
|
35
|
+
"lib/curdbee/invoiceable.rb",
|
36
|
+
"lib/curdbee/item.rb",
|
37
|
+
"lib/curdbee/parser.rb",
|
38
|
+
"lib/curdbee/payment.rb",
|
39
|
+
"lib/curdbee/recurring_profile.rb",
|
40
|
+
"spec/client_spec.rb",
|
41
|
+
"spec/estimate_spec.rb",
|
42
|
+
"spec/fixtures/client.json",
|
43
|
+
"spec/fixtures/clients.json",
|
44
|
+
"spec/fixtures/customers.json",
|
45
|
+
"spec/fixtures/estimate.json",
|
46
|
+
"spec/fixtures/estimates.json",
|
47
|
+
"spec/fixtures/invoice.json",
|
48
|
+
"spec/fixtures/invoices.json",
|
49
|
+
"spec/fixtures/item.json",
|
50
|
+
"spec/fixtures/items.json",
|
51
|
+
"spec/fixtures/new_client.json",
|
52
|
+
"spec/fixtures/new_estimate.json",
|
53
|
+
"spec/fixtures/new_invoice.json",
|
54
|
+
"spec/fixtures/new_item.json",
|
55
|
+
"spec/fixtures/new_payment.json",
|
56
|
+
"spec/fixtures/new_recurring_profile.json",
|
57
|
+
"spec/fixtures/payment.json",
|
58
|
+
"spec/fixtures/payments.json",
|
59
|
+
"spec/fixtures/recurring_profile.json",
|
60
|
+
"spec/fixtures/recurring_profiles.json",
|
61
|
+
"spec/invoice_spec.rb",
|
62
|
+
"spec/item_spec.rb",
|
63
|
+
"spec/payment_spec.rb",
|
64
|
+
"spec/recurring_profile_spec.rb",
|
65
|
+
"spec/spec_helper.rb",
|
66
|
+
"spec/support/fakeweb_stubs.rb"
|
67
67
|
]
|
68
68
|
s.homepage = %q{http://github.com/vesess/curdbee}
|
69
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
70
69
|
s.require_paths = ["lib"]
|
71
70
|
s.rubygems_version = %q{1.3.6}
|
72
71
|
s.summary = %q{Ruby wrapper for the CurdBee API}
|
73
|
-
s.test_files = [
|
74
|
-
"spec/client_spec.rb",
|
75
|
-
"spec/estimate_spec.rb",
|
76
|
-
"spec/invoice_spec.rb",
|
77
|
-
"spec/item_spec.rb",
|
78
|
-
"spec/payment_spec.rb",
|
79
|
-
"spec/recurring_profile_spec.rb",
|
80
|
-
"spec/spec_helper.rb",
|
81
|
-
"spec/support/fakeweb_stubs.rb",
|
82
|
-
"examples/create_invoice_for_new_client.rb",
|
83
|
-
"examples/list_invoices.rb"
|
84
|
-
]
|
85
72
|
|
86
73
|
if s.respond_to? :specification_version then
|
87
74
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
88
75
|
s.specification_version = 3
|
89
76
|
|
90
77
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
91
|
-
s.add_runtime_dependency(%q<httparty>, ["~> 0.
|
78
|
+
s.add_runtime_dependency(%q<httparty>, ["~> 0.9.0"])
|
92
79
|
s.add_runtime_dependency(%q<hashie>, ["~> 0.1.8"])
|
93
80
|
s.add_runtime_dependency(%q<json>, [">= 0"])
|
81
|
+
s.add_runtime_dependency(%q<crack>, [">= 0"])
|
94
82
|
else
|
95
|
-
s.add_dependency(%q<httparty>, ["~> 0.
|
83
|
+
s.add_dependency(%q<httparty>, ["~> 0.9.0"])
|
96
84
|
s.add_dependency(%q<hashie>, ["~> 0.1.8"])
|
97
85
|
s.add_dependency(%q<json>, [">= 0"])
|
86
|
+
s.add_dependency(%q<crack>, [">= 0"])
|
98
87
|
end
|
99
88
|
else
|
100
|
-
s.add_dependency(%q<httparty>, ["~> 0.
|
89
|
+
s.add_dependency(%q<httparty>, ["~> 0.9.0"])
|
101
90
|
s.add_dependency(%q<hashie>, ["~> 0.1.8"])
|
102
91
|
s.add_dependency(%q<json>, [">= 0"])
|
92
|
+
s.add_dependency(%q<crack>, [">= 0"])
|
103
93
|
end
|
104
94
|
end
|
105
95
|
|
data/examples/list_invoices.rb
CHANGED
@@ -6,8 +6,8 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
6
6
|
require 'curdbee'
|
7
7
|
|
8
8
|
# set the API key and subdomain for your account.
|
9
|
-
CurdBee::Config.api_key = "
|
10
|
-
CurdBee::Config.subdomain = "
|
9
|
+
CurdBee::Config.api_key = "fypmzr5OlBfbiBbJwHMS"
|
10
|
+
CurdBee::Config.subdomain = "laktek"
|
11
11
|
|
12
12
|
@invoices = CurdBee::Invoice.list
|
13
13
|
|
data/lib/curdbee/parser.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 10
|
9
|
+
version: 0.0.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Lakshan Perera
|
@@ -14,27 +14,26 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2012-10-09 00:00:00 +05:30
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
type: :runtime
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
24
|
- - ~>
|
26
25
|
- !ruby/object:Gem::Version
|
27
26
|
segments:
|
28
27
|
- 0
|
29
|
-
-
|
30
|
-
-
|
31
|
-
version: 0.
|
32
|
-
|
33
|
-
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: hashie
|
28
|
+
- 9
|
29
|
+
- 0
|
30
|
+
version: 0.9.0
|
31
|
+
name: httparty
|
32
|
+
requirement: *id001
|
36
33
|
prerelease: false
|
37
|
-
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
37
|
requirements:
|
39
38
|
- - ~>
|
40
39
|
- !ruby/object:Gem::Version
|
@@ -43,20 +42,33 @@ dependencies:
|
|
43
42
|
- 1
|
44
43
|
- 8
|
45
44
|
version: 0.1.8
|
46
|
-
|
47
|
-
|
45
|
+
name: hashie
|
46
|
+
requirement: *id002
|
47
|
+
prerelease: false
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
|
+
type: :runtime
|
50
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
segments:
|
55
|
+
- 0
|
56
|
+
version: "0"
|
49
57
|
name: json
|
58
|
+
requirement: *id003
|
50
59
|
prerelease: false
|
51
|
-
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
type: :runtime
|
62
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
52
63
|
requirements:
|
53
64
|
- - ">="
|
54
65
|
- !ruby/object:Gem::Version
|
55
66
|
segments:
|
56
67
|
- 0
|
57
68
|
version: "0"
|
58
|
-
|
59
|
-
|
69
|
+
name: crack
|
70
|
+
requirement: *id004
|
71
|
+
prerelease: false
|
60
72
|
description:
|
61
73
|
email: lakshan@vesess.com
|
62
74
|
executables: []
|
@@ -120,8 +132,8 @@ homepage: http://github.com/vesess/curdbee
|
|
120
132
|
licenses: []
|
121
133
|
|
122
134
|
post_install_message:
|
123
|
-
rdoc_options:
|
124
|
-
|
135
|
+
rdoc_options: []
|
136
|
+
|
125
137
|
require_paths:
|
126
138
|
- lib
|
127
139
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -145,14 +157,5 @@ rubygems_version: 1.3.6
|
|
145
157
|
signing_key:
|
146
158
|
specification_version: 3
|
147
159
|
summary: Ruby wrapper for the CurdBee API
|
148
|
-
test_files:
|
149
|
-
|
150
|
-
- spec/estimate_spec.rb
|
151
|
-
- spec/invoice_spec.rb
|
152
|
-
- spec/item_spec.rb
|
153
|
-
- spec/payment_spec.rb
|
154
|
-
- spec/recurring_profile_spec.rb
|
155
|
-
- spec/spec_helper.rb
|
156
|
-
- spec/support/fakeweb_stubs.rb
|
157
|
-
- examples/create_invoice_for_new_client.rb
|
158
|
-
- examples/list_invoices.rb
|
160
|
+
test_files: []
|
161
|
+
|