modelizer 3.0.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/.gemtest +0 -0
  2. data/CHANGELOG.rdoc +5 -0
  3. data/README.rdoc +2 -2
  4. data/lib/modelizer.rb +2 -2
  5. metadata +38 -53
data/.gemtest ADDED
File without changes
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ === 4.0.0 / 2011-06-14
2
+
3
+ * Update for AR 3.1.
4
+ * Add public API for class -> method name transformations.
5
+
1
6
  === 3.0.0 / 2010-12-18
2
7
 
3
8
  * Remove ill-advised namespace= introduced in 2.1.0.
data/README.rdoc CHANGED
@@ -5,7 +5,7 @@
5
5
  == Description
6
6
 
7
7
  Need a simple, consistent way to create model instances and check
8
- validations in your Rails tests? Use the Modelizer.
8
+ validations in your ActiveRecord 3.1+ tests? Use the Modelizer.
9
9
 
10
10
  == Examples
11
11
 
@@ -78,7 +78,7 @@ The third argument is optional.
78
78
 
79
79
  == License
80
80
 
81
- Copyright 2009-10 John Barnette (code@jbarnette.com)
81
+ Copyright 2009-11 John Barnette (code@jbarnette.com)
82
82
 
83
83
  Permission is hereby granted, free of charge, to any person obtaining
84
84
  a copy of this software and associated documentation files (the
data/lib/modelizer.rb CHANGED
@@ -4,7 +4,7 @@ require "modelizer/validations"
4
4
  module Modelizer
5
5
 
6
6
  # Duh.
7
- VERSION = "3.0.0"
7
+ VERSION = "4.0.0"
8
8
 
9
9
  include Modelizer::Assertions
10
10
 
@@ -45,7 +45,7 @@ module Modelizer
45
45
  end
46
46
 
47
47
  def assign_model_template_attributes model, attributes
48
- model.send :attributes=, attributes, false
48
+ model.assign_attributes attributes, without_protection: true
49
49
  model
50
50
  end
51
51
 
metadata CHANGED
@@ -1,51 +1,40 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: modelizer
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 3
7
- - 0
8
- - 0
9
- version: 3.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.0.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - John Barnette
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-12-18 00:00:00 -08:00
12
+ date: 2011-06-14 00:00:00.000000000 -05:00
18
13
  default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
21
16
  name: hoe
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2151797440 !ruby/object:Gem::Requirement
24
18
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- - 8
31
- - 0
32
- version: 2.8.0
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 2.9.4
33
23
  type: :development
34
- version_requirements: *id001
35
- description: |-
36
- Need a simple, consistent way to create model instances and check
37
- validations in your Rails tests? Use the Modelizer.
38
- email:
24
+ prerelease: false
25
+ version_requirements: *2151797440
26
+ description: ! 'Need a simple, consistent way to create model instances and check
27
+
28
+ validations in your ActiveRecord 3.1+ tests? Use the Modelizer.'
29
+ email:
39
30
  - code@jbarnette.com
40
31
  executables: []
41
-
42
32
  extensions: []
43
-
44
- extra_rdoc_files:
33
+ extra_rdoc_files:
45
34
  - Manifest.txt
46
35
  - CHANGELOG.rdoc
47
36
  - README.rdoc
48
- files:
37
+ files:
49
38
  - .autotest
50
39
  - CHANGELOG.rdoc
51
40
  - Manifest.txt
@@ -56,39 +45,35 @@ files:
56
45
  - lib/modelizer/validations.rb
57
46
  - test/test_assertions.rb
58
47
  - test/test_modelizer.rb
48
+ - .gemtest
59
49
  has_rdoc: true
60
50
  homepage: http://github.com/jbarnette/modelizer
61
51
  licenses: []
62
-
63
52
  post_install_message:
64
- rdoc_options:
53
+ rdoc_options:
65
54
  - --main
66
55
  - README.rdoc
67
- require_paths:
56
+ require_paths:
68
57
  - lib
69
- required_ruby_version: !ruby/object:Gem::Requirement
58
+ required_ruby_version: !ruby/object:Gem::Requirement
70
59
  none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- segments:
75
- - 0
76
- version: "0"
77
- required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
65
  none: false
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- segments:
83
- - 0
84
- version: "0"
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
85
70
  requirements: []
86
-
87
71
  rubyforge_project: modelizer
88
- rubygems_version: 1.3.7
72
+ rubygems_version: 1.6.2
89
73
  signing_key:
90
74
  specification_version: 3
91
- summary: Need a simple, consistent way to create model instances and check validations in your Rails tests? Use the Modelizer.
92
- test_files:
75
+ summary: Need a simple, consistent way to create model instances and check validations
76
+ in your ActiveRecord 3.1+ tests? Use the Modelizer.
77
+ test_files:
93
78
  - test/test_assertions.rb
94
79
  - test/test_modelizer.rb