Skip to content

Commit

Permalink
Merge pull request #488 from activeadmin/release_tools
Browse files Browse the repository at this point in the history
Release tools
  • Loading branch information
javierjulio authored Mar 24, 2019
2 parents 4289f8e + 3820428 commit ef943a6
Show file tree
Hide file tree
Showing 12 changed files with 133 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ gem 'mocha'
gem 'minitest-rg'
gem 'rails-controller-testing'
gem 'rubocop'
gem 'chandler', '0.9.0'
16 changes: 16 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,19 @@ GEM
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
arel (9.0.0)
ast (2.4.0)
builder (3.2.3)
chandler (0.9.0)
netrc
octokit (>= 2.2.0)
concurrent-ruby (1.1.5)
crass (1.0.4)
erubi (1.8.0)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
globalid (0.4.2)
activesupport (>= 4.2.0)
has_scope (0.7.2)
Expand All @@ -83,15 +90,20 @@ GEM
minitest (~> 5.0)
mocha (1.7.0)
metaclass (~> 0.0.1)
multipart-post (2.0.0)
netrc (0.11.0)
nio4r (2.3.1)
nio4r (2.3.1-java)
nokogiri (1.10.1)
mini_portile2 (~> 2.4.0)
nokogiri (1.10.1-java)
octokit (4.13.0)
sawyer (~> 0.8.0, >= 0.5.3)
parallel (1.12.1)
parser (2.5.3.0)
ast (~> 2.4.0)
powerpack (0.1.2)
public_suffix (3.0.3)
rack (2.0.6)
rack-test (1.1.0)
rack (>= 1.0, < 3)
Expand Down Expand Up @@ -137,6 +149,9 @@ GEM
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.4.0)
ruby-progressbar (1.10.0)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand All @@ -161,6 +176,7 @@ PLATFORMS
ruby

DEPENDENCIES
chandler (= 0.9.0)
inherited_resources!
minitest-rg
mocha
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ require 'rdoc/task'
require 'rubocop/rake_task'

import 'tasks/gemfiles.rake'
import 'tasks/release.rake'

desc 'Run tests for InheritedResources.'
Rake::TestTask.new(:test) do |t|
Expand Down
29 changes: 29 additions & 0 deletions bin/chandler
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
# The application 'chandler' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

bundle_binstub = File.expand_path("../bundle", __FILE__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end

require "rubygems"
require "bundler/setup"

load Gem.bin_path("chandler", "chandler")
29 changes: 29 additions & 0 deletions bin/rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
# The application 'rake' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

bundle_binstub = File.expand_path("../bundle", __FILE__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rake", "rake")
6 changes: 6 additions & 0 deletions tasks/release.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require "chandler/tasks"

#
# Add chandler as a prerequisite for `rake release`
#
task "release:rubygem_push" => "chandler:push"
1 change: 1 addition & 0 deletions test/gemfiles/Gemfile-Rails-5-0
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ gem 'mocha'
gem 'minitest-rg'
gem 'rails-controller-testing'
gem 'rubocop'
gem 'chandler', '0.9.0'
16 changes: 16 additions & 0 deletions test/gemfiles/Gemfile-Rails-5-0.lock
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,19 @@ GEM
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
arel (9.0.0)
ast (2.4.0)
builder (3.2.3)
chandler (0.9.0)
netrc
octokit (>= 2.2.0)
concurrent-ruby (1.1.5)
crass (1.0.4)
erubi (1.8.0)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
globalid (0.4.2)
activesupport (>= 4.2.0)
has_scope (0.7.2)
Expand All @@ -83,15 +90,20 @@ GEM
minitest (~> 5.0)
mocha (1.7.0)
metaclass (~> 0.0.1)
multipart-post (2.0.0)
netrc (0.11.0)
nio4r (2.3.1)
nio4r (2.3.1-java)
nokogiri (1.10.1)
mini_portile2 (~> 2.4.0)
nokogiri (1.10.1-java)
octokit (4.13.0)
sawyer (~> 0.8.0, >= 0.5.3)
parallel (1.12.1)
parser (2.5.3.0)
ast (~> 2.4.0)
powerpack (0.1.2)
public_suffix (3.0.3)
rack (2.0.6)
rack-test (1.1.0)
rack (>= 1.0, < 3)
Expand Down Expand Up @@ -137,6 +149,9 @@ GEM
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.4.0)
ruby-progressbar (1.10.0)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand All @@ -161,6 +176,7 @@ PLATFORMS
ruby

DEPENDENCIES
chandler (= 0.9.0)
inherited_resources!
minitest-rg
mocha
Expand Down
1 change: 1 addition & 0 deletions test/gemfiles/Gemfile-Rails-5-1
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ gem 'mocha'
gem 'minitest-rg'
gem 'rails-controller-testing'
gem 'rubocop'
gem 'chandler', '0.9.0'
16 changes: 16 additions & 0 deletions test/gemfiles/Gemfile-Rails-5-1.lock
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,19 @@ GEM
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
arel (9.0.0)
ast (2.4.0)
builder (3.2.3)
chandler (0.9.0)
netrc
octokit (>= 2.2.0)
concurrent-ruby (1.1.5)
crass (1.0.4)
erubi (1.8.0)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
globalid (0.4.2)
activesupport (>= 4.2.0)
has_scope (0.7.2)
Expand All @@ -83,15 +90,20 @@ GEM
minitest (~> 5.0)
mocha (1.7.0)
metaclass (~> 0.0.1)
multipart-post (2.0.0)
netrc (0.11.0)
nio4r (2.3.1)
nio4r (2.3.1-java)
nokogiri (1.10.1)
mini_portile2 (~> 2.4.0)
nokogiri (1.10.1-java)
octokit (4.13.0)
sawyer (~> 0.8.0, >= 0.5.3)
parallel (1.12.1)
parser (2.5.3.0)
ast (~> 2.4.0)
powerpack (0.1.2)
public_suffix (3.0.3)
rack (2.0.6)
rack-test (1.1.0)
rack (>= 1.0, < 3)
Expand Down Expand Up @@ -137,6 +149,9 @@ GEM
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.4.0)
ruby-progressbar (1.10.0)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand All @@ -161,6 +176,7 @@ PLATFORMS
ruby

DEPENDENCIES
chandler (= 0.9.0)
inherited_resources!
minitest-rg
mocha
Expand Down
1 change: 1 addition & 0 deletions test/gemfiles/Gemfile-Rails-6-0
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ gem 'mocha'
gem 'minitest-rg'
gem 'rails-controller-testing'
gem 'rubocop'
gem 'chandler', '0.9.0'
16 changes: 16 additions & 0 deletions test/gemfiles/Gemfile-Rails-6-0.lock
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,18 @@ GEM
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 1.3, >= 1.3.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
ast (2.4.0)
builder (3.2.3)
chandler (0.9.0)
netrc
octokit (>= 2.2.0)
concurrent-ruby (1.1.5)
crass (1.0.4)
erubi (1.8.0)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
globalid (0.4.2)
activesupport (>= 4.2.0)
has_scope (0.7.2)
Expand Down Expand Up @@ -96,18 +103,23 @@ GEM
minitest (~> 5.0)
mocha (1.8.0)
metaclass (~> 0.0.1)
multipart-post (2.0.0)
netrc (0.11.0)
nio4r (2.3.1)
nio4r (2.3.1-java)
nokogiri (1.10.1)
mini_portile2 (~> 2.4.0)
nokogiri (1.10.1-java)
octokit (4.13.0)
sawyer (~> 0.8.0, >= 0.5.3)
parallel (1.14.0)
parser (2.6.0.0)
ast (~> 2.4.0)
powerpack (0.1.2)
psych (3.1.0)
psych (3.1.0-java)
jar-dependencies (>= 0.1.7)
public_suffix (3.0.3)
rack (2.0.6)
rack-test (1.1.0)
rack (>= 1.0, < 3)
Expand Down Expand Up @@ -156,6 +168,9 @@ GEM
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.4.0)
ruby-progressbar (1.10.0)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand All @@ -181,6 +196,7 @@ PLATFORMS
ruby

DEPENDENCIES
chandler (= 0.9.0)
inherited_resources!
minitest-rg
mocha
Expand Down

0 comments on commit ef943a6

Please sign in to comment.