seed_box 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +2 -0
- data/lib/seed_box.rb +1 -1
- data/lib/seed_box/version.rb +1 -1
- data/seed_box.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35b5cdfb26eb9899e70c6acaa1bc793b7175df3a
|
4
|
+
data.tar.gz: e6a37b40097efc6e505739bf11a766730b7a5ccc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31c0fb652aafd7f2cfbb989e9b3c77ec1c356ec6d9b20a30c72a0e609fde11cc7c458daab23be5d1207c5c958f4befb635e0dc36d18482a8f289598aa2cb1ccc
|
7
|
+
data.tar.gz: 5c0967d8ba8de88a521e573e7f888f6c889e0a721e5983cef1d13c1ed516dd6552a83a558bf9f7b4f7abc696fd3b35ec8bfd344a88bdfcd20fc6666632ed1a84
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/seed_box.svg)](https://badge.fury.io/rb/seed_box)
|
1
2
|
[![Build Status](https://travis-ci.org/panter/seed_box.svg?branch=master)](https://travis-ci.org/panter/seed_box)
|
3
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/d5ab1518113fb181b470/maintainability)](https://codeclimate.com/github/panter/seed_box/maintainability)
|
2
4
|
|
3
5
|
# SeedBox
|
4
6
|
|
data/lib/seed_box.rb
CHANGED
@@ -8,7 +8,7 @@ module SeedBox
|
|
8
8
|
def seed(model, find_or_create_by, update_with = {})
|
9
9
|
record = model.where(find_or_create_by).first_or_initialize
|
10
10
|
|
11
|
-
record.
|
11
|
+
record.update(update_with)
|
12
12
|
|
13
13
|
handle_errors(record, find_or_create_by, update_with)
|
14
14
|
end
|
data/lib/seed_box/version.rb
CHANGED
data/seed_box.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_runtime_dependency 'rails', '>= 4.2'
|
26
26
|
spec.add_runtime_dependency 'activerecord', '>= 4.2'
|
27
27
|
|
28
|
-
spec.add_development_dependency 'bundler', '~> 1
|
28
|
+
spec.add_development_dependency 'bundler', '~> 2.1'
|
29
29
|
spec.add_development_dependency 'rake', '~> 10.0'
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
31
31
|
spec.add_development_dependency 'sqlite3'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seed_box
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexis Reigel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1
|
47
|
+
version: '2.1'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1
|
54
|
+
version: '2.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|