kounta_rest 0.1.7 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +67 -36
  3. data/lib/kounta/address.rb +14 -17
  4. data/lib/kounta/break.rb +6 -0
  5. data/lib/kounta/category.rb +12 -15
  6. data/lib/kounta/company.rb +59 -50
  7. data/lib/kounta/customer.rb +33 -32
  8. data/lib/kounta/errors.rb +8 -7
  9. data/lib/kounta/inventory.rb +5 -7
  10. data/lib/kounta/line.rb +18 -21
  11. data/lib/kounta/order.rb +45 -49
  12. data/lib/kounta/payment.rb +14 -17
  13. data/lib/kounta/person.rb +21 -24
  14. data/lib/kounta/price_list.rb +7 -9
  15. data/lib/kounta/product.rb +25 -27
  16. data/lib/kounta/register.rb +11 -14
  17. data/lib/kounta/resource.rb +105 -93
  18. data/lib/kounta/rest/client.rb +177 -79
  19. data/lib/kounta/shift.rb +25 -0
  20. data/lib/kounta/site.rb +46 -38
  21. data/lib/kounta/staff.rb +30 -0
  22. data/lib/kounta/tax.rb +7 -9
  23. data/lib/kounta/version.rb +1 -1
  24. data/lib/kounta/webhook.rb +16 -0
  25. data/lib/kounta.rb +42 -72
  26. metadata +77 -145
  27. data/.gitignore +0 -20
  28. data/.gitmodules +0 -3
  29. data/Gemfile +0 -4
  30. data/Rakefile +0 -1
  31. data/console.rb +0 -14
  32. data/kounta.gemspec +0 -33
  33. data/spec/fixtures/address.json +0 -12
  34. data/spec/fixtures/addresses.json +0 -25
  35. data/spec/fixtures/base_price_list.json +0 -52
  36. data/spec/fixtures/categories.json +0 -217
  37. data/spec/fixtures/category.json +0 -11
  38. data/spec/fixtures/companies_me.json +0 -45
  39. data/spec/fixtures/customer.json +0 -39
  40. data/spec/fixtures/customers.json +0 -26
  41. data/spec/fixtures/inventory.json +0 -10
  42. data/spec/fixtures/line.json +0 -7
  43. data/spec/fixtures/order.json +0 -67
  44. data/spec/fixtures/orders.json +0 -134
  45. data/spec/fixtures/payment.json +0 -6
  46. data/spec/fixtures/people.json +0 -20
  47. data/spec/fixtures/person.json +0 -41
  48. data/spec/fixtures/price_list.json +0 -52
  49. data/spec/fixtures/price_lists.json +0 -12
  50. data/spec/fixtures/product.json +0 -25
  51. data/spec/fixtures/products.json +0 -119
  52. data/spec/fixtures/site.json +0 -6
  53. data/spec/fixtures/sites.json +0 -14
  54. data/spec/fixtures/tax.json +0 -7
  55. data/spec/fixtures/taxes.json +0 -16
  56. data/spec/helper.rb +0 -28
  57. data/spec/kounta/address_spec.rb +0 -11
  58. data/spec/kounta/category_spec.rb +0 -11
  59. data/spec/kounta/company_spec.rb +0 -24
  60. data/spec/kounta/customer_spec.rb +0 -15
  61. data/spec/kounta/kounta_spec.rb +0 -21
  62. data/spec/kounta/line_spec.rb +0 -14
  63. data/spec/kounta/order_spec.rb +0 -37
  64. data/spec/kounta/payment_spec.rb +0 -14
  65. data/spec/kounta/person_spec.rb +0 -15
  66. data/spec/kounta/product_spec.rb +0 -16
  67. data/spec/kounta/resource_spec.rb +0 -95
  68. data/spec/kounta/rest/client_spec.rb +0 -38
  69. data/spec/kounta/site_spec.rb +0 -11
  70. data/spec/support/endpoints.rb +0 -72
data/lib/kounta/site.rb CHANGED
@@ -1,43 +1,51 @@
1
1
  module Kounta
2
+ class Site < Kounta::Resource
3
+ property :company_id
4
+ property :name
5
+ property :code
6
+ property :business_number
7
+ property :contact_person
8
+ property :shipping_address
9
+ property :postal_address
10
+ property :email
11
+ property :mobile
12
+ property :phone
13
+ property :fax
14
+ property :location
15
+ property :image
16
+ property :website
17
+ property :register_level_reconciliation
18
+ property :products
19
+ property :price_list
2
20
 
3
- class Site < Kounta::Resource
4
- property :company_id
5
- property :name
6
- property :code
7
- property :business_number
8
- property :contact_person
9
- property :shipping_address
10
- property :postal_address
11
- property :email
12
- property :mobile
13
- property :phone
14
- property :fax
15
- property :location
16
- property :image
17
- property :website
18
- property :register_level_reconciliation
19
- property :products
20
- property :price_list
21
+ coerce_key :shipping_address, Kounta::Address
22
+ coerce_key :postal_address, Kounta::Address
23
+ coerce_key :price_list, Kounta::PriceList
21
24
 
22
- coerce_key :shipping_address, Kounta::Address
23
- coerce_key :postal_address, Kounta::Address
24
- coerce_key :price_list, Kounta::PriceList
25
+ has_one(:product, Kounta::Product, { company_id: :company_id },
26
+ proc { |klass, item_id| { companies: klass.company_id, sites: klass.id, products: item_id } })
27
+ has_one(:category, Kounta::Category, { company_id: :company_id },
28
+ proc { |klass, item_id| { companies: klass.company_id, sites: klass.id, categories: item_id } })
29
+ has_one(:address, Kounta::Address, { company_id: :company_id },
30
+ proc { |klass, item_id| { companies: klass.company_id, sites: klass.id, addresses: item_id } })
31
+ has_one(:order, Kounta::Order, { company_id: :company_id },
32
+ proc { |klass, item_id| { companies: klass.company_id, sites: klass.id, orders: item_id } })
25
33
 
26
- has_one :product, Kounta::Product, {:company_id => :company_id}, lambda { |klass, item_id| {companies: klass.company_id, sites: klass.id, products: item_id} }
27
- has_one :category, Kounta::Category, {:company_id => :company_id}, lambda { |klass, item_id| {companies: klass.company_id, sites: klass.id, categories: item_id} }
28
- has_one :address, Kounta::Address, {:company_id => :company_id}, lambda { |klass, item_id| {companies: klass.company_id, sites: klass.id, addresses: item_id} }
29
- has_one :order, Kounta::Order, {:company_id => :company_id}, lambda { |klass, item_id| {companies: klass.company_id, sites: klass.id, orders: item_id} }
34
+ has_many(:products, Kounta::Product, { company_id: :company_id },
35
+ proc { |klass| { companies: klass.company_id, sites: klass.id, products: nil } })
36
+ has_many(:categories, Kounta::Category, { company_id: :company_id },
37
+ proc { |klass| { companies: klass.company_id, sites: klass.id, categories: nil } })
38
+ has_many(:addresses, Kounta::Address, { company_id: :company_id },
39
+ proc { |klass| { companies: klass.company_id, sites: klass.id, addresses: nil } })
40
+ has_many(:orders, Kounta::Order, { company_id: :company_id },
41
+ proc { |klass| { companies: klass.company_id, sites: klass.id, orders: nil } })
42
+ has_many(:inventory, Kounta::Inventory, { company_id: :company_id },
43
+ proc { |klass| { companies: klass.company_id, sites: klass.id, inventory: nil } })
44
+ has_many(:shifts_since, Kounta::Shift, { company_id: :company_id },
45
+ proc { |klass, date| { companies: klass.company_id, sites: klass.id, shifts: nil, since: Kounta.format_date(date) } })
30
46
 
31
- has_many :products, Kounta::Product, {:company_id => :company_id}, lambda { |klass| {companies: klass.company_id, sites: klass.id, products: nil} }
32
- has_many :categories, Kounta::Category, {:company_id => :company_id}, lambda { |klass| {companies: klass.company_id, sites: klass.id, categories: nil} }
33
- has_many :addresses, Kounta::Address, {:company_id => :company_id}, lambda { |klass| {companies: klass.company_id, sites: klass.id, addresses: nil} }
34
- has_many :orders, Kounta::Order, {:company_id => :company_id}, lambda { |klass| {companies: klass.company_id, sites: klass.id, orders: nil} }
35
- has_many :inventory, Kounta::Inventory, {:company_id => :company_id}, lambda { |klass| {companies: klass.company_id, sites: klass.id, inventory: nil} }
36
-
37
- def resource_path
38
- {companies: company_id, sites: id}
39
- end
40
-
41
- end
42
-
43
- end
47
+ def resource_path
48
+ { companies: company_id, sites: id }
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,30 @@
1
+ module Kounta
2
+ class Staff < Kounta::Resource
3
+ property :company_id
4
+ property :first_name
5
+ property :last_name
6
+ property :email
7
+ property :primary_email_address
8
+ property :email_addresses
9
+ property :phone
10
+ property :mobile
11
+ property :fax
12
+ property :shipping_address
13
+ property :postal_address
14
+ property :addresses
15
+ property :sites
16
+ property :permissions
17
+ property :image
18
+
19
+ def name
20
+ "#{first_name} #{last_name}"
21
+ end
22
+
23
+ has_many(:shifts_since, Kounta::Shift, { company_id: :company_id },
24
+ proc { |klass, date| { companies: klass.company_id, staff: klass.id, shifts: nil, since: Kounta.format_date(date) } })
25
+
26
+ def resource_path
27
+ { companies: company_id, staff: id }
28
+ end
29
+ end
30
+ end
data/lib/kounta/tax.rb CHANGED
@@ -1,10 +1,8 @@
1
1
  module Kounta
2
-
3
- class Tax < Kounta::Resource
4
- property :company_id
5
- property :code
6
- property :name
7
- property :rate
8
- end
9
-
10
- end
2
+ class Tax < Kounta::Resource
3
+ property :company_id
4
+ property :code
5
+ property :name
6
+ property :rate
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module Kounta
2
- VERSION = "0.1.7"
2
+ VERSION = '0.2.4'.freeze
3
3
  end
@@ -0,0 +1,16 @@
1
+ module Kounta
2
+ class Webhook < Kounta::Resource
3
+ property :id
4
+ property :company_id
5
+ property :topic
6
+ property :address
7
+ property :format
8
+ property :created_at
9
+ property :updated_at
10
+ property :filter
11
+
12
+ def resource_path
13
+ { companies: company_id, webhooks: id }
14
+ end
15
+ end
16
+ end
data/lib/kounta.rb CHANGED
@@ -1,79 +1,49 @@
1
- require_relative "kounta/version"
2
- require_relative "kounta/errors"
3
- require_relative "kounta/rest/client"
4
- require_relative "kounta/resource"
5
- require_relative "kounta/category"
6
- require_relative "kounta/tax"
7
- require_relative "kounta/product"
8
- require_relative "kounta/address"
9
- require_relative "kounta/payment"
10
- require_relative "kounta/line"
11
- require_relative "kounta/order"
12
- require_relative "kounta/person"
13
- require_relative "kounta/customer"
14
- require_relative "kounta/register"
15
- require_relative "kounta/price_list"
16
- require_relative "kounta/inventory"
17
- require_relative "kounta/site"
18
- require_relative "kounta/company"
1
+ require_relative 'kounta/version'
2
+ require_relative 'kounta/errors'
3
+ require_relative 'kounta/rest/client'
4
+ require_relative 'kounta/resource'
5
+ require_relative 'kounta/category'
6
+ require_relative 'kounta/tax'
7
+ require_relative 'kounta/product'
8
+ require_relative 'kounta/address'
9
+ require_relative 'kounta/payment'
10
+ require_relative 'kounta/line'
11
+ require_relative 'kounta/order'
12
+ require_relative 'kounta/person'
13
+ require_relative 'kounta/customer'
14
+ require_relative 'kounta/register'
15
+ require_relative 'kounta/price_list'
16
+ require_relative 'kounta/inventory'
17
+ require_relative 'kounta/break'
18
+ require_relative 'kounta/shift'
19
+ require_relative 'kounta/site'
20
+ require_relative 'kounta/staff'
21
+ require_relative 'kounta/webhook'
22
+
23
+ # require this one last as it depends on the rest
24
+ require_relative 'kounta/company'
19
25
 
20
26
  module Kounta
27
+ AUTHORIZATION_URI = 'https://my.kounta.com/authorize'.freeze
28
+ TOKEN_URI = 'https://api.kounta.com/v1/token.json'.freeze
29
+ SITE_URI = 'https://api.kounta.com/v1/'.freeze
30
+ FORMAT = :json
21
31
 
22
- AUTHORIZATION_URI = "https://my.kounta.com/authorize"
23
- TOKEN_URI = "https://api.kounta.com/v1/token.json"
24
- SITE_URI = "https://api.kounta.com/v1/"
25
- FORMAT = :json
32
+ def self.format_date(date)
33
+ date.respond_to?(:strftime) ? date.strftime('%Y-%m-%d') : date.to_s
34
+ end
26
35
 
27
- def self.log(message)
36
+ def self.log(_message); end
28
37
 
29
- end
38
+ def self.configure
39
+ yield self
40
+ end
30
41
 
31
- def self.root
32
- File.expand_path '../..', __FILE__
33
- end
42
+ def self.enable_logging=(value)
43
+ @enable_logging = value
44
+ end
34
45
 
35
- def self.configure
36
- yield self
37
- end
38
-
39
- def self.client_id= (value)
40
- @client_id = value
41
- end
42
-
43
- def self.client_id
44
- @client_id
45
- end
46
-
47
- def self.client_secret= (value)
48
- @client_secret = value
49
- end
50
-
51
- def self.client_secret
52
- @client_secret
53
- end
54
-
55
- def self.client_token= (value)
56
- @client_token = value
57
- end
58
-
59
- def self.client_token
60
- @client_token
61
- end
62
-
63
- def self.client_refresh_token= (value)
64
- @client_refresh_token = value
65
- end
66
-
67
- def self.client_refresh_token
68
- @client_refresh_token
69
- end
70
-
71
- def self.enable_logging= (value)
72
- @enable_logging = value
73
- end
74
-
75
- def self.enable_logging
76
- @enable_logging || false
77
- end
78
-
79
- end
46
+ def self.enable_logging
47
+ @enable_logging || false
48
+ end
49
+ end
metadata CHANGED
@@ -1,186 +1,191 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kounta_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Richardson
8
+ - Dave Allie
9
+ - Alex Ghiculescu
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2014-04-18 00:00:00.000000000 Z
13
+ date: 2018-06-07 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: bundler
15
17
  requirement: !ruby/object:Gem::Requirement
16
18
  requirements:
17
- - - ~>
19
+ - - "~>"
18
20
  - !ruby/object:Gem::Version
19
- version: '1.3'
21
+ version: '1.12'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
23
25
  requirements:
24
- - - ~>
26
+ - - "~>"
25
27
  - !ruby/object:Gem::Version
26
- version: '1.3'
28
+ version: '1.12'
27
29
  - !ruby/object:Gem::Dependency
28
- name: rake
30
+ name: pry
29
31
  requirement: !ruby/object:Gem::Requirement
30
32
  requirements:
31
- - - '>='
33
+ - - '='
32
34
  - !ruby/object:Gem::Version
33
- version: '0'
35
+ version: 0.9.12.2
34
36
  type: :development
35
37
  prerelease: false
36
38
  version_requirements: !ruby/object:Gem::Requirement
37
39
  requirements:
38
- - - '>='
40
+ - - '='
39
41
  - !ruby/object:Gem::Version
40
- version: '0'
42
+ version: 0.9.12.2
41
43
  - !ruby/object:Gem::Dependency
42
- name: rspec
44
+ name: rake
43
45
  requirement: !ruby/object:Gem::Requirement
44
46
  requirements:
45
- - - ~>
47
+ - - "~>"
46
48
  - !ruby/object:Gem::Version
47
- version: '2.14'
49
+ version: '10.0'
48
50
  type: :development
49
51
  prerelease: false
50
52
  version_requirements: !ruby/object:Gem::Requirement
51
53
  requirements:
52
- - - ~>
54
+ - - "~>"
53
55
  - !ruby/object:Gem::Version
54
- version: '2.14'
56
+ version: '10.0'
55
57
  - !ruby/object:Gem::Dependency
56
- name: simplecov
58
+ name: rspec
57
59
  requirement: !ruby/object:Gem::Requirement
58
60
  requirements:
59
- - - '='
61
+ - - "~>"
60
62
  - !ruby/object:Gem::Version
61
- version: 0.7.1
63
+ version: '3.0'
62
64
  type: :development
63
65
  prerelease: false
64
66
  version_requirements: !ruby/object:Gem::Requirement
65
67
  requirements:
66
- - - '='
68
+ - - "~>"
67
69
  - !ruby/object:Gem::Version
68
- version: 0.7.1
70
+ version: '3.0'
69
71
  - !ruby/object:Gem::Dependency
70
- name: webmock
72
+ name: rubocop
71
73
  requirement: !ruby/object:Gem::Requirement
72
74
  requirements:
73
- - - '='
75
+ - - "~>"
74
76
  - !ruby/object:Gem::Version
75
- version: 1.13.0
77
+ version: 0.56.0
76
78
  type: :development
77
79
  prerelease: false
78
80
  version_requirements: !ruby/object:Gem::Requirement
79
81
  requirements:
80
- - - '='
82
+ - - "~>"
81
83
  - !ruby/object:Gem::Version
82
- version: 1.13.0
84
+ version: 0.56.0
83
85
  - !ruby/object:Gem::Dependency
84
- name: oj
86
+ name: simplecov
85
87
  requirement: !ruby/object:Gem::Requirement
86
88
  requirements:
87
- - - ~>
89
+ - - '='
88
90
  - !ruby/object:Gem::Version
89
- version: 2.1.4
90
- type: :runtime
91
+ version: 0.7.1
92
+ type: :development
91
93
  prerelease: false
92
94
  version_requirements: !ruby/object:Gem::Requirement
93
95
  requirements:
94
- - - ~>
96
+ - - '='
95
97
  - !ruby/object:Gem::Version
96
- version: 2.1.4
98
+ version: 0.7.1
97
99
  - !ruby/object:Gem::Dependency
98
- name: hashie
100
+ name: webmock
99
101
  requirement: !ruby/object:Gem::Requirement
100
102
  requirements:
101
- - - ~>
103
+ - - "~>"
102
104
  - !ruby/object:Gem::Version
103
- version: 2.0.5
104
- type: :runtime
105
+ version: 3.0.0
106
+ type: :development
105
107
  prerelease: false
106
108
  version_requirements: !ruby/object:Gem::Requirement
107
109
  requirements:
108
- - - ~>
110
+ - - "~>"
109
111
  - !ruby/object:Gem::Version
110
- version: 2.0.5
112
+ version: 3.0.0
111
113
  - !ruby/object:Gem::Dependency
112
- name: oauth2
114
+ name: faraday_middleware
113
115
  requirement: !ruby/object:Gem::Requirement
114
116
  requirements:
115
- - - '='
117
+ - - "~>"
116
118
  - !ruby/object:Gem::Version
117
- version: 0.9.2
119
+ version: '0.9'
118
120
  type: :runtime
119
121
  prerelease: false
120
122
  version_requirements: !ruby/object:Gem::Requirement
121
123
  requirements:
122
- - - '='
124
+ - - "~>"
123
125
  - !ruby/object:Gem::Version
124
- version: 0.9.2
126
+ version: '0.9'
125
127
  - !ruby/object:Gem::Dependency
126
- name: pry
128
+ name: hashie
127
129
  requirement: !ruby/object:Gem::Requirement
128
130
  requirements:
129
- - - '='
131
+ - - ">="
130
132
  - !ruby/object:Gem::Version
131
- version: 0.9.12.2
133
+ version: '2'
134
+ - - "<"
135
+ - !ruby/object:Gem::Version
136
+ version: '4'
132
137
  type: :runtime
133
138
  prerelease: false
134
139
  version_requirements: !ruby/object:Gem::Requirement
135
140
  requirements:
136
- - - '='
141
+ - - ">="
137
142
  - !ruby/object:Gem::Version
138
- version: 0.9.12.2
143
+ version: '2'
144
+ - - "<"
145
+ - !ruby/object:Gem::Version
146
+ version: '4'
139
147
  - !ruby/object:Gem::Dependency
140
- name: yell
148
+ name: oauth2
141
149
  requirement: !ruby/object:Gem::Requirement
142
150
  requirements:
143
- - - '='
151
+ - - "~>"
144
152
  - !ruby/object:Gem::Version
145
- version: 1.5.1
153
+ version: '1'
146
154
  type: :runtime
147
155
  prerelease: false
148
156
  version_requirements: !ruby/object:Gem::Requirement
149
157
  requirements:
150
- - - '='
158
+ - - "~>"
151
159
  - !ruby/object:Gem::Version
152
- version: 1.5.1
160
+ version: '1'
153
161
  - !ruby/object:Gem::Dependency
154
- name: faraday_middleware
162
+ name: oj
155
163
  requirement: !ruby/object:Gem::Requirement
156
164
  requirements:
157
- - - '='
165
+ - - "~>"
158
166
  - !ruby/object:Gem::Version
159
- version: 0.9.0
167
+ version: '2'
160
168
  type: :runtime
161
169
  prerelease: false
162
170
  version_requirements: !ruby/object:Gem::Requirement
163
171
  requirements:
164
- - - '='
172
+ - - "~>"
165
173
  - !ruby/object:Gem::Version
166
- version: 0.9.0
174
+ version: '2'
167
175
  description: Library for accessing Kounta's RESTful API
168
176
  email:
169
177
  - sam@richardson.co.nz
178
+ - dave@tanda.co
179
+ - alex@tanda.co
170
180
  executables: []
171
181
  extensions: []
172
182
  extra_rdoc_files: []
173
183
  files:
174
- - .gitignore
175
- - .gitmodules
176
- - Gemfile
177
184
  - LICENSE.txt
178
185
  - README.md
179
- - Rakefile
180
- - console.rb
181
- - kounta.gemspec
182
186
  - lib/kounta.rb
183
187
  - lib/kounta/address.rb
188
+ - lib/kounta/break.rb
184
189
  - lib/kounta/category.rb
185
190
  - lib/kounta/company.rb
186
191
  - lib/kounta/customer.rb
@@ -195,48 +200,13 @@ files:
195
200
  - lib/kounta/register.rb
196
201
  - lib/kounta/resource.rb
197
202
  - lib/kounta/rest/client.rb
203
+ - lib/kounta/shift.rb
198
204
  - lib/kounta/site.rb
205
+ - lib/kounta/staff.rb
199
206
  - lib/kounta/tax.rb
200
207
  - lib/kounta/version.rb
201
- - spec/fixtures/address.json
202
- - spec/fixtures/addresses.json
203
- - spec/fixtures/base_price_list.json
204
- - spec/fixtures/categories.json
205
- - spec/fixtures/category.json
206
- - spec/fixtures/companies_me.json
207
- - spec/fixtures/customer.json
208
- - spec/fixtures/customers.json
209
- - spec/fixtures/inventory.json
210
- - spec/fixtures/line.json
211
- - spec/fixtures/order.json
212
- - spec/fixtures/orders.json
213
- - spec/fixtures/payment.json
214
- - spec/fixtures/people.json
215
- - spec/fixtures/person.json
216
- - spec/fixtures/price_list.json
217
- - spec/fixtures/price_lists.json
218
- - spec/fixtures/product.json
219
- - spec/fixtures/products.json
220
- - spec/fixtures/site.json
221
- - spec/fixtures/sites.json
222
- - spec/fixtures/tax.json
223
- - spec/fixtures/taxes.json
224
- - spec/helper.rb
225
- - spec/kounta/address_spec.rb
226
- - spec/kounta/category_spec.rb
227
- - spec/kounta/company_spec.rb
228
- - spec/kounta/customer_spec.rb
229
- - spec/kounta/kounta_spec.rb
230
- - spec/kounta/line_spec.rb
231
- - spec/kounta/order_spec.rb
232
- - spec/kounta/payment_spec.rb
233
- - spec/kounta/person_spec.rb
234
- - spec/kounta/product_spec.rb
235
- - spec/kounta/resource_spec.rb
236
- - spec/kounta/rest/client_spec.rb
237
- - spec/kounta/site_spec.rb
238
- - spec/support/endpoints.rb
239
- homepage: https://github.com/Rodeoclash/Kounta
208
+ - lib/kounta/webhook.rb
209
+ homepage: https://github.com/TandaHQ/Kounta
240
210
  licenses:
241
211
  - MIT
242
212
  metadata: {}
@@ -246,56 +216,18 @@ require_paths:
246
216
  - lib
247
217
  required_ruby_version: !ruby/object:Gem::Requirement
248
218
  requirements:
249
- - - '>='
219
+ - - ">="
250
220
  - !ruby/object:Gem::Version
251
221
  version: '0'
252
222
  required_rubygems_version: !ruby/object:Gem::Requirement
253
223
  requirements:
254
- - - '>='
224
+ - - ">="
255
225
  - !ruby/object:Gem::Version
256
226
  version: '0'
257
227
  requirements: []
258
228
  rubyforge_project:
259
- rubygems_version: 2.0.3
229
+ rubygems_version: 2.6.8
260
230
  signing_key:
261
231
  specification_version: 4
262
232
  summary: A wrapper around Kounta's RESTful API
263
- test_files:
264
- - spec/fixtures/address.json
265
- - spec/fixtures/addresses.json
266
- - spec/fixtures/base_price_list.json
267
- - spec/fixtures/categories.json
268
- - spec/fixtures/category.json
269
- - spec/fixtures/companies_me.json
270
- - spec/fixtures/customer.json
271
- - spec/fixtures/customers.json
272
- - spec/fixtures/inventory.json
273
- - spec/fixtures/line.json
274
- - spec/fixtures/order.json
275
- - spec/fixtures/orders.json
276
- - spec/fixtures/payment.json
277
- - spec/fixtures/people.json
278
- - spec/fixtures/person.json
279
- - spec/fixtures/price_list.json
280
- - spec/fixtures/price_lists.json
281
- - spec/fixtures/product.json
282
- - spec/fixtures/products.json
283
- - spec/fixtures/site.json
284
- - spec/fixtures/sites.json
285
- - spec/fixtures/tax.json
286
- - spec/fixtures/taxes.json
287
- - spec/helper.rb
288
- - spec/kounta/address_spec.rb
289
- - spec/kounta/category_spec.rb
290
- - spec/kounta/company_spec.rb
291
- - spec/kounta/customer_spec.rb
292
- - spec/kounta/kounta_spec.rb
293
- - spec/kounta/line_spec.rb
294
- - spec/kounta/order_spec.rb
295
- - spec/kounta/payment_spec.rb
296
- - spec/kounta/person_spec.rb
297
- - spec/kounta/product_spec.rb
298
- - spec/kounta/resource_spec.rb
299
- - spec/kounta/rest/client_spec.rb
300
- - spec/kounta/site_spec.rb
301
- - spec/support/endpoints.rb
233
+ test_files: []
data/.gitignore DELETED
@@ -1,20 +0,0 @@
1
- .DS_Store
2
- *.gem
3
- *.rbc
4
- .bundle
5
- .config
6
- .yardoc
7
- Gemfile.lock
8
- InstalledFiles
9
- _yardoc
10
- coverage
11
- doc/
12
- lib/bundler/man
13
- pkg
14
- rdoc
15
- spec/reports
16
- test/tmp
17
- test/version_tmp
18
- tmp
19
- .rspec
20
- tokens.yml
data/.gitmodules DELETED
@@ -1,3 +0,0 @@
1
- [submodule "spec/fixtures"]
2
- path = spec/fixtures
3
- url = git@github.com:Rodeoclash/Kounta-Fixtures.git