asky 0.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 +7 -0
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/README.md +3 -0
- data/asky.gemspec +15 -0
- data/bin/asky +23 -0
- metadata +62 -0
    
        checksums.yaml
    ADDED
    
    | @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            SHA256:
         | 
| 3 | 
            +
              metadata.gz: a0c8efb8e22a7610fb7ac7bd0c9e5ddd338879888b2eabaac3ce1504e372d0ea
         | 
| 4 | 
            +
              data.tar.gz: e07d72faaa35d9a9dd69adc1bca1fd52e78a18339959df0b5a013b290730dc4d
         | 
| 5 | 
            +
            SHA512:
         | 
| 6 | 
            +
              metadata.gz: 053ec135bb7e2d73465f9e7910bbecfe4eaefcc597fe8c3d1b20549cd82cf127f607593175ba79864b1b73723292dbac93f02d69e5be0251954770a2d80eb59b
         | 
| 7 | 
            +
              data.tar.gz: f740bf5ee327ced6eecf3159adb3a68974fb5a12cb456423c1efc4885a0de8f2b9939c0a2e006bc67e58b79801cec57da2673571eb761f868b3d4f4d33316fa0
         | 
    
        data/Gemfile
    ADDED
    
    
    
        data/LICENSE
    ADDED
    
    | @@ -0,0 +1,21 @@ | |
| 1 | 
            +
            MIT License
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            Copyright (c) 2023 Steve Shreeve
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            Permission is hereby granted, free of charge, to any person obtaining a copy
         | 
| 6 | 
            +
            of this software and associated documentation files (the "Software"), to deal
         | 
| 7 | 
            +
            in the Software without restriction, including without limitation the rights
         | 
| 8 | 
            +
            to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         | 
| 9 | 
            +
            copies of the Software, and to permit persons to whom the Software is
         | 
| 10 | 
            +
            furnished to do so, subject to the following conditions:
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            The above copyright notice and this permission notice shall be included in all
         | 
| 13 | 
            +
            copies or substantial portions of the Software.
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 16 | 
            +
            IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         | 
| 17 | 
            +
            FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         | 
| 18 | 
            +
            AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         | 
| 19 | 
            +
            LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         | 
| 20 | 
            +
            OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         | 
| 21 | 
            +
            SOFTWARE.
         | 
    
        data/README.md
    ADDED
    
    
    
        data/asky.gemspec
    ADDED
    
    | @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            # encoding: utf-8
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            Gem::Specification.new do |s|
         | 
| 4 | 
            +
              s.name        = "asky"
         | 
| 5 | 
            +
              s.version     = `grep '^\s*VERSION' bin/asky | cut -f 2 -d '"'`
         | 
| 6 | 
            +
              s.author      = "Steve Shreeve"
         | 
| 7 | 
            +
              s.email       = "steve.shreeve@gmail.com"
         | 
| 8 | 
            +
              s.summary     =
         | 
| 9 | 
            +
              s.description = "Ruby utility to perform Unicode to ASCII transliteration"
         | 
| 10 | 
            +
              s.homepage    = "https://github.com/shreeve/asky"
         | 
| 11 | 
            +
              s.license     = "MIT"
         | 
| 12 | 
            +
              s.files       = `git ls-files`.split("\n") - %w[.gitignore]
         | 
| 13 | 
            +
              s.executables = `cd bin && git ls-files .`.split("\n")
         | 
| 14 | 
            +
              s.add_runtime_dependency "any_ascii", "~> 0.3.2"
         | 
| 15 | 
            +
            end
         | 
    
        data/bin/asky
    ADDED
    
    | @@ -0,0 +1,23 @@ | |
| 1 | 
            +
            #!/usr/bin/env ruby
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            STDOUT.sync = true
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            require "any_ascii"
         | 
| 6 | 
            +
            require "optparse"
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            trap("INT" ) { abort "\n" }
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            OptionParser.new.instance_eval do
         | 
| 11 | 
            +
              @banner  = "usage: #{program_name} [options] <file|ARGF>"
         | 
| 12 | 
            +
             | 
| 13 | 
            +
              on "-h", "--help"                   , "Show help and command usage" do Kernel.abort to_s; end
         | 
| 14 | 
            +
              on "-v", "--version"                , "Show version number" do Kernel.abort "#{program_name} #{VERSION}"; end
         | 
| 15 | 
            +
             | 
| 16 | 
            +
              self
         | 
| 17 | 
            +
            end.parse!(into: opts={}) rescue abort($!.message)
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            class Asky
         | 
| 20 | 
            +
              VERSION = "0.0.1"
         | 
| 21 | 
            +
            end
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            print AnyAscii.transliterate(ARGF.read)
         | 
    
        metadata
    ADDED
    
    | @@ -0,0 +1,62 @@ | |
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 | 
            +
            name: asky
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 0.0.1
         | 
| 5 | 
            +
            platform: ruby
         | 
| 6 | 
            +
            authors:
         | 
| 7 | 
            +
            - Steve Shreeve
         | 
| 8 | 
            +
            autorequire:
         | 
| 9 | 
            +
            bindir: bin
         | 
| 10 | 
            +
            cert_chain: []
         | 
| 11 | 
            +
            date: 2023-03-18 00:00:00.000000000 Z
         | 
| 12 | 
            +
            dependencies:
         | 
| 13 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 14 | 
            +
              name: any_ascii
         | 
| 15 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 | 
            +
                requirements:
         | 
| 17 | 
            +
                - - "~>"
         | 
| 18 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            +
                    version: 0.3.2
         | 
| 20 | 
            +
              type: :runtime
         | 
| 21 | 
            +
              prerelease: false
         | 
| 22 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 | 
            +
                requirements:
         | 
| 24 | 
            +
                - - "~>"
         | 
| 25 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            +
                    version: 0.3.2
         | 
| 27 | 
            +
            description: Ruby utility to perform Unicode to ASCII transliteration
         | 
| 28 | 
            +
            email: steve.shreeve@gmail.com
         | 
| 29 | 
            +
            executables:
         | 
| 30 | 
            +
            - asky
         | 
| 31 | 
            +
            extensions: []
         | 
| 32 | 
            +
            extra_rdoc_files: []
         | 
| 33 | 
            +
            files:
         | 
| 34 | 
            +
            - Gemfile
         | 
| 35 | 
            +
            - LICENSE
         | 
| 36 | 
            +
            - README.md
         | 
| 37 | 
            +
            - asky.gemspec
         | 
| 38 | 
            +
            - bin/asky
         | 
| 39 | 
            +
            homepage: https://github.com/shreeve/asky
         | 
| 40 | 
            +
            licenses:
         | 
| 41 | 
            +
            - MIT
         | 
| 42 | 
            +
            metadata: {}
         | 
| 43 | 
            +
            post_install_message:
         | 
| 44 | 
            +
            rdoc_options: []
         | 
| 45 | 
            +
            require_paths:
         | 
| 46 | 
            +
            - lib
         | 
| 47 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 48 | 
            +
              requirements:
         | 
| 49 | 
            +
              - - ">="
         | 
| 50 | 
            +
                - !ruby/object:Gem::Version
         | 
| 51 | 
            +
                  version: '0'
         | 
| 52 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 53 | 
            +
              requirements:
         | 
| 54 | 
            +
              - - ">="
         | 
| 55 | 
            +
                - !ruby/object:Gem::Version
         | 
| 56 | 
            +
                  version: '0'
         | 
| 57 | 
            +
            requirements: []
         | 
| 58 | 
            +
            rubygems_version: 3.4.8
         | 
| 59 | 
            +
            signing_key:
         | 
| 60 | 
            +
            specification_version: 4
         | 
| 61 | 
            +
            summary: Ruby utility to perform Unicode to ASCII transliteration
         | 
| 62 | 
            +
            test_files: []
         |