Skip to content
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
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0
2.6.0
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ A Ruby client for the 2Captcha API.
- [Error handling](#error-handling)

## Installation

Add this line to your application's Gemfile:

```bash
Expand All @@ -56,7 +55,7 @@ $ gem install ruby-2captcha
To use the api2captcha gem, you'll need to import the module and create a Client instance. Here's an example:

```ruby
require 'api-2captcha'
require 'api_2captcha'

client = Api2Captcha.new("YOUR_API_KEY")
```
Expand Down
4 changes: 3 additions & 1 deletion README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ Ruby-клиент для API 2Captcha.
- [Обработка ошибок](#error-handling)

## Установка

Автоматическая установка гема с помощью Bundler. Добавьте следующую строку в ваш Gemfile:
```ruby
gem 'ruby-2captcha'
Expand All @@ -54,7 +53,10 @@ gem install ruby-2captcha
Описание всех необходимых параметров для настройки установленного гема.

Экземпляр класса Api2Captcha можно создать следующим образом:

```ruby
require 'api_2captcha'

client = Api2Captcha.new("YOUR_API_KEY")
```

Expand Down
6 changes: 3 additions & 3 deletions lib/api_2captcha.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# frozen_string_literal: true

require_relative "api_2captcha/version"
require_relative 'api_2captcha/api2captcha_exceptions'
require_relative 'api_2captcha/client'
require_relative 'api_2captcha/version'

module Api2Captcha
require_relative 'api_2captcha/api2captcha_exceptions'
def self.new(*args)
Client.new(*args)
end
end

require 'api_2captcha/client'
Loading