Module: LedgerSync::Xero

Defined in:
lib/ledger_sync/xero.rb,
lib/ledger_sync/xero/client.rb,
lib/ledger_sync/xero/request.rb,
lib/ledger_sync/xero/version.rb,
lib/ledger_sync/xero/resource.rb,
lib/ledger_sync/xero/operation.rb,
lib/ledger_sync/xero/serializer.rb,
lib/ledger_sync/xero/deserializer.rb,
lib/ledger_sync/xero/oauth_client.rb,
lib/ledger_sync/xero/operation/find.rb,
lib/ledger_sync/xero/operation/create.rb,
lib/ledger_sync/xero/operation/update.rb,
lib/ledger_sync/xero/resources/contact.rb,
lib/ledger_sync/xero/contact/serializer.rb,
lib/ledger_sync/xero/contact/deserializer.rb,
lib/ledger_sync/xero/contact/operations/find.rb,
lib/ledger_sync/xero/contact/operations/create.rb,
lib/ledger_sync/xero/contact/operations/update.rb

Defined Under Namespace

Classes: Client, Contact, Deserializer, OAuthClient, Operation, Request, Resource, Serializer

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.root(*paths) ⇒ Object



7
8
9
# File 'lib/ledger_sync/xero.rb', line 7

def self.root(*paths)
  File.join(File.expand_path('../..', __dir__), *paths.map(&:to_s))
end

.version(args = {}) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/ledger_sync/xero/version.rb', line 8

def self.version(args = {})
  pre = args.fetch(:pre, false)

  if !pre && (!ENV['TRAVIS'] || ENV.fetch('TRAVIS_TAG', '') != '')
    VERSION
  else
    "#{VERSION}.pre.#{ENV['TRAVIS_BUILD_NUMBER']}"
  end
end