travis-release 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MmE0ZmE4NzZhZDEzNGNjM2U2ODVlMzkwZTc0NTFlOWYyM2Y2OGU4Ng==
5
+ data.tar.gz: !binary |-
6
+ NDc1MjJjNzdlMWQ1MjU0Mjg2M2Y5ZjhiMGZiZDRhZDg3MDE2OGQxYQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MzUyYmQwYjY2Mjk5NDAyZDM3NDQxODAyMWU1MzViN2Y0OTIwYTkzZjY4MGM2
10
+ Y2NkOTU4ODE4MWVkYWM3OGY3YTY0YzZkMjI0YjQxYzhjZjZjNmFhNTFlMWI2
11
+ ZGM5NmFiYjMzMTQ4ZWY1ZmY3NGVmZDE5N2FjNDEzOGMzMWU1NjI=
12
+ data.tar.gz: !binary |-
13
+ YjEzMTQ1YTU4ODAyNzVlMzgyMGFlZWQ2ODk2Y2YwOGMzODFjMmYzMjI1MWEx
14
+ NmQwNDhiNTgzNzAxYzM5ZTFlZmQxZDUwZjc5NjNkNGQyYWJkMGU4MWI0NjIz
15
+ OGIxOTVlNmE0ZjFiYzRmMGE0MWE0ZGJjMWI4ZDc2MjM5YjBhMmY=
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /vendor/
11
+ /spec/examples.txt
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,4 @@
1
+ Style/Documentation:
2
+ Exclude:
3
+ - lib/travis/release/version.rb
4
+ - spec/**/*
data/.travis.yml ADDED
@@ -0,0 +1,16 @@
1
+ language: ruby
2
+ sudo: false
3
+ cache: bundle
4
+ rvm:
5
+ - 2.2.2
6
+ deploy:
7
+ provider: rubygems
8
+ api_key:
9
+ secure: VzCyoR6qhXLU5baJ+6QXqWozL3el4juGXXGmtzqmKHgrbTf5j+6R0VjzEjXu4AgTUcUnNSul1sumcyZ0WZySs63D9Tub1Lj2LHv2XlEdarurorObSzA8rKuZfxcjvfowsyzFz/HN+9fK6N36wcRJosyv9tQb8DLUw8EocnUOGcm+nsxY5Lk0WnY/XbWJoSuQyYwyUa7GEZyKZALO+jMq52kZf7XxaBXidk3zXPLKg1WBamVKuJa0t3/baLJBzw+gHoUcGrlOfz8e8ciH/7CVbyc9R2hfaQ2+uXECCYzy0U+Tii/iy7IuHeH1sNENkd7LXTU+znWl5kT6enlpCkfKlNznyvQrXSHNyOl3uT2B4ssD9nALeOtbQcl8+43oAiDaWYasxfqAZ5pSM/GCErHVFW/4fHqf4xmRyWCth1RLXS2JoqaH3O4WtpjGvaNYqlm0BYaOG9kXPiOALG0id7XyWbQSfub07IGMHFFQSF1548Gmly5CA6QdAlv5mxaVC82VBakTLDqZIQQxlU6XbfUzW0HGYoc109gy+3m2PIh/H6IP69ZOQOM1SrSLm0u+6mW3mr2xRZ+hJc1beZKftH3lZ7zFg0t/84lWAiUHc3zyO/IMJMPcqbsr5oLspaIjrmVwnVxHFNstHIKXuW7awD/3DkaQ1phsuTVgNA+4mFKuy54=
10
+ gem: travis-release
11
+ on:
12
+ tags: true
13
+ repo: tubbo/travis-release
14
+ addons:
15
+ codeclimate:
16
+ secure: odsbVeRQcdiRl978ZrMYGPweu3BPtfwuQ6TbnxmSgdv2uvq2gcUNu7aRNPXK1IUP5N7IIQgENLO8v5Rf0UHjYA+UcVdvrRh9Ph/Kx75RlR+blHNxqTVpdBjAW6VLfalPO+U4E3PPtpyrdi5kabngGdcjjDbyJmK5TYuvGisW91zPPfh3Ni3itYH4OsAll/bmd+OzMQ5eqVsLs6FawWFNJoMHl1jua+egx3IgZdRcPcy3PlRBArlSxwxAh6wtem/iRCNkowdZTr53HB6aDZQj/eHWzT25LyOhPK4RabK745AbK5F0VuplNURP5+9ykQ3GP5Wxj7euZtq742MtklhszWJHfBg3Ql7hYRlMO7uhs5ICtEHw0mEi5sc7Jb6EK435hPMZBEmgJ/eQuzrF3WjkE6Hyf3PRxCc85ypuxo4ZoY4phQ+s3GIm6+KpzrtcO5Tp3cAq/o9C5ObfbCJzaQGnhzW/c+7/eUdHxu7v1OlJXFkt3aAI2cbHG6xP091BzKQlk7noXR7TTfW2R3Hkut3mLi9WDRHf6ipIEv59rrTpmcff0Tvg7rZFi1p2ij1izKRUx7IJU+G0JTLj5Pg7Xin1p4xQF5E1KQCelNuR+7LH92pe8ry4HKPQESVArwdxYQVxHBGguAnWRPABWmd87/rf6co/3hS5Tqi+Fr4x9r/TWdc=
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in travis-release.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Tom Scott
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # Travis::Release
2
+
3
+ [![Build Status](https://travis-ci.org/tubbo/travis-release.svg)](https://travis-ci.org/tubbo/travis-release)
4
+ [![Code Climate](https://codeclimate.com/github/tubbo/travis-release/badges/gpa.svg)](https://codeclimate.com/github/tubbo/travis-release)
5
+ [![Test Coverage](https://codeclimate.com/github/tubbo/travis-release/badges/coverage.svg)](https://codeclimate.com/github/tubbo/travis-release/coverage)
6
+
7
+ Fancy Rake tasks that release your RubyGems automatically using Travis
8
+ CI.
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'travis-release'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install travis-release
25
+
26
+ Then, add the following to **Rakefile**:
27
+
28
+ ```ruby
29
+ require 'travis/release/task'
30
+
31
+ Travis::Release::Task.new
32
+ ```
33
+
34
+ ## Usage
35
+
36
+ Once the Rake task is installed, you can run `rake release` to deploy
37
+ the gem to Travis:
38
+
39
+ ```bash
40
+ $ bin/rake release
41
+ ```
42
+
43
+ ## Development
44
+
45
+ After checking out the repo, run `bin/setup` to install dependencies.
46
+
47
+ Then, run `bin/console` for an interactive prompt that will allow you to experiment.
48
+
49
+ To install this gem onto your local machine, run `bin/rake install`.
50
+
51
+ To release a new version, update the version number in `version.rb`, and
52
+ then run `bin/rake release` to create a git tag for the version, push git
53
+ commits and tags, and use [Travis CI][ci] to push the gem to RubyGems.
54
+
55
+ ## Contributing
56
+
57
+ 1. Fork it ( https://github.com/tubbo/travis-release/fork )
58
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
59
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
60
+ 4. Push to the branch (`git push origin my-new-feature`)
61
+ 5. Create a new Pull Request
62
+
63
+ [ci]: http://travis-ci.org
data/Rakefile ADDED
@@ -0,0 +1,16 @@
1
+ require 'bundler/setup'
2
+ require 'bundler/gem_tasks'
3
+ require 'travis/release/task'
4
+ require 'rspec/core/rake_task'
5
+ require 'rubocop/rake_task'
6
+ require 'yard'
7
+
8
+ RSpec::Core::RakeTask.new :test
9
+
10
+ RuboCop::RakeTask.new :lint
11
+
12
+ Travis::Release::Task.new :release
13
+
14
+ YARD::Rake::YardocTask.new :doc
15
+
16
+ task default: %i(lint test build)
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'travis/release'
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
data/bin/rake ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rake', 'rake')
data/bin/rspec ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rspec' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rspec-core', 'rspec')
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,12 @@
1
+ require 'travis/release/version'
2
+ require 'travis/release/task'
3
+
4
+ module Travis
5
+ # Adds a +:release+ task for releasing gems on Travis CI.
6
+ module Release
7
+ # Return the version.
8
+ def self.version
9
+ VERSION
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,47 @@
1
+ require 'rake'
2
+
3
+ module Travis
4
+ module Release
5
+ # The Rake task used to release your gem.
6
+ class Task
7
+ include Rake::DSL
8
+
9
+ attr_reader :name
10
+
11
+ # @param [Symbol] name - The name of this Rake task.
12
+ def initialize(name = :release)
13
+ @name = name
14
+ install
15
+ end
16
+
17
+ # When +install_tasks!+ is invoked, create a +:release+ task in the
18
+ # Rakefile.
19
+ #
20
+ # @return [Rake::Task]
21
+ def install
22
+ clear_old_task && define_new_task
23
+ end
24
+
25
+ private
26
+
27
+ # @private
28
+ def clear_old_task
29
+ Rake::Task[name.to_s].clear
30
+ rescue
31
+ true
32
+ end
33
+
34
+ # @private
35
+ def define_new_task
36
+ desc 'Build and push this gem to RubyGems via Travis CI'
37
+ task name => %w(
38
+ build release:guard_clean release:source_control_push
39
+ ) do
40
+ Bundler.ui.confirm %(
41
+ Please wait for the gem to deploy to RubyGems on Travis CI
42
+ )
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,5 @@
1
+ module Travis
2
+ module Release
3
+ VERSION = '0.0.1'
4
+ end
5
+ end
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'travis/release/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'travis-release'
8
+ spec.version = Travis::Release::VERSION
9
+ spec.authors = ['Tom Scott']
10
+ spec.email = ['tubbo@psychedeli.ca']
11
+
12
+ spec.summary = 'Fancy Rake tasks for deploying with Travis'
13
+ spec.description = 'Fancy Rake tasks for deploying with Travis'
14
+ spec.homepage = 'https://github.com/tubbo/travis-release'
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_development_dependency 'rspec', '~> 3'
25
+ spec.add_development_dependency 'rubocop', '~> 0'
26
+ spec.add_development_dependency 'codeclimate-test-reporter', '~> 0'
27
+ spec.add_development_dependency 'yard', '~> 0'
28
+
29
+ spec.add_dependency 'rake', '~> 10.0'
30
+ spec.add_dependency 'bundler', '~> 1.9'
31
+ end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: travis-release
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Tom Scott
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-10-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: codeclimate-test-reporter
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: yard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '1.9'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '1.9'
97
+ description: Fancy Rake tasks for deploying with Travis
98
+ email:
99
+ - tubbo@psychedeli.ca
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - .gitignore
105
+ - .rspec
106
+ - .rubocop.yml
107
+ - .travis.yml
108
+ - CODE_OF_CONDUCT.md
109
+ - Gemfile
110
+ - LICENSE.txt
111
+ - README.md
112
+ - Rakefile
113
+ - bin/console
114
+ - bin/rake
115
+ - bin/rspec
116
+ - bin/setup
117
+ - lib/travis/release.rb
118
+ - lib/travis/release/task.rb
119
+ - lib/travis/release/version.rb
120
+ - travis-release.gemspec
121
+ homepage: https://github.com/tubbo/travis-release
122
+ licenses:
123
+ - MIT
124
+ metadata: {}
125
+ post_install_message:
126
+ rdoc_options: []
127
+ require_paths:
128
+ - lib
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ requirements: []
140
+ rubyforge_project:
141
+ rubygems_version: 2.4.5
142
+ signing_key:
143
+ specification_version: 4
144
+ summary: Fancy Rake tasks for deploying with Travis
145
+ test_files: []