Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 39c7aed

Browse files
committed
Merge pull request #1 from Sage/add_travis
add Travis CI
2 parents 749ef2b + 61c5bdd commit 39c7aed

File tree

20 files changed

+81
-5
lines changed

20 files changed

+81
-5
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: ruby
2+
rvm:
3+
- 2.3.0
4+
- 2.2.4
5+
- 2.2.3
6+
- 2.2.1
7+
- 2.2.0
8+
- 2.1.8
9+
- 2.1.7
10+
- 2.1.6
11+
- 2.1.5
12+
- 2.1.4
13+
- 2.1.3
14+
- 2.1.1
15+
- 2.0.0

Fudgefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
task_group :spec do
2+
rspec :coverage => 80
3+
end
4+
5+
task_group :docs do
6+
task :yard, :coverage => 68
7+
end
8+
9+
task_group :codestyle do
10+
task :cane, :max_width => 120
11+
end
12+
13+
task_group :duplication do
14+
task :flay, :exclude => '^\.\/spec\/'
15+
end
16+
17+
task_group :complexity do
18+
task :flog, :exclude => '^\.\/spec\/', :methods => true
19+
end
20+
21+
build :default do
22+
task_group :docs
23+
task_group :codestyle
24+
task_group :complexity
25+
task_group :duplication
26+
task_group :spec
27+
end

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SageoneSdk
22

3+
[![Build Status](https://travis-ci.org/Sage/sageone_api_ruby_sdk.svg?branch=master)](https://travis-ci.org/Sage/sageone_api_ruby_sdk)
4+
35
The `sageone_sdk` gem provides Ruby methods for accessing the Sage One API endpoints.
46

57
## Installation

Rakefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
require "bundler/gem_tasks"
1+
require 'bundler/gem_tasks'
2+
require 'rspec/core/rake_task'
3+
RSpec::Core::RakeTask.new(:spec)
24

5+
task :default => :fudge
6+
7+
# Test Fudge using Fudge
8+
task :fudge do
9+
exec 'fudge build 2> /dev/null'
10+
end

fudge_settings.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
flay:
2+
max: 498
3+
flog:
4+
max: 28
5+
average: 5.5

lib/sageone_sdk.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require "sageone_sdk/client"
22
require "sageone_sdk/default"
3-
3+
# SageoneSdk
44
module SageoneSdk
55
autoload :SDataResponse, "sageone_sdk/sdata_response"
66
class << self

lib/sageone_sdk/authentication.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module SageoneSdk
2+
# Authentication
23
module Authentication
34
def token_authenticated?
45
!!@access_token

lib/sageone_sdk/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
require "sageone_sdk/client/transactions"
2929

3030
module SageoneSdk
31+
# Client
3132
class Client
3233
include SageoneSdk::Authentication
3334
include SageoneSdk::Configurable

lib/sageone_sdk/client/chart_of_accounts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module SageoneSdk
22
class Client
33

4-
# Represents the chart of accounts. This is a list
4+
# Represents the chart of accounts. This is a list
55
# of all of the accounts used by your business. It defines the structure
66
# of your income, expenditure, assets, liabilities and capital when
77
# running your management reports.

lib/sageone_sdk/client/expenditures.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module SageoneSdk
22
class Client
3+
# Expenditures
34
module Expenditures
45
def expenditures(options = {})
56
paginate "expenditures", options

0 commit comments

Comments
 (0)