emoji-extractor 1.0.0 → 1.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/Rakefile +1 -0
- data/VERSION +1 -1
- data/bin/emoji-extractor +29 -0
- metadata +4 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: e302bb8fec66cfadbc97bf5d4ce54724e24751fc
         | 
| 4 | 
            +
              data.tar.gz: 3bbf467e260beaee3f9487492d628e4ff318dab6
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 15b70e21e6e358664b83d4f48ca0734b943087c11773e89ba7f9bfdfa2a4bb84abd1d84776d9334aa78520f376d4763f8820f2767c7300305f529e2189475a03
         | 
| 7 | 
            +
              data.tar.gz: dca187f1d7bf31ada9e5eb9f5d084ad7b9a120c32f2c51dec6a3f864587841851c00bd9201d72ee2b024862fa33feeee3a00f3e9e91ae4d2a40a1c693ef2bab3
         | 
    
        data/Rakefile
    CHANGED
    
    | @@ -21,6 +21,7 @@ Jeweler::Tasks.new do |gem| | |
| 21 21 | 
             
              gem.description = %Q{extracts high-resolution emoji pngs from ttf}
         | 
| 22 22 | 
             
              gem.email = "with.out@me.com"
         | 
| 23 23 | 
             
              gem.authors = ["Andrey Cherkashin", "Aman Gupta"]
         | 
| 24 | 
            +
              gem.executables = ['emoji-extractor']
         | 
| 24 25 | 
             
              # dependencies defined in Gemfile
         | 
| 25 26 | 
             
            end
         | 
| 26 27 | 
             
            Jeweler::RubygemsDotOrgTasks.new
         | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1.0. | 
| 1 | 
            +
            1.0.1
         | 
    
        data/bin/emoji-extractor
    ADDED
    
    | @@ -0,0 +1,29 @@ | |
| 1 | 
            +
            #!/usr/bin/env ruby
         | 
| 2 | 
            +
            # -*- mode: ruby -*-
         | 
| 3 | 
            +
            # vi: set ft=ruby :
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            require 'optparse'
         | 
| 6 | 
            +
            require 'optparse/time'
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            require 'stringio'
         | 
| 9 | 
            +
            require 'fileutils'
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
         | 
| 12 | 
            +
            require 'emoji-extractor'
         | 
| 13 | 
            +
             | 
| 14 | 
            +
            @options = {
         | 
| 15 | 
            +
              dst: 'images',
         | 
| 16 | 
            +
              file: '/System/Library/Fonts/Apple Color Emoji.ttf'
         | 
| 17 | 
            +
            }
         | 
| 18 | 
            +
            OptionParser.new do |opts|
         | 
| 19 | 
            +
              opts.banner = "Usage: emoji-extractor [--dst images] [--file /System/Library/Fonts/Apple Color Emoji.ttf]"
         | 
| 20 | 
            +
              opts.on("-f", "--file", "File from where extract emoji") do |v|
         | 
| 21 | 
            +
                options[:file] = v
         | 
| 22 | 
            +
              end
         | 
| 23 | 
            +
              opts.on("-d", "--dst", "Where to store the result") do |v|
         | 
| 24 | 
            +
                options[:file] = v
         | 
| 25 | 
            +
              end
         | 
| 26 | 
            +
            end.parse!
         | 
| 27 | 
            +
             | 
| 28 | 
            +
            app = EmojiExtractor.new(@options)
         | 
| 29 | 
            +
            app.run
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: emoji-extractor
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.0. | 
| 4 | 
            +
              version: 1.0.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Andrey Cherkashin
         | 
| @@ -27,7 +27,8 @@ dependencies: | |
| 27 27 | 
             
                    version: 2.0.1
         | 
| 28 28 | 
             
            description: extracts high-resolution emoji pngs from ttf
         | 
| 29 29 | 
             
            email: with.out@me.com
         | 
| 30 | 
            -
            executables: | 
| 30 | 
            +
            executables:
         | 
| 31 | 
            +
            - emoji-extractor
         | 
| 31 32 | 
             
            extensions: []
         | 
| 32 33 | 
             
            extra_rdoc_files:
         | 
| 33 34 | 
             
            - LICENSE.txt
         | 
| @@ -39,6 +40,7 @@ files: | |
| 39 40 | 
             
            - README.rdoc
         | 
| 40 41 | 
             
            - Rakefile
         | 
| 41 42 | 
             
            - VERSION
         | 
| 43 | 
            +
            - bin/emoji-extractor
         | 
| 42 44 | 
             
            - lib/emoji-extractor.rb
         | 
| 43 45 | 
             
            - test/helper.rb
         | 
| 44 46 | 
             
            - test/test_emoji-extractor.rb
         |