remarkable_activerecord 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +47 -0
- data/LICENSE +20 -0
- data/README +2 -0
- data/lib/remarkable_activerecord/base.rb +238 -0
- data/lib/remarkable_activerecord/human_names.rb +37 -0
- data/lib/remarkable_activerecord/matchers/allow_mass_assignment_of_matcher.rb +34 -0
- data/lib/remarkable_activerecord/matchers/allow_values_for_matcher.rb +94 -0
- data/lib/remarkable_activerecord/matchers/association_matcher.rb +235 -0
- data/lib/remarkable_activerecord/matchers/have_column_matcher.rb +68 -0
- data/lib/remarkable_activerecord/matchers/have_index_matcher.rb +57 -0
- data/lib/remarkable_activerecord/matchers/have_readonly_attributes_matcher.rb +30 -0
- data/lib/remarkable_activerecord/matchers/have_scope_matcher.rb +80 -0
- data/lib/remarkable_activerecord/matchers/validate_acceptance_of_matcher.rb +51 -0
- data/lib/remarkable_activerecord/matchers/validate_associated_matcher.rb +99 -0
- data/lib/remarkable_activerecord/matchers/validate_confirmation_of_matcher.rb +45 -0
- data/lib/remarkable_activerecord/matchers/validate_exclusion_of_matcher.rb +47 -0
- data/lib/remarkable_activerecord/matchers/validate_inclusion_of_matcher.rb +47 -0
- data/lib/remarkable_activerecord/matchers/validate_length_of_matcher.rb +123 -0
- data/lib/remarkable_activerecord/matchers/validate_numericality_of_matcher.rb +184 -0
- data/lib/remarkable_activerecord/matchers/validate_presence_of_matcher.rb +29 -0
- data/lib/remarkable_activerecord/matchers/validate_uniqueness_of_matcher.rb +151 -0
- data/lib/remarkable_activerecord.rb +29 -0
- data/locale/en.yml +253 -0
- data/spec/allow_mass_assignment_of_matcher_spec.rb +57 -0
- data/spec/allow_values_for_matcher_spec.rb +56 -0
- data/spec/association_matcher_spec.rb +616 -0
- data/spec/have_column_matcher_spec.rb +73 -0
- data/spec/have_index_matcher_spec.rb +68 -0
- data/spec/have_readonly_attributes_matcher_spec.rb +47 -0
- data/spec/have_scope_matcher_spec.rb +69 -0
- data/spec/model_builder.rb +101 -0
- data/spec/rcov.opts +2 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/validate_acceptance_of_matcher_spec.rb +68 -0
- data/spec/validate_associated_matcher_spec.rb +122 -0
- data/spec/validate_confirmation_of_matcher_spec.rb +58 -0
- data/spec/validate_exclusion_of_matcher_spec.rb +88 -0
- data/spec/validate_inclusion_of_matcher_spec.rb +84 -0
- data/spec/validate_length_of_matcher_spec.rb +165 -0
- data/spec/validate_numericality_of_matcher_spec.rb +180 -0
- data/spec/validate_presence_of_matcher_spec.rb +52 -0
- data/spec/validate_uniqueness_of_matcher_spec.rb +150 -0
- metadata +112 -0
metadata
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: remarkable_activerecord
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Carlos Brando
|
8
|
+
- "Jos\xC3\xA9 Valim"
|
9
|
+
- Diego Carrion
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
|
14
|
+
date: 2009-04-09 00:00:00 +02:00
|
15
|
+
default_executable:
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
|
+
name: remarkable
|
19
|
+
type: :runtime
|
20
|
+
version_requirement:
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: 3.0.0
|
26
|
+
version:
|
27
|
+
description: "Remarkable ActiveRecord: collection of matchers and macros with I18n for ActiveRecord"
|
28
|
+
email:
|
29
|
+
- eduardobrando@gmail.com
|
30
|
+
- jose.valim@gmail.com
|
31
|
+
- dc.rec1@gmail.com
|
32
|
+
executables: []
|
33
|
+
|
34
|
+
extensions: []
|
35
|
+
|
36
|
+
extra_rdoc_files:
|
37
|
+
- README
|
38
|
+
- LICENSE
|
39
|
+
- CHANGELOG
|
40
|
+
files:
|
41
|
+
- README
|
42
|
+
- LICENSE
|
43
|
+
- CHANGELOG
|
44
|
+
- lib/remarkable_activerecord
|
45
|
+
- lib/remarkable_activerecord/base.rb
|
46
|
+
- lib/remarkable_activerecord/human_names.rb
|
47
|
+
- lib/remarkable_activerecord/matchers
|
48
|
+
- lib/remarkable_activerecord/matchers/allow_mass_assignment_of_matcher.rb
|
49
|
+
- lib/remarkable_activerecord/matchers/allow_values_for_matcher.rb
|
50
|
+
- lib/remarkable_activerecord/matchers/association_matcher.rb
|
51
|
+
- lib/remarkable_activerecord/matchers/have_column_matcher.rb
|
52
|
+
- lib/remarkable_activerecord/matchers/have_index_matcher.rb
|
53
|
+
- lib/remarkable_activerecord/matchers/have_readonly_attributes_matcher.rb
|
54
|
+
- lib/remarkable_activerecord/matchers/have_scope_matcher.rb
|
55
|
+
- lib/remarkable_activerecord/matchers/validate_acceptance_of_matcher.rb
|
56
|
+
- lib/remarkable_activerecord/matchers/validate_associated_matcher.rb
|
57
|
+
- lib/remarkable_activerecord/matchers/validate_confirmation_of_matcher.rb
|
58
|
+
- lib/remarkable_activerecord/matchers/validate_exclusion_of_matcher.rb
|
59
|
+
- lib/remarkable_activerecord/matchers/validate_inclusion_of_matcher.rb
|
60
|
+
- lib/remarkable_activerecord/matchers/validate_length_of_matcher.rb
|
61
|
+
- lib/remarkable_activerecord/matchers/validate_numericality_of_matcher.rb
|
62
|
+
- lib/remarkable_activerecord/matchers/validate_presence_of_matcher.rb
|
63
|
+
- lib/remarkable_activerecord/matchers/validate_uniqueness_of_matcher.rb
|
64
|
+
- lib/remarkable_activerecord.rb
|
65
|
+
- locale/en.yml
|
66
|
+
has_rdoc: true
|
67
|
+
homepage: http://github.com/carlosbrando/remarkable
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
|
71
|
+
require_paths:
|
72
|
+
- lib
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: "0"
|
78
|
+
version:
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: "0"
|
84
|
+
version:
|
85
|
+
requirements: []
|
86
|
+
|
87
|
+
rubyforge_project: remarkable
|
88
|
+
rubygems_version: 1.3.1
|
89
|
+
signing_key:
|
90
|
+
specification_version: 2
|
91
|
+
summary: "Remarkable ActiveRecord: collection of matchers and macros with I18n for ActiveRecord"
|
92
|
+
test_files:
|
93
|
+
- spec/allow_mass_assignment_of_matcher_spec.rb
|
94
|
+
- spec/allow_values_for_matcher_spec.rb
|
95
|
+
- spec/association_matcher_spec.rb
|
96
|
+
- spec/have_column_matcher_spec.rb
|
97
|
+
- spec/have_index_matcher_spec.rb
|
98
|
+
- spec/have_readonly_attributes_matcher_spec.rb
|
99
|
+
- spec/have_scope_matcher_spec.rb
|
100
|
+
- spec/model_builder.rb
|
101
|
+
- spec/rcov.opts
|
102
|
+
- spec/spec.opts
|
103
|
+
- spec/spec_helper.rb
|
104
|
+
- spec/validate_acceptance_of_matcher_spec.rb
|
105
|
+
- spec/validate_associated_matcher_spec.rb
|
106
|
+
- spec/validate_confirmation_of_matcher_spec.rb
|
107
|
+
- spec/validate_exclusion_of_matcher_spec.rb
|
108
|
+
- spec/validate_inclusion_of_matcher_spec.rb
|
109
|
+
- spec/validate_length_of_matcher_spec.rb
|
110
|
+
- spec/validate_numericality_of_matcher_spec.rb
|
111
|
+
- spec/validate_presence_of_matcher_spec.rb
|
112
|
+
- spec/validate_uniqueness_of_matcher_spec.rb
|