m0x_qr 0.5.5 → 0.5.6

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: a48afa6c97c8962dbee63b13d7389d8e6a5beb51487b6365fd7bac6bc166c052
4
- data.tar.gz: 88ad4c9d410f72c4c969e04121171605ac8cd15883cea35a074131e4fa22caf2
3
+ metadata.gz: 21ea5bce9f6a92122671c5ab719007db23623ed49600b0af3921af3e9f69af7b
4
+ data.tar.gz: f54ee5ba8a23038a128b4d6e2b6ad50535c0940dc04741c5ef9acdcc74f950fc
5
5
  SHA512:
6
- metadata.gz: 0bee88e3b9e5ec8b99e235e086cdbc7116e9c9d207c849136f3f45361923e6cef0f537d32c3841fe58292537c19dd58329ab3280c6a61858fbdf44340013023b
7
- data.tar.gz: 19285e54b7601de21b2418f77e07569f80f040ea313832a0b497413c28d1ab34efa8a69b890016455bf050779553c2dea000124af3efcc281d9ccc6d61c9d44f
6
+ metadata.gz: 34429cbfdbe03efdbef02346cd197295a6f70c06a7a0fd3a2f500990ce0d0bf0bd6a134458716c70ecc13b280002e1a4f667a980cef6669d3cdb3e098e81e13a
7
+ data.tar.gz: 8b3f5d9d14091db363776bf07877c19b54347b33fe03f82b37037b89ca4775c2d38a6337f5089153529de96e39617c7ef41d11e8edc7bf3b3a1befbdbc551a78
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2024 igor.kir
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # M0xQr
2
+ Short description and motivation.
3
+
4
+ ## Usage
5
+ How to use my plugin.
6
+
7
+ ## Installation
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem "m0x_qr"
12
+ ```
13
+
14
+ And then execute:
15
+ ```bash
16
+ $ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+ ```bash
21
+ $ gem install m0x_qr
22
+ ```
23
+
24
+ ## Contributing
25
+ Contribution directions go here.
26
+
27
+ ## License
28
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require "bundler/setup"
2
+
3
+ APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
4
+ load "rails/tasks/engine.rake"
5
+
6
+ load "rails/tasks/statistics.rake"
7
+
8
+ require "bundler/gem_tasks"
@@ -0,0 +1 @@
1
+ //= link_directory ../stylesheets/m0x_qr .css
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,4 @@
1
+ module M0xQr
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,5 @@
1
+ class ExampleController < ApplicationController
2
+ def index
3
+ @text = File.read("flag.txt")
4
+ end
5
+ end
@@ -0,0 +1,4 @@
1
+ module M0xQr
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module M0xQr
2
+ class ApplicationJob < ActiveJob::Base
3
+ end
4
+ end
@@ -0,0 +1,6 @@
1
+ module M0xQr
2
+ class ApplicationMailer < ActionMailer::Base
3
+ default from: "from@example.com"
4
+ layout "mailer"
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module M0xQr
2
+ class ApplicationRecord < ActiveRecord::Base
3
+ self.abstract_class = true
4
+ end
5
+ end
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>M0x qr</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+
8
+ <%= stylesheet_link_tag "m0x_qr/application", media: "all" %>
9
+ </head>
10
+ <body>
11
+
12
+ <%= yield %>
13
+
14
+ </body>
15
+ </html>
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ M0xQr::Engine.routes.draw do
2
+ get "example-55ca0900d9d3e846b324955fe040823cd2fd1cb7", to: "example#index"
3
+ end
@@ -0,0 +1,5 @@
1
+ module M0xQr
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace M0xQr
4
+ end
5
+ end
data/lib/m0x_qr.rb CHANGED
@@ -1,8 +1,8 @@
1
- require "rqrcode"
2
1
  require "m0x_qr/engine"
2
+ require "rqrcode"
3
3
 
4
- module M0xQR
4
+ module M0xQr
5
5
  def self.generate(text)
6
6
  RQRCode::QRCode.new(text).as_svg
7
7
  end
8
- end
8
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :m0x_qr do
3
+ # # Task goes here
4
+ # end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: m0x_qr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - m0x
@@ -11,44 +11,60 @@ cert_chain: []
11
11
  date: 2024-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rqrcode
14
+ name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: 7.0.8
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: '2.0'
26
+ version: 7.0.8
27
27
  - !ruby/object:Gem::Dependency
28
- name: rails
28
+ name: rqrcode
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 7.0.0
33
+ version: '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: 7.0.0
40
+ version: '2.0'
41
41
  description: Gem to generate QR code from text
42
42
  email: m0x_digital@gmail.com
43
43
  executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
+ - MIT-LICENSE
48
+ - README.md
49
+ - Rakefile
50
+ - app/assets/config/m0x_qr_manifest.js
51
+ - app/assets/stylesheets/m0x_qr/application.css
52
+ - app/controllers/m0x_qr/application_controller.rb
53
+ - app/controllers/m0x_qr/example_controller.rb
54
+ - app/helpers/m0x_qr/application_helper.rb
55
+ - app/jobs/m0x_qr/application_job.rb
56
+ - app/mailers/m0x_qr/application_mailer.rb
57
+ - app/models/m0x_qr/application_record.rb
58
+ - app/views/layouts/m0x_qr/application.html.erb
59
+ - config/routes.rb
47
60
  - lib/m0x_qr.rb
61
+ - lib/m0x_qr/engine.rb
62
+ - lib/tasks/m0x_qr_tasks.rake
48
63
  homepage: https://rubygems.org/gems/m0x_qr
49
64
  licenses:
50
65
  - MIT
51
- metadata: {}
66
+ metadata:
67
+ homepage_uri: https://rubygems.org/gems/m0x_qr
52
68
  post_install_message:
53
69
  rdoc_options: []
54
70
  require_paths: