Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Naming/FileName offense #32

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading