From 50c55fe64347bbfb3b831b50e92a488fb5e656c2 Mon Sep 17 00:00:00 2001 From: miguel perez Date: Mon, 3 Sep 2018 16:08:10 -0500 Subject: [PATCH 1/2] update ruby and rails versions. --- .gitignore | 4 +++- .ruby-version | 2 +- lib/generapp/version.rb | 4 ++-- templates/Gemfile.erb | 12 ++++++++++-- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 35b74ad..21724bf 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,6 @@ gemfiles/*.lock .idea .idea/**/* -.ruby-gemset \ No newline at end of file +.ruby-gemset +*.gem +test_app/* \ No newline at end of file diff --git a/.ruby-version b/.ruby-version index 197c4d5..437459c 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.4.0 +2.5.0 diff --git a/lib/generapp/version.rb b/lib/generapp/version.rb index 405b2e3..e7be123 100644 --- a/lib/generapp/version.rb +++ b/lib/generapp/version.rb @@ -5,9 +5,9 @@ # with some of Koombea's standards and practices module Generapp # Default Rails Version - RAILS_VERSION = '~> 5.0.1' + RAILS_VERSION = '~> 5.2.1' # Default Ruby Version RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip # Gem Version - VERSION = '0.4.0' + VERSION = '0.5.0' end diff --git a/templates/Gemfile.erb b/templates/Gemfile.erb index 7d8b855..9cfd60c 100644 --- a/templates/Gemfile.erb +++ b/templates/Gemfile.erb @@ -1,5 +1,8 @@ source 'https://rubygems.org' +git_source(:github) { |repo| "https://github.com/#{repo}.git" } + + ruby '<%= Generapp::RUBY_VERSION %>' gem 'honeybadger', '~> 2.0' # Error reporting @@ -13,24 +16,29 @@ gem 'sass-rails', '~>5.0' gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] gem 'uglifier' +# Reduces boot times through caching; required in config/boot.rb +gem 'bootsnap', '>= 1.1.0', require: false + group :development do gem 'annotate' # Schema model annotation gem 'better_errors' gem 'binding_of_caller' gem 'bullet' # N+1 queries reporter gem 'lol_dba' # Missing index reporter - gem 'listen', '~> 3.0.5' gem 'rails-erd' # ER Diagrams gem 'rubocop', require: false gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' gem 'yard', require: false + + gem 'web-console', '>= 3.3.0' + gem 'listen', '>= 3.0.5', '< 3.2' end group :development, :test do gem 'brakeman', require: false gem 'bundler-audit', require: false - gem 'factory_girl_rails' + gem 'factory_bot' gem 'pry-rails' gem 'pry-remote' gem 'rspec-rails' From 50b7a7a75c87b5b3470ab9d2c3fca0e47aebec50 Mon Sep 17 00:00:00 2001 From: miguel perez Date: Mon, 3 Sep 2018 16:16:21 -0500 Subject: [PATCH 2/2] update readme --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index ae2308b..91b709d 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,13 @@ If you plan to use Rails ERD you may need to install Graphviz ([instructions](ht 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request +## Generating a local version of the gem for testing + +``` +gem build generapp.gemspec +gem install ./generapp*.gem +``` + ## License MIT License. Copyright 2016 Koombea. https://koombea.com/