qrfy 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rubocop.yml +12 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +89 -0
- data/Rakefile +12 -0
- data/lib/qrfy/client.rb +41 -0
- data/lib/qrfy/collection.rb +23 -0
- data/lib/qrfy/configuration.rb +17 -0
- data/lib/qrfy/errors/base.rb +12 -0
- data/lib/qrfy/errors/internal_server_error.rb +12 -0
- data/lib/qrfy/errors/record_invalid.rb +12 -0
- data/lib/qrfy/errors/record_not_found.rb +12 -0
- data/lib/qrfy/errors/too_many_requests.rb +12 -0
- data/lib/qrfy/errors/unauthorized.rb +12 -0
- data/lib/qrfy/errors.rb +17 -0
- data/lib/qrfy/objects/base.rb +28 -0
- data/lib/qrfy/objects/folder.rb +16 -0
- data/lib/qrfy/objects/qr.rb +17 -0
- data/lib/qrfy/objects.rb +14 -0
- data/lib/qrfy/resources/base.rb +63 -0
- data/lib/qrfy/resources/folders.rb +22 -0
- data/lib/qrfy/resources/qrs.rb +46 -0
- data/lib/qrfy/resources.rb +15 -0
- data/lib/qrfy/version.rb +5 -0
- data/lib/qrfy.rb +29 -0
- data/sig/qrfy.rbs +4 -0
- metadata +112 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 629f1ee8024da3f88e97bb5e061e7a0b967a3c4b7f90fc561e5841cf6023a0ca
|
4
|
+
data.tar.gz: c3f2ec5cda144a854bc31e8119d43083020b75880a29b39ceec4141c33e3009f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3ff77ce7959d10523f0957fa81fd13e3d96e9fb0ffcc4ea8b5c3fa49982ceae414dcb6b8502dc36d5d0cdca94813e1ae3f9d2d70d7a23a6076b6ab650c254401
|
7
|
+
data.tar.gz: 37cc82b523d1b002e509b4d6035319e1cb622f8ed38cf2af5cbe6fc41740ddca75ee2cbf276b61f7ce6dfd5bf04ca4a814b35776c5108632a281aa59cdd6a3b4
|
data/.rubocop.yml
ADDED
data/CHANGELOG.md
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2024 Wojciech Zygmuntowicz
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# Qrfy
|
2
|
+
|
3
|
+
A really simple wrapper around https://qrfy.com/ API. Documentation of the API is here https://qrfy.com/docs/QR. To use that API you have to setup your API key first.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Install the gem and add to the application's Gemfile by executing:
|
8
|
+
|
9
|
+
$ bundle add qrfy
|
10
|
+
|
11
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
12
|
+
|
13
|
+
$ gem install qrfy
|
14
|
+
|
15
|
+
## Usage
|
16
|
+
|
17
|
+
First setup the API key in the rails initializers
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
# config/initializers/qrfy.rb
|
21
|
+
Qrfy.configure do |config|
|
22
|
+
config.api_key = ENV["QRFY_API_KEY"]
|
23
|
+
end
|
24
|
+
```
|
25
|
+
|
26
|
+
You could setup the API key during the client initialization as well (if you set it up in the initializer, then it'll be used by default):
|
27
|
+
```ruby
|
28
|
+
client = Qrfy::Client.new(api_key: ENV["QRFY_API_KEY"])
|
29
|
+
```
|
30
|
+
|
31
|
+
## Resources
|
32
|
+
|
33
|
+
### QR
|
34
|
+
|
35
|
+
|
36
|
+
#### Create
|
37
|
+
Create a new QR code:
|
38
|
+
```ruby
|
39
|
+
id = client.qrs.create(qr_params)
|
40
|
+
```
|
41
|
+
|
42
|
+
Create many QR codes at once:
|
43
|
+
```ruby
|
44
|
+
ids = client.qrs.create([qr_params1, qr_params2])
|
45
|
+
```
|
46
|
+
|
47
|
+
You can also attach global style for your qr images and folder in which it should be saved.
|
48
|
+
```ruby
|
49
|
+
id = client.qrs.create(qr_params, style: { shape: { style: :sparkle } }, folder_id: 1)
|
50
|
+
```
|
51
|
+
|
52
|
+
|
53
|
+
### Folder
|
54
|
+
|
55
|
+
You can list folders by following that code:
|
56
|
+
```ruby
|
57
|
+
client.folders.list.each do |folder|
|
58
|
+
puts "Folder ##{folder.id} with name: #{folder.name} was created at: #{folder.created_at} and has #{folder.qrs} images attached."
|
59
|
+
end
|
60
|
+
```
|
61
|
+
|
62
|
+
And create new folders using:
|
63
|
+
```ruby
|
64
|
+
folder_id = client.folders.create({ name: "My first folder" })
|
65
|
+
```
|
66
|
+
|
67
|
+
## Error handling
|
68
|
+
|
69
|
+
This gem follows the exception error handling. All errors raised by this gem inherits from `Qrfy::Errors::Base` class and belong to the following categories:
|
70
|
+
|
71
|
+
* `Qrfy::Errors::RecordInvalid`
|
72
|
+
* `Qrfy::Errors::Unauthorized`
|
73
|
+
* `Qrfy::Errors::RecordNotFound`
|
74
|
+
* `Qrfy::Errors::TooManyRequests`
|
75
|
+
* `Qrfy::Errors::InternalServerError`
|
76
|
+
|
77
|
+
## Development
|
78
|
+
|
79
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
80
|
+
|
81
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
82
|
+
|
83
|
+
## Contributing
|
84
|
+
|
85
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/w-zygmuntowicz/qrfy.
|
86
|
+
|
87
|
+
## License
|
88
|
+
|
89
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/lib/qrfy/client.rb
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# :markup: markdown
|
4
|
+
|
5
|
+
module Qrfy
|
6
|
+
# # Qrfy Client
|
7
|
+
#
|
8
|
+
# Hides actual implementation of HTTP API calls. You can overwrite the global configuration
|
9
|
+
# (api key or http adapter) passing values in the initializer.
|
10
|
+
class Client
|
11
|
+
BASE_URL = "https://qrfy.com/api/public"
|
12
|
+
|
13
|
+
attr_reader :api_key, :adapter
|
14
|
+
|
15
|
+
def initialize(config = {})
|
16
|
+
@api_key = config.key?(:api_key) ? config[:api_key] : Qrfy.configuration.api_key
|
17
|
+
@adapter = config.key?(:adapter) ? config[:adapter] : Qrfy.configuration.adapter
|
18
|
+
|
19
|
+
@stubs = config[:stubs]
|
20
|
+
end
|
21
|
+
|
22
|
+
def connection
|
23
|
+
@connection ||= Faraday.new(url: BASE_URL) do |conn|
|
24
|
+
conn.request :json
|
25
|
+
|
26
|
+
conn.response :parse_dates
|
27
|
+
conn.response :json, content_type: "application/json"
|
28
|
+
|
29
|
+
conn.adapter adapter, @stubs
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def folders
|
34
|
+
Resources::Folders.new(self)
|
35
|
+
end
|
36
|
+
|
37
|
+
def qrs
|
38
|
+
Resources::Qrs.new(self)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# :markup: markdown
|
4
|
+
|
5
|
+
module Qrfy
|
6
|
+
# # Qrfy Collection
|
7
|
+
#
|
8
|
+
# A way to abstract collection API responses.
|
9
|
+
class Collection
|
10
|
+
def initialize(data:, total:, next_cursor:, prev_cursor:)
|
11
|
+
@data = data
|
12
|
+
@total = total
|
13
|
+
@next_cursor = next_cursor
|
14
|
+
@prev_cursor = prev_cursor
|
15
|
+
end
|
16
|
+
|
17
|
+
class << self
|
18
|
+
def from_response(data, type:)
|
19
|
+
data.map { |attrs| type.new(attrs) }
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# :markup: markdown
|
4
|
+
|
5
|
+
module Qrfy
|
6
|
+
# # Configuration
|
7
|
+
#
|
8
|
+
# A way to store connection configuration such as api_key or http adapter.
|
9
|
+
class Configuration
|
10
|
+
attr_accessor :api_key, :adapter
|
11
|
+
|
12
|
+
def initialize
|
13
|
+
@api_key = nil
|
14
|
+
@adapter = nil
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/qrfy/errors.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# :markup: markdown
|
4
|
+
|
5
|
+
module Qrfy
|
6
|
+
# # Qrfy Errors
|
7
|
+
#
|
8
|
+
# Each error raised by 3rd party gems should be catched and reraised with a custom namespaced errors.
|
9
|
+
module Errors
|
10
|
+
autoload :Base, "qrfy/errors/base"
|
11
|
+
autoload :InternalServerError, "qrfy/errors/internal_server_error"
|
12
|
+
autoload :RecordInvalid, "qrfy/errors/record_invalid"
|
13
|
+
autoload :RecordNotFound, "qrfy/errors/record_not_found"
|
14
|
+
autoload :TooManyRequests, "qrfy/errors/too_many_requests"
|
15
|
+
autoload :Unauthorized, "qrfy/errors/unathorized"
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# :markup: markdown
|
4
|
+
|
5
|
+
require "ostruct"
|
6
|
+
|
7
|
+
module Qrfy
|
8
|
+
module Objects
|
9
|
+
# # Base Qrfy Object
|
10
|
+
#
|
11
|
+
# Base class to be subclassed from for each object generated from HTTP response.
|
12
|
+
class Base < OpenStruct
|
13
|
+
def initialize(attributes)
|
14
|
+
super to_ostruct(attributes)
|
15
|
+
end
|
16
|
+
|
17
|
+
def to_ostruct(obj)
|
18
|
+
if obj.is_a?(Hash)
|
19
|
+
OpenStruct.new(obj.transform_values { |val| to_ostruct(val) })
|
20
|
+
elsif obj.is_a?(Array)
|
21
|
+
obj.map { |o| to_ostruct(o) }
|
22
|
+
else
|
23
|
+
obj
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# :markup: markdown
|
4
|
+
|
5
|
+
module Qrfy
|
6
|
+
module Objects
|
7
|
+
# # Qr Qrfy Object
|
8
|
+
#
|
9
|
+
# The abstraction on the actual Qr image. Each Qr has it's id by which it should be referenced.
|
10
|
+
# For each Qr you can generate actual image in different image formats (png, webp, etc.).
|
11
|
+
class Qr < Base
|
12
|
+
def created_at
|
13
|
+
Time.at(createdAt)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/qrfy/objects.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# :markup: markdown
|
4
|
+
|
5
|
+
module Qrfy
|
6
|
+
# # Qrfy Objects
|
7
|
+
#
|
8
|
+
# Hide implementation of the actual objects generated from response.
|
9
|
+
module Objects
|
10
|
+
autoload :Base, "qrfy/objects/base"
|
11
|
+
autoload :Folder, "qrfy/objects/folder"
|
12
|
+
autoload :Qr, "qrfy/objects/qr"
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# :markup: markdown
|
4
|
+
|
5
|
+
module Qrfy
|
6
|
+
module Resources
|
7
|
+
# # Base Qrfy Resource
|
8
|
+
#
|
9
|
+
# Implements a structure for specific REST qrfy resources and encapsulate API calls implementation.
|
10
|
+
class Base
|
11
|
+
attr_reader :client
|
12
|
+
|
13
|
+
def initialize(client)
|
14
|
+
@client = client
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def get_request(url, params: {}, headers: {})
|
20
|
+
handle_response client.connection.get(url, params, headers.merge({ "API-KEY" => client.api_key }))
|
21
|
+
end
|
22
|
+
|
23
|
+
def post_request(url, body:, headers: {})
|
24
|
+
handle_response client.connection.post(url, body, headers.merge({ "API-KEY" => client.api_key }))
|
25
|
+
end
|
26
|
+
|
27
|
+
def put_request(url, body:, headers: {})
|
28
|
+
handle_response client.connection.put(url, body, headers.merge({ "API-KEY" => client.api_key }))
|
29
|
+
end
|
30
|
+
|
31
|
+
def handle_response(response) # rubocop:disable Metrics/MethodLength
|
32
|
+
message = response.body["error"] if response.body.is_a?(Hash)
|
33
|
+
|
34
|
+
case response.status
|
35
|
+
when 400
|
36
|
+
raise Qrfy::Errors::RecordInvalid, "Your request was malformed. #{message}"
|
37
|
+
when 401
|
38
|
+
raise Qrfy::Errors::Unauthorized,
|
39
|
+
"You did not supply valid authentication credentials. #{message}"
|
40
|
+
when 404
|
41
|
+
raise Qrfy::Errors::RecordNotFound, "Not found (check if folder exists). #{message}"
|
42
|
+
when 429
|
43
|
+
raise Qrfy::Errors::TooManyRequests, "Your request exceeded the API rate limit. #{message}"
|
44
|
+
when 500, 503
|
45
|
+
raise Qrfy::Errors::InternalServerError,
|
46
|
+
"Could not perform the request due to server-side problems. #{message}"
|
47
|
+
end
|
48
|
+
|
49
|
+
response
|
50
|
+
end
|
51
|
+
|
52
|
+
def array_wrap(value)
|
53
|
+
value.is_a?(Array) ? value : [value]
|
54
|
+
end
|
55
|
+
|
56
|
+
def array_unwrap(ary)
|
57
|
+
return ary.first if ary.length == 1
|
58
|
+
|
59
|
+
ary
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# :markup: markdown
|
4
|
+
|
5
|
+
module Qrfy
|
6
|
+
module Resources
|
7
|
+
# # Folder Qrfy Resource
|
8
|
+
#
|
9
|
+
# You can list and create new folders.
|
10
|
+
class Folders < Base
|
11
|
+
def list
|
12
|
+
response = get_request("folders")
|
13
|
+
Collection.from_response(response.body, type: Qrfy::Objects::Folder)
|
14
|
+
end
|
15
|
+
|
16
|
+
def create(**attributes)
|
17
|
+
response = post_request("folders", body: attributes)
|
18
|
+
response.body["id"]
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# :markup: markdown
|
4
|
+
|
5
|
+
module Qrfy
|
6
|
+
module Resources
|
7
|
+
# # Qrs Qrfy Resource
|
8
|
+
#
|
9
|
+
# A CRUD interface for the actual Qr API calls.
|
10
|
+
class Qrs < Base
|
11
|
+
def batch_delete(ids:)
|
12
|
+
post_request("qrs/batch-delete", body: { ids: ids })
|
13
|
+
|
14
|
+
true
|
15
|
+
end
|
16
|
+
|
17
|
+
def create(qrs, style: nil, folder_id: nil)
|
18
|
+
qrs = array_wrap(qrs)
|
19
|
+
|
20
|
+
body = { qrs: qrs }
|
21
|
+
body.merge(style: style) unless style.nil?
|
22
|
+
body.merge(folder: folder_id) unless folder_id.nil?
|
23
|
+
|
24
|
+
response = post_request("qrs", body: body)
|
25
|
+
array_unwrap(response.body["ids"])
|
26
|
+
end
|
27
|
+
|
28
|
+
def list
|
29
|
+
response = get_request("qrs")
|
30
|
+
Collection.from_response(response.body["data"], type: Qrfy::Objects::Qr)
|
31
|
+
end
|
32
|
+
|
33
|
+
def get(id)
|
34
|
+
response = get_request("qrs/#{id}")
|
35
|
+
|
36
|
+
Qrfy::Objects::Qr.new(response.body)
|
37
|
+
end
|
38
|
+
|
39
|
+
def retrieve_image(id, format: :png)
|
40
|
+
response = get_request("qrs/#{id}/#{format}")
|
41
|
+
|
42
|
+
response.body
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# :markup: markdown
|
4
|
+
|
5
|
+
module Qrfy
|
6
|
+
# # Qrfy Resources
|
7
|
+
#
|
8
|
+
# Resources are a way to abstract REST resources. Each time you want to interact with API
|
9
|
+
# you should use a subclass of a Base Resource.
|
10
|
+
module Resources
|
11
|
+
autoload :Base, "qrfy/resources/base"
|
12
|
+
autoload :Folders, "qrfy/resources/folders"
|
13
|
+
autoload :Qrs, "qrfy/resources/qrs"
|
14
|
+
end
|
15
|
+
end
|
data/lib/qrfy/version.rb
ADDED
data/lib/qrfy.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "faraday"
|
4
|
+
require "faraday/parse_dates"
|
5
|
+
|
6
|
+
require_relative "qrfy/version"
|
7
|
+
|
8
|
+
# :markup: markdown
|
9
|
+
# :include: ../README.md
|
10
|
+
module Qrfy
|
11
|
+
autoload :Client, "qrfy/client"
|
12
|
+
autoload :Configuration, "qrfy/configuration"
|
13
|
+
autoload :Resources, "qrfy/resources"
|
14
|
+
autoload :Errors, "qrfy/errors"
|
15
|
+
autoload :Objects, "qrfy/objects"
|
16
|
+
autoload :Collection, "qrfy/collection"
|
17
|
+
|
18
|
+
class << self
|
19
|
+
attr_writer :configuration
|
20
|
+
|
21
|
+
def configuration
|
22
|
+
@configuration ||= Qrfy::Configuration.new
|
23
|
+
end
|
24
|
+
|
25
|
+
def configure
|
26
|
+
yield(configuration)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/sig/qrfy.rbs
ADDED
metadata
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: qrfy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Wojciech Zygmuntowicz
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-08-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
- - "<="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.8.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.0'
|
30
|
+
- - "<="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.8.1
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: faraday-parse_dates
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0.1'
|
40
|
+
- - "<="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.1.1
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.1'
|
50
|
+
- - "<="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.1.1
|
53
|
+
description: A really simple wrapper for qrfy.com API written in pure ruby.
|
54
|
+
email:
|
55
|
+
- wojciech.zygmuntowicz@geeknauts.com
|
56
|
+
executables: []
|
57
|
+
extensions: []
|
58
|
+
extra_rdoc_files: []
|
59
|
+
files:
|
60
|
+
- ".rubocop.yml"
|
61
|
+
- CHANGELOG.md
|
62
|
+
- LICENSE.txt
|
63
|
+
- README.md
|
64
|
+
- Rakefile
|
65
|
+
- lib/qrfy.rb
|
66
|
+
- lib/qrfy/client.rb
|
67
|
+
- lib/qrfy/collection.rb
|
68
|
+
- lib/qrfy/configuration.rb
|
69
|
+
- lib/qrfy/errors.rb
|
70
|
+
- lib/qrfy/errors/base.rb
|
71
|
+
- lib/qrfy/errors/internal_server_error.rb
|
72
|
+
- lib/qrfy/errors/record_invalid.rb
|
73
|
+
- lib/qrfy/errors/record_not_found.rb
|
74
|
+
- lib/qrfy/errors/too_many_requests.rb
|
75
|
+
- lib/qrfy/errors/unauthorized.rb
|
76
|
+
- lib/qrfy/objects.rb
|
77
|
+
- lib/qrfy/objects/base.rb
|
78
|
+
- lib/qrfy/objects/folder.rb
|
79
|
+
- lib/qrfy/objects/qr.rb
|
80
|
+
- lib/qrfy/resources.rb
|
81
|
+
- lib/qrfy/resources/base.rb
|
82
|
+
- lib/qrfy/resources/folders.rb
|
83
|
+
- lib/qrfy/resources/qrs.rb
|
84
|
+
- lib/qrfy/version.rb
|
85
|
+
- sig/qrfy.rbs
|
86
|
+
homepage: https://github.com/w-zygmuntowicz/qrfy
|
87
|
+
licenses:
|
88
|
+
- MIT
|
89
|
+
metadata:
|
90
|
+
bug_tracker_uri: https://github.com/w-zygmuntowicz/qrfy/issues
|
91
|
+
source_code_uri: https://github.com/w-zygmuntowicz/qrfy/tree/v0.1.1
|
92
|
+
changelog_uri: https://github.com/w-zygmuntowicz/qrfy/releases/tag/v0.1.1
|
93
|
+
post_install_message:
|
94
|
+
rdoc_options: []
|
95
|
+
require_paths:
|
96
|
+
- lib
|
97
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 2.7.8
|
102
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
107
|
+
requirements: []
|
108
|
+
rubygems_version: 3.5.5
|
109
|
+
signing_key:
|
110
|
+
specification_version: 4
|
111
|
+
summary: Wrapper for qrfy.com API.
|
112
|
+
test_files: []
|