aztec 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/bin/aztec +33 -0
 - data/lib/aztec.rb +35 -0
 - metadata +46 -0
 
    
        checksums.yaml
    ADDED
    
    | 
         @@ -0,0 +1,7 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ---
         
     | 
| 
      
 2 
     | 
    
         
            +
            SHA1:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 7625f0d4b4025305550469a1e6dcae3731532194
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 61bdd368bd5c4ff128a7a6bac4a8f8d7054ebc51
         
     | 
| 
      
 5 
     | 
    
         
            +
            SHA512:
         
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e52e049f177dc559962770df6e9481c3dda250ee0ec714e57516916765b96d6e53e10e63e56fb59ff8282b88a05454ebb10f23607217a2d3caa26f88e4131856
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: c399416b7bc61d1a5499468f37d1b483cac2029f553d0136519e2bf5c4e13c8961ddc14569c8cd94a4f2ddf709f28fb70dd0ec5dd8eeb4b1dee0a289da172fd8
         
     | 
    
        data/bin/aztec
    ADDED
    
    | 
         @@ -0,0 +1,33 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            #!/usr/bin/env ruby
         
     | 
| 
      
 2 
     | 
    
         
            +
            require 'bundler/setup'
         
     | 
| 
      
 3 
     | 
    
         
            +
            Bundler.require
         
     | 
| 
      
 4 
     | 
    
         
            +
            require 'optparse'
         
     | 
| 
      
 5 
     | 
    
         
            +
            require './lib/parser'
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            folders = []
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            # create option parser
         
     | 
| 
      
 10 
     | 
    
         
            +
            opts = OptionParser.new
         
     | 
| 
      
 11 
     | 
    
         
            +
            opts.banner = "Usage: parser.rb [options]"
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            opts.on('-f', '--folder FOLDER', 'Folder to scan') do |v|
         
     | 
| 
      
 14 
     | 
    
         
            +
               folders << v
         
     | 
| 
      
 15 
     | 
    
         
            +
            end
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            # parse the options
         
     | 
| 
      
 18 
     | 
    
         
            +
            begin
         
     | 
| 
      
 19 
     | 
    
         
            +
              opts.parse!(ARGV)
         
     | 
| 
      
 20 
     | 
    
         
            +
            rescue OptionParser::InvalidOption => e
         
     | 
| 
      
 21 
     | 
    
         
            +
              puts e
         
     | 
| 
      
 22 
     | 
    
         
            +
              puts opts
         
     | 
| 
      
 23 
     | 
    
         
            +
              exit(1)
         
     | 
| 
      
 24 
     | 
    
         
            +
            end
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
            # Create the Aztec parser
         
     | 
| 
      
 27 
     | 
    
         
            +
            parser = Aztec::Parser.new
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
            puts "Parsing folders #{folders}"
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
            folders.each do |f|
         
     | 
| 
      
 32 
     | 
    
         
            +
              puts parser.parse f
         
     | 
| 
      
 33 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/aztec.rb
    ADDED
    
    | 
         @@ -0,0 +1,35 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'cocoapods'
         
     | 
| 
      
 2 
     | 
    
         
            +
            require 'claide'
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            module Aztec
         
     | 
| 
      
 5 
     | 
    
         
            +
              class Parser
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
                def parse(repo)
         
     | 
| 
      
 8 
     | 
    
         
            +
                  @repo = repo
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
                  Dir.chdir @repo
         
     | 
| 
      
 11 
     | 
    
         
            +
                  install = install_command
         
     | 
| 
      
 12 
     | 
    
         
            +
                  install.run
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
                  cmd = outdated_command
         
     | 
| 
      
 15 
     | 
    
         
            +
                  updates = cmd.updates
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
                  return updates
         
     | 
| 
      
 18 
     | 
    
         
            +
                end
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
                private
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
                def install_command
         
     | 
| 
      
 23 
     | 
    
         
            +
                  Pod::Command::Install.new argv
         
     | 
| 
      
 24 
     | 
    
         
            +
                end
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
                def outdated_command
         
     | 
| 
      
 27 
     | 
    
         
            +
                  Pod::Command::Outdated.new argv
         
     | 
| 
      
 28 
     | 
    
         
            +
                end
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
                def argv
         
     | 
| 
      
 31 
     | 
    
         
            +
                  CLAide::ARGV.new []
         
     | 
| 
      
 32 
     | 
    
         
            +
                end
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
              end
         
     | 
| 
      
 35 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,46 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: aztec
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.1
         
     | 
| 
      
 5 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 6 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 7 
     | 
    
         
            +
            - Bruno Abrantes
         
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 9 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 10 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2014-08-12 00:00:00.000000000 Z
         
     | 
| 
      
 12 
     | 
    
         
            +
            dependencies: []
         
     | 
| 
      
 13 
     | 
    
         
            +
            description: Lets you know which pods are outdated
         
     | 
| 
      
 14 
     | 
    
         
            +
            email: bruno@brunoabrantes.com
         
     | 
| 
      
 15 
     | 
    
         
            +
            executables:
         
     | 
| 
      
 16 
     | 
    
         
            +
            - aztec
         
     | 
| 
      
 17 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 18 
     | 
    
         
            +
            extra_rdoc_files: []
         
     | 
| 
      
 19 
     | 
    
         
            +
            files:
         
     | 
| 
      
 20 
     | 
    
         
            +
            - lib/aztec.rb
         
     | 
| 
      
 21 
     | 
    
         
            +
            - bin/aztec
         
     | 
| 
      
 22 
     | 
    
         
            +
            homepage: http://github.com/inf0rmer/aztec-core
         
     | 
| 
      
 23 
     | 
    
         
            +
            licenses:
         
     | 
| 
      
 24 
     | 
    
         
            +
            - MIT
         
     | 
| 
      
 25 
     | 
    
         
            +
            metadata: {}
         
     | 
| 
      
 26 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 27 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 28 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 29 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 30 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 31 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 32 
     | 
    
         
            +
              - - '>='
         
     | 
| 
      
 33 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 34 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 35 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 36 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 37 
     | 
    
         
            +
              - - '>='
         
     | 
| 
      
 38 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 39 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 40 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 41 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 42 
     | 
    
         
            +
            rubygems_version: 2.1.11
         
     | 
| 
      
 43 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 44 
     | 
    
         
            +
            specification_version: 4
         
     | 
| 
      
 45 
     | 
    
         
            +
            summary: The Aztec parser for Cocoapods
         
     | 
| 
      
 46 
     | 
    
         
            +
            test_files: []
         
     |