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 +4 -4
- data/lib/effective_developer/version.rb +1 -1
- data/lib/tasks/test_reset.rake +24 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4b70893212b8dcd694b2413d82180920bcf417e2d46605c8de26f4bfbb3920b
|
4
|
+
data.tar.gz: ade5a5e4c8e9d7a75b562a9509be4a32e11d3331611a1197afd450d11857d8bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49c19cd00d3104765860a2067cf5ec2350f0324276fa7d47f582aa439dfa6100117a2753e98b61cd175c0bb78048f0b47831405a307e2bcc95a417e0c9b5f13c
|
7
|
+
data.tar.gz: 261d794a5a78ae2c34d8eee83ba06c60a37503d04bca596d094eab558513df19ec337b100a52ff0be5c95484f23b3c1e34e728c86e7ca2118fb8941790613b76
|
@@ -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.
|
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:
|
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.
|
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.
|