tfso 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +62 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/tfso.rb +8 -0
- data/lib/tfso/authentication.rb +43 -0
- data/lib/tfso/company.rb +107 -0
- data/lib/tfso/helpers.rb +26 -0
- data/lib/tfso/invoice.rb +111 -0
- data/lib/tfso/payment.rb +19 -0
- data/lib/tfso/product.rb +35 -0
- data/lib/tfso/version.rb +3 -0
- data/tfso.gemspec +28 -0
- metadata +117 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8e84e4419a9837d5aefce99cefe5f229a159f48e
|
4
|
+
data.tar.gz: 7d9aa4955e980c00298d908c24dee2acefd9f846
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: '00429c76a3c2cb3ff745cdbf225514f62434e970bc80c1bddc1d3a05edf0b6d69e2e40fd0d52554ffad737f549fc44b2db2b89a310d7ea913cfc8504d660d1e9'
|
7
|
+
data.tar.gz: 4c4aa109410db98c8d55b5870ac2e76c9f609ecaf5a64958fe5bb632fb119bbdcad2dd2c79acf56dfefa05cff29b6cc797f89bf3a5adcb77c378befef7f31e91
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Espen Antonsen
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
# 24SevenOffice Ruby API wrapper
|
2
|
+
|
3
|
+
Please see https://24SevenOffice.com for more information. API Documentation can be found at http://developer.24sevenoffice.com.
|
4
|
+
|
5
|
+
You need an ApplicationID from 24SevenOffice to use the API in addition to API credentials.
|
6
|
+
|
7
|
+
Sorry for the lack of tests. It was a bit tedious to modify internal tests with sensitive responses to this gem.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'tfso'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install tfso
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
```
|
28
|
+
tfso_auth = TFSO::Authentication.new(APPLICATION_ID)
|
29
|
+
tfso_auth.authenticate(
|
30
|
+
USERNAME,
|
31
|
+
PASSWORD,
|
32
|
+
IDENTIDY_ID
|
33
|
+
)
|
34
|
+
puts tfso_auth.identities
|
35
|
+
|
36
|
+
tfso_company = TFSO::Company.new(tfso_auth)
|
37
|
+
company_attributes = {
|
38
|
+
name: 'Inspired AS',
|
39
|
+
email: 'espen@inspired.no',
|
40
|
+
tfso: {
|
41
|
+
DistributionMethod: 'EMail'
|
42
|
+
}
|
43
|
+
}
|
44
|
+
company = tfso_company.create( tfso_company.transform_attributes(company_attributes) )
|
45
|
+
puts company[:id]
|
46
|
+
```
|
47
|
+
|
48
|
+
## Development
|
49
|
+
|
50
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
51
|
+
|
52
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
53
|
+
|
54
|
+
When using this gem in a Rails project within the development environment it is set up to use a local proxy at http://localhost:8080 to inspect traffic. A local proxy can be set up using https://mitmproxy.org.
|
55
|
+
|
56
|
+
## Contributing
|
57
|
+
|
58
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/espen/tfso.
|
59
|
+
|
60
|
+
## License
|
61
|
+
|
62
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "tfso"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/tfso.rb
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
module TFSO
|
2
|
+
|
3
|
+
class Authentication
|
4
|
+
|
5
|
+
include TFSO::Helpers
|
6
|
+
|
7
|
+
URL = 'https://api.24sevenoffice.com/authenticate/v001/authenticate.asmx?wsdl'
|
8
|
+
|
9
|
+
attr_accessor :application_id
|
10
|
+
|
11
|
+
def initialize(application_id)
|
12
|
+
@application_id = application_id
|
13
|
+
intialize_savon_client
|
14
|
+
end
|
15
|
+
|
16
|
+
def authenticated?
|
17
|
+
response = savon_client.call(:has_session, cookies: @cookies )
|
18
|
+
response.body[:has_session_response][:has_session_result]
|
19
|
+
end
|
20
|
+
|
21
|
+
def authenticate(username, password, identity_id = nil)
|
22
|
+
response = savon_client.call(:login, message: { credential: {Username: username, Password: password, IdentityId: identity_id, ApplicationId: application_id} })
|
23
|
+
self.session_id = response.body[:login_response][:login_result]
|
24
|
+
end
|
25
|
+
|
26
|
+
def identities
|
27
|
+
response = savon_client.call(:get_identities, cookies: @cookies )
|
28
|
+
response.body[:get_identities_response][:get_identities_result].first.last
|
29
|
+
end
|
30
|
+
|
31
|
+
def identity_id
|
32
|
+
response = savon_client.call(:get_identity, cookies: @cookies)
|
33
|
+
response.body[:get_identity_response][:get_identity_result][:id]
|
34
|
+
end
|
35
|
+
|
36
|
+
def identity_id=(identity_id)
|
37
|
+
response = savon_client.call(:set_identity_by_id, message: {identityId: identity_id}, cookies: @cookies)
|
38
|
+
@identity_id = identity_id
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
data/lib/tfso/company.rb
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
module TFSO
|
2
|
+
class Company
|
3
|
+
|
4
|
+
include TFSO::Helpers
|
5
|
+
|
6
|
+
URL = 'https://api.24sevenoffice.com/CRM/Company/V001/CompanyService.asmx?wsdl'
|
7
|
+
|
8
|
+
def initialize(auth)
|
9
|
+
self.session_id = auth.session_id
|
10
|
+
intialize_savon_client
|
11
|
+
end
|
12
|
+
|
13
|
+
def find(search_params)
|
14
|
+
response = savon_client.call(:get_companies, message: {searchParams: search_params, returnProperties: {string: ['Id', 'OrganizationNumber', 'NickName', 'Country', 'Addresses', 'EmailAddresses', 'PhoneNumbers', 'InvoiceLanguage', 'TypeGroup', 'DistributionMethod', 'Currency'] } }, cookies: @cookies)
|
15
|
+
result = response.body[:get_companies_response][:get_companies_result]
|
16
|
+
if result
|
17
|
+
if result[:company].class == Hash
|
18
|
+
[result[:company]]
|
19
|
+
else
|
20
|
+
result[:company]
|
21
|
+
end
|
22
|
+
else
|
23
|
+
[]
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def find_by_id(id)
|
28
|
+
if company = find(CompanyId: id)
|
29
|
+
company.first
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def find_by_name(name)
|
34
|
+
find(CompanyName: name)
|
35
|
+
end
|
36
|
+
|
37
|
+
def create(company_info)
|
38
|
+
response = savon_client.call(:save_companies, message: {companies: [{Company: company_info}] }, cookies: @cookies)
|
39
|
+
result = response.body[:save_companies_response][:save_companies_result]
|
40
|
+
if result
|
41
|
+
if result[:company].class == Hash
|
42
|
+
if result[:company][:api_exception]
|
43
|
+
raise "Error when saving tfso company"
|
44
|
+
else
|
45
|
+
result[:company]
|
46
|
+
end
|
47
|
+
else
|
48
|
+
result[:company]
|
49
|
+
end
|
50
|
+
else
|
51
|
+
false
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
def transform_attributes(company)
|
56
|
+
if company[:billing_id]
|
57
|
+
company[:id] = company.delete(:billing_id)
|
58
|
+
else
|
59
|
+
company[:Type] = 'Business'
|
60
|
+
end
|
61
|
+
if company[:billing_name]
|
62
|
+
company[:nickname] = company.delete(:name)
|
63
|
+
company[:name] = company.delete(:billing_name)
|
64
|
+
end
|
65
|
+
if company[:billing_email]
|
66
|
+
company[:EmailAddresses] = {:Invoice => {
|
67
|
+
:Value => company.delete(:billing_email)
|
68
|
+
}
|
69
|
+
}
|
70
|
+
end
|
71
|
+
if company[:email]
|
72
|
+
company[:EmailAddresses] = {:Work => {
|
73
|
+
:Value => company.delete(:email)
|
74
|
+
}
|
75
|
+
}
|
76
|
+
end
|
77
|
+
if company[:phone_number]
|
78
|
+
company[:PhoneNumbers] = {:Work => {
|
79
|
+
:Value => company.delete(:phone_number)
|
80
|
+
}
|
81
|
+
}
|
82
|
+
end
|
83
|
+
if company[:billing_address]
|
84
|
+
company[:Addresses] = {:Invoice => {
|
85
|
+
:Name => company.delete(:billing_name) || company[:name],
|
86
|
+
:Street => company.delete(:billing_street),
|
87
|
+
:PostalCode => company.delete(:billing_postal_code),
|
88
|
+
:PostalArea => company.delete(:billing_city),
|
89
|
+
:State => company.delete(:billing_state),
|
90
|
+
:Country => company.delete(:billing_country_code)
|
91
|
+
}
|
92
|
+
}
|
93
|
+
company.delete(:billing_address)
|
94
|
+
end
|
95
|
+
if company[:tfso]
|
96
|
+
company[:tfso].keys.each{|k| company[k] = company[:tfso].delete(k) }
|
97
|
+
company.delete(:tfso)
|
98
|
+
end
|
99
|
+
|
100
|
+
mappings = {:name => :Name, :nickname => :NickName, :gov_no => :OrganizationNumber, :country_code => :Country}
|
101
|
+
|
102
|
+
company.keys.each { |k| company[ mappings[k] ] = company.delete(k) if mappings[k] }
|
103
|
+
company
|
104
|
+
end
|
105
|
+
|
106
|
+
end
|
107
|
+
end
|
data/lib/tfso/helpers.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
module TFSO
|
2
|
+
|
3
|
+
module Helpers
|
4
|
+
def intialize_savon_client
|
5
|
+
@savon_client = Savon.client(wsdl: self.class::URL, convert_request_keys_to: :none)
|
6
|
+
if defined?(Rails) && Rails.env.development?
|
7
|
+
@savon_client.globals.proxy('http://localhost:8080')
|
8
|
+
@savon_client.globals.ssl_verify_mode(:none)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def savon_client
|
13
|
+
@savon_client
|
14
|
+
end
|
15
|
+
|
16
|
+
def session_id
|
17
|
+
@session_id
|
18
|
+
end
|
19
|
+
|
20
|
+
def session_id=(session_id)
|
21
|
+
@session_id = session_id
|
22
|
+
@cookies = [HTTPI::Cookie.new("ASP.NET_SessionId=#{@session_id}")]
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
data/lib/tfso/invoice.rb
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
module TFSO
|
2
|
+
class Invoice
|
3
|
+
|
4
|
+
include TFSO::Helpers
|
5
|
+
|
6
|
+
URL = 'https://api.24sevenoffice.com/Economy/InvoiceOrder/V001/InvoiceService.asmx?wsdl'
|
7
|
+
|
8
|
+
def initialize(auth)
|
9
|
+
self.session_id = auth.session_id
|
10
|
+
intialize_savon_client
|
11
|
+
end
|
12
|
+
|
13
|
+
def find(search_params)
|
14
|
+
response = savon_client.call(:get_invoices, message: {searchParams: search_params, invoiceReturnProperties: {string: ['OrderId', 'InvoiceId', 'CustomerId', 'OrderStatus', 'DateOrdered', 'DateInvoiced', 'PaymentTime', 'CustomerReferenceNo', 'IncludeVAT', 'YourReference', 'OrderTotalIncVat', 'OrderTotalVat', 'InvoiceTitle', 'InvoiceText', 'Paid', 'Currency', 'PaymentMethodId', 'PaymentAmount', 'TypeOfSaleId', 'Distributor', 'DistributionMethod', 'InvoiceEmailAddress']}, rowReturnProperties: {string: ['ProductId', 'VatRate', 'Price', 'Name', 'DiscountRate', 'Quantity']} }, cookies: @cookies)
|
15
|
+
result = response.body[:get_invoices_response][:get_invoices_result]
|
16
|
+
if result
|
17
|
+
if result[:invoice_order].class == Hash
|
18
|
+
[result[:invoice_order]]
|
19
|
+
else
|
20
|
+
result[:invoice_order]
|
21
|
+
end
|
22
|
+
else
|
23
|
+
[]
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def find_by_invoice_id(id)
|
28
|
+
if invoice = find(InvoiceIds: {int: [id]})
|
29
|
+
invoice.first
|
30
|
+
else
|
31
|
+
false
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def find_by_order_id(id)
|
36
|
+
if invoice = find(OrderIds: {int: [id]})
|
37
|
+
invoice.first
|
38
|
+
else
|
39
|
+
false
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def create(invoice, items)
|
44
|
+
response = savon_client.call(:save_invoices, message: {invoices: [{InvoiceOrder: transform_attributes(invoice, items) }] }, cookies: @cookies)
|
45
|
+
response.body[:save_invoices_response][:save_invoices_result][:invoice_order]
|
46
|
+
end
|
47
|
+
|
48
|
+
private
|
49
|
+
|
50
|
+
def transform_attributes(invoice, items)
|
51
|
+
state = case invoice[:state]
|
52
|
+
when :invoice
|
53
|
+
'Invoiced'
|
54
|
+
when :draft
|
55
|
+
'Offer'
|
56
|
+
else
|
57
|
+
'Offer'
|
58
|
+
end
|
59
|
+
invoice_info = {
|
60
|
+
OrderStatus: state,
|
61
|
+
DateOrdered: Time.zone.today.iso8601,
|
62
|
+
CustomerId: invoice[:customer_id],
|
63
|
+
CustomerName: invoice[:customer_name],
|
64
|
+
CustomerOrgNo: invoice[:customer_gov_no],
|
65
|
+
InvoiceEmailAddress: invoice[:customer_email],
|
66
|
+
InvoiceRows: []
|
67
|
+
}
|
68
|
+
if invoice[:currency]
|
69
|
+
invoice_info[:TypeOfSaleId] = -98
|
70
|
+
invoice_info[:Currency] = {
|
71
|
+
Symbol: invoice[:currency],
|
72
|
+
Rate: invoice[:currency_rate].to_f,
|
73
|
+
}
|
74
|
+
invoice_info[:PaymentTime] = 0
|
75
|
+
else
|
76
|
+
invoice_info[:TypeOfSaleId] = -100
|
77
|
+
invoice_info[:PaymentTime] = 7
|
78
|
+
end
|
79
|
+
invoice_info[:InvoiceTitle] = invoice[:title] if invoice[:title]
|
80
|
+
invoice_info[:InvoiceText] = invoice[:description] if invoice[:description]
|
81
|
+
invoice_info[:YourReference] = invoice[:order_ref]
|
82
|
+
|
83
|
+
invoice_info[:Distributor] = invoice[:distributor] if invoice[:distributor]
|
84
|
+
invoice_info[:DistributionMethod] = invoice[:distribution_method] if invoice[:distribution_method]
|
85
|
+
|
86
|
+
invoice[:Addresses] = {
|
87
|
+
Invoice: {
|
88
|
+
:Street => invoice[:customer_street],
|
89
|
+
:PostalCode => invoice[:customer_postal_code],
|
90
|
+
:PostalArea => invoice[:customer_city],
|
91
|
+
:State => invoice[:customer_state],
|
92
|
+
:Country => invoice[:customer_country_code]
|
93
|
+
}
|
94
|
+
}
|
95
|
+
if items.any?
|
96
|
+
invoiceRows = []
|
97
|
+
items.each {|item|
|
98
|
+
invoiceRows << {
|
99
|
+
ProductId: item[:product_id],
|
100
|
+
Name: item[:description],
|
101
|
+
Price: item[:price].to_f,
|
102
|
+
Quantity: item[:quantity].to_f
|
103
|
+
}
|
104
|
+
}
|
105
|
+
invoice_info[:InvoiceRows] = { :InvoiceRow => invoiceRows }
|
106
|
+
end
|
107
|
+
invoice_info
|
108
|
+
end
|
109
|
+
|
110
|
+
end
|
111
|
+
end
|
data/lib/tfso/payment.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
module TFSO
|
2
|
+
class Payment
|
3
|
+
|
4
|
+
include TFSO::Helpers
|
5
|
+
|
6
|
+
URL = 'https://api.24sevenoffice.com/Economy/InvoiceOrder/V001/PaymentService.asmx?WSDL'
|
7
|
+
|
8
|
+
def initialize(auth)
|
9
|
+
self.session_id = auth.session_id
|
10
|
+
intialize_savon_client
|
11
|
+
end
|
12
|
+
|
13
|
+
def create(payment_info)
|
14
|
+
response = savon_client.call(:register_invoice_payment, message: {payment: payment_info }, cookies: @cookies)
|
15
|
+
response.body[:register_invoice_payment_response][:register_invoice_payment_result]
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
data/lib/tfso/product.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
module TFSO
|
2
|
+
class Product
|
3
|
+
|
4
|
+
include TFSO::Helpers
|
5
|
+
|
6
|
+
URL = 'https://api.24sevenoffice.com/Logistics/Product/V001/ProductService.asmx?WSDL'
|
7
|
+
|
8
|
+
def initialize(auth)
|
9
|
+
self.session_id = auth.session_id
|
10
|
+
intialize_savon_client
|
11
|
+
end
|
12
|
+
|
13
|
+
def find(search_params)
|
14
|
+
response = savon_client.call(:get_products, message: {searchParams: search_params, returnProperties: {string: ['Id', 'Name', 'Price'] } }, cookies: @cookies)
|
15
|
+
result = response.body[:get_products_response][:get_products_result]
|
16
|
+
if result
|
17
|
+
if result[:product].class == Hash
|
18
|
+
[result[:product]]
|
19
|
+
else
|
20
|
+
result[:product]
|
21
|
+
end
|
22
|
+
else
|
23
|
+
[]
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def find_by_id(id)
|
28
|
+
if product = find(Id: id)
|
29
|
+
product.first
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
data/lib/tfso/version.rb
ADDED
data/tfso.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "tfso/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "tfso"
|
8
|
+
spec.version = TFSO::VERSION
|
9
|
+
spec.authors = ["Espen Antonsen"]
|
10
|
+
spec.email = ["espen@inspired.no"]
|
11
|
+
|
12
|
+
spec.summary = %q{Ruby API Wrapper for 24SevenOffice.}
|
13
|
+
spec.homepage = "https://github.com/espen/tfso"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
+
f.match(%r{^(test|spec|features)/})
|
18
|
+
end
|
19
|
+
spec.bindir = "exe"
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
+
spec.require_paths = ["lib"]
|
22
|
+
|
23
|
+
spec.add_dependency "savon"
|
24
|
+
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tfso
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Espen Antonsen
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: savon
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.15'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.15'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '5.0'
|
69
|
+
description:
|
70
|
+
email:
|
71
|
+
- espen@inspired.no
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".travis.yml"
|
78
|
+
- Gemfile
|
79
|
+
- LICENSE.txt
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- bin/console
|
83
|
+
- bin/setup
|
84
|
+
- lib/tfso.rb
|
85
|
+
- lib/tfso/authentication.rb
|
86
|
+
- lib/tfso/company.rb
|
87
|
+
- lib/tfso/helpers.rb
|
88
|
+
- lib/tfso/invoice.rb
|
89
|
+
- lib/tfso/payment.rb
|
90
|
+
- lib/tfso/product.rb
|
91
|
+
- lib/tfso/version.rb
|
92
|
+
- tfso.gemspec
|
93
|
+
homepage: https://github.com/espen/tfso
|
94
|
+
licenses:
|
95
|
+
- MIT
|
96
|
+
metadata: {}
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
requirements: []
|
112
|
+
rubyforge_project:
|
113
|
+
rubygems_version: 2.6.13
|
114
|
+
signing_key:
|
115
|
+
specification_version: 4
|
116
|
+
summary: Ruby API Wrapper for 24SevenOffice.
|
117
|
+
test_files: []
|