ruby-filemagic 0.6.2-x86-mingw32
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/ChangeLog +92 -0
 - data/README +101 -0
 - data/Rakefile +34 -0
 - data/TODO +7 -0
 - data/ext/filemagic/extconf.rb +16 -0
 - data/ext/filemagic/filemagic.c +310 -0
 - data/ext/filemagic/filemagic.h +98 -0
 - data/lib/filemagic/1.9/ruby_filemagic.so +0 -0
 - data/lib/filemagic/2.0/ruby_filemagic.so +0 -0
 - data/lib/filemagic/2.1/ruby_filemagic.so +0 -0
 - data/lib/filemagic/2.2/ruby_filemagic.so +0 -0
 - data/lib/filemagic/ext.rb +99 -0
 - data/lib/filemagic/magic.mgc +0 -0
 - data/lib/filemagic/version.rb +27 -0
 - data/lib/filemagic.rb +142 -0
 - data/lib/ruby-filemagic.rb +1 -0
 - data/test/excel-example.xls +0 -0
 - data/test/filemagic_test.rb +227 -0
 - data/test/leaktest.rb +16 -0
 - data/test/mahoro.c +187 -0
 - data/test/perl +19 -0
 - data/test/perl.mgc +0 -0
 - data/test/pyfile +1 -0
 - data/test/pyfile-compressed.gz +0 -0
 - data/test/pylink +1 -0
 - metadata +148 -0
 
    
        data/test/perl
    ADDED
    
    | 
         @@ -0,0 +1,19 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
             
     | 
| 
      
 2 
     | 
    
         
            +
            #------------------------------------------------------------------------------
         
     | 
| 
      
 3 
     | 
    
         
            +
            # perl:  file(1) magic for Larry Wall's perl language.
         
     | 
| 
      
 4 
     | 
    
         
            +
            #
         
     | 
| 
      
 5 
     | 
    
         
            +
            # The ``eval'' line recognizes an outrageously clever hack for USG systems.
         
     | 
| 
      
 6 
     | 
    
         
            +
            # Keith Waclena <keith@cerberus.uchicago.edu>
         
     | 
| 
      
 7 
     | 
    
         
            +
            # Send additions to <perl5-porters@perl.org>
         
     | 
| 
      
 8 
     | 
    
         
            +
            0	string/b	#!\ /bin/perl			perl script text executable
         
     | 
| 
      
 9 
     | 
    
         
            +
            0	string		eval\ "exec\ /bin/perl		perl script text
         
     | 
| 
      
 10 
     | 
    
         
            +
            0	string/b	#!\ /usr/bin/perl		perl script text executable
         
     | 
| 
      
 11 
     | 
    
         
            +
            0	string		eval\ "exec\ /usr/bin/perl	perl script text
         
     | 
| 
      
 12 
     | 
    
         
            +
            0	string/b	#!\ /usr/local/bin/perl		perl script text
         
     | 
| 
      
 13 
     | 
    
         
            +
            0	string		eval\ "exec\ /usr/local/bin/perl	perl script text executable
         
     | 
| 
      
 14 
     | 
    
         
            +
            0	string		eval\ '(exit\ $?0)'\ &&\ eval\ 'exec	perl script text
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            # a couple more, by me
         
     | 
| 
      
 17 
     | 
    
         
            +
            # XXX: christos matches
         
     | 
| 
      
 18 
     | 
    
         
            +
            #0	regex		package		Perl5 module source text (via regex)
         
     | 
| 
      
 19 
     | 
    
         
            +
            0	string		package		Perl5 module source text
         
     | 
    
        data/test/perl.mgc
    ADDED
    
    | 
         Binary file 
     | 
    
        data/test/pyfile
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            """
         
     | 
| 
         Binary file 
     | 
    
        data/test/pylink
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            """
         
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,148 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: ruby-filemagic
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.6.2
         
     | 
| 
      
 5 
     | 
    
         
            +
            platform: x86-mingw32
         
     | 
| 
      
 6 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 7 
     | 
    
         
            +
            - Travis Whitton
         
     | 
| 
      
 8 
     | 
    
         
            +
            - Jens Wille
         
     | 
| 
      
 9 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 10 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 11 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2015-02-06 00:00:00.000000000 Z
         
     | 
| 
      
 13 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 14 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 15 
     | 
    
         
            +
              name: hen
         
     | 
| 
      
 16 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 17 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 18 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 19 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 20 
     | 
    
         
            +
                    version: '0.8'
         
     | 
| 
      
 21 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 22 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 23 
     | 
    
         
            +
                    version: 0.8.1
         
     | 
| 
      
 24 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 25 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 26 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 27 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 28 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 29 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 30 
     | 
    
         
            +
                    version: '0.8'
         
     | 
| 
      
 31 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 32 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 33 
     | 
    
         
            +
                    version: 0.8.1
         
     | 
| 
      
 34 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 35 
     | 
    
         
            +
              name: rake
         
     | 
| 
      
 36 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 37 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 38 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 39 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 40 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 41 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 42 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 43 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 44 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 45 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 46 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 47 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 48 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 49 
     | 
    
         
            +
              name: rake-compiler
         
     | 
| 
      
 50 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 51 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 52 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 53 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 54 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 55 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 56 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 57 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 58 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 59 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 60 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 61 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 62 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 63 
     | 
    
         
            +
              name: test-unit
         
     | 
| 
      
 64 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 65 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 66 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 67 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 68 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 69 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 70 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 71 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 72 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 73 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 74 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 75 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 76 
     | 
    
         
            +
            description: Ruby bindings to the magic(4) library
         
     | 
| 
      
 77 
     | 
    
         
            +
            email: jens.wille@gmail.com
         
     | 
| 
      
 78 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 79 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 80 
     | 
    
         
            +
            extra_rdoc_files:
         
     | 
| 
      
 81 
     | 
    
         
            +
            - README
         
     | 
| 
      
 82 
     | 
    
         
            +
            - ChangeLog
         
     | 
| 
      
 83 
     | 
    
         
            +
            - ext/filemagic/filemagic.c
         
     | 
| 
      
 84 
     | 
    
         
            +
            files:
         
     | 
| 
      
 85 
     | 
    
         
            +
            - ChangeLog
         
     | 
| 
      
 86 
     | 
    
         
            +
            - README
         
     | 
| 
      
 87 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 88 
     | 
    
         
            +
            - TODO
         
     | 
| 
      
 89 
     | 
    
         
            +
            - ext/filemagic/extconf.rb
         
     | 
| 
      
 90 
     | 
    
         
            +
            - ext/filemagic/filemagic.c
         
     | 
| 
      
 91 
     | 
    
         
            +
            - ext/filemagic/filemagic.h
         
     | 
| 
      
 92 
     | 
    
         
            +
            - lib/filemagic.rb
         
     | 
| 
      
 93 
     | 
    
         
            +
            - lib/filemagic/1.9/ruby_filemagic.so
         
     | 
| 
      
 94 
     | 
    
         
            +
            - lib/filemagic/2.0/ruby_filemagic.so
         
     | 
| 
      
 95 
     | 
    
         
            +
            - lib/filemagic/2.1/ruby_filemagic.so
         
     | 
| 
      
 96 
     | 
    
         
            +
            - lib/filemagic/2.2/ruby_filemagic.so
         
     | 
| 
      
 97 
     | 
    
         
            +
            - lib/filemagic/ext.rb
         
     | 
| 
      
 98 
     | 
    
         
            +
            - lib/filemagic/magic.mgc
         
     | 
| 
      
 99 
     | 
    
         
            +
            - lib/filemagic/version.rb
         
     | 
| 
      
 100 
     | 
    
         
            +
            - lib/ruby-filemagic.rb
         
     | 
| 
      
 101 
     | 
    
         
            +
            - test/excel-example.xls
         
     | 
| 
      
 102 
     | 
    
         
            +
            - test/filemagic_test.rb
         
     | 
| 
      
 103 
     | 
    
         
            +
            - test/leaktest.rb
         
     | 
| 
      
 104 
     | 
    
         
            +
            - test/mahoro.c
         
     | 
| 
      
 105 
     | 
    
         
            +
            - test/perl
         
     | 
| 
      
 106 
     | 
    
         
            +
            - test/perl.mgc
         
     | 
| 
      
 107 
     | 
    
         
            +
            - test/pyfile
         
     | 
| 
      
 108 
     | 
    
         
            +
            - test/pyfile-compressed.gz
         
     | 
| 
      
 109 
     | 
    
         
            +
            - test/pylink
         
     | 
| 
      
 110 
     | 
    
         
            +
            homepage: http://github.com/blackwinter/ruby-filemagic
         
     | 
| 
      
 111 
     | 
    
         
            +
            licenses:
         
     | 
| 
      
 112 
     | 
    
         
            +
            - Ruby
         
     | 
| 
      
 113 
     | 
    
         
            +
            metadata: {}
         
     | 
| 
      
 114 
     | 
    
         
            +
            post_install_message: |2+
         
     | 
| 
      
 115 
     | 
    
         
            +
             
     | 
| 
      
 116 
     | 
    
         
            +
              ruby-filemagic-0.6.2 [2015-02-06]:
         
     | 
| 
      
 117 
     | 
    
         
            +
             
     | 
| 
      
 118 
     | 
    
         
            +
              * Improved Windows support (issue #10 by Matt Hoyle).
         
     | 
| 
      
 119 
     | 
    
         
            +
              * Fixed FileMagic.path to account for missing magic file.
         
     | 
| 
      
 120 
     | 
    
         
            +
             
     | 
| 
      
 121 
     | 
    
         
            +
            rdoc_options:
         
     | 
| 
      
 122 
     | 
    
         
            +
            - "--title"
         
     | 
| 
      
 123 
     | 
    
         
            +
            - ruby-filemagic Application documentation (v0.6.2)
         
     | 
| 
      
 124 
     | 
    
         
            +
            - "--charset"
         
     | 
| 
      
 125 
     | 
    
         
            +
            - UTF-8
         
     | 
| 
      
 126 
     | 
    
         
            +
            - "--line-numbers"
         
     | 
| 
      
 127 
     | 
    
         
            +
            - "--all"
         
     | 
| 
      
 128 
     | 
    
         
            +
            - "--main"
         
     | 
| 
      
 129 
     | 
    
         
            +
            - README
         
     | 
| 
      
 130 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 131 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 132 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 133 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 134 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 135 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 136 
     | 
    
         
            +
                  version: 1.9.3
         
     | 
| 
      
 137 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 138 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 139 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 140 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 141 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 142 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 143 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 144 
     | 
    
         
            +
            rubygems_version: 2.4.5
         
     | 
| 
      
 145 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 146 
     | 
    
         
            +
            specification_version: 4
         
     | 
| 
      
 147 
     | 
    
         
            +
            summary: Ruby bindings to the magic(4) library
         
     | 
| 
      
 148 
     | 
    
         
            +
            test_files: []
         
     |