Skip to content

Commit

Permalink
Fix Naming/FileName offense (#32)
Browse files Browse the repository at this point in the history
Rename Colore Client according to Rubygems conventions.

Ref: https://guides.rubygems.org/name-your-gem/

Additionally: fix readme
  • Loading branch information
tagliala authored Jan 20, 2025
1 parent daf60eb commit bf87e81
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 19 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ File.open( 'foo.pdf', 'wb' ) { |f| f.write(pdf) }
## Available Methods

```ruby
client.create_document doc_id:, filename:, content:, title:, author:, actions:[], callback_url
client.update_document doc_id:, version:, filename:, content:, title:, author:, actions:[], callback_url:
client.request_conversion doc_id:, version:, filename:, action: callback_url:
client.create_document doc_id:, filename:, content:, title:, author:, actions:, callback_url:
client.update_document doc_id:, filename:, content:, author:, actions:, callback_url:
client.update_title doc_id:, title:
client.request_conversion doc_id:, filename:, action:, version:, callback_url:
client.delete_document doc_id:
client.delete_version doc_id:, version:
client.get_document doc_id:, version:, filename:
client.get_document doc_id:, filename:, version:
client.get_document_info doc_id:
client.convert content:, action:, language:
```
Expand Down
2 changes: 1 addition & 1 deletion bin/colore-client
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require 'pp'
BIN_BASE = Pathname.new(__dir__)
$LOAD_PATH << BIN_BASE.join('../lib')

require 'colore-client'
require 'colore/client'

DEFAULT_ARGS = {
base_uri: 'http://localhost:9240/',
Expand Down
5 changes: 0 additions & 5 deletions lib/colore-client.rb

This file was deleted.

3 changes: 3 additions & 0 deletions lib/colore/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
require 'tempfile'
require 'uri'

require_relative 'client/version'
require_relative 'errors'

# The Colore module serves as the namespace for the Colore client and related classes.
module Colore
# The name of the 'current' version.
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

SPEC_BASE = Pathname.new(__dir__)

require 'colore-client'
require 'colore/client'

def fixture(name)
SPEC_BASE.join('fixtures', name)
Expand Down

0 comments on commit bf87e81

Please sign in to comment.