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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cc9bae42fb37125febba9953cc0420dc4ad3a23
4
- data.tar.gz: 111aaa25369c765dcaf8f106b732ffa1ccf7365e
3
+ metadata.gz: 95d705b0c340caa45273242315fb8933051bd9b1
4
+ data.tar.gz: e04a3817e6872dbb047c754afc63c2074f480760
5
5
  SHA512:
6
- metadata.gz: 00774f35d40c75d3d284bf997170d3f708fa14c6d35dc8ade743fa98f2728b9d3cc4c6590362dc84b758e52209140fcd22cf9ad3f69a788d306e0357ceaad846
7
- data.tar.gz: f45e613115a4119907814891ec3d510d10b7fbeff88e4cadb962e3033283a47d1e59a841d7b6ef94151ddf9d3ad28a2660242ccfee95e05b0b0c6ba17c1e26ca
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.0
5
- - 2.1.5
6
- - 2.2.1
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 appraisal rake test
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
@@ -1,7 +1,9 @@
1
1
 
2
- # Change Log
2
+ # Always keep a CHANGELOG. See: http://keepachangelog.com
3
3
 
4
- Always keep a change log. See: http://keepachangelog.com
4
+ ## v2.1.0 - 2015-10-04
5
+
6
+ * Support Rails 5 edge.
5
7
 
6
8
 
7
9
  ## v2.0.1 - 2015-03-29
@@ -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
- **Make your tests fast by augmenting them with transactional fixtures
7
- powered by your favorite factory library!**
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
 
@@ -59,7 +59,7 @@ module NamedSeeds
59
59
  end
60
60
 
61
61
  def model_primary_key_type
62
- type = model_class.column_types[model_class.primary_key].type
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
@@ -2,8 +2,8 @@ module NamedSeeds
2
2
 
3
3
  module VERSION
4
4
  MAJOR = 2
5
- MINOR = 0
6
- TINY = 1
5
+ MINOR = 1
6
+ TINY = 0
7
7
  PRE = nil
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
9
9
  end
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.1
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-03-29 00:00:00.000000000 Z
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.2
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}.'