Skip to content

Commit

Permalink
Merge pull request #2 from threatstack/deprecate-ruby
Browse files Browse the repository at this point in the history
Remove Ruby examples.
  • Loading branch information
benpatterson authored Mar 7, 2019
2 parents 81085eb + fc0464d commit 028f741
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 105 deletions.
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,8 @@ TS_USER_ID=x TS_ORGANIZATION_ID=x TS_API_KEY=x python3 example.py
## Ruby
Disclaimer: Ruby's HAWK implementation is no longer maintained. You may want to consider a different language.

Before you can install the dependencies, you must install Ruby and bundler:
To install dependencies, run `bundle`:
```bash
bundle install
```

Run the following ruby command using the environment variables:
```bash
TS_USER_ID=x TS_ORGANIZATION_ID=x TS_API_KEY=x ruby example.rb
```
Examples have been removed, but leaving a signpost here for readers.

NOTE: The Faraday HTTP client used in this example reorders the query string parameters into alphabetical order before sending them to the server.
If you do not specify the parameters in your query string in alphabetical order, then the request to the server will fail with a 401 Unauthorized.
This is because the Auth header that the client computes will be different than what the server computes.

## Java
Before you can install the dependencies, you must install Java and Maven 3.
Expand Down
4 changes: 0 additions & 4 deletions ruby/Gemfile

This file was deleted.

17 changes: 0 additions & 17 deletions ruby/Gemfile.lock

This file was deleted.

71 changes: 0 additions & 71 deletions ruby/example.rb

This file was deleted.

0 comments on commit 028f741

Please sign in to comment.