Sha256: 97ea858844b3adde695a7a7f31e184a03c523ead4ec6620d5d47fa971925e139

Contents?: true

Size: 732 Bytes

Versions: 25

Compression:

Stored size: 732 Bytes

Contents

module Shipit
  class DeploySpec
    module RubygemsDiscovery
      def discover_deploy_steps
        discover_gem || super
      end

      def discover_gem
        publish_gem if gem?
      end

      def discover_review_checklist
        discover_gem_checklist || super
      end

      def discover_gem_checklist
        [%(<strong>Don't forget to add a tag before deploying!</strong> You can do this with:
          git tag v<strong>x.y.z</strong> && git push --tags)] if gem?
      end

      def gem?
        !!gemspec
      end

      def gemspec
        Dir[file('*.gemspec').to_s].first
      end

      def publish_gem
        ["assert-gem-version-tag #{gemspec}", 'bundle exec rake release']
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
shipit-engine-0.20.1 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.20.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.19.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.18.1 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.18.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.17.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.16.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.15.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.14.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.13.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.12.1 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.12.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.11.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.10.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.9.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.8.9 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.8.8 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.8.7 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.8.6 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.8.5 app/models/shipit/deploy_spec/rubygems_discovery.rb