effective_developer 0.7.7 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c1231725ea89da47006207e9c294b360f8bcdf23f751d93203f953a10166ace
4
- data.tar.gz: f6c0afe87820d6c4b7039967950a95c56eed4baa5c4328048d1804bb3294d6be
3
+ metadata.gz: f4b70893212b8dcd694b2413d82180920bcf417e2d46605c8de26f4bfbb3920b
4
+ data.tar.gz: ade5a5e4c8e9d7a75b562a9509be4a32e11d3331611a1197afd450d11857d8bf
5
5
  SHA512:
6
- metadata.gz: '01825fae60603251da1753504cacaccb55ac5d7e93352a83a4ab523efad879683f360c58aa18d55452e20f44e097a87d9fad33fb8d7808fc96fb15b1498742c9'
7
- data.tar.gz: 79cba4617ea0507768788a200e17a2a91bb1cacf0464e9cc95c5dbd51c6bee6733ad6159a7c0bb5e0ebfdd21178595bb6efdc25c6819ca0480bd053e84c55f2d
6
+ metadata.gz: 49c19cd00d3104765860a2067cf5ec2350f0324276fa7d47f582aa439dfa6100117a2753e98b61cd175c0bb78048f0b47831405a307e2bcc95a417e0c9b5f13c
7
+ data.tar.gz: 261d794a5a78ae2c34d8eee83ba06c60a37503d04bca596d094eab558513df19ec337b100a52ff0be5c95484f23b3c1e34e728c86e7ca2118fb8941790613b76
@@ -1,3 +1,3 @@
1
1
  module EffectiveDeveloper
2
- VERSION = '0.7.7'.freeze
2
+ VERSION = '0.8.0'.freeze
3
3
  end
@@ -0,0 +1,24 @@
1
+ # bundle exec rake app:test:reset
2
+ namespace :test do
3
+ desc 'Resets a gem test schema to a clean slate'
4
+ task reset: :environment do
5
+ unless Rails.env.development?
6
+ puts "Cannot run in non-development mode"; exit
7
+ end
8
+
9
+ unless File.exist?('Gemfile')
10
+ puts 'Unable to proceed, Gemfile must be present in current directory'
11
+ puts "Please run rake app:test:reset from the gem's root directory"
12
+ exit
13
+ end
14
+
15
+ # Delete schema
16
+ File.delete('test/dummy/db/schema.rb') if File.exist?('test/dummy/db/schema.rb')
17
+
18
+ # Run rake db:reset
19
+ system('rake db:drop db:create db:migrate db:seed')
20
+
21
+ puts "All Done. Test schema has been reset"
22
+ end
23
+
24
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_developer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-26 00:00:00.000000000 Z
11
+ date: 2024-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -118,6 +118,7 @@ files:
118
118
  - lib/tasks/rename_class.rake
119
119
  - lib/tasks/reset_pk_sequence.rake
120
120
  - lib/tasks/sidekiq_clear.rake
121
+ - lib/tasks/test_reset.rake
121
122
  - lib/tasks/upgrade_forms.rake
122
123
  - lib/tasks/validate.rake
123
124
  homepage: https://github.com/code-and-effect/effective_developer
@@ -139,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
140
  - !ruby/object:Gem::Version
140
141
  version: '0'
141
142
  requirements: []
142
- rubygems_version: 3.4.10
143
+ rubygems_version: 3.5.6
143
144
  signing_key:
144
145
  specification_version: 4
145
146
  summary: Provides some quality of life developer tools.