smartsheet 1.3.0 → 2.101.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +12 -12
  3. data/.rubocop.yml +4 -4
  4. data/.travis.yml +29 -13
  5. data/.yardopts +3 -3
  6. data/ADVANCED.md +79 -0
  7. data/CHANGELOG.md +129 -109
  8. data/Gemfile +6 -6
  9. data/LICENSE +202 -202
  10. data/README.md +248 -238
  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 -191
  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 +21 -0
  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 +514 -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/sheets/sheets_summaries.rb +123 -0
  58. data/lib/smartsheet/endpoints/sights/sights.rb +101 -101
  59. data/lib/smartsheet/endpoints/sights/sights_share.rb +69 -69
  60. data/lib/smartsheet/endpoints/templates/templates.rb +29 -29
  61. data/lib/smartsheet/endpoints/token/token.rb +65 -65
  62. data/lib/smartsheet/endpoints/update_requests/sent_update_requests.rb +44 -44
  63. data/lib/smartsheet/endpoints/update_requests/update_requests.rb +74 -74
  64. data/lib/smartsheet/endpoints/users/alternate_emails.rb +79 -79
  65. data/lib/smartsheet/endpoints/users/users.rb +123 -77
  66. data/lib/smartsheet/endpoints/webhooks/webhooks.rb +71 -71
  67. data/lib/smartsheet/endpoints/workspaces/workspaces.rb +87 -87
  68. data/lib/smartsheet/endpoints/workspaces/workspaces_share.rb +70 -70
  69. data/lib/smartsheet/error.rb +69 -69
  70. data/lib/smartsheet/general_request.rb +74 -74
  71. data/lib/smartsheet/version.rb +5 -5
  72. data/smartsheet.gemspec +54 -54
  73. metadata +26 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfdb074b34d136b1e899f676f8cf8807e32bdd662d69bdc5386a8ffe7cfb0f58
4
- data.tar.gz: cda02013bf2ea4e3ffa64d4aed6d5b113e0c272cf905e37a28d963584b7b975c
3
+ metadata.gz: 96026502f9840fbc987364328ec0c162c534d14fc3504a505856ad9bd864a24a
4
+ data.tar.gz: 3954be28f4ee6864cb2aa5ec2338376ece2237dc7270017202e52a333370e9f3
5
5
  SHA512:
6
- metadata.gz: 07c7a7f66f6b3fe1b5e3bcc18c79eb99fb61462c1cf2b66284398cd24629dd96e97442d9507fa4b1142d22b807983be0d5c9e730e236b6d93b9f4c8decefe49d
7
- data.tar.gz: ff81233acec8c754515b60adfa38d9e435ab4669973488e9c20a855f13bfbd1d594a7e2c9f7a3f87d605028186b55ed6a75c83c8b021e1bdb425dcd0d336844d
6
+ metadata.gz: c2c660d8dcd12be10912c13f0da68ff79623d247a253a1ed06c2d0a5908c970afbeec318fb32d71a2d168668f00820f2d8ea245eaf24e9ec735a3e8bc826e5a7
7
+ data.tar.gz: 2f2656b3c7f02d7c8869abcdcc94210ec4fa789e7a03bcc0ea6099cb6540bacce02cd312d4f09604d6c85cef9cf64c8566bdecf98c2bc1ba04fb09af99aa84de
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
@@ -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
@@ -1,13 +1,29 @@
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 install bundler -v 1.15.4
10
-
11
- script:
12
- - smartsheet-sdk-tests/travis_scripts/start_wiremock.sh
13
- - rake test
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
@@ -0,0 +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
79
+ ```
@@ -1,110 +1,130 @@
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
- ## [1.3.0] - 2019-02-11
10
- - Added constant for smartsheetgov
11
- - Updated documentation regarding the usage of base_url to clarify how clients can access smartsheetgov
12
-
13
- ## [1.2.0] - 2018-06-29
14
- ### Added
15
- - Added support for 'import sheet from XLSX, CSV file' endpoints
16
-
17
- ## [1.1.0] - 2018-03-16
18
- ### Added
19
- - Integration test suite (see https://github.com/smartsheet-platform/smartsheet-sdk-tests)
20
- - Endpoints for automation rules
21
- - Endpoint for 'sort rows in sheet'
22
- - Endpoints for cross-sheet references
23
- - Support for looser JSON content types in responses
24
- - Support for custom app name in the user agent header
25
- - URL constructor for requesting app authorization from a user
26
- - This changelog
27
-
28
- ### Changed
29
- - Empty filenames in file-accepting endpoints are now equivalent to nil filenames
30
- - Specifying `Assume-User` header override in a request will now override the `assume_user` value configured in a client
31
- - Client now requests and handles gzipped responses
32
-
33
- ### Removed
34
- - Unsupported `filename` and `content_type` attributes in `RequestSpec` (internal)
35
-
36
-
37
- ## [1.0.0] - 2017-11-08
38
- ### Added
39
- - Error type `Smartsheet::HttpResponseError` for HTTP failures that do not correspond to Smartsheet errors
40
- - Basic YARD documentation
41
- - Re-add support for Ruby versions ~> 2.2 (from > 2.2)
42
-
43
- ### Fixed
44
- - Removing one or many favorite sights now uses the correct URL
45
-
46
-
47
- ## [1.0.0.beta.2] - 2017-10-12
48
- ### Added
49
- - Inspect formatting for the Smartsheet client (for interactive use)
50
-
51
- ### Changed
52
- - Log retry failures only when retries were actually attempted, and not on non-retryable failures
53
- - Accept an empty string for a client token as being equivalent to a nil token
54
- - Adjust formatting of logs
55
-
56
- ### Deprecated
57
- - Required Ruby versions restricted to > 2.2 (from ~> 2.2)
58
-
59
- ### Removed
60
- - Read-write-sheet example (now available at https://github.com/smartsheet-samples/ruby-read-write-sheet)
61
-
62
- ### Fixed
63
- - Pass the 'log full body' client configuration flag correctly
64
- - Log responses
65
-
66
- ### Security
67
- - **Properly censors client tokens** by fixing the header censor to no longer be case-sensitive
68
-
69
-
70
- ## [1.0.0.beta.1] - 2017-10-10
71
- ### Changed
72
- - Set required Ruby version to ~> 2.2
73
-
74
-
75
- ## [1.0.0.beta.0] - 2017-10-10
76
- ### Added
77
- - Endpoints for sheets
78
- - Endpoints for rows
79
- - Endpoints for columns
80
- - Endpoints for comments
81
- - Endpoints for attachments
82
- - Endpoints for update requests
83
- - Endpoints for folders
84
- - Endpoints for home
85
- - Endpoints for workspaces
86
- - Endpoints for favorites
87
- - Endpoints for users
88
- - Endpoints for contacts
89
- - Endpoints for groups
90
- - Endpoints for reports
91
- - Endpoints for sights
92
- - Endpoints for templates
93
- - Endpoints for search
94
- - Endpoints for sharing
95
- - Endpoints for webhooks
96
- - Endpoints for server info
97
- - Endpoints for API token management
98
- - Support for making arbitrary requests
99
- - Support for assuming the role of a user as an administrator
100
- - Support for automatic request retry
101
- - Support for logging
102
- - Test suite with unit tests and two-column-accounting endpoint tests
103
-
104
- [Unreleased]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.2.0...HEAD
105
- [1.2.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.1.0...v1.2.0
106
- [1.1.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0...v1.1.0
107
- [1.0.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.2...v1.0.0
108
- [1.0.0.beta.2]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.1...v1.0.0.beta.2
109
- [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.101.0] - 2020-09-28
10
+ ### Changed
11
+ - Include modern Faraday 1.x as an allowed dependency
12
+
13
+ ## [2.86.1] - 2019-11-18
14
+ ### Added
15
+ - Support for sheet summary endpoints
16
+ - Missing implementation for add profile image
17
+
18
+ ## [2.77.2] - 2019-06-06
19
+ ### Added
20
+ - Automated publication process to RubyGems using Travis CI
21
+
22
+ ## [2.77.0] - 2019-05-08
23
+ ### Added
24
+ - Events endpoint to retrieve events that are occurring in your Smartsheet plan.
25
+
26
+ ## [1.3.0] - 2019-02-11
27
+ ### Added
28
+ - Constant for smartsheetgov
29
+
30
+ ### Changed
31
+ - Documentation regarding the usage of base_url to clarify how clients can access smartsheetgov
32
+
33
+ ## [1.2.0] - 2018-06-29
34
+ ### Added
35
+ - Support for 'import sheet from XLSX, CSV file' endpoints
36
+
37
+ ## [1.1.0] - 2018-03-16
38
+ ### Added
39
+ - Integration test suite (see https://github.com/smartsheet-platform/smartsheet-sdk-tests)
40
+ - Endpoints for automation rules
41
+ - Endpoint for 'sort rows in sheet'
42
+ - Endpoints for cross-sheet references
43
+ - Support for looser JSON content types in responses
44
+ - Support for custom app name in the user agent header
45
+ - URL constructor for requesting app authorization from a user
46
+ - This changelog
47
+
48
+ ### Changed
49
+ - Empty filenames in file-accepting endpoints are now equivalent to nil filenames
50
+ - Specifying `Assume-User` header override in a request will now override the `assume_user` value configured in a client
51
+ - Client now requests and handles gzipped responses
52
+
53
+ ### Removed
54
+ - Unsupported `filename` and `content_type` attributes in `RequestSpec` (internal)
55
+
56
+
57
+ ## [1.0.0] - 2017-11-08
58
+ ### Added
59
+ - Error type `Smartsheet::HttpResponseError` for HTTP failures that do not correspond to Smartsheet errors
60
+ - Basic YARD documentation
61
+ - Re-add support for Ruby versions ~> 2.2 (from > 2.2)
62
+
63
+ ### Fixed
64
+ - Removing one or many favorite sights now uses the correct URL
65
+
66
+
67
+ ## [1.0.0.beta.2] - 2017-10-12
68
+ ### Added
69
+ - Inspect formatting for the Smartsheet client (for interactive use)
70
+
71
+ ### Changed
72
+ - Log retry failures only when retries were actually attempted, and not on non-retryable failures
73
+ - Accept an empty string for a client token as being equivalent to a nil token
74
+ - Adjust formatting of logs
75
+
76
+ ### Deprecated
77
+ - Required Ruby versions restricted to > 2.2 (from ~> 2.2)
78
+
79
+ ### Removed
80
+ - Read-write-sheet example (now available at https://github.com/smartsheet-samples/ruby-read-write-sheet)
81
+
82
+ ### Fixed
83
+ - Pass the 'log full body' client configuration flag correctly
84
+ - Log responses
85
+
86
+ ### Security
87
+ - **Properly censors client tokens** by fixing the header censor to no longer be case-sensitive
88
+
89
+
90
+ ## [1.0.0.beta.1] - 2017-10-10
91
+ ### Changed
92
+ - Set required Ruby version to ~> 2.2
93
+
94
+
95
+ ## [1.0.0.beta.0] - 2017-10-10
96
+ ### Added
97
+ - Endpoints for sheets
98
+ - Endpoints for rows
99
+ - Endpoints for columns
100
+ - Endpoints for comments
101
+ - Endpoints for attachments
102
+ - Endpoints for update requests
103
+ - Endpoints for folders
104
+ - Endpoints for home
105
+ - Endpoints for workspaces
106
+ - Endpoints for favorites
107
+ - Endpoints for users
108
+ - Endpoints for contacts
109
+ - Endpoints for groups
110
+ - Endpoints for reports
111
+ - Endpoints for sights
112
+ - Endpoints for templates
113
+ - Endpoints for search
114
+ - Endpoints for sharing
115
+ - Endpoints for webhooks
116
+ - Endpoints for server info
117
+ - Endpoints for API token management
118
+ - Support for making arbitrary requests
119
+ - Support for assuming the role of a user as an administrator
120
+ - Support for automatic request retry
121
+ - Support for logging
122
+ - Test suite with unit tests and two-column-accounting endpoint tests
123
+
124
+ [Unreleased]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.2.0...HEAD
125
+ [1.2.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.1.0...v1.2.0
126
+ [1.1.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0...v1.1.0
127
+ [1.0.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.2...v1.0.0
128
+ [1.0.0.beta.2]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.1...v1.0.0.beta.2
129
+ [1.0.0.beta.1]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/v1.0.0.beta.0...v1.0.0.beta.1
110
130
  [1.0.0.beta.0]: https://github.com/smartsheet-platform/smartsheet-ruby-sdk/compare/init...v1.0.0.beta.0
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
- source 'https://rubygems.org'
2
-
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
-
5
- # Specify your gem's dependencies in smartsheet.gemspec
6
- gemspec
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in smartsheet.gemspec
6
+ gemspec
data/LICENSE CHANGED
@@ -1,202 +1,202 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "{}"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright {yyyy} {name of copyright owner}
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
202
-
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright {yyyy} {name of copyright owner}
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+