rqrcode 2.2.0 → 3.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46c752f56b2f26a71997009f105896a93874304e47b5453f6d399790ec5d67ee
4
- data.tar.gz: 3a32e1b77c24d1118510084ad0b0f700ff54c8605c5e5cf77aca2c5efc782438
3
+ metadata.gz: 43ab1903362d8d91be0e90db63e5fd1f1fe7ab68f217954cad099ba50244c070
4
+ data.tar.gz: 102e00189844e32950e07ca15afafd6e75c2288ea5af0df181c2daeb1ec02a2c
5
5
  SHA512:
6
- metadata.gz: 28ae604413d674f2c8fe6aac337aab7253874357d6d0e4e656c7e3cf743c8a65d102a5eeb8790601678d4c65172bbdd882cf1a51766d23df99b4253f0801a11d
7
- data.tar.gz: 34fbe27e846970fe5b8571c446d6bee7327d46c3b645aaf07b141cf96d98c7beb918f6cc929408fd612940d260a0258c5656937f7283acbcf6cab0d00e09c082
6
+ metadata.gz: 1d939b8bf154cc50957f321023c01f065d163b8ba4d046184d0dbe99fa426c81a48454026f98f45a93c13a882990bdb0864e15c4bec4496c2e8005be78add4bb
7
+ data.tar.gz: e8c05cb0311ff4c93bec2afed05adde2797ab8669caa3d505055b536aac0b3b984524389442f238e7a12d4eaf175d83af508ba63218a8c963f7f0e600fe6e9a6
@@ -0,0 +1,4 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: whomwah
4
+ buy_me_a_coffee: duncanrobertson
@@ -3,10 +3,9 @@ name: rqrcode
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
7
- pull_request:
8
- branches:
9
- - master
6
+ - main
7
+ - release
8
+ pull_request: # Runs on any PR regardless of target branch
10
9
 
11
10
  jobs:
12
11
  Build:
@@ -14,15 +13,15 @@ jobs:
14
13
  fail-fast: false
15
14
  matrix:
16
15
  os: [ubuntu-latest, macos-latest]
17
- ruby: ['2.6', '2.7', '3.0', '3.1', '3.2']
16
+ ruby: ["3.0", "3.1", "3.2", "3.3", "3.4"]
18
17
  runs-on: ${{ matrix.os }}
19
18
  steps:
20
- - uses: actions/checkout@v3
21
- - uses: ruby/setup-ruby@v1
22
- with:
23
- ruby-version: ${{ matrix.ruby }}
24
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
25
- - name: Run Tests for Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
26
- run: bundle exec rake spec
27
- - name: StandardRB check for Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
28
- run: bundle exec standardrb --format progress
19
+ - uses: actions/checkout@v3
20
+ - uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{ matrix.ruby }}
23
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
24
+ - name: Run Tests for Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
25
+ run: bundle exec rake spec
26
+ - name: StandardRB check for Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
27
+ run: bundle exec standardrb --format progress
data/.standard.yml ADDED
@@ -0,0 +1 @@
1
+ ruby_version: 2.7
data/CHANGELOG.md CHANGED
@@ -7,21 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [3.1.0] - 2025-04-28
11
+
12
+ - Added support for `offset_x` and `offset_y` options in the `as_svg` method for independent x and y padding around QR codes [#153]
13
+
14
+ ## [3.0.0] - 2025-04-24
15
+
16
+ - Drop support for Ruby <3.0 in order to keep up with dev dependencies.
17
+ - **Breaking Change**: The `rqrcode_core` gem has been updated to version 2.0.0, which includes breaking changes. Please refer to the [rqrcode_core changelog](https://github.com/whomwah/rqrcode_core/blob/main/CHANGELOG.md)
18
+
10
19
  ## [2.2.0] - 2023-06-17
11
20
 
12
21
  ### Changed
13
22
 
14
- * Allow all ChunkyPNG::Color options to be passed into `fill` and `color` on `as_png` [#135]
15
- * Add 3.2 to CI [@petergoldstein](https://github.com/petergoldstein) [#133]
16
- * Development dependency upgrades. Minimum Ruby change [#130]
17
- * README updates
23
+ - Allow all ChunkyPNG::Color options to be passed into `fill` and `color` on `as_png` [#135]
24
+ - Add 3.2 to CI [@petergoldstein](https://github.com/petergoldstein) [#133]
25
+ - Development dependency upgrades. Minimum Ruby change [#130]
26
+ - README updates
18
27
 
19
28
  ## [2.1.2] - 2022-07-26
20
29
 
21
30
  ### Changed
22
31
 
23
- * Remove setup script as it just calls bundle install [#128]
24
- * Change inline styles to the fill property to allow for strict CSP style-src directive [#127]
32
+ - Remove setup script as it just calls bundle install [#128]
33
+ - Change inline styles to the fill property to allow for strict CSP style-src directive [#127]
25
34
 
26
35
  ## [2.1.1] - 2022-02-11
27
36
 
@@ -60,7 +69,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
60
69
 
61
70
  ### Breaking Change
62
71
 
63
- - The dependency `rqrcode_core-1.0.0` has a tiny breaking change to the `to_s` public method. https://github.com/whomwah/rqrcode_core/blob/master/CHANGELOG.md#breaking-changes
72
+ - The dependency `rqrcode_core-1.0.0` has a tiny breaking change to the `to_s` public method. https://github.com/whomwah/rqrcode_core/blob/main/CHANGELOG.md#breaking-changes
64
73
 
65
74
  ## [1.2.0] - 2020-12-26
66
75
 
@@ -70,7 +79,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
70
79
  - bump dependencies
71
80
  - fix `required_ruby_version` for Ruby 3 support
72
81
 
73
- [unreleased]: https://github.com/whomwah/rqrcode/compare/v2.2.0...HEAD
82
+ [unreleased]: https://github.com/whomwah/rqrcode/compare/v3.1.0...HEAD
83
+ [3.1.0]: https://github.com/whomwah/rqrcode/compare/v3.0.0...v3.1.0
84
+ [3.0.0]: https://github.com/whomwah/rqrcode/compare/v2.2.0...v3.0.0
74
85
  [2.2.0]: https://github.com/whomwah/rqrcode/compare/v2.1.2...v2.2.0
75
86
  [2.1.2]: https://github.com/whomwah/rqrcode/compare/v2.1.1...v2.1.2
76
87
  [2.1.1]: https://github.com/whomwah/rqrcode/compare/v2.1.0...v2.1.1
data/Gemfile.lock CHANGED
@@ -1,72 +1,82 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rqrcode (2.2.0)
4
+ rqrcode (3.1.0)
5
5
  chunky_png (~> 1.0)
6
- rqrcode_core (~> 1.0)
6
+ rqrcode_core (~> 2.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  ast (2.4.2)
12
12
  chunky_png (1.4.0)
13
- diff-lcs (1.5.0)
14
- json (2.6.3)
15
- language_server-protocol (3.17.0.2)
16
- parallel (1.22.1)
17
- parser (3.1.3.0)
13
+ diff-lcs (1.5.1)
14
+ json (2.7.2)
15
+ language_server-protocol (3.17.0.3)
16
+ lint_roller (1.1.0)
17
+ parallel (1.26.3)
18
+ parser (3.3.5.0)
18
19
  ast (~> 2.4.1)
20
+ racc
21
+ racc (1.8.1)
19
22
  rainbow (3.1.1)
20
- rake (13.0.6)
21
- regexp_parser (2.6.1)
22
- rexml (3.2.5)
23
- rqrcode_core (1.2.0)
24
- rspec (3.12.0)
25
- rspec-core (~> 3.12.0)
26
- rspec-expectations (~> 3.12.0)
27
- rspec-mocks (~> 3.12.0)
28
- rspec-core (3.12.0)
29
- rspec-support (~> 3.12.0)
30
- rspec-expectations (3.12.1)
23
+ rake (13.2.1)
24
+ regexp_parser (2.9.2)
25
+ rqrcode_core (2.0.0)
26
+ rspec (3.13.0)
27
+ rspec-core (~> 3.13.0)
28
+ rspec-expectations (~> 3.13.0)
29
+ rspec-mocks (~> 3.13.0)
30
+ rspec-core (3.13.1)
31
+ rspec-support (~> 3.13.0)
32
+ rspec-expectations (3.13.2)
31
33
  diff-lcs (>= 1.2.0, < 2.0)
32
- rspec-support (~> 3.12.0)
33
- rspec-mocks (3.12.1)
34
+ rspec-support (~> 3.13.0)
35
+ rspec-mocks (3.13.1)
34
36
  diff-lcs (>= 1.2.0, < 2.0)
35
- rspec-support (~> 3.12.0)
36
- rspec-support (3.12.0)
37
- rubocop (1.40.0)
37
+ rspec-support (~> 3.13.0)
38
+ rspec-support (3.13.1)
39
+ rubocop (1.66.1)
38
40
  json (~> 2.3)
41
+ language_server-protocol (>= 3.17.0)
39
42
  parallel (~> 1.10)
40
- parser (>= 3.1.2.1)
43
+ parser (>= 3.3.0.2)
41
44
  rainbow (>= 2.2.2, < 4.0)
42
- regexp_parser (>= 1.8, < 3.0)
43
- rexml (>= 3.2.5, < 4.0)
44
- rubocop-ast (>= 1.23.0, < 2.0)
45
+ regexp_parser (>= 2.4, < 3.0)
46
+ rubocop-ast (>= 1.32.2, < 2.0)
45
47
  ruby-progressbar (~> 1.7)
46
- unicode-display_width (>= 1.4.0, < 3.0)
47
- rubocop-ast (1.24.0)
48
- parser (>= 3.1.1.0)
49
- rubocop-performance (1.15.1)
50
- rubocop (>= 1.7.0, < 2.0)
51
- rubocop-ast (>= 0.4.0)
52
- ruby-progressbar (1.11.0)
53
- standard (1.20.0)
48
+ unicode-display_width (>= 2.4.0, < 3.0)
49
+ rubocop-ast (1.32.3)
50
+ parser (>= 3.3.1.0)
51
+ rubocop-performance (1.22.1)
52
+ rubocop (>= 1.48.1, < 2.0)
53
+ rubocop-ast (>= 1.31.1, < 2.0)
54
+ ruby-progressbar (1.13.0)
55
+ standard (1.41.0)
54
56
  language_server-protocol (~> 3.17.0.2)
55
- rubocop (= 1.40.0)
56
- rubocop-performance (= 1.15.1)
57
- standardrb (1.0.1)
58
- standard
59
- unicode-display_width (2.3.0)
57
+ lint_roller (~> 1.0)
58
+ rubocop (~> 1.66.0)
59
+ standard-custom (~> 1.0.0)
60
+ standard-performance (~> 1.5)
61
+ standard-custom (1.0.2)
62
+ lint_roller (~> 1.0)
63
+ rubocop (~> 1.50)
64
+ standard-performance (1.5.0)
65
+ lint_roller (~> 1.1)
66
+ rubocop-performance (~> 1.22.0)
67
+ unicode-display_width (2.6.0)
60
68
 
61
69
  PLATFORMS
70
+ aarch64-linux
62
71
  ruby
72
+ x86_64-linux
63
73
 
64
74
  DEPENDENCIES
65
75
  bundler (~> 2.0)
66
76
  rake (~> 13.0)
67
77
  rqrcode!
68
78
  rspec (~> 3.5)
69
- standardrb (~> 1.0)
79
+ standard (~> 1.41)
70
80
 
71
81
  BUNDLED WITH
72
- 2.3.26
82
+ 2.4.10
data/README.md CHANGED
@@ -3,20 +3,17 @@
3
3
  ![](https://github.com/whomwah/rqrcode/actions/workflows/ruby.yml/badge.svg)
4
4
  [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/testdouble/standard)
5
5
 
6
-
7
6
  [RQRCode](https://github.com/whomwah/rqrcode) is a library for creating and rendering QR codes into various formats. It has a simple interface with all the standard QR code options. It was adapted from the Javascript library by Kazuhiko Arase.
8
7
 
9
- * QR code is trademarked by Denso Wave inc
10
- * Minimum Ruby version is `>= 2.6`
11
- * For `rqrcode` releases `< 2.0.0` please use [this README](https://github.com/whomwah/rqrcode/blob/v1.2.0/README.md)
12
- * For `rqrcode` releases `< 1.0.0` please use [this README](https://github.com/whomwah/rqrcode/blob/v0.9.0/README.md)
8
+ - QR code is trademarked by Denso Wave inc
9
+ - Minimum Ruby version is `>= 3.0.0`
13
10
 
14
11
  ## Installing
15
12
 
16
13
  Add this line to your application's `Gemfile`:
17
14
 
18
15
  ```ruby
19
- gem "rqrcode", "~> 2.0"
16
+ gem "rqrcode", "~> 3.0"
20
17
  ```
21
18
 
22
19
  or install manually:
@@ -70,19 +67,18 @@ Expects a string or array (for multi-segment encoding) to be parsed in, other ar
70
67
  * :number
71
68
  * :alphanumeric
72
69
  * :byte_8bit
73
- * :kanji
74
70
  ```
75
71
 
76
72
  Example
77
73
 
78
74
  ```ruby
79
- simple_qrcode = RQRCodeCore::QRCode.new("https://kyan.com", size: 1, level: :m, mode: :alphanumeric)
75
+ simple_qrcode = RQRCodeCore::QRCode.new("https://kyan.com", size: 2, level: :m, mode: :byte_8bit)
80
76
 
81
- segment_qrcode = QRCodeCore::QRCode.new({ data: "foo", mode: :byte_8bit })
77
+ segment_qrcode = RQRCodeCore::QRCode.new([{ data: "foo", mode: :byte_8bit }])
82
78
 
83
79
  multi_qrcode = RQRCodeCore::QRCode.new([
84
80
  { data: 'foo', mode: :byte_8bit },
85
- { data: 'bar1', mode: :alphanumeric }
81
+ { data: 'BAR1', mode: :alphanumeric }
86
82
  ])
87
83
  ```
88
84
 
@@ -99,6 +95,10 @@ Options:
99
95
 
100
96
  offset - Padding around the QR Code in pixels
101
97
  (default 0)
98
+ offset_x - X Padding around the QR Code in pixels
99
+ (default offset)
100
+ offset_y - Y Padding around the QR Code in pixels
101
+ (default offset)
102
102
  fill - Background color e.g "ffffff" or :white or :currentColor
103
103
  (default none)
104
104
  color - Foreground color e.g "000" or :black or :currentColor
@@ -118,7 +118,9 @@ viewbox - Replace the `svg.width` and `svg.height` attribute with `svg.v
118
118
  svg_attributes - A optional hash of custom <svg> attributes. Existing attributes will remain.
119
119
  (default {})
120
120
  ```
121
+
121
122
  Example
123
+
122
124
  ```ruby
123
125
  require "rqrcode"
124
126
 
@@ -209,7 +211,6 @@ IO.binwrite("/tmp/github-qrcode.png", png.to_s)
209
211
 
210
212
  ![QR code with github url](./images/github-qrcode.png)
211
213
 
212
-
213
214
  ### `as_ansi`
214
215
 
215
216
  The ANSI renderer will produce as a string with ANSI color codes.
@@ -226,7 +227,9 @@ fill_character - The written character
226
227
  quiet_zone_size - Padding around the edge
227
228
  (default 4)
228
229
  ```
230
+
229
231
  Example
232
+
230
233
  ```ruby
231
234
  require "rqrcode"
232
235
 
@@ -280,9 +283,9 @@ The motivation for the above is because the rendering side of this gem takes up
280
283
 
281
284
  Any contribution PR's will be greatly accepted. It's important that they are well tested and backwards compatible.
282
285
 
283
- * Fork the project
284
- * Send a pull request
285
- * Don't touch the .gemspec, I'll do that when I release a new version
286
+ - Fork the project
287
+ - Send a pull request
288
+ - Don't touch the .gemspec, I'll do that when I release a new version
286
289
 
287
290
  Thanks D.
288
291
 
@@ -296,9 +299,9 @@ Oh, and thanks to my bosses at https://kyan.com for giving me time to maintain t
296
299
 
297
300
  ## Resources
298
301
 
299
- * wikipedia:: http://en.wikipedia.org/wiki/QR_Code
300
- * Denso-Wave website:: http://www.denso-wave.com/qrcode/index-e.html
301
- * kaywa:: http://qrcode.kaywa.com
302
+ - wikipedia:: http://en.wikipedia.org/wiki/QR_Code
303
+ - Denso-Wave website:: http://www.denso-wave.com/qrcode/index-e.html
304
+ - kaywa:: http://qrcode.kaywa.com
302
305
 
303
306
  ## Copyright
304
307
 
@@ -15,7 +15,15 @@ module RQRCode
15
15
  end
16
16
 
17
17
  class Path < BaseOutputSVG
18
- def build(module_size, offset, color)
18
+ def build(module_size, options = {})
19
+ # Extract values from options
20
+ color = options[:color]
21
+ offset_x = options[:offset_x].to_i
22
+ offset_y = options[:offset_y].to_i
23
+
24
+ # Prefix hexadecimal colors unless using a named color (symbol)
25
+ color = "##{color}" unless color.is_a?(Symbol)
26
+
19
27
  modules_array = @qrcode.modules
20
28
  matrix_width = matrix_height = modules_array.length + 1
21
29
  empty_row = [Array.new(matrix_width - 1, false)]
@@ -76,23 +84,25 @@ module RQRCode
76
84
  path << edge_loop_string
77
85
  end
78
86
 
79
- # Prefix hexadecimal colors unless using a named color (symbol)
80
- color = "##{color}" unless color.is_a?(Symbol)
81
-
82
- @result << %{<path d="#{path.join}" fill="#{color}" transform="translate(#{offset},#{offset}) scale(#{module_size})"/>}
87
+ @result << %{<path d="#{path.join}" fill="#{color}" transform="translate(#{offset_x},#{offset_y}) scale(#{module_size})"/>}
83
88
  end
84
89
  end
85
90
 
86
91
  class Rect < BaseOutputSVG
87
- def build(module_size, offset, color)
92
+ def build(module_size, options = {})
93
+ # Extract values from options
94
+ color = options[:color]
95
+ offset_x = options[:offset_x].to_i
96
+ offset_y = options[:offset_y].to_i
97
+
88
98
  # Prefix hexadecimal colors unless using a named color (symbol)
89
99
  color = "##{color}" unless color.is_a?(Symbol)
90
100
 
91
101
  @qrcode.modules.each_index do |c|
92
102
  tmp = []
93
103
  @qrcode.modules.each_index do |r|
94
- y = c * module_size + offset
95
- x = r * module_size + offset
104
+ x = r * module_size + offset_x
105
+ y = c * module_size + offset_y
96
106
 
97
107
  next unless @qrcode.checked?(c, r)
98
108
  tmp << %(<rect width="#{module_size}" height="#{module_size}" x="#{x}" y="#{y}" fill="#{color}"/>)
@@ -143,6 +153,10 @@ module RQRCode
143
153
  # Options:
144
154
  # offset - Padding around the QR Code in pixels
145
155
  # (default 0)
156
+ # offset_x - X Padding around the QR Code in pixels
157
+ # (default offset)
158
+ # offset_y - Y Padding around the QR Code in pixels
159
+ # (default offset)
146
160
  # fill - Background color e.g "ffffff"
147
161
  # (default none)
148
162
  # color - Foreground color e.g "000"
@@ -164,7 +178,9 @@ module RQRCode
164
178
  def as_svg(options = {})
165
179
  fill = options[:fill]
166
180
  use_path = options[:use_path]
167
- offset = options[:offset].to_i || 0
181
+ offset = options[:offset].to_i
182
+ offset_x = options.key?(:offset_x) ? options[:offset_x].to_i : offset
183
+ offset_y = options.key?(:offset_y) ? options[:offset_y].to_i : offset
168
184
  color = options[:color] || "000"
169
185
  shape_rendering = options[:shape_rendering] || "crispEdges"
170
186
  module_size = options[:module_size] || 11
@@ -173,9 +189,11 @@ module RQRCode
173
189
  svg_attributes = options[:svg_attributes] || {}
174
190
 
175
191
  # height and width dependent on offset and QR complexity
176
- dimension = (@qrcode.module_count * module_size) + (2 * offset)
192
+ width = (@qrcode.module_count * module_size) + (2 * offset_x)
193
+ height = (@qrcode.module_count * module_size) + (2 * offset_y)
194
+ dimension = [width, height].max
177
195
  # use dimensions differently if we are using a viewBox
178
- dimensions_attr = viewbox ? %(viewBox="0 0 #{dimension} #{dimension}") : %(width="#{dimension}" height="#{dimension}")
196
+ dimensions_attr = viewbox ? %(viewBox="0 0 #{width} #{height}") : %(width="#{width}" height="#{height}")
179
197
 
180
198
  svg_tag_attributes = (DEFAULT_SVG_ATTRIBUTES + [
181
199
  dimensions_attr,
@@ -187,7 +205,7 @@ module RQRCode
187
205
  close_tag = "</svg>"
188
206
 
189
207
  output_tag = (use_path ? Path : Rect).new(@qrcode)
190
- output_tag.build(module_size, offset, color)
208
+ output_tag.build(module_size, offset_x: offset_x, offset_y: offset_y, color: color)
191
209
 
192
210
  if fill
193
211
  # Prefix hexadecimal colors unless using a named color (symbol)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RQRCode
4
- VERSION = "2.2.0"
4
+ VERSION = "3.1.0"
5
5
  end
data/rqrcode.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.license = "MIT"
20
20
  spec.metadata = {
21
21
  "bug_tracker_uri" => "https://github.com/whomwah/rqrcode/issues",
22
- "changelog_uri" => "https://github.com/whomwah/rqrcode/blob/master/CHANGELOG.md"
22
+ "changelog_uri" => "https://github.com/whomwah/rqrcode/blob/main/CHANGELOG.md"
23
23
  }
24
24
 
25
25
  spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
@@ -29,11 +29,11 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
- spec.required_ruby_version = ">= 2.6"
33
- spec.add_dependency "rqrcode_core", "~> 1.0"
32
+ spec.required_ruby_version = "~> 3.0"
33
+ spec.add_dependency "rqrcode_core", "~> 2.0"
34
34
  spec.add_dependency "chunky_png", "~> 1.0"
35
35
  spec.add_development_dependency "bundler", "~> 2.0"
36
36
  spec.add_development_dependency "rake", "~> 13.0"
37
37
  spec.add_development_dependency "rspec", "~> 3.5"
38
- spec.add_development_dependency "standardrb", "~> 1.0"
38
+ spec.add_development_dependency "standard", "~> 1.41"
39
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rqrcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duncan Robertson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-17 00:00:00.000000000 Z
11
+ date: 2025-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rqrcode_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: chunky_png
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -81,19 +81,19 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.5'
83
83
  - !ruby/object:Gem::Dependency
84
- name: standardrb
84
+ name: standard
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.0'
89
+ version: '1.41'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.0'
96
+ version: '1.41'
97
97
  description: |
98
98
  rqrcode is a library for encoding QR Codes. The simple
99
99
  interface allows you to create QR Code data structures
@@ -104,9 +104,11 @@ executables: []
104
104
  extensions: []
105
105
  extra_rdoc_files: []
106
106
  files:
107
+ - ".github/FUNDING.yml"
107
108
  - ".github/workflows/ruby.yml"
108
109
  - ".gitignore"
109
110
  - ".rspec"
111
+ - ".standard.yml"
110
112
  - CHANGELOG.md
111
113
  - Gemfile
112
114
  - Gemfile.lock
@@ -133,23 +135,23 @@ licenses:
133
135
  - MIT
134
136
  metadata:
135
137
  bug_tracker_uri: https://github.com/whomwah/rqrcode/issues
136
- changelog_uri: https://github.com/whomwah/rqrcode/blob/master/CHANGELOG.md
138
+ changelog_uri: https://github.com/whomwah/rqrcode/blob/main/CHANGELOG.md
137
139
  post_install_message:
138
140
  rdoc_options: []
139
141
  require_paths:
140
142
  - lib
141
143
  required_ruby_version: !ruby/object:Gem::Requirement
142
144
  requirements:
143
- - - ">="
145
+ - - "~>"
144
146
  - !ruby/object:Gem::Version
145
- version: '2.6'
147
+ version: '3.0'
146
148
  required_rubygems_version: !ruby/object:Gem::Requirement
147
149
  requirements:
148
150
  - - ">="
149
151
  - !ruby/object:Gem::Version
150
152
  version: '0'
151
153
  requirements: []
152
- rubygems_version: 3.4.6
154
+ rubygems_version: 3.5.11
153
155
  signing_key:
154
156
  specification_version: 4
155
157
  summary: A library to encode QR Codes