myob-essentials-api 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11e3b86876568aa61bff577a0843a04ab3ef3595
4
- data.tar.gz: d394f5559b06038a4a2d65cc9f965e529469e040
3
+ metadata.gz: 19bf27589197f0e6f80c97310713caf6638b2bb7
4
+ data.tar.gz: 8ee7c99464ab4606e583296a4222282e5c6b75ca
5
5
  SHA512:
6
- metadata.gz: e7d96c886395485c5ae9abf13ab644a720834114f3eeb13219ba55942fcbe3ff74301f5e834f19d336363d51018686f2149a0a732450f5b2fff3b230ddfa03a6
7
- data.tar.gz: 19e4075bc5bf100903a4d79d8a32f9814baf43311fa11e5448ed08fd9913e91d7b929f826a1434d9de6fc7bbf27c235abda4eb4863de87d56668411f2b63440d
6
+ metadata.gz: 6347880d48dc4974ab111c5fb13667c6315668494074f3270c49e2b98c20621f92a9364ccbf0497b4823d30eb4c732cfc52a2f9531bf3b5d522e574f9b24fdcb
7
+ data.tar.gz: cfe2f11d97b6ec3e35a0c9d68e6abf3e70645051cfe67b117ad1cf2dbd4de7418f3a88e940594fdfd31d53e6a69c0d483ee150698c386484f15d13ab78e308fc
data/Gemfile CHANGED
@@ -4,11 +4,11 @@ gem "oauth2"
4
4
 
5
5
  group :development do
6
6
  gem "jeweler"
7
- gem "simplecov"
8
7
  end
9
8
 
10
9
  group :test do
11
10
  gem "rspec"
12
11
  gem "webmock"
13
12
  gem "timecop"
13
+ gem "simplecov", :require => false
14
14
  end
@@ -1,28 +1,28 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- addressable (2.3.6)
4
+ addressable (2.4.0)
5
5
  builder (3.2.2)
6
- crack (0.4.2)
6
+ crack (0.4.3)
7
7
  safe_yaml (~> 1.0.0)
8
8
  descendants_tracker (0.0.4)
9
9
  thread_safe (~> 0.3, >= 0.3.1)
10
10
  diff-lcs (1.2.5)
11
11
  docile (1.1.5)
12
- faraday (0.9.1)
12
+ faraday (0.9.2)
13
13
  multipart-post (>= 1.2, < 3)
14
- git (1.2.9.1)
15
- github_api (0.12.2)
16
- addressable (~> 2.3)
14
+ git (1.3.0)
15
+ github_api (0.13.1)
16
+ addressable (~> 2.4.0)
17
17
  descendants_tracker (~> 0.0.4)
18
18
  faraday (~> 0.8, < 0.10)
19
- hashie (>= 3.3)
19
+ hashie (>= 3.4)
20
20
  multi_json (>= 1.7.5, < 2.0)
21
- nokogiri (~> 1.6.3)
22
21
  oauth2
23
- hashie (3.3.2)
24
- highline (1.6.21)
25
- jeweler (2.0.1)
22
+ hashdiff (0.3.0)
23
+ hashie (3.4.4)
24
+ highline (1.7.8)
25
+ jeweler (2.1.1)
26
26
  builder
27
27
  bundler (>= 1.0)
28
28
  git (>= 1.2.5)
@@ -31,47 +31,54 @@ GEM
31
31
  nokogiri (>= 1.5.10)
32
32
  rake
33
33
  rdoc
34
- jwt (1.2.1)
35
- mini_portile (0.6.2)
36
- multi_json (1.10.1)
34
+ semver
35
+ json (1.8.3)
36
+ json (1.8.3-java)
37
+ jwt (1.5.1)
38
+ mini_portile2 (2.0.0)
39
+ multi_json (1.12.1)
37
40
  multi_xml (0.5.5)
38
41
  multipart-post (2.0.0)
39
- nokogiri (1.6.6.2)
40
- mini_portile (~> 0.6.0)
41
- nokogiri (1.6.6.2-java)
42
- oauth2 (1.0.0)
42
+ nokogiri (1.6.7.2)
43
+ mini_portile2 (~> 2.0.0.rc2)
44
+ nokogiri (1.6.7.2-java)
45
+ oauth2 (1.1.0)
43
46
  faraday (>= 0.8, < 0.10)
44
- jwt (~> 1.0)
47
+ jwt (~> 1.0, < 1.5.2)
45
48
  multi_json (~> 1.3)
46
49
  multi_xml (~> 0.5)
47
- rack (~> 1.2)
48
- rack (1.6.0)
49
- rake (10.4.2)
50
- rdoc (4.2.0)
51
- rspec (3.1.0)
52
- rspec-core (~> 3.1.0)
53
- rspec-expectations (~> 3.1.0)
54
- rspec-mocks (~> 3.1.0)
55
- rspec-core (3.1.7)
56
- rspec-support (~> 3.1.0)
57
- rspec-expectations (3.1.2)
50
+ rack (>= 1.2, < 3)
51
+ rack (1.6.4)
52
+ rake (11.1.2)
53
+ rdoc (4.2.2)
54
+ json (~> 1.4)
55
+ rspec (3.4.0)
56
+ rspec-core (~> 3.4.0)
57
+ rspec-expectations (~> 3.4.0)
58
+ rspec-mocks (~> 3.4.0)
59
+ rspec-core (3.4.4)
60
+ rspec-support (~> 3.4.0)
61
+ rspec-expectations (3.4.0)
58
62
  diff-lcs (>= 1.2.0, < 2.0)
59
- rspec-support (~> 3.1.0)
60
- rspec-mocks (3.1.3)
61
- rspec-support (~> 3.1.0)
62
- rspec-support (3.1.2)
63
+ rspec-support (~> 3.4.0)
64
+ rspec-mocks (3.4.1)
65
+ diff-lcs (>= 1.2.0, < 2.0)
66
+ rspec-support (~> 3.4.0)
67
+ rspec-support (3.4.1)
63
68
  safe_yaml (1.0.4)
64
- simplecov (0.9.1)
69
+ semver (1.0.1)
70
+ simplecov (0.11.2)
65
71
  docile (~> 1.1.0)
66
- multi_json (~> 1.0)
67
- simplecov-html (~> 0.8.0)
68
- simplecov-html (0.8.0)
69
- thread_safe (0.3.4)
70
- thread_safe (0.3.4-java)
71
- timecop (0.7.1)
72
- webmock (1.20.4)
72
+ json (~> 1.8)
73
+ simplecov-html (~> 0.10.0)
74
+ simplecov-html (0.10.0)
75
+ thread_safe (0.3.5)
76
+ thread_safe (0.3.5-java)
77
+ timecop (0.8.1)
78
+ webmock (2.0.2)
73
79
  addressable (>= 2.3.6)
74
80
  crack (>= 0.3.2)
81
+ hashdiff
75
82
 
76
83
  PLATFORMS
77
84
  java
@@ -84,3 +91,6 @@ DEPENDENCIES
84
91
  simplecov
85
92
  timecop
86
93
  webmock
94
+
95
+ BUNDLED WITH
96
+ 1.11.2
data/Rakefile CHANGED
@@ -25,27 +25,10 @@ Jeweler::Tasks.new do |gem|
25
25
  end
26
26
  Jeweler::RubygemsDotOrgTasks.new
27
27
 
28
- require 'rake/testtask'
29
- Rake::TestTask.new(:test) do |test|
30
- test.libs << 'lib' << 'test'
31
- test.pattern = 'test/**/test_*.rb'
32
- test.verbose = true
33
- end
34
-
35
- desc "Code coverage detail"
36
- task :simplecov do
37
- ENV['COVERAGE'] = "true"
38
- Rake::Task['test'].execute
39
- end
40
-
41
- task :default => :test
42
-
43
- require 'rdoc/task'
44
- Rake::RDocTask.new do |rdoc|
45
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
46
-
47
- rdoc.rdoc_dir = 'rdoc'
48
- rdoc.title = "myob-essentials-api #{version}"
49
- rdoc.rdoc_files.include('README*')
50
- rdoc.rdoc_files.include('lib/**/*.rb')
28
+ begin
29
+ require 'rspec/core/rake_task'
30
+ RSpec::Core::RakeTask.new(:spec)
31
+ task :default => :spec
32
+ rescue LoadError
33
+ # no rspec available
51
34
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -31,9 +31,10 @@ module Myob
31
31
  @business_uid = options[:business_uid]
32
32
 
33
33
  @client = OAuth2::Client.new(@consumer[:key], @consumer[:secret], {
34
- :site => 'https://secure.myob.com',
35
- :authorize_url => '/oauth2/account/authorize',
36
- :token_url => '/oauth2/v1/authorize',
34
+ site: 'https://secure.myob.com',
35
+ authorize_url: '/oauth2/account/authorize',
36
+ token_url: '/oauth2/v1/authorize',
37
+ connection_opts: {request: {timeout: options[:timeout] || 300}}
37
38
  })
38
39
  end
39
40
 
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: myob-essentials-api 0.0.1 ruby lib
5
+ # stub: myob-essentials-api 0.0.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "myob-essentials-api"
9
- s.version = "0.0.1"
9
+ s.version = "0.0.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["BrunoChauvet"]
14
- s.date = "2015-01-27"
14
+ s.date = "2016-05-20"
15
15
  s.description = "Integrate with MYOB Essentials Accounting"
16
16
  s.email = "it@maestrano.com"
17
17
  s.extra_rdoc_files = [
@@ -78,7 +78,7 @@ Gem::Specification.new do |s|
78
78
  ]
79
79
  s.homepage = "http://github.com/BrunoChauvet/myob-essentials-api"
80
80
  s.licenses = ["MIT"]
81
- s.rubygems_version = "2.4.5"
81
+ s.rubygems_version = "2.5.1"
82
82
  s.summary = "Integrate with MYOB Essentials Accounting"
83
83
 
84
84
  if s.respond_to? :specification_version then
@@ -87,16 +87,13 @@ Gem::Specification.new do |s|
87
87
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
88
88
  s.add_runtime_dependency(%q<oauth2>, [">= 0"])
89
89
  s.add_development_dependency(%q<jeweler>, [">= 0"])
90
- s.add_development_dependency(%q<simplecov>, [">= 0"])
91
90
  else
92
91
  s.add_dependency(%q<oauth2>, [">= 0"])
93
92
  s.add_dependency(%q<jeweler>, [">= 0"])
94
- s.add_dependency(%q<simplecov>, [">= 0"])
95
93
  end
96
94
  else
97
95
  s.add_dependency(%q<oauth2>, [">= 0"])
98
96
  s.add_dependency(%q<jeweler>, [">= 0"])
99
- s.add_dependency(%q<simplecov>, [">= 0"])
100
97
  end
101
98
  end
102
99
 
@@ -15,9 +15,13 @@
15
15
  #
16
16
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
17
 
18
+ require 'simplecov'
19
+ SimpleCov.start
20
+
18
21
  require_relative '../lib/myob-essentials-api.rb'
19
22
  require 'webmock/rspec'
20
23
  require 'timecop'
24
+ require 'json'
21
25
 
22
26
  RSpec.configure do |config|
23
27
  # rspec-expectations config goes here. You can use an alternate
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myob-essentials-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - BrunoChauvet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-27 00:00:00.000000000 Z
11
+ date: 2016-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: simplecov
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  description: Integrate with MYOB Essentials Accounting
56
42
  email: it@maestrano.com
57
43
  executables: []
@@ -136,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
122
  version: '0'
137
123
  requirements: []
138
124
  rubyforge_project:
139
- rubygems_version: 2.4.5
125
+ rubygems_version: 2.5.1
140
126
  signing_key:
141
127
  specification_version: 4
142
128
  summary: Integrate with MYOB Essentials Accounting