togglv8-ng 1.4.0 → 1.4.1

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: 4a0fdef46b6b0d9c78b086531afb7203979f08e06ad9e6addad862cf2e7d5082
4
- data.tar.gz: 7e238be765cddd66d3fad2f071191f2332bdb96eb23c328cb4999645030f2c07
3
+ metadata.gz: c6e717f94394554ef8a978fac8444efdb11197531573f06a73ed12c11fad3eac
4
+ data.tar.gz: 7ab9a4791b780c8a838288c8fc2ee37ccbc184e7edf7a2dfea06cc02a124f183
5
5
  SHA512:
6
- metadata.gz: 25dbd69ecdb24184317a56aa87f26579b6201c1d9f0743deb6dd7ef3b7be14a5218228c728441f1aa336897ef24dda7e3d98b7b86e4e0a34dacdfa6b82440257
7
- data.tar.gz: 60c934ede89a017846c21f9a6602646336f2288068c49980052dfc3a0be82f7934dfbfd332bfbfc27d215ec5c2db83aebc67bb07c44ae3c6a42916542b7d4d09
6
+ metadata.gz: 72b3e7ee008cf580ffdbdc8a73bc41d51f1945aaa058011d4cb1969fe1028b30543b12eb860a58cb72005c92c18b290d29b4c54a88e06764fc7a9bb6c91234a7
7
+ data.tar.gz: daac17176533a1774418edb8f74b35c197d8f80ba35b5378bf20d8d221ab4f7d2fb422865fc3a882bdedf4665b52f21d9a6f0623f425d49f55ecd269a82f53e7
data/CHANGELOG.md CHANGED
@@ -6,89 +6,106 @@ Changes that are not intended to affect usage (e.g. documentation, specs, remova
6
6
 
7
7
  Version numbers are meant to adhere to [Semantic Versioning](http://semver.org/).
8
8
 
9
-
10
9
  ## [Unreleased]
11
10
 
11
+ ## [1.4.1] - 2022-05-10
12
+
13
+ - Fix pdf report generation wich breaks on encoding
14
+ - Fix reports API base
15
+ - Update README to install togglv8-ng
16
+ - Update CHANGELOG
17
+
18
+ ## [1.4.0] - 2022-05-10
12
19
 
13
- ## [1.2.1] - 2016-07-25
14
20
  ### Changed
15
21
 
16
- * Fix ReportsV2#project by requiring project_id.
17
- * Improve spec code coverage.
18
- * Include version in `user_agent` and `created_with` (e.g. TogglV8 v1.2.1)
22
+ - Fix basic_auth issue with Faraday 2.x
23
+ - Fix domain to use api.toggl.com instead of www.toggl.com
24
+ - Rename gem to "togglv8-ng"
19
25
 
26
+ ## [1.2.1] - 2016-07-25
27
+
28
+ ### Changed
29
+
30
+ - Fix ReportsV2#project by requiring project_id.
31
+ - Improve spec code coverage.
32
+ - Include version in `user_agent` and `created_with` (e.g. TogglV8 v1.2.1)
20
33
 
21
34
  ## [1.2.0] - 2016-07-24
22
- ### Added
23
35
 
24
- * Add support for [Toggl Reports API v2](https://github.com/toggl/toggl_api_docs/blob/master/reports.md).
36
+ ### Added
25
37
 
38
+ - Add support for [Toggl Reports API v2](https://github.com/toggl/toggl_api_docs/blob/master/reports.md).
26
39
 
27
40
  ## [1.1.0] - 2016-02-22
28
- ### Added
29
41
 
30
- * Add `tags(workspace_id)`.
42
+ ### Added
31
43
 
44
+ - Add `tags(workspace_id)`.
32
45
 
33
46
  ## [1.0.5] - 2016-02-22
34
- ### Added
35
47
 
36
- * Add specs for encoding of ISO8601 times with + UTC offset. (See [1.0.4](#104---2016-01-22))
48
+ ### Added
37
49
 
50
+ - Add specs for encoding of ISO8601 times with + UTC offset. (See [1.0.4](#104---2016-01-22))
38
51
 
39
52
  ## [1.0.4] - 2016-01-22
40
- ### Fixed
41
53
 
42
- * Manually encode `+` to `%2B` before every API call. (Fixes #11)
54
+ ### Fixed
43
55
 
56
+ - Manually encode `+` to `%2B` before every API call. (Fixes #11)
44
57
 
45
58
  ## [1.0.3] - 2016-01-22
59
+
46
60
  ### Added
47
61
 
48
- * Add `debug()` method to enable debugging output including full API response.
62
+ - Add `debug()` method to enable debugging output including full API response.
49
63
 
50
64
  ## [1.0.2] - 2015-12-12
65
+
51
66
  ### Changed
52
67
 
53
- * Require params 'tags' and 'tag_action' in `update_time_entries_tags()`.
68
+ - Require params 'tags' and 'tag_action' in `update_time_entries_tags()`.
54
69
 
55
70
  ## [1.0.1] - 2015-12-10
71
+
56
72
  ### Fixed
57
73
 
58
- * Fix Toggl API call in `get_project_tasks()`. (Fixes #5)
74
+ - Fix Toggl API call in `get_project_tasks()`. (Fixes #5)
59
75
 
60
76
  ### Added
61
77
 
62
- * Add `my_tasks()`.
63
- * Add null checks to various methods.
78
+ - Add `my_tasks()`.
79
+ - Add null checks to various methods.
64
80
 
65
81
  ### Changed
66
82
 
67
- * Require params 'name' and 'pid' in `create_task()`.
83
+ - Require params 'name' and 'pid' in `create_task()`.
68
84
 
69
85
  ## [1.0.0] - 2015-12-06
86
+
70
87
  ### Added
71
88
 
72
- * Add `my_deleted_projects()`.
89
+ - Add `my_deleted_projects()`.
73
90
 
74
91
  ### Changed
75
92
 
76
- * Exclude deleted projects from `my_projects()` results.
77
- * Change `get_time_entries()` parameters.
78
- - old: `start_timestamp=nil, end_timestamp=nil`
79
- - new: `dates = {}`
80
- * Raise RuntimeError w/ HTTP Status code if request is not successful.
81
- * Handle 429 (Too Many Requests) by pausing for 1 second and retrying up to 3 times.
82
- - API calls are limited to 1/sec due to toggl.com limits
83
- * Refactor duplication out of GET/POST/PUT/DELETE API calls.
93
+ - Exclude deleted projects from `my_projects()` results.
94
+ - Change `get_time_entries()` parameters.
95
+ - old: `start_timestamp=nil, end_timestamp=nil`
96
+ - new: `dates = {}`
97
+ - Raise RuntimeError w/ HTTP Status code if request is not successful.
98
+ - Handle 429 (Too Many Requests) by pausing for 1 second and retrying up to 3 times.
99
+ - API calls are limited to 1/sec due to toggl.com limits
100
+ - Refactor duplication out of GET/POST/PUT/DELETE API calls.
84
101
 
85
102
  ## [0.2.0] - 2015-08-21
86
- ### Added
87
103
 
88
- * Add Ruby interface to most functions of [Toggl V8 API](https://github.com/toggl/toggl_api_docs/blob/master/toggl_api.md) (as of 2015-08-21).
104
+ ### Added
89
105
 
106
+ - Add Ruby interface to most functions of [Toggl V8 API](https://github.com/toggl/toggl_api_docs/blob/master/toggl_api.md) (as of 2015-08-21).
90
107
 
91
- [Unreleased]: https://github.com/kanet77/togglv8/compare/v1.2.1...HEAD
108
+ [unreleased]: https://github.com/kanet77/togglv8/compare/v1.2.1...HEAD
92
109
  [1.2.1]: https://github.com/kanet77/togglv8/compare/v1.2.0...v1.2.1
93
110
  [1.2.0]: https://github.com/kanet77/togglv8/compare/v1.1.0...v1.2.0
94
111
  [1.1.0]: https://github.com/kanet77/togglv8/compare/v1.0.5...v1.1.0
@@ -98,4 +115,4 @@ Version numbers are meant to adhere to [Semantic Versioning](http://semver.org/)
98
115
  [1.0.2]: https://github.com/kanet77/togglv8/compare/v1.0.1...v1.0.2
99
116
  [1.0.1]: https://github.com/kanet77/togglv8/compare/v1.0.0...v1.0.1
100
117
  [1.0.0]: https://github.com/kanet77/togglv8/compare/v0.2.0...v1.0.0
101
- [0.2.0]: https://github.com/kanet77/togglv8/compare/a1d5cc5...v0.2.0
118
+ [0.2.0]: https://github.com/kanet77/togglv8/compare/a1d5cc5...v0.2.0
data/README.md CHANGED
@@ -1,6 +1,11 @@
1
-
2
1
  # Toggl API v8
3
2
 
3
+ ## Important notes
4
+
5
+ - This is a fork of togglv8, which is not maintained since 2016
6
+ - This up-to-date gem is now refered as togglv8-ng on rubygems
7
+ - Thanks to creator and contributors of togglv8, who did the biggest part of work
8
+
4
9
  [![Gem Version](https://badge.fury.io/rb/togglv8.svg)](https://badge.fury.io/rb/togglv8) [![Build Status](https://api.travis-ci.org/kanet77/togglv8.svg "Build Status")](https://travis-ci.org/kanet77/togglv8) [![Coverage Status](https://coveralls.io/repos/kanet77/togglv8/badge.svg?branch=master&service=github)](https://coveralls.io/github/kanet77/togglv8?branch=master) [![Code Climate](https://codeclimate.com/github/kanet77/togglv8/badges/gpa.svg)](https://codeclimate.com/github/kanet77/togglv8)
5
10
 
6
11
  [Toggl](http://www.toggl.com) is a time tracking tool.
@@ -18,7 +23,7 @@ See [CHANGELOG](CHANGELOG.md) for a summary of notable changes in each version.
18
23
  Add this line to your application's Gemfile:
19
24
 
20
25
  ```ruby
21
- gem 'togglv8'
26
+ gem 'togglv8-ng'
22
27
  ```
23
28
 
24
29
  And then execute:
@@ -137,11 +142,11 @@ Also available on [DocumentUp](https://documentup.com/kanet77/togglv8)
137
142
  ## Acknowledgements
138
143
 
139
144
  - Thanks to the following contributors (in alphabetical order):
140
- * [archonic](https://github.com/archonic) ([fork](https://github.com/archonic/togglv8))
141
- * [ddiatmb](https://github.com/ddiatmb) ([fork](https://github.com/ddiatmb/togglv8))
142
- * [itaymendel](https://github.com/itaymendel)
143
- * [ppawlikmb](https://github.com/ppawlikmb) ([fork](https://github.com/ppawlikmb/togglv8))
144
- * [worldsmithroy](https://github.com/worldsmithroy) ([fork](https://github.com/worldsmithroy/togglv8))
145
+ - [archonic](https://github.com/archonic) ([fork](https://github.com/archonic/togglv8))
146
+ - [ddiatmb](https://github.com/ddiatmb) ([fork](https://github.com/ddiatmb/togglv8))
147
+ - [itaymendel](https://github.com/itaymendel)
148
+ - [ppawlikmb](https://github.com/ppawlikmb) ([fork](https://github.com/ppawlikmb/togglv8))
149
+ - [worldsmithroy](https://github.com/worldsmithroy) ([fork](https://github.com/worldsmithroy/togglv8))
145
150
  - Thanks to [Koen Van der Auwera](https://github.com/atog) for the [Ruby Wrapper for Toggl API v6](https://github.com/atog/toggl)
146
151
  - Thanks to the Toggl team for exposing the API.
147
152
 
data/lib/reportsv2.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module TogglV8
2
- TOGGL_REPORTS_URL = 'https://api.track.toggl.com/reports/api/v2'
2
+ TOGGL_REPORTS_URL = 'https://api.track.toggl.com/reports/api/'
3
3
 
4
4
  class ReportsV2
5
5
  include TogglV8::Connection
@@ -65,7 +65,7 @@ module TogglV8
65
65
  resp = Oj.load(full_resp.body)
66
66
  return resp['data'] if resp.respond_to?(:has_key?) && resp.has_key?('data')
67
67
  return resp
68
- rescue Oj::ParseError
68
+ rescue Oj::ParseError, EncodingError
69
69
  return full_resp.body
70
70
  end
71
71
  end
@@ -1,4 +1,4 @@
1
1
  module TogglV8
2
2
  # :section:
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.1"
4
4
  end
data/lib/togglv8.rb CHANGED
@@ -9,5 +9,5 @@ require_relative 'reportsv2'
9
9
  Oj.default_options = { :mode => :compat }
10
10
 
11
11
  module TogglV8
12
- NAME = "TogglV8 v#{TogglV8::VERSION}"
13
- end
12
+ NAME = "TogglV8-v#{TogglV8::VERSION}"
13
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: togglv8-ng
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Kane