founders_toolkit 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cdef234a608001617a427f4b1fae7a5fba98ea5ee6167d5b4f9c100702c1ce1
4
- data.tar.gz: 1ab17d05b93bb338ed98c38802863ba1c828687c1e9adc9260889ddb5cf619a7
3
+ metadata.gz: 7c3f346cd2cec5f751a917cd6141580d6541031a049107d199970b1023e94807
4
+ data.tar.gz: 726a052b6aec786b272215de287bdaf5799d745a76b0c55f8f23a1774f8b3d2a
5
5
  SHA512:
6
- metadata.gz: a22d075b2ae0b56e5d8038ba9737678c570da481e6668cdee6aeca491c09ef6d31ba08b63a24ef2e7e268f326be00e1fef9a9b77e431a645d489f63804e1494b
7
- data.tar.gz: 28427b91f1ebc7b38b5cb95793f2f810d1a7e4efd13c9ffa8155db444d47bf737a577f5a007e20532d4edb6c811130b7f617bcb3ad3afccd13bb33ba5a53e623
6
+ metadata.gz: 234f803ad71047810a829d49f2c46da457b2e8a46b83b3fa6f50b259c08eb85269d10431a48774ef0512edd15804ff1cafd64ea1fd3b2ff882c2dd441f845914
7
+ data.tar.gz: 5ec8624894e2e712097dea243eeb88fbe724b91819acb893d228f9c184652ec5332759a82061ef0bf43cfc218726d42582fe4c4c297fd5386e5c867b573d023b
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.5.0] - 2021-03-29
10
+
11
+ - Added install rake task.
12
+ - Remove email as a protected attribute by default.
13
+
9
14
  ## [0.4.0] - 2021-03-29
10
15
  - Add tracking to limitable
11
16
 
@@ -7,7 +7,6 @@ module FoundersToolkit::Auth::Securable::Model
7
7
  include FoundersToolkit::Auth::Emailable::Model
8
8
  extend FoundersToolkit::Auth::Securable::Validations::ProtectedValidator::HelperMethods
9
9
 
10
- validates_protected_attributes :email
11
10
  validates_protected_attributes :password, secure: true
12
11
 
13
12
  has_secure_password
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FoundersToolkit
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source_paths << File.expand_path('templates', __dir__)
4
+
5
+ say 'Creating Current'
6
+ copy_file 'current.rb', 'app/models/current.rb'
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ say 'Add gems'
4
+ gem 'hotwire-rails'
5
+ gem 'tailwindcss-rails'
6
+ run 'bin/bundle install'
7
+
8
+ say 'Install Tailwind CSS'
9
+ rails_command 'tailwindcss:install'
10
+
11
+ say 'Install Hotwire'
12
+ rails_command 'hotwire:install'
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source_paths << File.expand_path('templates', __dir__)
4
+
5
+ say 'Add rubocop'
6
+ gem_group :development do
7
+ gem 'rubocop'
8
+ end
9
+ run 'bin/bundle install'
10
+ copy_file '.rubocop.yml', '.rubocop.yml'
@@ -0,0 +1,2 @@
1
+ inherit_from:
2
+ - https://raw.githubusercontent.com/trobrock/style-guides/master/ruby-style.yml
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Current < ActiveSupport::CurrentAttributes
4
+ include FoundersToolkit::Auth::Securable::CurrentAttributes
5
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ def run_install_template(path)
4
+ system "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{File.expand_path(
5
+ "../install/#{path}.rb", __dir__
6
+ )}"
7
+ end
8
+
9
+ namespace :founders_toolkit do
10
+ desc 'Install Founders Toolkit'
11
+ task :install do
12
+ run_install_template 'gems'
13
+ run_install_template 'current'
14
+ run_install_template 'linters'
15
+ end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: founders_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trae Robrock
@@ -83,6 +83,12 @@ files:
83
83
  - lib/founders_toolkit/util/lockable.rb
84
84
  - lib/founders_toolkit/util/rate_limitable.rb
85
85
  - lib/founders_toolkit/version.rb
86
+ - lib/install/current.rb
87
+ - lib/install/gems.rb
88
+ - lib/install/linters.rb
89
+ - lib/install/templates/.rubocop.yml
90
+ - lib/install/templates/current.rb
91
+ - lib/tasks/install.rake
86
92
  homepage: https://github.com/trobrock/founders-toolkit
87
93
  licenses:
88
94
  - MIT