Sha256: 2f8ac0b4a55d7add514f2fa62638b553b7c3730e26c8a36d343c3700445789e2
Contents?: true
Size: 741 Bytes
Versions: 4
Compression:
Stored size: 741 Bytes
Contents
#!/usr/bin/env ruby # bin/publish 0.0.1 class Publish def start version, name system "bundle && bundle exec rake spec" unless File.exists? "#{name}-#{version}.gem" system "gem build #{name}.gemspec" if File.exists? "#{name}-#{version}.gem" system "git tag -a v#{version} -m 'version #{version}'" system "git push --tags" system "gem push #{name}-#{version}.gem" system "git push origin master" else puts "Build Fail" end else puts "Version already exist" end end end if ARGV.length != 1 # or !ARGV[0].match(/\d{1,3}.\d{1,3}.\d{1,3}/) puts 'HELP: ' puts '$ bin/publish 0.0.1' exit 0 end Publish.new.start ARGV[0], (ARGV[1] || 'i18n_helper')
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
i18n_helper-0.0.4 | bin/publish |
i18n_helper-0.0.3 | bin/publish |
i18n_helper-0.0.2 | bin/publish |
i18n_helper-0.0.1 | bin/publish |