upi 2.0.0 → 2.0.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 +4 -4
- data/.idea/upi.iml +7 -7
- data/Gemfile +1 -1
- data/Gemfile.lock +6 -6
- data/lib/upi/version.rb +1 -1
- data/lib/upi.rb +6 -9
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbc938b77f542923739627acea2a7b852324d4e1facc7abc9e110fb57d6a468f
|
4
|
+
data.tar.gz: cb6e4d8010da2c1cec18469c08edef3a4349807033fd68d04a6d209042443a64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10bd3fdca2b006501ae4166c96443217ddd3bf72dc8c12d5474aeee346e5b56f48339bd413fca25c33aada355069b53021337930b33bd04b5de1e41007d9b5fa
|
7
|
+
data.tar.gz: 17475c5118a332063e18d4547e021dccce597922c589f7e9c819e494b869881e2eaea5ec82b54a364ccfd4b729069e07e02e1593f114ba712f1da2cfbf872394
|
data/.idea/upi.iml
CHANGED
@@ -23,8 +23,8 @@
|
|
23
23
|
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, RVM: ruby-3.1.0) [gem]" level="application" />
|
24
24
|
<orderEntry type="library" scope="PROVIDED" name="rake (v13.2.1, RVM: ruby-3.1.0) [gem]" level="application" />
|
25
25
|
<orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.9.2, RVM: ruby-3.1.0) [gem]" level="application" />
|
26
|
-
<orderEntry type="library" scope="PROVIDED" name="rqrcode (
|
27
|
-
<orderEntry type="library" scope="PROVIDED" name="rqrcode_core (
|
26
|
+
<orderEntry type="library" scope="PROVIDED" name="rqrcode (v2.2.0, RVM: ruby-3.1.0) [gem]" level="application" />
|
27
|
+
<orderEntry type="library" scope="PROVIDED" name="rqrcode_core (v1.2.0, RVM: ruby-3.1.0) [gem]" level="application" />
|
28
28
|
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.13.0, RVM: ruby-3.1.0) [gem]" level="application" />
|
29
29
|
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.13.1, RVM: ruby-3.1.0) [gem]" level="application" />
|
30
30
|
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.13.2, RVM: ruby-3.1.0) [gem]" level="application" />
|
@@ -39,21 +39,21 @@
|
|
39
39
|
<option name="myRootTask">
|
40
40
|
<RakeTaskImpl id="rake">
|
41
41
|
<subtasks>
|
42
|
-
<RakeTaskImpl description="Build upi-0.
|
42
|
+
<RakeTaskImpl description="Build upi-2.0.0.gem into the pkg directory" fullCommand="build" id="build" />
|
43
43
|
<RakeTaskImpl id="build">
|
44
44
|
<subtasks>
|
45
|
-
<RakeTaskImpl description="Generate SHA512 checksum if upi-0.
|
45
|
+
<RakeTaskImpl description="Generate SHA512 checksum if upi-2.0.0.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
|
46
46
|
</subtasks>
|
47
47
|
</RakeTaskImpl>
|
48
48
|
<RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
|
49
49
|
<RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
|
50
|
-
<RakeTaskImpl description="Build and install upi-0.
|
50
|
+
<RakeTaskImpl description="Build and install upi-2.0.0.gem into system gems" fullCommand="install" id="install" />
|
51
51
|
<RakeTaskImpl id="install">
|
52
52
|
<subtasks>
|
53
|
-
<RakeTaskImpl description="Build and install upi-0.
|
53
|
+
<RakeTaskImpl description="Build and install upi-2.0.0.gem into system gems without network access" fullCommand="install:local" id="local" />
|
54
54
|
</subtasks>
|
55
55
|
</RakeTaskImpl>
|
56
|
-
<RakeTaskImpl description="Create tag
|
56
|
+
<RakeTaskImpl description="Create tag v2.0.0 and build and push upi-2.0.0.gem to https://rubygems.org" fullCommand="release[remote]" id="release[remote]" />
|
57
57
|
<RakeTaskImpl description="Run RuboCop" fullCommand="rubocop" id="rubocop" />
|
58
58
|
<RakeTaskImpl id="rubocop">
|
59
59
|
<subtasks>
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
upi (2.0.
|
4
|
+
upi (2.0.1)
|
5
5
|
chunky_png
|
6
|
-
rqrcode (
|
6
|
+
rqrcode (= 2.2.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -21,10 +21,10 @@ GEM
|
|
21
21
|
rainbow (3.1.1)
|
22
22
|
rake (13.2.1)
|
23
23
|
regexp_parser (2.9.2)
|
24
|
-
rqrcode (
|
24
|
+
rqrcode (2.2.0)
|
25
25
|
chunky_png (~> 1.0)
|
26
|
-
rqrcode_core (~> 0
|
27
|
-
rqrcode_core (
|
26
|
+
rqrcode_core (~> 1.0)
|
27
|
+
rqrcode_core (1.2.0)
|
28
28
|
rspec (3.13.0)
|
29
29
|
rspec-core (~> 3.13.0)
|
30
30
|
rspec-expectations (~> 3.13.0)
|
@@ -61,7 +61,7 @@ PLATFORMS
|
|
61
61
|
DEPENDENCIES
|
62
62
|
chunky_png
|
63
63
|
rake (~> 13.0)
|
64
|
-
rqrcode (
|
64
|
+
rqrcode (= 2.2.0)
|
65
65
|
rspec (~> 3.0)
|
66
66
|
rubocop (~> 1.21)
|
67
67
|
upi!
|
data/lib/upi/version.rb
CHANGED
data/lib/upi.rb
CHANGED
@@ -15,14 +15,12 @@ module Upi
|
|
15
15
|
#
|
16
16
|
# generator = Upi::Generator.new(
|
17
17
|
# upi_id: 'test@upi',
|
18
|
-
# name: 'Test Name'
|
19
|
-
# amount: 100,
|
20
|
-
# note: 'Test Description'
|
18
|
+
# name: 'Test Name'
|
21
19
|
# )
|
22
20
|
#
|
23
|
-
# svg_content = generator.generate_qr(mode: :svg)
|
24
|
-
# png_content = generator.generate_qr(mode: :png)
|
25
|
-
# payment_url = generator.
|
21
|
+
# svg_content = generator.generate_qr(100, 'Personal Payment', mode: :svg)
|
22
|
+
# png_content = generator.generate_qr(100, 'Personal Payment', mode: :png)
|
23
|
+
# payment_url = generator.upi_content(100, 'Personal Payment')
|
26
24
|
#
|
27
25
|
# Parameters:
|
28
26
|
# - `upi_id`: The UPI ID of the recipient.
|
@@ -38,10 +36,9 @@ module Upi
|
|
38
36
|
# @example
|
39
37
|
# generator = Upi::Generator.new(
|
40
38
|
# upi_id: 'test@upi',
|
41
|
-
# name: 'Test Name'
|
42
|
-
# amount: 100
|
39
|
+
# name: 'Test Name'
|
43
40
|
# )
|
44
|
-
# svg_content = generator.generate_qr(mode: :svg)
|
41
|
+
# svg_content = generator.generate_qr(100, 'Personal Payment', mode: :svg)
|
45
42
|
# File.write('qr_code.svg', svg_content)
|
46
43
|
#
|
47
44
|
# @see https://www.npci.org.in/what-we-do/upi/product-overview for more details on UPI protocol
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: upi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Faraz Noor
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: rqrcode
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.2.0
|
41
41
|
description: This gem generates UPI QR codes for payments. It can be used in e-commerce
|
42
42
|
applications to generate QR codes for payments. The QR codes can be scanned by UPI
|
43
43
|
apps to make payments. The gem uses the rqrcode gem to generate the QR codes.
|