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 +4 -4
- data/lib/effective_developer/version.rb +1 -1
- data/lib/tasks/test_reset.rake +24 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7c9128dccebc9548e0aaee07657a9be4536b362cc9a1dd0ee9223e8cfe50d59
|
4
|
+
data.tar.gz: 0dd32de71121e1870408ec2ac57880cc2382c8c440b68f2a4ae4917b2eae7a34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 158f36ff2107da423fca8586b08c31be106d981cbeb16d1bbe75f65c2e318d9a8ae7a73eee8d0291cea6ec2eceee49931be8deb68a1849b3239e46e32d1c2b20
|
7
|
+
data.tar.gz: '08a0595c3cd9c2ebfbe49ff821f927380f9d1ac83ab895da25a555ba327f10a095b065d46dbc92658bde1754fe93027d0a62222c5527b3fea3d212b158ec45fa'
|
@@ -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.
|
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-
|
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
|