smartsheet 2.77.0 → 2.77.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +12 -12
  3. data/.rubocop.yml +4 -4
  4. data/.travis.yml +26 -15
  5. data/.yardopts +3 -3
  6. data/ADVANCED.md +78 -78
  7. data/CHANGELOG.md +115 -112
  8. data/Gemfile +6 -6
  9. data/LICENSE +202 -202
  10. data/README.md +246 -246
  11. data/Rakefile +29 -29
  12. data/bin/console +14 -14
  13. data/bin/setup +8 -8
  14. data/lib/smartsheet.rb +2 -2
  15. data/lib/smartsheet/api/body_builder.rb +25 -25
  16. data/lib/smartsheet/api/endpoint_spec.rb +54 -54
  17. data/lib/smartsheet/api/faraday_adapter/faraday_net_client.rb +45 -45
  18. data/lib/smartsheet/api/faraday_adapter/faraday_response.rb +70 -70
  19. data/lib/smartsheet/api/faraday_adapter/middleware/faraday_error_translator.rb +20 -20
  20. data/lib/smartsheet/api/faraday_adapter/middleware/response_parser.rb +25 -25
  21. data/lib/smartsheet/api/file_spec.rb +55 -55
  22. data/lib/smartsheet/api/header_builder.rb +96 -96
  23. data/lib/smartsheet/api/request.rb +42 -42
  24. data/lib/smartsheet/api/request_client.rb +43 -43
  25. data/lib/smartsheet/api/request_logger.rb +182 -182
  26. data/lib/smartsheet/api/request_spec.rb +57 -57
  27. data/lib/smartsheet/api/response_net_client_decorator.rb +54 -54
  28. data/lib/smartsheet/api/retry_logic.rb +40 -40
  29. data/lib/smartsheet/api/retry_net_client_decorator.rb +37 -37
  30. data/lib/smartsheet/api/url_builder.rb +25 -25
  31. data/lib/smartsheet/client.rb +193 -193
  32. data/lib/smartsheet/constants.rb +18 -18
  33. data/lib/smartsheet/endpoints/contacts/contacts.rb +30 -30
  34. data/lib/smartsheet/endpoints/events/events.rb +20 -20
  35. data/lib/smartsheet/endpoints/favorites/favorites.rb +159 -159
  36. data/lib/smartsheet/endpoints/folders/folders.rb +125 -125
  37. data/lib/smartsheet/endpoints/groups/groups.rb +83 -83
  38. data/lib/smartsheet/endpoints/home/home.rb +20 -20
  39. data/lib/smartsheet/endpoints/reports/reports.rb +100 -100
  40. data/lib/smartsheet/endpoints/reports/reports_share.rb +69 -69
  41. data/lib/smartsheet/endpoints/search/search.rb +30 -30
  42. data/lib/smartsheet/endpoints/server_info/server_info.rb +21 -21
  43. data/lib/smartsheet/endpoints/share/share.rb +58 -58
  44. data/lib/smartsheet/endpoints/sheets/automation_rules.rb +55 -55
  45. data/lib/smartsheet/endpoints/sheets/cells.rb +82 -82
  46. data/lib/smartsheet/endpoints/sheets/columns.rb +66 -66
  47. data/lib/smartsheet/endpoints/sheets/comments.rb +64 -64
  48. data/lib/smartsheet/endpoints/sheets/comments_attachments.rb +78 -78
  49. data/lib/smartsheet/endpoints/sheets/cross_sheet_references.rb +45 -45
  50. data/lib/smartsheet/endpoints/sheets/discussions.rb +84 -84
  51. data/lib/smartsheet/endpoints/sheets/discussions_attachments.rb +22 -22
  52. data/lib/smartsheet/endpoints/sheets/rows.rb +106 -106
  53. data/lib/smartsheet/endpoints/sheets/rows_attachments.rb +92 -92
  54. data/lib/smartsheet/endpoints/sheets/sheets.rb +510 -510
  55. data/lib/smartsheet/endpoints/sheets/sheets_attachments.rb +174 -174
  56. data/lib/smartsheet/endpoints/sheets/sheets_share.rb +69 -69
  57. data/lib/smartsheet/endpoints/sights/sights.rb +101 -101
  58. data/lib/smartsheet/endpoints/sights/sights_share.rb +69 -69
  59. data/lib/smartsheet/endpoints/templates/templates.rb +29 -29
  60. data/lib/smartsheet/endpoints/token/token.rb +65 -65
  61. data/lib/smartsheet/endpoints/update_requests/sent_update_requests.rb +44 -44
  62. data/lib/smartsheet/endpoints/update_requests/update_requests.rb +74 -74
  63. data/lib/smartsheet/endpoints/users/alternate_emails.rb +79 -79
  64. data/lib/smartsheet/endpoints/users/users.rb +77 -77
  65. data/lib/smartsheet/endpoints/webhooks/webhooks.rb +71 -71
  66. data/lib/smartsheet/endpoints/workspaces/workspaces.rb +87 -87
  67. data/lib/smartsheet/endpoints/workspaces/workspaces_share.rb +70 -70
  68. data/lib/smartsheet/error.rb +69 -69
  69. data/lib/smartsheet/general_request.rb +74 -74
  70. data/lib/smartsheet/version.rb +5 -5
  71. data/smartsheet.gemspec +54 -54
  72. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eae914214c09e89c42b784bae587d674d5c2773c8f23a55a5514cf2e5bf89141
4
- data.tar.gz: a0494874786cea9674006c2253b9e5b61442c8f07ef861a253570fb33ad1d365
3
+ metadata.gz: 224149f1d49bddeb6b9118c1ed86baf10c8871c344f2a544fd59eaffb7cf5800
4
+ data.tar.gz: c2e832ea3f9f941aa4edcdaa47463e5221b0c16c3c097775a335d8faf295b95f
5
5
  SHA512:
6
- metadata.gz: 48a942ed00e9f71795c17931e4d02cb01b17e2ea9c025d61f13cd9b5b73b4e841b1b73f55c3ef890948579db17a0897f327376d902ae2ee35f5fb2a46e5b484c
7
- data.tar.gz: b8193db2c5ee289df790636ac06b437bc2c60c2849caf4acfbfe774d319cad3988a006c12e0b6cd0d41f4925acbcb76006d9291641513d9fbcc945bc08c8510c
6
+ metadata.gz: d57f77a425a2a1c27a0646af69be932036c235c16b680ec8974f611398b814997ef243724995a90ac8f977cb6a02c63a858b196d8bb1d1f6ecd5677ed32a6897
7
+ data.tar.gz: ddfbb2ce0296dc65bb42ddeb99763a5ad68c4daead32e97503d84433898f5b27696f65c8bc03a9c1f29e1cf48750bd23c610e06aa6463c5194b34c17d6ef6baa
data/.gitignore CHANGED
@@ -1,12 +1,12 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- /.idea/
11
- *.gem
12
- test.rb
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /.idea/
11
+ *.gem
12
+ test.rb
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
- Layout/EndOfLine:
2
- Enabled: false
3
-
4
- Metrics/LineLength:
1
+ Layout/EndOfLine:
2
+ Enabled: false
3
+
4
+ Metrics/LineLength:
5
5
  Max: 100
data/.travis.yml CHANGED
@@ -1,15 +1,26 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2
5
- - 2.4
6
- before_install:
7
- - git clone https://github.com/smartsheet-platform/smartsheet-sdk-tests.git
8
- - smartsheet-sdk-tests/travis_scripts/install_wiremock.sh
9
- - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
10
- - gem install bundler -v 1.15.4
11
-
12
-
13
- script:
14
- - smartsheet-sdk-tests/travis_scripts/start_wiremock.sh
15
- - rake test
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.2
5
+ - 2.4
6
+ before_install:
7
+ - git clone https://github.com/smartsheet-platform/smartsheet-sdk-tests.git
8
+ - smartsheet-sdk-tests/travis_scripts/install_wiremock.sh
9
+ - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
10
+ - gem install bundler -v 1.15.4
11
+
12
+
13
+ script:
14
+ - smartsheet-sdk-tests/travis_scripts/start_wiremock.sh
15
+ - rake test
16
+ before_deploy: "echo 'Deploying release to Rubygems'"
17
+ deploy:
18
+ provider: rubygems
19
+ api_key:
20
+ secure: TMJZSpK3uHov1p0mvnOVjt75OZ3PrcwvufEESWd68K2A8DLwICbAMgC+uyf7VZV4Wg1nI5JOCrcBoty4xslHcCwAdG/HqVxV+JNsBhoFmaECv/YxaB+0QRQOhaMxIfIcindtXdguzDq162D8i1Xh4rdTTBuNwXnTYckqrpqNJ9erZ4pKFZbOr3nEhqnS+FyK7yZ2ihzsrWM7Ad/UL6x4rurvwb4+PgwoVF3Z6X3XJDYekTTs3klmGkDkMX+rhHZ54kW7l0dE2mHV2Mc60lwvDX1E1lHhCWuF3sxxr+TGWHCuT/5uskX3YYdwvGsRN17edqBrDYxE3J6lwPm7YEY75D4lHEXqipB+48HnoOemZUrQwieArDHtnba4x0Z61ftIropHYK154IX0Ieo7oQcNZdg6Zsj9mR42+WcY7Ih64i8/DfUsh2umOQ4iGlXxm8+JtybYzrG83guWQTXu97nMHIZqfmW4dgehr58hah108wruI8NEiqtUzk5ZAzH2Z4LBVXpVBRktragP+NMyRPCgSXGg4qHOkb/wsBLvaFee25Ps1+pZInvegU7TlsKZpxyt5TvS7X5yShHiZznLllDwqZ8wm36vTQbCunFkCfZxVK6/pCkPpJcISeVie4TJKVOtT93PDYI5HzSZuRQXlnfcPL4vJgo0Diw1P9NTVArtr1g=
21
+ gem: smartsheet
22
+ gemspec: smartsheet.gemspec
23
+ on:
24
+ repo: smartsheet-platform/smartsheet-ruby-sdk
25
+ branch: master
26
+ after_deploy: "echo 'Finished deployment process'"
data/.yardopts CHANGED
@@ -1,4 +1,4 @@
1
- --markup-provider=redcarpet
2
- --markup=markdown
3
- -
1
+ --markup-provider=redcarpet
2
+ --markup=markdown
3
+ -
4
4
  README.md
data/ADVANCED.md CHANGED
@@ -1,79 +1,79 @@
1
- # Advanced Topics for the Smartsheet SDK for Ruby
2
-
3
- ## Event Reporting
4
- The following sample demonstrates best practices for consuming the event stream returned from the Smartsheet Event Reporting feature.
5
-
6
- The sample uses the `smartsheet_client.events.get` method to request lists of events from the stream. The first request sets the `since` parameter with the point in time (i.e. event occurrence datetime) in the stream from which to start consuming events. The `since` parameter can be set with a datetime value that is either formatted as ISO 8601 (e.g. 2010-01-01T00:00:00Z) or as UNIX epoch (in which case the `numeric_dates` parameter must also be set to `True`. By default the `numeric_dates` parameter is set to `False`).
7
-
8
- To consume the next list of events after the initial list of events is returned, set the `stream_position` parameter with the `next_stream_position` attribute obtained from the previous request and don't set the `since` parameter with any values. This is because when using the `get` method, either the `since` parameter or the `stream_position` parameter should be set, but never both.
9
-
10
- Note that the `more_available` attribute in a response indicates whether more events are immediately available for consumption. If events aren't immediately available, they may still be generating so subsequent requests should keep using the same `stream_position` value until the next list of events is retrieved.
11
-
12
- Many events have additional information available as a part of the event. That information can be accessed from the data stored in the `additional_details` attribute. Information about the additional details provided can be found [here](https://smartsheet-platform.github.io/api-docs/?ruby#event-reporting).
13
-
14
-
15
- ```Ruby
16
- require 'smartsheet'
17
- require 'time'
18
- require 'date'
19
- require 'pp'
20
-
21
- # Initialize the client - use your access token here
22
- $smartsheet_client = Smartsheet::Client.new(token: '1234')
23
- # The `client` variable now contains access to all of the APIs
24
-
25
- today = (DateTime.now)
26
- date_week_ago = (today - 7).to_time.utc.iso8601
27
-
28
-
29
- def get_events(params)
30
- result = $smartsheet_client.events.get(params: params)
31
- # pp result
32
- print_new_sheet_events(result[:data])
33
-
34
- more_events_available = result[:more_available]
35
- next_stream_position = result[:next_stream_position]
36
- get_next_stream_of_events(more_events_available, next_stream_position)
37
- end
38
-
39
- # Subsequent calls require the streamPosition property
40
- def get_next_stream_of_events(more_events_available, next_stream_position)
41
- params = {
42
- stream_position: next_stream_position,
43
- max_count: 1
44
- }
45
-
46
- if more_events_available
47
- get_events(params);
48
- end
49
- end
50
-
51
- # This example is looking specifically for new sheet events
52
- def print_new_sheet_events(data)
53
- data.each do |value|
54
- # Find all created sheets
55
- if value[:object_type] == "SHEET" && value[:action] == "CREATE"
56
- pp value
57
- end
58
-
59
- end
60
- end
61
-
62
-
63
- begin
64
- params = {
65
- since: date_week_ago,
66
- max_count: 1
67
- }
68
-
69
- # The first call to the events reporting API
70
- # requires the since query parameter.
71
- # If you pass in an UNIX epoch date, numericDates must be true
72
- get_events(params)
73
-
74
- rescue Smartsheet::ApiError => e
75
- puts "Error Code: #{e.error_code}"
76
- puts "Message: #{e.message}"
77
- puts "Ref Id: #{e.ref_id}"
78
- end
1
+ # Advanced Topics for the Smartsheet SDK for Ruby
2
+
3
+ ## Event Reporting
4
+ The following sample demonstrates best practices for consuming the event stream returned from the Smartsheet Event Reporting feature.
5
+
6
+ The sample uses the `smartsheet_client.events.get` method to request lists of events from the stream. The first request sets the `since` parameter with the point in time (i.e. event occurrence datetime) in the stream from which to start consuming events. The `since` parameter can be set with a datetime value that is either formatted as ISO 8601 (e.g. 2010-01-01T00:00:00Z) or as UNIX epoch (in which case the `numeric_dates` parameter must also be set to `True`. By default the `numeric_dates` parameter is set to `False`).
7
+
8
+ To consume the next list of events after the initial list of events is returned, set the `stream_position` parameter with the `next_stream_position` attribute obtained from the previous request and don't set the `since` parameter with any values. This is because when using the `get` method, either the `since` parameter or the `stream_position` parameter should be set, but never both.
9
+
10
+ Note that the `more_available` attribute in a response indicates whether more events are immediately available for consumption. If events aren't immediately available, they may still be generating so subsequent requests should keep using the same `stream_position` value until the next list of events is retrieved.
11
+
12
+ Many events have additional information available as a part of the event. That information can be accessed from the data stored in the `additional_details` attribute. Information about the additional details provided can be found [here](https://smartsheet-platform.github.io/api-docs/?ruby#event-reporting).
13
+
14
+
15
+ ```Ruby
16
+ require 'smartsheet'
17
+ require 'time'
18
+ require 'date'
19
+ require 'pp'
20
+
21
+ # Initialize the client - use your access token here
22
+ $smartsheet_client = Smartsheet::Client.new(token: '1234')
23
+ # The `client` variable now contains access to all of the APIs
24
+
25
+ today = (DateTime.now)
26
+ date_week_ago = (today - 7).to_time.utc.iso8601
27
+
28
+
29
+ def get_events(params)
30
+ result = $smartsheet_client.events.get(params: params)
31
+ # pp result
32
+ print_new_sheet_events(result[:data])
33
+
34
+ more_events_available = result[:more_available]
35
+ next_stream_position = result[:next_stream_position]
36
+ get_next_stream_of_events(more_events_available, next_stream_position)
37
+ end
38
+
39
+ # Subsequent calls require the streamPosition property
40
+ def get_next_stream_of_events(more_events_available, next_stream_position)
41
+ params = {
42
+ stream_position: next_stream_position,
43
+ max_count: 1
44
+ }
45
+
46
+ if more_events_available
47
+ get_events(params);
48
+ end
49
+ end
50
+
51
+ # This example is looking specifically for new sheet events
52
+ def print_new_sheet_events(data)
53
+ data.each do |value|
54
+ # Find all created sheets
55
+ if value[:object_type] == "SHEET" && value[:action] == "CREATE"
56
+ pp value
57
+ end
58
+
59
+ end
60
+ end
61
+
62
+
63
+ begin
64
+ params = {
65
+ since: date_week_ago,
66
+ max_count: 1
67
+ }
68
+
69
+ # The first call to the events reporting API
70
+ # requires the since query parameter.
71
+ # If you pass in an UNIX epoch date, numericDates must be true
72
+ get_events(params)
73
+
74
+ rescue Smartsheet::ApiError => e
75
+ puts "Error Code: #{e.error_code}"
76
+ puts "Message: #{e.message}"
77
+ puts "Ref Id: #{e.ref_id}"
78
+ end
79
79
  ```
data/CHANGELOG.md CHANGED
@@ -1,113 +1,116 @@
1
- # Changelog
2
- All notable changes to this project will be documented in this file.
3
-
4
- The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
- and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
-
7
- ## [Unreleased]
8
-
9
- ## [2.77.0] - 2019-05-08
10
- - Added events endpoint to retrieve events that are occurring in your Smartsheet plan.
11
-
12
- ## [1.3.0] - 2019-02-11
13
- - Added constant for smartsheetgov
14
- - Updated documentation regarding the usage of base_url to clarify how clients can access smartsheetgov
15
-
16
- ## [1.2.0] - 2018-06-29
17
- ### Added
18
- - Added support for 'import sheet from XLSX, CSV file' endpoints
19
-
20
- ## [1.1.0] - 2018-03-16
21
- ### Added
22
- - Integration test suite (see https://github.com/smartsheet-platform/smartsheet-sdk-tests)
23
- - Endpoints for automation rules
24
- - Endpoint for 'sort rows in sheet'
25
- - Endpoints for cross-sheet references
26
- - Support for looser JSON content types in responses
27
- - Support for custom app name in the user agent header
28
- - URL constructor for requesting app authorization from a user
29
- - This changelog
30
-
31
- ### Changed
32
- - Empty filenames in file-accepting endpoints are now equivalent to nil filenames
33
- - Specifying `Assume-User` header override in a request will now override the `assume_user` value configured in a client
34
- - Client now requests and handles gzipped responses
35
-
36
- ### Removed
37
- - Unsupported `filename` and `content_type` attributes in `RequestSpec` (internal)
38
-
39
-
40
- ## [1.0.0] - 2017-11-08
41
- ### Added
42
- - Error type `Smartsheet::HttpResponseError` for HTTP failures that do not correspond to Smartsheet errors
43
- - Basic YARD documentation
44
- - Re-add support for Ruby versions ~> 2.2 (from > 2.2)
45
-
46
- ### Fixed
47
- - Removing one or many favorite sights now uses the correct URL
48
-
49
-
50
- ## [1.0.0.beta.2] - 2017-10-12
51
- ### Added
52
- - Inspect formatting for the Smartsheet client (for interactive use)
53
-
54
- ### Changed
55
- - Log retry failures only when retries were actually attempted, and not on non-retryable failures
56
- - Accept an empty string for a client token as being equivalent to a nil token
57
- - Adjust formatting of logs
58
-
59
- ### Deprecated
60
- - Required Ruby versions restricted to > 2.2 (from ~> 2.2)
61
-
62
- ### Removed
63
- - Read-write-sheet example (now available at https://github.com/smartsheet-samples/ruby-read-write-sheet)
64
-
65
- ### Fixed
66
- - Pass the 'log full body' client configuration flag correctly
67
- - Log responses
68
-
69
- ### Security
70
- - **Properly censors client tokens** by fixing the header censor to no longer be case-sensitive
71
-
72
-
73
- ## [1.0.0.beta.1] - 2017-10-10
74
- ### Changed
75
- - Set required Ruby version to ~> 2.2
76
-
77
-
78
- ## [1.0.0.beta.0] - 2017-10-10
79
- ### Added
80
- - Endpoints for sheets
81
- - Endpoints for rows
82
- - Endpoints for columns
83
- - Endpoints for comments
84
- - Endpoints for attachments
85
- - Endpoints for update requests
86
- - Endpoints for folders
87
- - Endpoints for home
88
- - Endpoints for workspaces
89
- - Endpoints for favorites
90
- - Endpoints for users
91
- - Endpoints for contacts
92
- - Endpoints for groups
93
- - Endpoints for reports
94
- - Endpoints for sights
95
- - Endpoints for templates
96
- - Endpoints for search
97
- - Endpoints for sharing
98
- - Endpoints for webhooks
99
- - Endpoints for server info
100
- - Endpoints for API token management
101
- - Support for making arbitrary requests
102
- - Support for assuming the role of a user as an administrator
103
- - Support for automatic request retry
104
- - Support for logging
105
- - Test suite with unit tests and two-column-accounting endpoint tests
106
-
107
- [Unreleased]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.2.0...HEAD
108
- [1.2.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.1.0...v1.2.0
109
- [1.1.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0...v1.1.0
110
- [1.0.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.2...v1.0.0
111
- [1.0.0.beta.2]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.1...v1.0.0.beta.2
112
- [1.0.0.beta.1]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.0...v1.0.0.beta.1
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [2.77.2] - 2019-06-06
10
+ - Automated publication process to RubyGems using Travis CI
11
+
12
+ ## [2.77.0] - 2019-05-08
13
+ - Added events endpoint to retrieve events that are occurring in your Smartsheet plan.
14
+
15
+ ## [1.3.0] - 2019-02-11
16
+ - Added constant for smartsheetgov
17
+ - Updated documentation regarding the usage of base_url to clarify how clients can access smartsheetgov
18
+
19
+ ## [1.2.0] - 2018-06-29
20
+ ### Added
21
+ - Added support for 'import sheet from XLSX, CSV file' endpoints
22
+
23
+ ## [1.1.0] - 2018-03-16
24
+ ### Added
25
+ - Integration test suite (see https://github.com/smartsheet-platform/smartsheet-sdk-tests)
26
+ - Endpoints for automation rules
27
+ - Endpoint for 'sort rows in sheet'
28
+ - Endpoints for cross-sheet references
29
+ - Support for looser JSON content types in responses
30
+ - Support for custom app name in the user agent header
31
+ - URL constructor for requesting app authorization from a user
32
+ - This changelog
33
+
34
+ ### Changed
35
+ - Empty filenames in file-accepting endpoints are now equivalent to nil filenames
36
+ - Specifying `Assume-User` header override in a request will now override the `assume_user` value configured in a client
37
+ - Client now requests and handles gzipped responses
38
+
39
+ ### Removed
40
+ - Unsupported `filename` and `content_type` attributes in `RequestSpec` (internal)
41
+
42
+
43
+ ## [1.0.0] - 2017-11-08
44
+ ### Added
45
+ - Error type `Smartsheet::HttpResponseError` for HTTP failures that do not correspond to Smartsheet errors
46
+ - Basic YARD documentation
47
+ - Re-add support for Ruby versions ~> 2.2 (from > 2.2)
48
+
49
+ ### Fixed
50
+ - Removing one or many favorite sights now uses the correct URL
51
+
52
+
53
+ ## [1.0.0.beta.2] - 2017-10-12
54
+ ### Added
55
+ - Inspect formatting for the Smartsheet client (for interactive use)
56
+
57
+ ### Changed
58
+ - Log retry failures only when retries were actually attempted, and not on non-retryable failures
59
+ - Accept an empty string for a client token as being equivalent to a nil token
60
+ - Adjust formatting of logs
61
+
62
+ ### Deprecated
63
+ - Required Ruby versions restricted to > 2.2 (from ~> 2.2)
64
+
65
+ ### Removed
66
+ - Read-write-sheet example (now available at https://github.com/smartsheet-samples/ruby-read-write-sheet)
67
+
68
+ ### Fixed
69
+ - Pass the 'log full body' client configuration flag correctly
70
+ - Log responses
71
+
72
+ ### Security
73
+ - **Properly censors client tokens** by fixing the header censor to no longer be case-sensitive
74
+
75
+
76
+ ## [1.0.0.beta.1] - 2017-10-10
77
+ ### Changed
78
+ - Set required Ruby version to ~> 2.2
79
+
80
+
81
+ ## [1.0.0.beta.0] - 2017-10-10
82
+ ### Added
83
+ - Endpoints for sheets
84
+ - Endpoints for rows
85
+ - Endpoints for columns
86
+ - Endpoints for comments
87
+ - Endpoints for attachments
88
+ - Endpoints for update requests
89
+ - Endpoints for folders
90
+ - Endpoints for home
91
+ - Endpoints for workspaces
92
+ - Endpoints for favorites
93
+ - Endpoints for users
94
+ - Endpoints for contacts
95
+ - Endpoints for groups
96
+ - Endpoints for reports
97
+ - Endpoints for sights
98
+ - Endpoints for templates
99
+ - Endpoints for search
100
+ - Endpoints for sharing
101
+ - Endpoints for webhooks
102
+ - Endpoints for server info
103
+ - Endpoints for API token management
104
+ - Support for making arbitrary requests
105
+ - Support for assuming the role of a user as an administrator
106
+ - Support for automatic request retry
107
+ - Support for logging
108
+ - Test suite with unit tests and two-column-accounting endpoint tests
109
+
110
+ [Unreleased]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.2.0...HEAD
111
+ [1.2.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.1.0...v1.2.0
112
+ [1.1.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0...v1.1.0
113
+ [1.0.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.2...v1.0.0
114
+ [1.0.0.beta.2]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.1...v1.0.0.beta.2
115
+ [1.0.0.beta.1]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.0...v1.0.0.beta.1
113
116
  [1.0.0.beta.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/init...v1.0.0.beta.0