sample_models 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -5,12 +5,12 @@ GEM
5
5
  activesupport (= 2.3.14)
6
6
  activesupport (2.3.14)
7
7
  git (1.2.5)
8
- jeweler (1.6.0)
9
- bundler (~> 1.0.0)
8
+ jeweler (1.6.4)
9
+ bundler (~> 1.0)
10
10
  git (>= 1.2.5)
11
11
  rake
12
- rake (0.8.7)
13
- sqlite3 (1.3.4)
12
+ rake (0.9.2.2)
13
+ sqlite3 (1.3.5)
14
14
  validates_email_format_of (1.4.7)
15
15
 
16
16
  PLATFORMS
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ Rake::TestTask.new do |t|
8
8
  t.verbose = true
9
9
  end
10
10
 
11
- ActiveRecordVersions = %w(3.1.1 3.0.10 2.3.14)
11
+ ActiveRecordVersions = %w(3.2.2 3.1.1 3.0.10 2.3.14)
12
12
 
13
13
  desc "Run all tests, for all tested versions of ActiveRecord"
14
14
  task :all_tests do
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.0
1
+ 2.3.0
@@ -52,7 +52,10 @@ module SampleModels
52
52
  attrs[column.name] = sequence.value
53
53
  end
54
54
  end
55
- @instance = model.new(attrs)
55
+ @instance = model.new
56
+ attrs.each do |k, v|
57
+ @instance.send("#{k}=", v)
58
+ end
56
59
  save!
57
60
  update_with_deferred_associations!
58
61
  @instance
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "sample_models"
8
- s.version = "2.2.0"
8
+ s.version = "2.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Francis Hwang"]
12
- s.date = "2012-03-04"
12
+ s.date = "2012-03-10"
13
13
  s.description = "\nA library for making it extremely fast for Rails developers to set up and save ActiveRecord instances when writing test cases. It aims to:\n\n* meet all your validations automatically\n* only make you specify the attributes you care about\n* give you a rich set of features so you can specify associated values as concisely as possible\n* do this with as little configuration as possible\n"
14
14
  s.email = "francis.hwang@profitably.com"
15
15
  s.extra_rdoc_files = [
data/test/setup/models.rb CHANGED
@@ -61,6 +61,7 @@ class ExternalUser < ActiveRecord::Base
61
61
  end
62
62
 
63
63
  class Network < ActiveRecord::Base
64
+ attr_accessible nil
64
65
  end
65
66
 
66
67
  class Show < ActiveRecord::Base
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sample_models
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.2.0
5
+ version: 2.3.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Francis Hwang
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-03-04 00:00:00 Z
13
+ date: 2012-03-10 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord