fastbill 0.0.1 → 0.0.2

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/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2011 Kai Wernicke (4ware - kai@4ware.net).
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.markdown CHANGED
@@ -1 +1,7 @@
1
- test
1
+ fastbill - a ruby wrapper for the fastbill.com API
2
+ ==================================================
3
+
4
+ Intro
5
+ -----
6
+
7
+ lorem ipsum
data/{TODO.txt → TODO} RENAMED
File without changes
data/lib/fastbill.rb CHANGED
@@ -18,10 +18,5 @@ module Fastbill
18
18
  def customer_get(id)
19
19
  Customer.new(@auth).get(id)
20
20
  end
21
-
22
- def fetch(req)
23
- options = { :query => req, :basic_auth => @auth }
24
- self.class.post('/api/0.1/api.php', options)
25
- end
26
21
  end
27
22
  end
@@ -122,7 +122,7 @@ class Customer
122
122
  @bank_account_owner = body["BANK_ACCOUNT_OWNER"]
123
123
  @show_payment_notice = body["SHOW_PAYMENT_NOTICE"]
124
124
  @account_receiveable = body["ACCOUNT_RECEIVEABLE"]
125
- @type = body["CUSTOMER_TYPE"]
125
+ @customer_type = body["CUSTOMER_TYPE"]
126
126
  @top = body["TOP"] == "1" ? true : false
127
127
  @organization = body["ORGANIZATION"]
128
128
  @position = body["POSITION"]
@@ -1,3 +1,3 @@
1
1
  module Fastbill
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastbill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-01 00:00:00.000000000Z
12
+ date: 2011-10-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70169263735100 !ruby/object:Gem::Requirement
16
+ requirement: &70149179260980 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70169263735100
24
+ version_requirements: *70149179260980
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: httparty
27
- requirement: &70169263734120 !ruby/object:Gem::Requirement
27
+ requirement: &70149179260440 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70169263734120
35
+ version_requirements: *70149179260440
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: crack
38
- requirement: &70169263732960 !ruby/object:Gem::Requirement
38
+ requirement: &70149179259940 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70169263732960
46
+ version_requirements: *70149179259940
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: httparty
49
- requirement: &70169263731800 !ruby/object:Gem::Requirement
49
+ requirement: &70149179259220 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70169263731800
57
+ version_requirements: *70149179259220
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: crack
60
- requirement: &70169263730960 !ruby/object:Gem::Requirement
60
+ requirement: &70149179248880 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70169263730960
68
+ version_requirements: *70149179248880
69
69
  description: a basic ruby wrapper for the methods provided by the fastbill API
70
70
  email:
71
71
  - kai@4ware.net
@@ -75,9 +75,10 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - .gitignore
77
77
  - Gemfile
78
+ - MIT-LICENSE
78
79
  - README.markdown
79
80
  - Rakefile
80
- - TODO.txt
81
+ - TODO
81
82
  - fastbill.gemspec
82
83
  - lib/fastbill.rb
83
84
  - lib/fastbill/customer.rb