schubert-minglr 0.1.0.2 → 0.1.0.3
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.
- data/bin/minglr +28 -0
- data/bin/mtx +14 -0
- data/minglr.gemspec +9 -6
- metadata +9 -8
    
        data/bin/minglr
    ADDED
    
    | @@ -0,0 +1,28 @@ | |
| 1 | 
            +
            #!/usr/bin/env ruby
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'minglr'))
         | 
| 4 | 
            +
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'minglr', "minglr_action"))
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            rc_config = MinglrConfigParser.parse
         | 
| 7 | 
            +
            uri_options = rc_config[:global] || {}
         | 
| 8 | 
            +
            project = rc_config[:global][:default].to_sym if rc_config[:global][:default]
         | 
| 9 | 
            +
            original_arguments = ARGV
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            if MinglrAction::ACTIONS.include?(ARGV[0])
         | 
| 12 | 
            +
              action = ARGV[0]
         | 
| 13 | 
            +
            else
         | 
| 14 | 
            +
              if ARGV[0] && (ARGV[0] =~ /^--/).nil?
         | 
| 15 | 
            +
                project = ARGV[0].to_sym 
         | 
| 16 | 
            +
                action = ARGV[1]
         | 
| 17 | 
            +
              end
         | 
| 18 | 
            +
            end
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            if project
         | 
| 21 | 
            +
              uri_options.merge! rc_config[project]
         | 
| 22 | 
            +
              uri_options[:url].gsub!(/^http\:\/\//, "")
         | 
| 23 | 
            +
              uri_options[:host_and_port], uri_options[:project] = uri_options[:url].split("/projects/")
         | 
| 24 | 
            +
              MingleResource.configure uri_options
         | 
| 25 | 
            +
              Attachment.configure
         | 
| 26 | 
            +
              extra_options = MinglrOptionsParser.parse(original_arguments)
         | 
| 27 | 
            +
              MinglrAction.execute(action, ARGV, extra_options, rc_config[project])
         | 
| 28 | 
            +
            end
         | 
    
        data/bin/mtx
    ADDED
    
    | @@ -0,0 +1,14 @@ | |
| 1 | 
            +
            #!/usr/bin/env ruby
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'minglr'))
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            uri_options, execution_options = MtxOptionsParser.parse(ARGV, :card, :transition)
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            MingleResource.configure uri_options
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            if card = Card.find(execution_options[:card])
         | 
| 10 | 
            +
              execution = TransitionExecution.create(execution_options)
         | 
| 11 | 
            +
              raise "Transition aborted. Errors: #{execution.errors.full_messages}" if execution.errors.any?
         | 
| 12 | 
            +
            else
         | 
| 13 | 
            +
              raise "Card '#{execution_options[:card]}' cannot be found."
         | 
| 14 | 
            +
            end
         | 
    
        data/minglr.gemspec
    CHANGED
    
    | @@ -1,11 +1,14 @@ | |
| 1 1 | 
             
            Gem::Specification.new do |s|
         | 
| 2 2 | 
             
              s.name     = "minglr"
         | 
| 3 | 
            -
              s.version  = "0.1.0. | 
| 4 | 
            -
              s.date     = "2009- | 
| 5 | 
            -
              s. | 
| 6 | 
            -
              s. | 
| 7 | 
            -
              s. | 
| 8 | 
            -
              s. | 
| 3 | 
            +
              s.version  = "0.1.0.3"
         | 
| 4 | 
            +
              s.date     = "2009-06-01"
         | 
| 5 | 
            +
              s.bindir          = 'bin'
         | 
| 6 | 
            +
              s.executables     << 'minglr'
         | 
| 7 | 
            +
              s.executables     << 'mtx'
         | 
| 8 | 
            +
              s.summary  = "Mingle command line tool"
         | 
| 9 | 
            +
              s.email    = "michael@schubert.cx"
         | 
| 10 | 
            +
              s.homepage = "http://github.com/schubert/minglr/tree/master"
         | 
| 11 | 
            +
              s.description = "Mingle command line tool"
         | 
| 9 12 | 
             
              s.authors  = ["Stephen Chu", "Chris O'Meara", "Michael Schubert"]
         | 
| 10 13 | 
             
              s.files    = Dir["bin/*"] + Dir["*.txt"] + Dir["lib/minglr/*.rb"] + Dir["lib/*.rb"] + ["minglr.gemspec", "Rakefile", "README.rdoc", "minglrconfig.sample"] + Dir["tasks/*"]
         | 
| 11 14 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: schubert-minglr
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              version: 0.1.0. | 
| 4 | 
            +
              version: 0.1.0.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors: 
         | 
| 7 7 | 
             
            - Stephen Chu
         | 
| @@ -11,14 +11,15 @@ autorequire: | |
| 11 11 | 
             
            bindir: bin
         | 
| 12 12 | 
             
            cert_chain: []
         | 
| 13 13 |  | 
| 14 | 
            -
            date: 2009- | 
| 14 | 
            +
            date: 2009-06-01 00:00:00 -07:00
         | 
| 15 15 | 
             
            default_executable: 
         | 
| 16 16 | 
             
            dependencies: []
         | 
| 17 17 |  | 
| 18 | 
            -
            description:  | 
| 19 | 
            -
            email:  | 
| 20 | 
            -
            executables:  | 
| 21 | 
            -
             | 
| 18 | 
            +
            description: Mingle command line tool
         | 
| 19 | 
            +
            email: michael@schubert.cx
         | 
| 20 | 
            +
            executables: 
         | 
| 21 | 
            +
            - minglr
         | 
| 22 | 
            +
            - mtx
         | 
| 22 23 | 
             
            extensions: []
         | 
| 23 24 |  | 
| 24 25 | 
             
            extra_rdoc_files: []
         | 
| @@ -29,7 +30,7 @@ files: | |
| 29 30 | 
             
            - README.rdoc
         | 
| 30 31 | 
             
            - minglrconfig.sample
         | 
| 31 32 | 
             
            has_rdoc: false
         | 
| 32 | 
            -
            homepage: http://github.com/ | 
| 33 | 
            +
            homepage: http://github.com/schubert/minglr/tree/master
         | 
| 33 34 | 
             
            post_install_message: 
         | 
| 34 35 | 
             
            rdoc_options: []
         | 
| 35 36 |  | 
| @@ -53,6 +54,6 @@ rubyforge_project: | |
| 53 54 | 
             
            rubygems_version: 1.2.0
         | 
| 54 55 | 
             
            signing_key: 
         | 
| 55 56 | 
             
            specification_version: 2
         | 
| 56 | 
            -
            summary:  | 
| 57 | 
            +
            summary: Mingle command line tool
         | 
| 57 58 | 
             
            test_files: []
         | 
| 58 59 |  |