secretary-rails 1.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +186 -0
  3. data/Rakefile +9 -0
  4. data/app/models/secretary/version.rb +93 -0
  5. data/lib/generators/secretary/install_generator.rb +23 -0
  6. data/lib/generators/secretary/templates/versions_migration.rb +18 -0
  7. data/lib/secretary/config.rb +19 -0
  8. data/lib/secretary/engine.rb +4 -0
  9. data/lib/secretary/errors.rb +10 -0
  10. data/lib/secretary/gem_version.rb +3 -0
  11. data/lib/secretary/has_secretary.rb +75 -0
  12. data/lib/secretary/tracks_association.rb +146 -0
  13. data/lib/secretary/versioned_attributes.rb +58 -0
  14. data/lib/secretary-rails.rb +3 -0
  15. data/lib/secretary.rb +40 -0
  16. data/lib/tasks/secretary_tasks.rake +6 -0
  17. data/spec/factories.rb +32 -0
  18. data/spec/internal/app/models/animal.rb +7 -0
  19. data/spec/internal/app/models/hobby.rb +3 -0
  20. data/spec/internal/app/models/location.rb +6 -0
  21. data/spec/internal/app/models/person.rb +14 -0
  22. data/spec/internal/app/models/story.rb +3 -0
  23. data/spec/internal/app/models/user.rb +3 -0
  24. data/spec/internal/config/database.yml +3 -0
  25. data/spec/internal/config/routes.rb +2 -0
  26. data/spec/internal/db/combustion_test.sqlite +0 -0
  27. data/spec/internal/db/schema.rb +50 -0
  28. data/spec/internal/log/test.log +23177 -0
  29. data/spec/lib/generators/secretary/install_generator_spec.rb +17 -0
  30. data/spec/lib/secretary/config_spec.rb +9 -0
  31. data/spec/lib/secretary/has_secretary_spec.rb +116 -0
  32. data/spec/lib/secretary/tracks_association_spec.rb +214 -0
  33. data/spec/lib/secretary/versioned_attributes_spec.rb +63 -0
  34. data/spec/lib/secretary_spec.rb +44 -0
  35. data/spec/models/secretary/version_spec.rb +68 -0
  36. data/spec/spec_helper.rb +20 -0
  37. data/spec/tmp/db/migrate/20131105082639_create_versions.rb +18 -0
  38. metadata +181 -0
metadata ADDED
@@ -0,0 +1,181 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: secretary-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.beta1
5
+ prerelease: 6
6
+ platform: ruby
7
+ authors:
8
+ - Bryan Ricker
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-11-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: &70269235155200 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70269235155200
25
+ - !ruby/object:Gem::Dependency
26
+ name: activerecord
27
+ requirement: &70269235154700 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 3.2.0
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70269235154700
36
+ - !ruby/object:Gem::Dependency
37
+ name: diffy
38
+ requirement: &70269235154240 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 3.0.1
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70269235154240
47
+ - !ruby/object:Gem::Dependency
48
+ name: sqlite3
49
+ requirement: &70269235153860 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70269235153860
58
+ - !ruby/object:Gem::Dependency
59
+ name: rspec-rails
60
+ requirement: &70269230763960 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70269230763960
69
+ - !ruby/object:Gem::Dependency
70
+ name: appraisal
71
+ requirement: &70269230762020 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: 1.0.0.beta
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *70269230762020
80
+ - !ruby/object:Gem::Dependency
81
+ name: factory_girl
82
+ requirement: &70269230760260 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *70269230760260
91
+ description: A Rails engine that provides simple versioning for your records.
92
+ email:
93
+ - bricker@scpr.org
94
+ executables: []
95
+ extensions: []
96
+ extra_rdoc_files: []
97
+ files:
98
+ - app/models/secretary/version.rb
99
+ - lib/generators/secretary/install_generator.rb
100
+ - lib/generators/secretary/templates/versions_migration.rb
101
+ - lib/secretary/config.rb
102
+ - lib/secretary/engine.rb
103
+ - lib/secretary/errors.rb
104
+ - lib/secretary/gem_version.rb
105
+ - lib/secretary/has_secretary.rb
106
+ - lib/secretary/tracks_association.rb
107
+ - lib/secretary/versioned_attributes.rb
108
+ - lib/secretary-rails.rb
109
+ - lib/secretary.rb
110
+ - lib/tasks/secretary_tasks.rake
111
+ - MIT-LICENSE
112
+ - Rakefile
113
+ - README.md
114
+ - spec/factories.rb
115
+ - spec/internal/app/models/animal.rb
116
+ - spec/internal/app/models/hobby.rb
117
+ - spec/internal/app/models/location.rb
118
+ - spec/internal/app/models/person.rb
119
+ - spec/internal/app/models/story.rb
120
+ - spec/internal/app/models/user.rb
121
+ - spec/internal/config/database.yml
122
+ - spec/internal/config/routes.rb
123
+ - spec/internal/db/combustion_test.sqlite
124
+ - spec/internal/db/schema.rb
125
+ - spec/internal/log/test.log
126
+ - spec/lib/generators/secretary/install_generator_spec.rb
127
+ - spec/lib/secretary/config_spec.rb
128
+ - spec/lib/secretary/has_secretary_spec.rb
129
+ - spec/lib/secretary/tracks_association_spec.rb
130
+ - spec/lib/secretary/versioned_attributes_spec.rb
131
+ - spec/lib/secretary_spec.rb
132
+ - spec/models/secretary/version_spec.rb
133
+ - spec/spec_helper.rb
134
+ - spec/tmp/db/migrate/20131105082639_create_versions.rb
135
+ homepage: https://github.com/scpr/secretary-rails
136
+ licenses:
137
+ - MIT
138
+ post_install_message:
139
+ rdoc_options: []
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ none: false
144
+ requirements:
145
+ - - ! '>='
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ required_rubygems_version: !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ! '>'
152
+ - !ruby/object:Gem::Version
153
+ version: 1.3.1
154
+ requirements: []
155
+ rubyforge_project:
156
+ rubygems_version: 1.8.11
157
+ signing_key:
158
+ specification_version: 3
159
+ summary: Light-weight model versioning for ActiveRecord.
160
+ test_files:
161
+ - spec/factories.rb
162
+ - spec/internal/app/models/animal.rb
163
+ - spec/internal/app/models/hobby.rb
164
+ - spec/internal/app/models/location.rb
165
+ - spec/internal/app/models/person.rb
166
+ - spec/internal/app/models/story.rb
167
+ - spec/internal/app/models/user.rb
168
+ - spec/internal/config/database.yml
169
+ - spec/internal/config/routes.rb
170
+ - spec/internal/db/combustion_test.sqlite
171
+ - spec/internal/db/schema.rb
172
+ - spec/internal/log/test.log
173
+ - spec/lib/generators/secretary/install_generator_spec.rb
174
+ - spec/lib/secretary/config_spec.rb
175
+ - spec/lib/secretary/has_secretary_spec.rb
176
+ - spec/lib/secretary/tracks_association_spec.rb
177
+ - spec/lib/secretary/versioned_attributes_spec.rb
178
+ - spec/lib/secretary_spec.rb
179
+ - spec/models/secretary/version_spec.rb
180
+ - spec/spec_helper.rb
181
+ - spec/tmp/db/migrate/20131105082639_create_versions.rb