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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7742cc26953cb2a3549c474090533399801ccc4a73fc9edd9bd0576bb2043729
4
- data.tar.gz: 7905082d94868140a43621a4ee5ae06b43c329895c1d5aa60079224daba8e97b
3
+ metadata.gz: 287d9e265de562279b0bfc72bc517687e5c0b21624bfe62ca8a7cd3de34dc249
4
+ data.tar.gz: 49fe41a32e6cf4d010c5f7ce9659b9076007691865331e03f2edf27a6d5ada69
5
5
  SHA512:
6
- metadata.gz: 3d78140e011964c68cf77a4850e9e2cb7a5e24de3253009f84bfa4dcee97fbf3c49abd5f5f5cbbbed33419630981706ecdb4fae9abb99a801b979769e3ffee58
7
- data.tar.gz: ef2358800b0b3a5aacafa57a7a5863fd408f402b516cb88f203d29c0b02172325e8c47913176b27c1b1bff47d975feb1f19d13b3d7ebc3edebdfe6dbc04b8628
6
+ metadata.gz: 3acf47aa0c8f60aebd9ffb56e82c708b1ff1c4a8db68ed87fa2f88b0f90494513d4cab9cf8a07ec275b69cdca4a52fcaaabf34de3d7144ecd7d97d877847c2ae
7
+ data.tar.gz: 1c651132733ec09c0535bf49f5fea5ec20504207523b69e8bb62f7b81d5939418075ad717388248bb3f2a5bf3a8c5f2fa5b23a91466f7ef9485b5a6f12636493
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.2
2
+
3
+ * Add basic CLI script `timely-app`
4
+
1
5
  # 1.0.1
2
6
 
3
7
  * Fix oauth token request
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
@@ -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 ENV["DEBUG"]
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
@@ -1,3 +1,3 @@
1
1
  module TimelyApp
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
data/timely-app.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'timely-app'
3
- s.version = '1.0.1'
3
+ s.version = '1.0.2'
4
4
  s.license = 'MIT'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ['Andrei Makarov']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timely-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Makarov