ghdeploy 0.1.0
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/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +37 -0
- data/README.md +26 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/git-deploy +4 -0
- data/bin/setup +8 -0
- data/ghdeploy.gemspec +29 -0
- data/lib/ghdeploy.rb +5 -0
- data/lib/ghdeploy/cli.rb +12 -0
- data/lib/ghdeploy/version.rb +3 -0
- metadata +114 -0
    
        checksums.yaml
    ADDED
    
    | @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            SHA1:
         | 
| 3 | 
            +
              metadata.gz: 9f2583a23173cebf7cd7b3312d088b25c2817ec9
         | 
| 4 | 
            +
              data.tar.gz: 63e7479502dc028d2de3d7a8978d16f510b7dcbd
         | 
| 5 | 
            +
            SHA512:
         | 
| 6 | 
            +
              metadata.gz: edb7cfec22e15ae289cf009df6d85b924329b1b0d416ec2815e5bcb9599d7ad81808990d5e4297f39bc6b2b1a79e1753f1f507c263942370bf20de1ef6425650
         | 
| 7 | 
            +
              data.tar.gz: cdcd11740e6727fa918e93d732a2e4db7b1b85414c846d3e0e15633eb84d3c8864bbf1a8ca3bbf7af6232747e7d89d23dbceee3aa3d4fb6725e33cdfcd727525
         | 
    
        data/.gitignore
    ADDED
    
    
    
        data/.rspec
    ADDED
    
    
    
        data/.travis.yml
    ADDED
    
    
    
        data/Gemfile
    ADDED
    
    
    
        data/Gemfile.lock
    ADDED
    
    | @@ -0,0 +1,37 @@ | |
| 1 | 
            +
            PATH
         | 
| 2 | 
            +
              remote: .
         | 
| 3 | 
            +
              specs:
         | 
| 4 | 
            +
                ghdeploy (0.1.0)
         | 
| 5 | 
            +
                  thor
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            GEM
         | 
| 8 | 
            +
              remote: https://rubygems.org/
         | 
| 9 | 
            +
              specs:
         | 
| 10 | 
            +
                diff-lcs (1.3)
         | 
| 11 | 
            +
                rake (10.5.0)
         | 
| 12 | 
            +
                rspec (3.7.0)
         | 
| 13 | 
            +
                  rspec-core (~> 3.7.0)
         | 
| 14 | 
            +
                  rspec-expectations (~> 3.7.0)
         | 
| 15 | 
            +
                  rspec-mocks (~> 3.7.0)
         | 
| 16 | 
            +
                rspec-core (3.7.1)
         | 
| 17 | 
            +
                  rspec-support (~> 3.7.0)
         | 
| 18 | 
            +
                rspec-expectations (3.7.0)
         | 
| 19 | 
            +
                  diff-lcs (>= 1.2.0, < 2.0)
         | 
| 20 | 
            +
                  rspec-support (~> 3.7.0)
         | 
| 21 | 
            +
                rspec-mocks (3.7.0)
         | 
| 22 | 
            +
                  diff-lcs (>= 1.2.0, < 2.0)
         | 
| 23 | 
            +
                  rspec-support (~> 3.7.0)
         | 
| 24 | 
            +
                rspec-support (3.7.1)
         | 
| 25 | 
            +
                thor (0.20.0)
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            PLATFORMS
         | 
| 28 | 
            +
              ruby
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            DEPENDENCIES
         | 
| 31 | 
            +
              bundler (~> 1.16)
         | 
| 32 | 
            +
              ghdeploy!
         | 
| 33 | 
            +
              rake (~> 10.0)
         | 
| 34 | 
            +
              rspec (~> 3.0)
         | 
| 35 | 
            +
             | 
| 36 | 
            +
            BUNDLED WITH
         | 
| 37 | 
            +
               1.16.1
         | 
    
        data/README.md
    ADDED
    
    | @@ -0,0 +1,26 @@ | |
| 1 | 
            +
            # GitHub Deploy
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            This gem adds a command to git for publishing [GitHub deployments](https://developer.github.com/v3/repos/deployments/).
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            ## Installation
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            ```ruby
         | 
| 8 | 
            +
            gem install 'ghdeploy'
         | 
| 9 | 
            +
            ghdeploy init # creates a config file at ~/.ghdeploy
         | 
| 10 | 
            +
            ```
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            ## Usage
         | 
| 13 | 
            +
             | 
| 14 | 
            +
            From within a git repository run:
         | 
| 15 | 
            +
             | 
| 16 | 
            +
            Basic deploy of master branch to production:
         | 
| 17 | 
            +
            ```
         | 
| 18 | 
            +
            git deploy
         | 
| 19 | 
            +
            ```
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            More specific:
         | 
| 22 | 
            +
            ```
         | 
| 23 | 
            +
            git deploy origin branch-name \
         | 
| 24 | 
            +
              --environment staging \
         | 
| 25 | 
            +
              --description "Short description"
         | 
| 26 | 
            +
            ```
         | 
    
        data/Rakefile
    ADDED
    
    
    
        data/bin/console
    ADDED
    
    | @@ -0,0 +1,14 @@ | |
| 1 | 
            +
            #!/usr/bin/env ruby
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            require "bundler/setup"
         | 
| 4 | 
            +
            require "ghdeploy"
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            # You can add fixtures and/or initialization code here to make experimenting
         | 
| 7 | 
            +
            # with your gem easier. You can also use a different console, if you like.
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            # (If you use this, don't forget to add pry to your Gemfile!)
         | 
| 10 | 
            +
            # require "pry"
         | 
| 11 | 
            +
            # Pry.start
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            require "irb"
         | 
| 14 | 
            +
            IRB.start(__FILE__)
         | 
    
        data/bin/git-deploy
    ADDED
    
    
    
        data/bin/setup
    ADDED
    
    
    
        data/ghdeploy.gemspec
    ADDED
    
    | @@ -0,0 +1,29 @@ | |
| 1 | 
            +
             | 
| 2 | 
            +
            lib = File.expand_path('../lib', __FILE__)
         | 
| 3 | 
            +
            $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
         | 
| 4 | 
            +
            require 'ghdeploy/version'
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            Gem::Specification.new do |spec|
         | 
| 7 | 
            +
              spec.name          = 'ghdeploy'
         | 
| 8 | 
            +
              spec.version       = Ghdeploy::VERSION
         | 
| 9 | 
            +
              spec.authors       = ['Brandon Joyce']
         | 
| 10 | 
            +
              spec.email         = ['brandon@sonerdy.com']
         | 
| 11 | 
            +
             | 
| 12 | 
            +
              spec.summary       = %q{Adds a deploy command to git that uses the GitHub deployments API}
         | 
| 13 | 
            +
              spec.description   = %q{Run git deploy within a git repository to create a GitHub deployment.}
         | 
| 14 | 
            +
              spec.homepage      = 'https://github.com/sonerdy/ghdeploy'
         | 
| 15 | 
            +
              spec.license       = 'MIT'
         | 
| 16 | 
            +
             | 
| 17 | 
            +
              spec.files         = `git ls-files -z`.split("\x0").reject do |f|
         | 
| 18 | 
            +
                f.match(%r{^(test|spec|features)/})
         | 
| 19 | 
            +
              end
         | 
| 20 | 
            +
              spec.bindir        = 'exe'
         | 
| 21 | 
            +
              spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
         | 
| 22 | 
            +
              spec.require_paths = ['lib']
         | 
| 23 | 
            +
             | 
| 24 | 
            +
              spec.add_runtime_dependency 'thor'
         | 
| 25 | 
            +
             | 
| 26 | 
            +
              spec.add_development_dependency 'bundler', '~> 1.16'
         | 
| 27 | 
            +
              spec.add_development_dependency 'rake', '~> 10.0'
         | 
| 28 | 
            +
              spec.add_development_dependency 'rspec', '~> 3.0'
         | 
| 29 | 
            +
            end
         | 
    
        data/lib/ghdeploy.rb
    ADDED
    
    
    
        data/lib/ghdeploy/cli.rb
    ADDED
    
    
    
        metadata
    ADDED
    
    | @@ -0,0 +1,114 @@ | |
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 | 
            +
            name: ghdeploy
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 0.1.0
         | 
| 5 | 
            +
            platform: ruby
         | 
| 6 | 
            +
            authors:
         | 
| 7 | 
            +
            - Brandon Joyce
         | 
| 8 | 
            +
            autorequire: 
         | 
| 9 | 
            +
            bindir: exe
         | 
| 10 | 
            +
            cert_chain: []
         | 
| 11 | 
            +
            date: 2018-09-11 00:00:00.000000000 Z
         | 
| 12 | 
            +
            dependencies:
         | 
| 13 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 14 | 
            +
              name: thor
         | 
| 15 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 | 
            +
                requirements:
         | 
| 17 | 
            +
                - - ">="
         | 
| 18 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            +
                    version: '0'
         | 
| 20 | 
            +
              type: :runtime
         | 
| 21 | 
            +
              prerelease: false
         | 
| 22 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 | 
            +
                requirements:
         | 
| 24 | 
            +
                - - ">="
         | 
| 25 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            +
                    version: '0'
         | 
| 27 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 28 | 
            +
              name: bundler
         | 
| 29 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 30 | 
            +
                requirements:
         | 
| 31 | 
            +
                - - "~>"
         | 
| 32 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 33 | 
            +
                    version: '1.16'
         | 
| 34 | 
            +
              type: :development
         | 
| 35 | 
            +
              prerelease: false
         | 
| 36 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 37 | 
            +
                requirements:
         | 
| 38 | 
            +
                - - "~>"
         | 
| 39 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 40 | 
            +
                    version: '1.16'
         | 
| 41 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 42 | 
            +
              name: rake
         | 
| 43 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 44 | 
            +
                requirements:
         | 
| 45 | 
            +
                - - "~>"
         | 
| 46 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 47 | 
            +
                    version: '10.0'
         | 
| 48 | 
            +
              type: :development
         | 
| 49 | 
            +
              prerelease: false
         | 
| 50 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 | 
            +
                requirements:
         | 
| 52 | 
            +
                - - "~>"
         | 
| 53 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            +
                    version: '10.0'
         | 
| 55 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 56 | 
            +
              name: rspec
         | 
| 57 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 58 | 
            +
                requirements:
         | 
| 59 | 
            +
                - - "~>"
         | 
| 60 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 61 | 
            +
                    version: '3.0'
         | 
| 62 | 
            +
              type: :development
         | 
| 63 | 
            +
              prerelease: false
         | 
| 64 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 65 | 
            +
                requirements:
         | 
| 66 | 
            +
                - - "~>"
         | 
| 67 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 68 | 
            +
                    version: '3.0'
         | 
| 69 | 
            +
            description: Run git deploy within a git repository to create a GitHub deployment.
         | 
| 70 | 
            +
            email:
         | 
| 71 | 
            +
            - brandon@sonerdy.com
         | 
| 72 | 
            +
            executables: []
         | 
| 73 | 
            +
            extensions: []
         | 
| 74 | 
            +
            extra_rdoc_files: []
         | 
| 75 | 
            +
            files:
         | 
| 76 | 
            +
            - ".gitignore"
         | 
| 77 | 
            +
            - ".rspec"
         | 
| 78 | 
            +
            - ".travis.yml"
         | 
| 79 | 
            +
            - Gemfile
         | 
| 80 | 
            +
            - Gemfile.lock
         | 
| 81 | 
            +
            - README.md
         | 
| 82 | 
            +
            - Rakefile
         | 
| 83 | 
            +
            - bin/console
         | 
| 84 | 
            +
            - bin/git-deploy
         | 
| 85 | 
            +
            - bin/setup
         | 
| 86 | 
            +
            - ghdeploy.gemspec
         | 
| 87 | 
            +
            - lib/ghdeploy.rb
         | 
| 88 | 
            +
            - lib/ghdeploy/cli.rb
         | 
| 89 | 
            +
            - lib/ghdeploy/version.rb
         | 
| 90 | 
            +
            homepage: https://github.com/sonerdy/ghdeploy
         | 
| 91 | 
            +
            licenses:
         | 
| 92 | 
            +
            - MIT
         | 
| 93 | 
            +
            metadata: {}
         | 
| 94 | 
            +
            post_install_message: 
         | 
| 95 | 
            +
            rdoc_options: []
         | 
| 96 | 
            +
            require_paths:
         | 
| 97 | 
            +
            - lib
         | 
| 98 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 99 | 
            +
              requirements:
         | 
| 100 | 
            +
              - - ">="
         | 
| 101 | 
            +
                - !ruby/object:Gem::Version
         | 
| 102 | 
            +
                  version: '0'
         | 
| 103 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 104 | 
            +
              requirements:
         | 
| 105 | 
            +
              - - ">="
         | 
| 106 | 
            +
                - !ruby/object:Gem::Version
         | 
| 107 | 
            +
                  version: '0'
         | 
| 108 | 
            +
            requirements: []
         | 
| 109 | 
            +
            rubyforge_project: 
         | 
| 110 | 
            +
            rubygems_version: 2.5.2.2
         | 
| 111 | 
            +
            signing_key: 
         | 
| 112 | 
            +
            specification_version: 4
         | 
| 113 | 
            +
            summary: Adds a deploy command to git that uses the GitHub deployments API
         | 
| 114 | 
            +
            test_files: []
         |