effective_developer 0.7.7 → 0.7.8

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: a7c9128dccebc9548e0aaee07657a9be4536b362cc9a1dd0ee9223e8cfe50d59
4
+ data.tar.gz: 0dd32de71121e1870408ec2ac57880cc2382c8c440b68f2a4ae4917b2eae7a34
5
5
  SHA512:
6
- metadata.gz: '01825fae60603251da1753504cacaccb55ac5d7e93352a83a4ab523efad879683f360c58aa18d55452e20f44e097a87d9fad33fb8d7808fc96fb15b1498742c9'
7
- data.tar.gz: 79cba4617ea0507768788a200e17a2a91bb1cacf0464e9cc95c5dbd51c6bee6733ad6159a7c0bb5e0ebfdd21178595bb6efdc25c6819ca0480bd053e84c55f2d
6
+ metadata.gz: 158f36ff2107da423fca8586b08c31be106d981cbeb16d1bbe75f65c2e318d9a8ae7a73eee8d0291cea6ec2eceee49931be8deb68a1849b3239e46e32d1c2b20
7
+ data.tar.gz: '08a0595c3cd9c2ebfbe49ff821f927380f9d1ac83ab895da25a555ba327f10a095b065d46dbc92658bde1754fe93027d0a62222c5527b3fea3d212b158ec45fa'
@@ -1,3 +1,3 @@
1
1
  module EffectiveDeveloper
2
- VERSION = '0.7.7'.freeze
2
+ VERSION = '0.7.8'.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.7.8
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: 2023-10-18 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