timely-app 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +6 -0
- data/lib/timely-app/client.rb +6 -1
- data/lib/timely-app/version.rb +1 -1
- data/timely-app.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 287d9e265de562279b0bfc72bc517687e5c0b21624bfe62ca8a7cd3de34dc249
|
4
|
+
data.tar.gz: 49fe41a32e6cf4d010c5f7ce9659b9076007691865331e03f2edf27a6d5ada69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3acf47aa0c8f60aebd9ffb56e82c708b1ff1c4a8db68ed87fa2f88b0f90494513d4cab9cf8a07ec275b69cdca4a52fcaaabf34de3d7144ecd7d97d877847c2ae
|
7
|
+
data.tar.gz: 1c651132733ec09c0535bf49f5fea5ec20504207523b69e8bb62f7b81d5939418075ad717388248bb3f2a5bf3a8c5f2fa5b23a91466f7ef9485b5a6f12636493
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
Ruby client for the [Timely API](https://dev.timelyapp.com).
|
6
6
|
|
7
|
+
Sponsored by [Kisko Labs](https://www.kiskolabs.com).
|
8
|
+
|
7
9
|
## Install
|
8
10
|
|
9
11
|
Using Bundler:
|
@@ -79,6 +81,10 @@ You can use [localhost.run](https://localhost.run/) to test callbacks locally.
|
|
79
81
|
|
80
82
|
There are large list of available tools for tunneling: [awesome-tunneling](https://github.com/anderspitman/awesome-tunneling)
|
81
83
|
|
84
|
+
## Acknowledgment
|
85
|
+
|
86
|
+
- thanks to [timcraft](https://github.com/timcraft) and the team for [Noko API client](https://github.com/timcraft/noko) that was used as starting point
|
87
|
+
|
82
88
|
## Contributing
|
83
89
|
|
84
90
|
Bug reports and pull requests are welcome on GitHub at https://github.com/amkisko/timely-app
|
data/lib/timely-app/client.rb
CHANGED
@@ -22,6 +22,7 @@ module TimelyApp
|
|
22
22
|
@http.use_ssl = true
|
23
23
|
|
24
24
|
@account_id = options[:account_id]
|
25
|
+
@verbose = options[:verbose] || ENV['VERBOSE'] || false
|
25
26
|
end
|
26
27
|
|
27
28
|
def get(path, params = nil)
|
@@ -30,6 +31,10 @@ module TimelyApp
|
|
30
31
|
|
31
32
|
private
|
32
33
|
|
34
|
+
def verbose?
|
35
|
+
!@verbose.nil?
|
36
|
+
end
|
37
|
+
|
33
38
|
def host_uri_join(path, params)
|
34
39
|
URI::join("https://#{@host}", Params.join(path, params)).to_s
|
35
40
|
end
|
@@ -57,7 +62,7 @@ module TimelyApp
|
|
57
62
|
|
58
63
|
response = @http.request(http_request)
|
59
64
|
|
60
|
-
if
|
65
|
+
if verbose?
|
61
66
|
puts ">> request: #{http_request.method} #{http_request.path} #{http_request.body}"
|
62
67
|
puts "<< response: #{http_request.method} #{http_request.path} #{response.code} #{response.body}"
|
63
68
|
end
|
data/lib/timely-app/version.rb
CHANGED
data/timely-app.gemspec
CHANGED