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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23a4cdd8500a5332e14538ddb37400b8df71f71d
4
- data.tar.gz: 54f472c757a084b882449e86d8a259c2f6f11ed5
3
+ metadata.gz: 35b5cdfb26eb9899e70c6acaa1bc793b7175df3a
4
+ data.tar.gz: e6a37b40097efc6e505739bf11a766730b7a5ccc
5
5
  SHA512:
6
- metadata.gz: aa9f610dc4a2a11c95fbe2487b396643256552b45f8f6136dde674ec2bdd12351b639545ac5d9053b01421fa0ccde5080b602986dacbc0498f7d6a84bca9a56e
7
- data.tar.gz: 17ff10ddba0346dd06dc78afd409e58c295f9bfa76f8a3dc91e0bfb762f198c62aa3eddaaac4cc7f2bc45412a16076f0d68bc7e6481142b73ea07d261552dd63
6
+ metadata.gz: 31c0fb652aafd7f2cfbb989e9b3c77ec1c356ec6d9b20a30c72a0e609fde11cc7c458daab23be5d1207c5c958f4befb635e0dc36d18482a8f289598aa2cb1ccc
7
+ data.tar.gz: 5c0967d8ba8de88a521e573e7f888f6c889e0a721e5983cef1d13c1ed516dd6552a83a558bf9f7b4f7abc696fd3b35ec8bfd344a88bdfcd20fc6666632ed1a84
@@ -2,4 +2,4 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.3.1
5
- before_install: gem install bundler -v 1.14.3
5
+ before_install: gem install bundler
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
 
@@ -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.update_attributes(update_with)
11
+ record.update(update_with)
12
12
 
13
13
  handle_errors(record, find_or_create_by, update_with)
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module SeedBox
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -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.14'
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.2.1
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: 2018-07-05 00:00:00.000000000 Z
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.14'
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.14'
54
+ version: '2.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement