smartsheet 2.77.0 → 2.101.1
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.
- checksums.yaml +4 -4
- data/.gitignore +12 -12
- data/.rubocop.yml +4 -4
- data/.travis.yml +29 -15
- data/.yardopts +3 -3
- data/ADVANCED.md +78 -78
- data/CHANGELOG.md +133 -112
- data/Gemfile +6 -6
- data/LICENSE +202 -202
- data/README.md +248 -246
- data/Rakefile +29 -29
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/lib/smartsheet.rb +2 -2
- data/lib/smartsheet/api/body_builder.rb +25 -25
- data/lib/smartsheet/api/endpoint_spec.rb +54 -54
- data/lib/smartsheet/api/faraday_adapter/faraday_net_client.rb +45 -45
- data/lib/smartsheet/api/faraday_adapter/faraday_response.rb +70 -70
- data/lib/smartsheet/api/faraday_adapter/middleware/faraday_error_translator.rb +20 -20
- data/lib/smartsheet/api/faraday_adapter/middleware/response_parser.rb +25 -25
- data/lib/smartsheet/api/file_spec.rb +55 -55
- data/lib/smartsheet/api/header_builder.rb +96 -96
- data/lib/smartsheet/api/request.rb +42 -42
- data/lib/smartsheet/api/request_client.rb +43 -43
- data/lib/smartsheet/api/request_logger.rb +182 -182
- data/lib/smartsheet/api/request_spec.rb +57 -57
- data/lib/smartsheet/api/response_net_client_decorator.rb +54 -54
- data/lib/smartsheet/api/retry_logic.rb +40 -40
- data/lib/smartsheet/api/retry_net_client_decorator.rb +37 -37
- data/lib/smartsheet/api/url_builder.rb +25 -25
- data/lib/smartsheet/client.rb +193 -193
- data/lib/smartsheet/constants.rb +18 -18
- data/lib/smartsheet/endpoints/contacts/contacts.rb +30 -30
- data/lib/smartsheet/endpoints/events/events.rb +20 -20
- data/lib/smartsheet/endpoints/favorites/favorites.rb +159 -159
- data/lib/smartsheet/endpoints/folders/folders.rb +125 -125
- data/lib/smartsheet/endpoints/groups/groups.rb +83 -83
- data/lib/smartsheet/endpoints/home/home.rb +20 -20
- data/lib/smartsheet/endpoints/reports/reports.rb +100 -100
- data/lib/smartsheet/endpoints/reports/reports_share.rb +69 -69
- data/lib/smartsheet/endpoints/search/search.rb +30 -30
- data/lib/smartsheet/endpoints/server_info/server_info.rb +21 -21
- data/lib/smartsheet/endpoints/share/share.rb +58 -58
- data/lib/smartsheet/endpoints/sheets/automation_rules.rb +55 -55
- data/lib/smartsheet/endpoints/sheets/cells.rb +82 -82
- data/lib/smartsheet/endpoints/sheets/columns.rb +66 -66
- data/lib/smartsheet/endpoints/sheets/comments.rb +64 -64
- data/lib/smartsheet/endpoints/sheets/comments_attachments.rb +78 -78
- data/lib/smartsheet/endpoints/sheets/cross_sheet_references.rb +45 -45
- data/lib/smartsheet/endpoints/sheets/discussions.rb +84 -84
- data/lib/smartsheet/endpoints/sheets/discussions_attachments.rb +22 -22
- data/lib/smartsheet/endpoints/sheets/rows.rb +106 -106
- data/lib/smartsheet/endpoints/sheets/rows_attachments.rb +92 -92
- data/lib/smartsheet/endpoints/sheets/sheets.rb +514 -510
- data/lib/smartsheet/endpoints/sheets/sheets_attachments.rb +174 -174
- data/lib/smartsheet/endpoints/sheets/sheets_share.rb +69 -69
- data/lib/smartsheet/endpoints/sheets/sheets_summaries.rb +123 -0
- data/lib/smartsheet/endpoints/sights/sights.rb +101 -101
- data/lib/smartsheet/endpoints/sights/sights_share.rb +69 -69
- data/lib/smartsheet/endpoints/templates/templates.rb +29 -29
- data/lib/smartsheet/endpoints/token/token.rb +70 -66
- data/lib/smartsheet/endpoints/update_requests/sent_update_requests.rb +44 -44
- data/lib/smartsheet/endpoints/update_requests/update_requests.rb +74 -74
- data/lib/smartsheet/endpoints/users/alternate_emails.rb +79 -79
- data/lib/smartsheet/endpoints/users/users.rb +123 -77
- data/lib/smartsheet/endpoints/webhooks/webhooks.rb +71 -71
- data/lib/smartsheet/endpoints/workspaces/workspaces.rb +87 -87
- data/lib/smartsheet/endpoints/workspaces/workspaces_share.rb +70 -70
- data/lib/smartsheet/error.rb +69 -69
- data/lib/smartsheet/general_request.rb +74 -74
- data/lib/smartsheet/version.rb +5 -5
- data/smartsheet.gemspec +54 -54
- metadata +24 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1447ac9c5b6ddd46a57909483d1b372ef66f94a130ca856b554008e734eb895
|
4
|
+
data.tar.gz: c5a7ac119de07b7de672a12fa9aa662e33c4096be5ee02d7f78ce2ed7d7f72a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 750f791d71daff58364cecbcf2afcb92d0e840e41c2790137747b4098a281e31e65c6ca001e551f7fffea67da877519b756e6601a48296726ae49568dae43cdf
|
7
|
+
data.tar.gz: 7e3e461e0d657d20e7ebf6643a1f04751268be69c226a4d0a62e805011c6c4e01137f656b4e0fe3c1c4e0c8ea50ccbb7acc352856f7ded0211a6a05c2d5d2e8c
|
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,29 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
- 2.
|
6
|
-
|
7
|
-
-
|
8
|
-
|
9
|
-
-
|
10
|
-
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
1
|
+
dist: trusty
|
2
|
+
sudo: false
|
3
|
+
language: ruby
|
4
|
+
rvm:
|
5
|
+
- 2.7
|
6
|
+
- 2.6
|
7
|
+
- 2.5
|
8
|
+
before_install:
|
9
|
+
- git clone https://github.com/smartsheet-platform/smartsheet-sdk-tests.git
|
10
|
+
- smartsheet-sdk-tests/travis_scripts/install_wiremock.sh
|
11
|
+
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
12
|
+
- gem install bundler -v 1.17.3
|
13
|
+
|
14
|
+
|
15
|
+
script:
|
16
|
+
- smartsheet-sdk-tests/travis_scripts/start_wiremock.sh
|
17
|
+
- rake test
|
18
|
+
before_deploy: "echo 'Deploying release to Rubygems'"
|
19
|
+
deploy:
|
20
|
+
provider: rubygems
|
21
|
+
api_key:
|
22
|
+
secure: TMJZSpK3uHov1p0mvnOVjt75OZ3PrcwvufEESWd68K2A8DLwICbAMgC+uyf7VZV4Wg1nI5JOCrcBoty4xslHcCwAdG/HqVxV+JNsBhoFmaECv/YxaB+0QRQOhaMxIfIcindtXdguzDq162D8i1Xh4rdTTBuNwXnTYckqrpqNJ9erZ4pKFZbOr3nEhqnS+FyK7yZ2ihzsrWM7Ad/UL6x4rurvwb4+PgwoVF3Z6X3XJDYekTTs3klmGkDkMX+rhHZ54kW7l0dE2mHV2Mc60lwvDX1E1lHhCWuF3sxxr+TGWHCuT/5uskX3YYdwvGsRN17edqBrDYxE3J6lwPm7YEY75D4lHEXqipB+48HnoOemZUrQwieArDHtnba4x0Z61ftIropHYK154IX0Ieo7oQcNZdg6Zsj9mR42+WcY7Ih64i8/DfUsh2umOQ4iGlXxm8+JtybYzrG83guWQTXu97nMHIZqfmW4dgehr58hah108wruI8NEiqtUzk5ZAzH2Z4LBVXpVBRktragP+NMyRPCgSXGg4qHOkb/wsBLvaFee25Ps1+pZInvegU7TlsKZpxyt5TvS7X5yShHiZznLllDwqZ8wm36vTQbCunFkCfZxVK6/pCkPpJcISeVie4TJKVOtT93PDYI5HzSZuRQXlnfcPL4vJgo0Diw1P9NTVArtr1g=
|
23
|
+
gem: smartsheet
|
24
|
+
gemspec: smartsheet.gemspec
|
25
|
+
on:
|
26
|
+
repo: smartsheet-platform/smartsheet-ruby-sdk
|
27
|
+
branch: master
|
28
|
+
rvm: 2.7
|
29
|
+
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,134 @@
|
|
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.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
-
|
29
|
-
|
30
|
-
|
31
|
-
###
|
32
|
-
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
-
|
44
|
-
-
|
45
|
-
|
46
|
-
|
47
|
-
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
###
|
63
|
-
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
-
|
82
|
-
|
83
|
-
|
84
|
-
-
|
85
|
-
|
86
|
-
|
87
|
-
-
|
88
|
-
-
|
89
|
-
|
90
|
-
|
91
|
-
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
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.101.1] - 2020-12-07
|
10
|
+
### Added
|
11
|
+
- Support for state parameter for OAuth
|
12
|
+
|
13
|
+
## [2.101.0] - 2020-09-28
|
14
|
+
### Changed
|
15
|
+
- Include modern Faraday 1.x as an allowed dependency
|
16
|
+
|
17
|
+
## [2.86.1] - 2019-11-18
|
18
|
+
### Added
|
19
|
+
- Support for sheet summary endpoints
|
20
|
+
- Missing implementation for add profile image
|
21
|
+
|
22
|
+
## [2.77.2] - 2019-06-06
|
23
|
+
### Added
|
24
|
+
- Automated publication process to RubyGems using Travis CI
|
25
|
+
|
26
|
+
## [2.77.0] - 2019-05-08
|
27
|
+
### Added
|
28
|
+
- Events endpoint to retrieve events that are occurring in your Smartsheet plan.
|
29
|
+
|
30
|
+
## [1.3.0] - 2019-02-11
|
31
|
+
### Added
|
32
|
+
- Constant for smartsheetgov
|
33
|
+
|
34
|
+
### Changed
|
35
|
+
- Documentation regarding the usage of base_url to clarify how clients can access smartsheetgov
|
36
|
+
|
37
|
+
## [1.2.0] - 2018-06-29
|
38
|
+
### Added
|
39
|
+
- Support for 'import sheet from XLSX, CSV file' endpoints
|
40
|
+
|
41
|
+
## [1.1.0] - 2018-03-16
|
42
|
+
### Added
|
43
|
+
- Integration test suite (see https://github.com/smartsheet-platform/smartsheet-sdk-tests)
|
44
|
+
- Endpoints for automation rules
|
45
|
+
- Endpoint for 'sort rows in sheet'
|
46
|
+
- Endpoints for cross-sheet references
|
47
|
+
- Support for looser JSON content types in responses
|
48
|
+
- Support for custom app name in the user agent header
|
49
|
+
- URL constructor for requesting app authorization from a user
|
50
|
+
- This changelog
|
51
|
+
|
52
|
+
### Changed
|
53
|
+
- Empty filenames in file-accepting endpoints are now equivalent to nil filenames
|
54
|
+
- Specifying `Assume-User` header override in a request will now override the `assume_user` value configured in a client
|
55
|
+
- Client now requests and handles gzipped responses
|
56
|
+
|
57
|
+
### Removed
|
58
|
+
- Unsupported `filename` and `content_type` attributes in `RequestSpec` (internal)
|
59
|
+
|
60
|
+
|
61
|
+
## [1.0.0] - 2017-11-08
|
62
|
+
### Added
|
63
|
+
- Error type `Smartsheet::HttpResponseError` for HTTP failures that do not correspond to Smartsheet errors
|
64
|
+
- Basic YARD documentation
|
65
|
+
- Re-add support for Ruby versions ~> 2.2 (from > 2.2)
|
66
|
+
|
67
|
+
### Fixed
|
68
|
+
- Removing one or many favorite sights now uses the correct URL
|
69
|
+
|
70
|
+
|
71
|
+
## [1.0.0.beta.2] - 2017-10-12
|
72
|
+
### Added
|
73
|
+
- Inspect formatting for the Smartsheet client (for interactive use)
|
74
|
+
|
75
|
+
### Changed
|
76
|
+
- Log retry failures only when retries were actually attempted, and not on non-retryable failures
|
77
|
+
- Accept an empty string for a client token as being equivalent to a nil token
|
78
|
+
- Adjust formatting of logs
|
79
|
+
|
80
|
+
### Deprecated
|
81
|
+
- Required Ruby versions restricted to > 2.2 (from ~> 2.2)
|
82
|
+
|
83
|
+
### Removed
|
84
|
+
- Read-write-sheet example (now available at https://github.com/smartsheet-samples/ruby-read-write-sheet)
|
85
|
+
|
86
|
+
### Fixed
|
87
|
+
- Pass the 'log full body' client configuration flag correctly
|
88
|
+
- Log responses
|
89
|
+
|
90
|
+
### Security
|
91
|
+
- **Properly censors client tokens** by fixing the header censor to no longer be case-sensitive
|
92
|
+
|
93
|
+
|
94
|
+
## [1.0.0.beta.1] - 2017-10-10
|
95
|
+
### Changed
|
96
|
+
- Set required Ruby version to ~> 2.2
|
97
|
+
|
98
|
+
|
99
|
+
## [1.0.0.beta.0] - 2017-10-10
|
100
|
+
### Added
|
101
|
+
- Endpoints for sheets
|
102
|
+
- Endpoints for rows
|
103
|
+
- Endpoints for columns
|
104
|
+
- Endpoints for comments
|
105
|
+
- Endpoints for attachments
|
106
|
+
- Endpoints for update requests
|
107
|
+
- Endpoints for folders
|
108
|
+
- Endpoints for home
|
109
|
+
- Endpoints for workspaces
|
110
|
+
- Endpoints for favorites
|
111
|
+
- Endpoints for users
|
112
|
+
- Endpoints for contacts
|
113
|
+
- Endpoints for groups
|
114
|
+
- Endpoints for reports
|
115
|
+
- Endpoints for sights
|
116
|
+
- Endpoints for templates
|
117
|
+
- Endpoints for search
|
118
|
+
- Endpoints for sharing
|
119
|
+
- Endpoints for webhooks
|
120
|
+
- Endpoints for server info
|
121
|
+
- Endpoints for API token management
|
122
|
+
- Support for making arbitrary requests
|
123
|
+
- Support for assuming the role of a user as an administrator
|
124
|
+
- Support for automatic request retry
|
125
|
+
- Support for logging
|
126
|
+
- Test suite with unit tests and two-column-accounting endpoint tests
|
127
|
+
|
128
|
+
[Unreleased]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.2.0...HEAD
|
129
|
+
[1.2.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.1.0...v1.2.0
|
130
|
+
[1.1.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0...v1.1.0
|
131
|
+
[1.0.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.2...v1.0.0
|
132
|
+
[1.0.0.beta.2]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.1...v1.0.0.beta.2
|
133
|
+
[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
134
|
[1.0.0.beta.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/init...v1.0.0.beta.0
|