named_seeds 2.0.1 → 2.1.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 +17 -6
- data/Appraisals +9 -0
- data/CHANGELOG.md +4 -2
- data/CODE_OF_CONDUCT.md +31 -0
- data/README.md +4 -2
- data/lib/named_seeds/identity.rb +1 -1
- data/lib/named_seeds/version.rb +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95d705b0c340caa45273242315fb8933051bd9b1
|
4
|
+
data.tar.gz: e04a3817e6872dbb047c754afc63c2074f480760
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4604979568aec34bae7a2ff67fb0c1cd3f229d984afab5cf4c5456440a0816edd9d4906aef0a79a095fb04657e62b148d33c1a636ce0a27df2defb49cd36d9bb
|
7
|
+
data.tar.gz: d5a710b9539e907458a01dbfb57bd09dbd0ff6c62e537d3c69bd2674c4f2b9a61e6380747b0d4129fa3b9dc879269eb08fa21abb6f7e2b8983ff5822429d21be
|
data/.travis.yml
CHANGED
@@ -1,14 +1,25 @@
|
|
1
1
|
sudo: false
|
2
2
|
cache: bundler
|
3
3
|
rvm:
|
4
|
-
- 2.0
|
5
|
-
- 2.1
|
6
|
-
- 2.2.
|
4
|
+
- 2.0
|
5
|
+
- 2.1
|
6
|
+
- 2.2.3
|
7
|
+
gemfile:
|
8
|
+
- gemfiles/rails40.gemfile
|
9
|
+
- gemfiles/rails41.gemfile
|
10
|
+
- gemfiles/rails42.gemfile
|
11
|
+
- gemfiles/rails50.gemfile
|
7
12
|
install:
|
8
13
|
- gem install bundler
|
9
14
|
- bundle --version
|
10
15
|
- bundle install
|
11
|
-
before_script:
|
12
|
-
- bundle exec appraisal install
|
13
16
|
script:
|
14
|
-
- bundle exec
|
17
|
+
- bundle exec rake test
|
18
|
+
matrix:
|
19
|
+
exclude:
|
20
|
+
- rvm: 1.9.3
|
21
|
+
gemfile: gemfiles/rails50.gemfile
|
22
|
+
- rvm: 2.0
|
23
|
+
gemfile: gemfiles/rails50.gemfile
|
24
|
+
- rvm: 2.1
|
25
|
+
gemfile: gemfiles/rails50.gemfile
|
data/Appraisals
CHANGED
@@ -10,3 +10,12 @@ end
|
|
10
10
|
appraise 'rails42' do
|
11
11
|
gem 'rails', '~> 4.2.0'
|
12
12
|
end
|
13
|
+
|
14
|
+
appraise 'rails50' do
|
15
|
+
gem 'rails', github: 'rails/rails'
|
16
|
+
gem 'sprockets-rails', github: "rails/sprockets-rails"
|
17
|
+
gem 'sprockets', github: "rails/sprockets"
|
18
|
+
gem 'sass-rails', github: "rails/sass-rails"
|
19
|
+
gem 'arel', github: "rails/arel"
|
20
|
+
gem 'rack', github: 'rack/rack'
|
21
|
+
end
|
data/CHANGELOG.md
CHANGED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all
|
4
|
+
people who contribute through reporting issues, posting feature requests,
|
5
|
+
updating documentation, submitting pull requests or patches, and other
|
6
|
+
activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, or religion.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include the use of sexual
|
14
|
+
language or imagery, derogatory comments or personal attacks, trolling, public
|
15
|
+
or private harassment, insults, or other unprofessional conduct.
|
16
|
+
|
17
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
18
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
19
|
+
that are not aligned to this Code of Conduct. Project maintainers who do not
|
20
|
+
follow the Code of Conduct may be removed from the project team.
|
21
|
+
|
22
|
+
This code of conduct applies both within project spaces and in public spaces
|
23
|
+
when an individual is representing the project or its community.
|
24
|
+
|
25
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
26
|
+
reported by opening an issue or contacting one or more of the project
|
27
|
+
maintainers.
|
28
|
+
|
29
|
+
This Code of Conduct is adapted from the Contributor Covenant
|
30
|
+
(http://contributor-covenant.org), version 1.1.0, available at
|
31
|
+
http://contributor-covenant.org/version/1/1/0/
|
data/README.md
CHANGED
@@ -3,8 +3,10 @@
|
|
3
3
|
|
4
4
|
<hr>
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
#### Make your tests fast by augmenting them with transactional fixtures powered by your favorite factory library!
|
7
|
+
|
8
|
+
[![Gem Version](https://badge.fury.io/rb/named_seeds.png)](http://badge.fury.io/rb/named_seeds)
|
9
|
+
[![Build Status](https://secure.travis-ci.org/metaskills/named_seeds.png)](http://travis-ci.org/metaskills/named_seeds)
|
8
10
|
|
9
11
|
We all know that ActiveRecord's fixtures are hard to maintain, and more importantly, disconnected from the models that create your data. This disconnect can lead to invalid or incomplete representations of your objects as your application grows. But Rails did get something right. Fixtures combined with transactional tests are a huge performance win while providing [canned references among your team](http://martinfowler.com/bliki/ObjectMother.html) via helper methods that find fixtures using a unique name. The NamedSeeds gem aims to replace YAML fixtures by providing a slim identification layer to be used in conjunction with your factory library of choice. For example, [FactoryGirl](https://github.com/thoughtbot/factory_girl).
|
10
12
|
|
data/lib/named_seeds/identity.rb
CHANGED
@@ -59,7 +59,7 @@ module NamedSeeds
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def model_primary_key_type
|
62
|
-
type = model_class.
|
62
|
+
type = model_class.columns_hash[model_class.primary_key].type
|
63
63
|
sql_type = model_class.columns_hash[model_class.primary_key].sql_type
|
64
64
|
return :uuid if ['uuid', 'guid', 'uniqueidentifier'].include?(sql_type)
|
65
65
|
type ? type.to_sym : :id
|
data/lib/named_seeds/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: named_seeds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Collins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -120,6 +120,7 @@ files:
|
|
120
120
|
- ".travis.yml"
|
121
121
|
- Appraisals
|
122
122
|
- CHANGELOG.md
|
123
|
+
- CODE_OF_CONDUCT.md
|
123
124
|
- Gemfile
|
124
125
|
- Guardfile
|
125
126
|
- LICENSE
|
@@ -159,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
160
|
version: '0'
|
160
161
|
requirements: []
|
161
162
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.4.
|
163
|
+
rubygems_version: 2.4.8
|
163
164
|
signing_key:
|
164
165
|
specification_version: 4
|
165
166
|
summary: 'Replace ActiveRecord::Fixtures With #{your_factory_lib}.'
|