rqrcode_png_bin 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1d8b25f22649cad03bed2e0f29707bf991912827
4
+ data.tar.gz: a5025faa9e43d92d5d6ccaa20271df1cda94b735
5
+ SHA512:
6
+ metadata.gz: 89311896686672e9570234011c54ed1a1da183207939cdd7b2d45c8b10f6aadfc1829c4225c42275b2c4c9776178ed46dcd66913a6cddf3173d1a8f9aa1a3f2c
7
+ data.tar.gz: 30fa3402075dad4fe69ddd2b3390a50b3db4df885bcaa499e64a76b9b870dbc200aeaa8b7b5be047cb98ef4ad238001dd015000f45df612c255aac6256fceed6
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.0
3
+ - 2.3
4
+ - 2.2
5
+ - 2.1.10
4
6
  - 2.0.0
5
- - 1.9.3
6
- - ree
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # RqrcodePngBin
2
2
 
3
- command line interface for rqrcode_png
3
+ command line interface for rqrcode
4
4
 
5
5
  ## Installation
6
6
 
@@ -1,4 +1,4 @@
1
- require "rqrcode_png"
1
+ require "rqrcode"
2
2
  require "rqrcode_png_bin/version"
3
3
  require "rqrcode_png_bin/app"
4
4
  require "rqrcode_png_bin/file_reader"
@@ -30,10 +30,10 @@ module RqrcodePngBin
30
30
  end
31
31
 
32
32
  def generate_png(str)
33
- png = RQRCode::QRCode.new(encoded_str(str), opts).to_img
34
- png = png.resize(*canvas) if canvas
33
+ options = {}
34
+ options[:size] = canvas.first if canvas
35
35
 
36
- png
36
+ RQRCode::QRCode.new(encoded_str(str), opts).as_png(options)
37
37
  end
38
38
 
39
39
  def encoded_str(str)
@@ -1,3 +1,3 @@
1
1
  module RqrcodePngBin
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = RqrcodePngBin::VERSION
9
9
  spec.authors = ["wtnabe"]
10
10
  spec.email = ["wtnabe@gmail.com"]
11
- spec.description = %q{command line interface for rqrcode_png}
12
- spec.summary = %q{command line interface for rqrcode_png}
11
+ spec.description = %q{command line interface for rqrcode}
12
+ spec.summary = %q{command line interface for rqrcode}
13
13
  spec.homepage = "https://github.com/wtnabe/rqrcode_png_bin"
14
14
  spec.license = "BSD"
15
15
 
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "rqrcode_png"
21
+ spec.add_runtime_dependency "rqrcode", "~> 0.10"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,81 +1,72 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rqrcode_png_bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - wtnabe
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-11-28 00:00:00.000000000 Z
11
+ date: 2016-10-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: rqrcode_png
14
+ name: rqrcode
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: '0.10'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0'
26
+ version: '0.10'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '1.3'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '1.3'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
- description: command line interface for rqrcode_png
69
+ description: command line interface for rqrcode
79
70
  email:
80
71
  - wtnabe@gmail.com
81
72
  executables:
@@ -83,9 +74,9 @@ executables:
83
74
  extensions: []
84
75
  extra_rdoc_files: []
85
76
  files:
86
- - .gitignore
87
- - .rspec
88
- - .travis.yml
77
+ - ".gitignore"
78
+ - ".rspec"
79
+ - ".travis.yml"
89
80
  - Gemfile
90
81
  - LICENSE.txt
91
82
  - README.md
@@ -103,34 +94,27 @@ files:
103
94
  homepage: https://github.com/wtnabe/rqrcode_png_bin
104
95
  licenses:
105
96
  - BSD
97
+ metadata: {}
106
98
  post_install_message:
107
99
  rdoc_options: []
108
100
  require_paths:
109
101
  - lib
110
102
  required_ruby_version: !ruby/object:Gem::Requirement
111
- none: false
112
103
  requirements:
113
- - - ! '>='
104
+ - - ">="
114
105
  - !ruby/object:Gem::Version
115
106
  version: '0'
116
- segments:
117
- - 0
118
- hash: -1476981731966827747
119
107
  required_rubygems_version: !ruby/object:Gem::Requirement
120
- none: false
121
108
  requirements:
122
- - - ! '>='
109
+ - - ">="
123
110
  - !ruby/object:Gem::Version
124
111
  version: '0'
125
- segments:
126
- - 0
127
- hash: -1476981731966827747
128
112
  requirements: []
129
113
  rubyforge_project:
130
- rubygems_version: 1.8.23.2
114
+ rubygems_version: 2.4.5.1
131
115
  signing_key:
132
- specification_version: 3
133
- summary: command line interface for rqrcode_png
116
+ specification_version: 4
117
+ summary: command line interface for rqrcode
134
118
  test_files:
135
119
  - spec/app_spec.rb
136
120
  - spec/file_reader_spec.rb