rylwin-acts_as_archive 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/.gitignore +9 -0
  2. data/LICENSE +18 -0
  3. data/README.md +130 -0
  4. data/Rakefile +90 -0
  5. data/acts_as_archive.gemspec +32 -0
  6. data/bin/acts_as_archive +2 -0
  7. data/config/externals.yml +12 -0
  8. data/config/gemsets.yml +10 -0
  9. data/config/gemspec.yml +12 -0
  10. data/init.rb +1 -0
  11. data/lib/acts_as_archive.rb +230 -0
  12. data/lib/acts_as_archive/adapters/rails2.rb +1 -0
  13. data/lib/acts_as_archive/adapters/rails3.rb +9 -0
  14. data/lib/acts_as_archive/adapters/sinatra.rb +12 -0
  15. data/lib/acts_as_archive/gems.rb +154 -0
  16. data/rails/init.rb +1 -0
  17. data/spec/Rakefile +9 -0
  18. data/spec/acts_as_archive/gems_spec.rb +249 -0
  19. data/spec/acts_as_archive_spec.rb +113 -0
  20. data/spec/fixtures/config/acts_as_archive.yml +3 -0
  21. data/spec/fixtures/config/database.yml.example +6 -0
  22. data/spec/fixtures/db/migrate/001_belongs_tos.rb +14 -0
  23. data/spec/fixtures/db/migrate/002_records.rb +15 -0
  24. data/spec/fixtures/db/migrate/003_has_ones.rb +15 -0
  25. data/spec/fixtures/db/migrate/004_has_manies.rb +15 -0
  26. data/spec/fixtures/db/migrate/005_has_many_through_throughs.rb +16 -0
  27. data/spec/fixtures/db/migrate/006_has_many_throughs.rb +14 -0
  28. data/spec/fixtures/db/migrate/007_has_one_through_throughs.rb +15 -0
  29. data/spec/fixtures/db/migrate/008_has_one_throughs.rb +15 -0
  30. data/spec/fixtures/frameworks.yml +41 -0
  31. data/spec/fixtures/frameworks/rails2/application_controller.rb +58 -0
  32. data/spec/fixtures/frameworks/rails2/database.yml +12 -0
  33. data/spec/fixtures/frameworks/rails2/init.rb +1 -0
  34. data/spec/fixtures/frameworks/rails2/routes.rb +46 -0
  35. data/spec/fixtures/frameworks/rails3/Gemfile +37 -0
  36. data/spec/fixtures/frameworks/rails3/application_controller.rb +51 -0
  37. data/spec/fixtures/frameworks/rails3/database.yml +12 -0
  38. data/spec/fixtures/frameworks/rails3/routes.rb +60 -0
  39. data/spec/fixtures/frameworks/sinatra/application.rb +59 -0
  40. data/spec/fixtures/gemsets.yml +9 -0
  41. data/spec/fixtures/gemspec.yml +15 -0
  42. data/spec/fixtures/helpers/spec_helper.rb +210 -0
  43. data/spec/fixtures/models/belongs_to.rb +6 -0
  44. data/spec/fixtures/models/has_many.rb +6 -0
  45. data/spec/fixtures/models/has_many_through.rb +7 -0
  46. data/spec/fixtures/models/has_many_through_through.rb +7 -0
  47. data/spec/fixtures/models/has_one.rb +6 -0
  48. data/spec/fixtures/models/has_one_through.rb +6 -0
  49. data/spec/fixtures/models/has_one_through_through.rb +7 -0
  50. data/spec/fixtures/models/record.rb +14 -0
  51. data/spec/run +27 -0
  52. data/spec/spec.opts +1 -0
  53. data/spec/spec_helper.rb +77 -0
  54. metadata +146 -0
metadata ADDED
@@ -0,0 +1,146 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rylwin-acts_as_archive
3
+ version: !ruby/object:Gem::Version
4
+ hash: 15
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
11
+ platform: ruby
12
+ authors:
13
+ - Winton Welsh
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-10-01 00:00:00 -05:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: also_migrate
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: mover
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ type: :runtime
48
+ version_requirements: *id002
49
+ description: Don't delete your records, move them to a different table. Like acts_as_paranoid, but doesn't mess with your SQL queries.
50
+ email: mail@wintoni.us
51
+ executables: []
52
+
53
+ extensions: []
54
+
55
+ extra_rdoc_files: []
56
+
57
+ files:
58
+ - .gitignore
59
+ - LICENSE
60
+ - README.md
61
+ - Rakefile
62
+ - acts_as_archive.gemspec
63
+ - bin/acts_as_archive
64
+ - config/externals.yml
65
+ - config/gemsets.yml
66
+ - config/gemspec.yml
67
+ - init.rb
68
+ - lib/acts_as_archive.rb
69
+ - lib/acts_as_archive/adapters/rails2.rb
70
+ - lib/acts_as_archive/adapters/rails3.rb
71
+ - lib/acts_as_archive/adapters/sinatra.rb
72
+ - lib/acts_as_archive/gems.rb
73
+ - rails/init.rb
74
+ - spec/Rakefile
75
+ - spec/acts_as_archive/gems_spec.rb
76
+ - spec/acts_as_archive_spec.rb
77
+ - spec/fixtures/config/acts_as_archive.yml
78
+ - spec/fixtures/config/database.yml.example
79
+ - spec/fixtures/db/migrate/001_belongs_tos.rb
80
+ - spec/fixtures/db/migrate/002_records.rb
81
+ - spec/fixtures/db/migrate/003_has_ones.rb
82
+ - spec/fixtures/db/migrate/004_has_manies.rb
83
+ - spec/fixtures/db/migrate/005_has_many_through_throughs.rb
84
+ - spec/fixtures/db/migrate/006_has_many_throughs.rb
85
+ - spec/fixtures/db/migrate/007_has_one_through_throughs.rb
86
+ - spec/fixtures/db/migrate/008_has_one_throughs.rb
87
+ - spec/fixtures/frameworks.yml
88
+ - spec/fixtures/frameworks/rails2/application_controller.rb
89
+ - spec/fixtures/frameworks/rails2/database.yml
90
+ - spec/fixtures/frameworks/rails2/init.rb
91
+ - spec/fixtures/frameworks/rails2/routes.rb
92
+ - spec/fixtures/frameworks/rails3/Gemfile
93
+ - spec/fixtures/frameworks/rails3/application_controller.rb
94
+ - spec/fixtures/frameworks/rails3/database.yml
95
+ - spec/fixtures/frameworks/rails3/routes.rb
96
+ - spec/fixtures/frameworks/sinatra/application.rb
97
+ - spec/fixtures/gemsets.yml
98
+ - spec/fixtures/gemspec.yml
99
+ - spec/fixtures/helpers/spec_helper.rb
100
+ - spec/fixtures/models/belongs_to.rb
101
+ - spec/fixtures/models/has_many.rb
102
+ - spec/fixtures/models/has_many_through.rb
103
+ - spec/fixtures/models/has_many_through_through.rb
104
+ - spec/fixtures/models/has_one.rb
105
+ - spec/fixtures/models/has_one_through.rb
106
+ - spec/fixtures/models/has_one_through_through.rb
107
+ - spec/fixtures/models/record.rb
108
+ - spec/run
109
+ - spec/spec.opts
110
+ - spec/spec_helper.rb
111
+ has_rdoc: true
112
+ homepage: http://github.com/winton/acts_as_archive
113
+ licenses: []
114
+
115
+ post_install_message:
116
+ rdoc_options: []
117
+
118
+ require_paths:
119
+ - lib
120
+ required_ruby_version: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ hash: 3
126
+ segments:
127
+ - 0
128
+ version: "0"
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ hash: 3
135
+ segments:
136
+ - 0
137
+ version: "0"
138
+ requirements: []
139
+
140
+ rubyforge_project:
141
+ rubygems_version: 1.3.7
142
+ signing_key:
143
+ specification_version: 3
144
+ summary: Don't delete your records, move them to a different table
145
+ test_files: []
146
+