update_or_delete_or_create 4.1.0.1 → 4.1.0.2

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
  SHA1:
3
- metadata.gz: ba211d76b3b8bf876726f8c99814e231ddc240b9
4
- data.tar.gz: f764e4dadb5dedd3393f7bf8136c87d75bce950d
3
+ metadata.gz: 7152d177103a2d46afd7e9eb4fdf037a14945128
4
+ data.tar.gz: e334c606b6fdaf858174d4bcb46881ccf96fc770
5
5
  SHA512:
6
- metadata.gz: e385253a22d2a82d0afbfd8db5822d25f275c80fc72fedc53f8bfa81986542fb2f66a1853d66752cf1edec67e8868851110c92d21a231b7e6cbb5f95c878dff5
7
- data.tar.gz: 27b62388ad9605b2fcc150f84b9a73f981716f0e5e8ba87511e84f6704626875c73a2b779eef6aeba3602c14c02767aeefb23844d51069c60b62b4a25c55b9b5
6
+ metadata.gz: fe05417bb0931d6816f3352b36da6001028fb712a3407de825f2e59a61083024d31652c9d8fb962ed7ee862fccef7fc34faa07f1c2891991051eef08fe8abd8c
7
+ data.tar.gz: 5b4a76852f79a5443b33b377ed7a944ad6ebd06f758f035f3d9f32743da523571488e56a66b5cba3bb7ee1e3fb24e47104b64728d49b7b1140aa15728f9ba263
@@ -1,4 +1,11 @@
1
- # desc "Explaining what the task does"
2
- # task :update_or_create do
3
- # # Task goes here
4
- # end
1
+ namespace :db do
2
+ namespace :seed do
3
+ Dir[File.join(Rails.root, 'db', 'seeds', '*.rb')].each do |filename|
4
+ task_name = File.basename(filename, '.rb').intern
5
+ task task_name => :environment do
6
+ load(filename) if File.exist?(filename)
7
+ end
8
+ end
9
+ end
10
+ end
11
+
@@ -1,3 +1,3 @@
1
1
  module UpdateOrCreate
2
- VERSION = "4.1.0.1"
2
+ VERSION = "4.1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: update_or_delete_or_create
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0.1
4
+ version: 4.1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun'ya Shimoda(JironBach)