sequel-seed 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -2
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/spec/extensions/seed_spec.rb +3 -3
- data/spec/extensions/seed_with_pg_array_spec.rb +3 -3
- data/spec/spec_helper.rb +7 -3
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e805ea70eeb8226d883184529496e16c9a66b4c5ccafcb9064dca98270a03f69
|
4
|
+
data.tar.gz: 065df9c398a3b18d1d437177eddb4b1a044961654b75dedd615f60fc9a945463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e793cb4c85ecc8a3a5740534d6838c8291a731fd227fcb54c48be15e1ea9d114bd3083e5c9ce90728186d66355f07beb7babfa7a93cf7c1a31956b371ac94672
|
7
|
+
data.tar.gz: 0a034b494a73d8b85285388d4c47cf63b513879f3157982a392a4e483b0bb8d87d3fff93e32272ced240d8216ef90a1734ea8cf04ad6c84bef2971b8908dcfab
|
data/CHANGELOG.md
CHANGED
@@ -1,38 +1,51 @@
|
|
1
1
|
## Changelog
|
2
2
|
|
3
|
+
### 1.1.2
|
4
|
+
|
5
|
+
- Improved tests for Sequel versions 4 and 5
|
6
|
+
- Improved compatibility with several Ruby versions
|
7
|
+
- Prevent Sequel's warnings about deprecations
|
8
|
+
|
3
9
|
### 1.1.1
|
10
|
+
|
4
11
|
- Minimum version for Ruby (MRI) >= 2.2
|
5
12
|
- Improve code quality (Rubocop)
|
6
13
|
- Update dependencies
|
7
14
|
|
8
15
|
### 1.0.0
|
16
|
+
|
9
17
|
- Minimum version for Ruby (MRI) >= 2.0
|
10
18
|
- Minimum version for JRuby (Java) >= 9.0
|
11
19
|
- Fix some exception messages
|
12
20
|
- Improve specs over the `pg_array` extension (issue #9)
|
13
21
|
|
14
22
|
### 0.3.2
|
23
|
+
|
15
24
|
- Hotfixes & minor updates
|
16
25
|
- Olle Jonsson's contributions
|
17
26
|
|
18
27
|
### 0.3.1
|
28
|
+
|
19
29
|
- Add support for YAML & JSON files
|
20
|
-
- Minor hotfixes
|
30
|
+
- Minor hotfixes
|
21
31
|
|
22
32
|
### 0.2.1
|
33
|
+
|
23
34
|
- API changes to protect Sequel's namespace
|
24
35
|
- `Sequel::Seed.environment = :env` is also `Sequel::Seed.setup(:env)`
|
25
36
|
- `Sequel::Seed` class is now `Sequel::Seed::Base`; `Sequel::Seed` is now a module;
|
26
|
-
thus, there's no way to proxy the old `Sequel::Seed.apply` to the new `Sequel::Seed::Base.apply`
|
37
|
+
thus, there's no way to proxy the old `Sequel::Seed.apply` to the new `Sequel::Seed::Base.apply`
|
27
38
|
- `Sequel::Seeder` and `Sequel::TimestampSeeder` are still the same (no changes in interface as well)
|
28
39
|
- Improve test coverage to guarantee backward compatibility
|
29
40
|
- Minor hotfixes
|
30
41
|
|
31
42
|
### 0.1.4
|
43
|
+
|
32
44
|
- Environment references could be a Symbol or String
|
33
45
|
- Improve test coverage
|
34
46
|
- New project website with documentation
|
35
47
|
|
36
48
|
### 0.1.2
|
49
|
+
|
37
50
|
- Initial version
|
38
51
|
- Seed descriptor only available as Ruby code
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2016 Ewerton Assis
|
3
|
+
Copyright (c) 2016-present Ewerton Carlos Assis
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Sequel::Seed [![Gem Version](https://badge.fury.io/rb/sequel-seed.svg)](http://badge.fury.io/rb/sequel-seed) [![Build Status](https://travis-ci.org/earaujoassis/sequel-seed.svg?branch=master)](https://travis-ci.org/earaujoassis/sequel-seed) [![
|
1
|
+
# Sequel::Seed [![Gem Version](https://badge.fury.io/rb/sequel-seed.svg)](http://badge.fury.io/rb/sequel-seed) [![Build Status](https://travis-ci.org/earaujoassis/sequel-seed.svg?branch=master)](https://travis-ci.org/earaujoassis/sequel-seed) [![codecov](https://codecov.io/gh/earaujoassis/sequel-seed/branch/master/graph/badge.svg)](https://codecov.io/gh/earaujoassis/sequel-seed) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/44395ec4d60f487586107bb81b0d2910)](https://www.codacy.com/app/earaujoassis/sequel-seed?utm_source=github.com&utm_medium=referral&utm_content=earaujoassis/sequel-seed&utm_campaign=Badge_Grade)
|
2
2
|
|
3
3
|
> A Sequel extension to make seeds/fixtures manageable like migrations
|
4
4
|
|
@@ -59,4 +59,4 @@ If you need any help (or have found any bug 🐞), please post it on
|
|
59
59
|
|
60
60
|
## License
|
61
61
|
|
62
|
-
[MIT License](http://earaujoassis.mit-license.org/) © Ewerton Assis
|
62
|
+
[MIT License](http://earaujoassis.mit-license.org/) © Ewerton Carlos Assis
|
@@ -104,9 +104,9 @@ describe Sequel::Seeder do
|
|
104
104
|
primary_key :id, auto_increment: true
|
105
105
|
String :sentence
|
106
106
|
end
|
107
|
-
class SpecModel < Sequel::Model; end
|
108
|
-
SpecModel.
|
109
|
-
Sequel::Model.db = @db
|
107
|
+
class SpecModel < Sequel::Model(@db); end
|
108
|
+
SpecModel.dataset = @db[:spec_models]
|
109
|
+
#Sequel::Model.db = @db
|
110
110
|
end
|
111
111
|
|
112
112
|
after(:each) do
|
@@ -29,9 +29,9 @@ describe Sequel::Seeder do
|
|
29
29
|
column :selectors, "text[]"
|
30
30
|
String :sentence
|
31
31
|
end
|
32
|
-
class ArraySpecModel < Sequel::Model; end
|
33
|
-
ArraySpecModel.
|
34
|
-
Sequel::Model.db = @db
|
32
|
+
class ArraySpecModel < Sequel::Model(@db); end
|
33
|
+
ArraySpecModel.dataset = @db[:array_spec_models]
|
34
|
+
#Sequel::Model.db = @db
|
35
35
|
end
|
36
36
|
|
37
37
|
after(:each) do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "bundler/setup"
|
4
|
-
Bundler.setup(:default, :
|
4
|
+
Bundler.setup(:default, :test)
|
5
5
|
|
6
|
-
require "
|
7
|
-
|
6
|
+
require "simplecov"
|
7
|
+
SimpleCov.start
|
8
|
+
|
9
|
+
require "codecov"
|
10
|
+
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
8
11
|
|
9
12
|
require "sequel"
|
10
13
|
require File.expand_path(File.dirname(__FILE__) + "/../lib/sequel/extensions/seed.rb")
|
@@ -27,6 +30,7 @@ RSpec.configure do |config|
|
|
27
30
|
include Sequel::Seed::TestHelper
|
28
31
|
|
29
32
|
config.before(:suite) do
|
33
|
+
puts "Sequel.version => #{Sequel.version}"
|
30
34
|
FileUtils.mkdir_p(seed_test_dir)
|
31
35
|
end
|
32
36
|
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-seed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Ewerton Assis
|
7
|
+
- Ewerton Carlos Assis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.49.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.49.0
|
27
27
|
description: A Sequel extension to make seeds/fixtures manageable like migrations
|
28
28
|
email: earaujoassis@gmail.com
|
29
29
|
executables: []
|
@@ -49,15 +49,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
49
49
|
requirements:
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
52
|
+
version: 2.1.10
|
53
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
|
-
|
60
|
-
rubygems_version: 2.7.6
|
59
|
+
rubygems_version: 3.0.3
|
61
60
|
signing_key:
|
62
61
|
specification_version: 4
|
63
62
|
summary: A Sequel extension to make seeds/fixtures manageable like migrations
|