koho 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/koho.rb +9 -2
- data/lib/koho/version.rb +1 -1
- metadata +2 -2
data/lib/koho.rb
CHANGED
@@ -2,7 +2,7 @@ require "koho/version"
|
|
2
2
|
require 'httparty'
|
3
3
|
require 'json'
|
4
4
|
|
5
|
-
KOHO_API_CLIENT_ENVIRONMENT ||= :production
|
5
|
+
KOHO_API_CLIENT_ENVIRONMENT ||= :development #:production
|
6
6
|
|
7
7
|
module Koho
|
8
8
|
|
@@ -48,7 +48,7 @@ module Koho
|
|
48
48
|
def contracts; Contracts.new company_id, token; end
|
49
49
|
def projects; Projects.new company_id, token; end
|
50
50
|
def project_tasks; ProjectTasks.new company_id, token; end
|
51
|
-
def work_sessions;
|
51
|
+
def work_sessions; WorkSessions.new company_id, token; end
|
52
52
|
|
53
53
|
##########################3
|
54
54
|
|
@@ -266,6 +266,13 @@ module Koho
|
|
266
266
|
get '/'
|
267
267
|
end
|
268
268
|
|
269
|
+
def invoice_check
|
270
|
+
status = nil
|
271
|
+
Thread.new{status = post '/invoice_check'}
|
272
|
+
sleep 5
|
273
|
+
return status || {status: :ok, message: 'Request sent'}
|
274
|
+
end
|
275
|
+
|
269
276
|
def find id
|
270
277
|
get "/#{id}"
|
271
278
|
end
|
data/lib/koho/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: koho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
type: :development
|