rqrcode 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9e076ae820e4deb93f2efc1047d25110be344a9640a09ae8e8ffe89494711d6
4
- data.tar.gz: f8b73f342a99a77d54ea18f0e5b99ac24024fd91e79c5954758c4cdce9237c10
3
+ metadata.gz: 0d8b2f0f6e33a545c3f0e5414b53eb5cffdc99138238d06118fbfec70d968c2e
4
+ data.tar.gz: 05df172d996fde577a4ce32504f243cd7d8feb440d70167d633c03956fa8d6e6
5
5
  SHA512:
6
- metadata.gz: 5c40805e8febcc553452c1043618cbc1f48d654e6dbc88e9c26e61d5908c2aa197128357fedd9f41b67b9345db40f1b1aec10cd6400e3274ea5e59314844f9b9
7
- data.tar.gz: 93d829869f279cc3a5352d6ab4e0829e80825ff41c4a09bdfc1c6c0e1156b44743dfa4d05fc8fee8ad76baa3d0d21271b8d19a96eb70caed68b9a95632272507
6
+ metadata.gz: 73398ff5d4c89b362c850b6a293dace00e415738ec9944f4471d0d473dbbb7e0f8a9adec5026167a51535b619950487a556c126919045d1b289e949b82f2e171
7
+ data.tar.gz: 80c7718c260969fa52138620cd547d9c8564f9610dc951b1d06f4f4a2e20ac6979fca861b4ad6de22ef07e18daca15b86b187c5c963f47edeba24c99aa3fed5d
@@ -28,4 +28,4 @@ jobs:
28
28
  run: |
29
29
  gem install bundler
30
30
  bundle install --jobs 4 --retry 3
31
- bundle exec rake test
31
+ bundle exec rspec
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
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.
7
7
 
8
8
  * QR code is trademarked by Denso Wave inc
9
- * Minimum Ruby version is `~> 2.3`
9
+ * Minimum Ruby version is `>= 2.3`
10
10
  * For `rqrcode` releases `< 1.0.0` please use [this README](https://github.com/whomwah/rqrcode/blob/cd2732a68434e6197c219e6c8cbdadfce0c4c4f3/README.md)
11
11
 
12
12
  ## Installing
@@ -137,7 +137,7 @@ png = qrcode.as_png(
137
137
  size: 120
138
138
  )
139
139
 
140
- IO.write("/tmp/github-qrcode.png", png.to_s)
140
+ IO.binwrite("/tmp/github-qrcode.png", png.to_s)
141
141
  ```
142
142
 
143
143
  ![QR code with github url](./images/github-qrcode.png)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RQRCode
4
- VERSION = "1.1.2"
4
+ VERSION = "1.2.0"
5
5
  end
@@ -27,10 +27,10 @@ EOF
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- spec.required_ruby_version = '~> 2.3'
31
- spec.add_dependency 'rqrcode_core', '~> 0.1'
30
+ spec.required_ruby_version = '>= 2.3'
31
+ spec.add_dependency 'rqrcode_core', '~> 0.2'
32
32
  spec.add_dependency 'chunky_png', '~> 1.0'
33
- spec.add_development_dependency 'bundler', '~> 2.0'
34
- spec.add_development_dependency 'rake', '~> 12.0'
33
+ spec.add_development_dependency 'bundler', '>= 2.0'
34
+ spec.add_development_dependency 'rake', '~> 13.0'
35
35
  spec.add_development_dependency 'rspec', '~> 3.5'
36
36
  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: 1.1.2
4
+ version: 1.2.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: 2019-11-07 00:00:00.000000000 Z
11
+ date: 2020-12-26 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: '0.1'
19
+ version: '0.2'
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: '0.1'
26
+ version: '0.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: chunky_png
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '12.0'
61
+ version: '13.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '12.0'
68
+ version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -96,7 +96,6 @@ files:
96
96
  - Gemfile
97
97
  - LICENSE.txt
98
98
  - README.md
99
- - Rakefile
100
99
  - _config.yml
101
100
  - bin/console
102
101
  - bin/setup
@@ -123,7 +122,7 @@ require_paths:
123
122
  - lib
124
123
  required_ruby_version: !ruby/object:Gem::Requirement
125
124
  requirements:
126
- - - "~>"
125
+ - - ">="
127
126
  - !ruby/object:Gem::Version
128
127
  version: '2.3'
129
128
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -132,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
131
  - !ruby/object:Gem::Version
133
132
  version: '0'
134
133
  requirements: []
135
- rubygems_version: 3.0.1
134
+ rubygems_version: 3.2.3
136
135
  signing_key:
137
136
  specification_version: 4
138
137
  summary: A library to encode QR Codes
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
-
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList["test/**/*_test.rb"]
8
- end
9
-
10
- task :default => :test