fdg22 0.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 +7 -0
- checksums.yaml.gz.sig +0 -0
- data/lib/fdg22.rb +77 -0
- data.tar.gz.sig +0 -0
- metadata +170 -0
- metadata.gz.sig +3 -0
    
        checksums.yaml
    ADDED
    
    | @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            SHA256:
         | 
| 3 | 
            +
              metadata.gz: f75c5379d7517b9528679d7849ae6373f8aed25da5050db0984f4ca86acbface
         | 
| 4 | 
            +
              data.tar.gz: '09ab7b2bfec480a7aa182367c9615051d25ab70672bed3c5baa8415ec38cb66a'
         | 
| 5 | 
            +
            SHA512:
         | 
| 6 | 
            +
              metadata.gz: c7a7d891f17815ce3f10e01e7d9223596569c3c232cc44df28d1a46450c81a3f65ca2c97f1707f97853a4e53f9914c8b2ec4b97f14b30aacb775b1cadd69f29a
         | 
| 7 | 
            +
              data.tar.gz: 7175c782ced39e8ce3d1089e2554abb462eb195da86e20e223ce2243d884f5ea26775bd2bfdfeae3d4a430aa7c0a9bab57d4ae3d56fa7abd85cebc1cb9347ad4
         | 
    
        checksums.yaml.gz.sig
    ADDED
    
    | Binary file | 
    
        data/lib/fdg22.rb
    ADDED
    
    | @@ -0,0 +1,77 @@ | |
| 1 | 
            +
            #!/usr/bin/env ruby
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            # file: fdg22.rb
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            # description: Fake Data Generator 2022
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            require 'quick_faker'
         | 
| 8 | 
            +
            require 'tempmail44'
         | 
| 9 | 
            +
            require 'tempsms22'
         | 
| 10 | 
            +
            require 'quickdata_generator'
         | 
| 11 | 
            +
            require 'leetpassword'
         | 
| 12 | 
            +
             | 
| 13 | 
            +
             | 
| 14 | 
            +
            class Fdg22
         | 
| 15 | 
            +
             | 
| 16 | 
            +
              def initialize(locale: 'en-GB', email_api: nil)
         | 
| 17 | 
            +
             | 
| 18 | 
            +
                @email_api = email_api
         | 
| 19 | 
            +
                @qf = QuickFaker.new locale
         | 
| 20 | 
            +
             | 
| 21 | 
            +
              end
         | 
| 22 | 
            +
             | 
| 23 | 
            +
              def email()
         | 
| 24 | 
            +
             | 
| 25 | 
            +
                if @email_api then
         | 
| 26 | 
            +
                  tm = TempMail44.new(apikey: @email_api)
         | 
| 27 | 
            +
                  @email ||= tm.create
         | 
| 28 | 
            +
                else
         | 
| 29 | 
            +
                  @email = @qf.email
         | 
| 30 | 
            +
                end
         | 
| 31 | 
            +
             | 
| 32 | 
            +
              end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
              def first_name()
         | 
| 35 | 
            +
                @qf.first_name
         | 
| 36 | 
            +
              end
         | 
| 37 | 
            +
             | 
| 38 | 
            +
              def last_name()
         | 
| 39 | 
            +
                @qf.last_name
         | 
| 40 | 
            +
              end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
              def lookup(method_name, context=nil)
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                s = method_name.to_sym
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                if self.respond_to? s then
         | 
| 47 | 
            +
                  self.method(s).call()
         | 
| 48 | 
            +
                else
         | 
| 49 | 
            +
                  @qf.lookup(method_name, context)
         | 
| 50 | 
            +
                end
         | 
| 51 | 
            +
              end
         | 
| 52 | 
            +
             | 
| 53 | 
            +
              def password()
         | 
| 54 | 
            +
                @password ||= LeetPassword.easygen
         | 
| 55 | 
            +
              end
         | 
| 56 | 
            +
             | 
| 57 | 
            +
              def postcode()
         | 
| 58 | 
            +
                @qf.postcode
         | 
| 59 | 
            +
              end
         | 
| 60 | 
            +
             | 
| 61 | 
            +
              def telephone()
         | 
| 62 | 
            +
                @telephone ||= TempSMS22.new.number
         | 
| 63 | 
            +
              end
         | 
| 64 | 
            +
             | 
| 65 | 
            +
              alias sms telephone
         | 
| 66 | 
            +
             | 
| 67 | 
            +
              def title()
         | 
| 68 | 
            +
                @qf.prefix
         | 
| 69 | 
            +
              end
         | 
| 70 | 
            +
             | 
| 71 | 
            +
              private
         | 
| 72 | 
            +
             | 
| 73 | 
            +
              def method_missing(method_name, *args)
         | 
| 74 | 
            +
                lookup(method_name, *args)
         | 
| 75 | 
            +
              end
         | 
| 76 | 
            +
             | 
| 77 | 
            +
            end
         | 
    
        data.tar.gz.sig
    ADDED
    
    | Binary file | 
    
        metadata
    ADDED
    
    | @@ -0,0 +1,170 @@ | |
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 | 
            +
            name: fdg22
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 0.1.0
         | 
| 5 | 
            +
            platform: ruby
         | 
| 6 | 
            +
            authors:
         | 
| 7 | 
            +
            - James Robertson
         | 
| 8 | 
            +
            autorequire: 
         | 
| 9 | 
            +
            bindir: bin
         | 
| 10 | 
            +
            cert_chain:
         | 
| 11 | 
            +
            - |
         | 
| 12 | 
            +
              -----BEGIN CERTIFICATE-----
         | 
| 13 | 
            +
              MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
         | 
| 14 | 
            +
              YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjIwNTI4MTIwMDI3WhcN
         | 
| 15 | 
            +
              MjMwNTI4MTIwMDI3WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
         | 
| 16 | 
            +
              cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDOzvQ3
         | 
| 17 | 
            +
              0HUgGy1k/BQFTcW4QVQ2GnbsO5mu+ETDPLf0c5s92SC1Ial7eArzurUBcoOdQm29
         | 
| 18 | 
            +
              9ULoYcmFvUTuwKT8oPMngMjzjaTiyp0h/N5MmBrqcJgDvnl8K3l7+y607j/bE8BQ
         | 
| 19 | 
            +
              GfXCW7kiLs/tzdE+xOEA11ay42q+EUY3OGga3x2FH60WX9WCkfXXCrEMGDwfODa8
         | 
| 20 | 
            +
              8rH2kvkG1oiVkIl8siWcv0qa8sP5f9pXacgW6qBp4v5AHqh/UlEUj+se3L0yOsQg
         | 
| 21 | 
            +
              5TSdi6BNOuDLC1zk3Fmk4q/3nzuFzSobgqD+1uotVNjy4dtTLVHpqpsWI+RgnOE5
         | 
| 22 | 
            +
              +4PLY1oyZVfBwcDBfjujP+j9vJtC53Sv5QnQqV0DhY9O9AeIn+BRpIxzdZs8biTs
         | 
| 23 | 
            +
              v3ebSLCDzVwlLEvJI3MVSPh3s1AIuhxEEheh9Xks+KVcq7aEZ2ynTLVmf7YRrk8G
         | 
| 24 | 
            +
              X2Fa0/ojOb1orqow30LXNW6ljRuQyOerF5NvygFbw1K70o50Ebf6cjE7z9ECAwEA
         | 
| 25 | 
            +
              AaOBijCBhzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUxgow3fVO
         | 
| 26 | 
            +
              w4C2p6VpomU97L3nkZEwJgYDVR0RBB8wHYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0
         | 
| 27 | 
            +
              c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1hc3RlckBqYW1lc3JvYmVydHNvbi5ldTAN
         | 
| 28 | 
            +
              BgkqhkiG9w0BAQsFAAOCAYEAIdBMwJXZ1VhtJHw76/FPrMmTezeCn42XW6LozfDA
         | 
| 29 | 
            +
              1/2CR6S1zCTnQe6erhZn5p9v6rIc7i94/lynsqf78EsEAtB0VsCjWHiWW9JKdN1U
         | 
| 30 | 
            +
              +pe4tezNatdVwnG6HrXhy38/61bfDA6hZN14GAdglABq8bDgMr6cKILOfrq9Ig7k
         | 
| 31 | 
            +
              JuslUHDxKI2jpOH0hJ7CRD7uNJMjtN4RHvOEhL1Kfbqcuh0VL9tfelOZXuHXpujR
         | 
| 32 | 
            +
              vdFQjRnFi8DQCoCmAjwKFARmPDWQkfMZ+2KhPYWJQrmR/DmTF0oPRmDNgw/mOhaX
         | 
| 33 | 
            +
              vwwTCroJ03vONHj1N7w3sP/5mqz4Hl7VZaSRunIgtbWn51VEzl4ym3er+WuuhnjP
         | 
| 34 | 
            +
              R/UOB+p1ln6S2ysDJ07GuIGo8jtWwl0t1tgLYcoI3SGa9WeTV7MJvVgStNvIx0SM
         | 
| 35 | 
            +
              vqkOw8oGRgzDSFnPG5Wp4Ofgm8ckWIWpD5WOLYpkJC6XsuIjiSMDxiEgBw10AV7C
         | 
| 36 | 
            +
              tU0Y0+Gy45JtxuYuKJZM9lT3
         | 
| 37 | 
            +
              -----END CERTIFICATE-----
         | 
| 38 | 
            +
            date: 2022-05-28 00:00:00.000000000 Z
         | 
| 39 | 
            +
            dependencies:
         | 
| 40 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 41 | 
            +
              name: quick_faker
         | 
| 42 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 43 | 
            +
                requirements:
         | 
| 44 | 
            +
                - - "~>"
         | 
| 45 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 46 | 
            +
                    version: '0.2'
         | 
| 47 | 
            +
                - - ">="
         | 
| 48 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 49 | 
            +
                    version: 0.2.1
         | 
| 50 | 
            +
              type: :runtime
         | 
| 51 | 
            +
              prerelease: false
         | 
| 52 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 53 | 
            +
                requirements:
         | 
| 54 | 
            +
                - - "~>"
         | 
| 55 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 56 | 
            +
                    version: '0.2'
         | 
| 57 | 
            +
                - - ">="
         | 
| 58 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 59 | 
            +
                    version: 0.2.1
         | 
| 60 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 61 | 
            +
              name: tempmail44
         | 
| 62 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 63 | 
            +
                requirements:
         | 
| 64 | 
            +
                - - "~>"
         | 
| 65 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 66 | 
            +
                    version: '0.1'
         | 
| 67 | 
            +
                - - ">="
         | 
| 68 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 69 | 
            +
                    version: 0.1.1
         | 
| 70 | 
            +
              type: :runtime
         | 
| 71 | 
            +
              prerelease: false
         | 
| 72 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 73 | 
            +
                requirements:
         | 
| 74 | 
            +
                - - "~>"
         | 
| 75 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 76 | 
            +
                    version: '0.1'
         | 
| 77 | 
            +
                - - ">="
         | 
| 78 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 79 | 
            +
                    version: 0.1.1
         | 
| 80 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 81 | 
            +
              name: tempsms22
         | 
| 82 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 83 | 
            +
                requirements:
         | 
| 84 | 
            +
                - - "~>"
         | 
| 85 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 86 | 
            +
                    version: '0.1'
         | 
| 87 | 
            +
                - - ">="
         | 
| 88 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 89 | 
            +
                    version: 0.1.1
         | 
| 90 | 
            +
              type: :runtime
         | 
| 91 | 
            +
              prerelease: false
         | 
| 92 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 93 | 
            +
                requirements:
         | 
| 94 | 
            +
                - - "~>"
         | 
| 95 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 96 | 
            +
                    version: '0.1'
         | 
| 97 | 
            +
                - - ">="
         | 
| 98 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 99 | 
            +
                    version: 0.1.1
         | 
| 100 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 101 | 
            +
              name: quickdata_generator
         | 
| 102 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 103 | 
            +
                requirements:
         | 
| 104 | 
            +
                - - "~>"
         | 
| 105 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 106 | 
            +
                    version: '0.1'
         | 
| 107 | 
            +
                - - ">="
         | 
| 108 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 109 | 
            +
                    version: 0.1.0
         | 
| 110 | 
            +
              type: :runtime
         | 
| 111 | 
            +
              prerelease: false
         | 
| 112 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 113 | 
            +
                requirements:
         | 
| 114 | 
            +
                - - "~>"
         | 
| 115 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 116 | 
            +
                    version: '0.1'
         | 
| 117 | 
            +
                - - ">="
         | 
| 118 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 119 | 
            +
                    version: 0.1.0
         | 
| 120 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 121 | 
            +
              name: leetpassword
         | 
| 122 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 123 | 
            +
                requirements:
         | 
| 124 | 
            +
                - - "~>"
         | 
| 125 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 126 | 
            +
                    version: '1.0'
         | 
| 127 | 
            +
                - - ">="
         | 
| 128 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 129 | 
            +
                    version: 1.0.1
         | 
| 130 | 
            +
              type: :runtime
         | 
| 131 | 
            +
              prerelease: false
         | 
| 132 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 133 | 
            +
                requirements:
         | 
| 134 | 
            +
                - - "~>"
         | 
| 135 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 136 | 
            +
                    version: '1.0'
         | 
| 137 | 
            +
                - - ">="
         | 
| 138 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 139 | 
            +
                    version: 1.0.1
         | 
| 140 | 
            +
            description: 
         | 
| 141 | 
            +
            email: digital.robertson@gmail.com
         | 
| 142 | 
            +
            executables: []
         | 
| 143 | 
            +
            extensions: []
         | 
| 144 | 
            +
            extra_rdoc_files: []
         | 
| 145 | 
            +
            files:
         | 
| 146 | 
            +
            - lib/fdg22.rb
         | 
| 147 | 
            +
            homepage: https://github.com/jrobertson/fdg22
         | 
| 148 | 
            +
            licenses:
         | 
| 149 | 
            +
            - MIT
         | 
| 150 | 
            +
            metadata: {}
         | 
| 151 | 
            +
            post_install_message: 
         | 
| 152 | 
            +
            rdoc_options: []
         | 
| 153 | 
            +
            require_paths:
         | 
| 154 | 
            +
            - lib
         | 
| 155 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 156 | 
            +
              requirements:
         | 
| 157 | 
            +
              - - ">="
         | 
| 158 | 
            +
                - !ruby/object:Gem::Version
         | 
| 159 | 
            +
                  version: '0'
         | 
| 160 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 161 | 
            +
              requirements:
         | 
| 162 | 
            +
              - - ">="
         | 
| 163 | 
            +
                - !ruby/object:Gem::Version
         | 
| 164 | 
            +
                  version: '0'
         | 
| 165 | 
            +
            requirements: []
         | 
| 166 | 
            +
            rubygems_version: 3.2.22
         | 
| 167 | 
            +
            signing_key: 
         | 
| 168 | 
            +
            specification_version: 4
         | 
| 169 | 
            +
            summary: Fake Data Generator 2022
         | 
| 170 | 
            +
            test_files: []
         | 
    
        metadata.gz.sig
    ADDED