sequenced 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/.gitignore +9 -0
  2. data/Gemfile +17 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.md +163 -0
  5. data/Rakefile +38 -0
  6. data/lib/sequenced.rb +4 -0
  7. data/lib/sequenced/acts_as_sequenced.rb +117 -0
  8. data/lib/sequenced/exceptions.rb +4 -0
  9. data/lib/sequenced/version.rb +3 -0
  10. data/sequenced.gemspec +20 -0
  11. data/test/dummy/README.rdoc +261 -0
  12. data/test/dummy/Rakefile +7 -0
  13. data/test/dummy/app/assets/javascripts/application.js +15 -0
  14. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  15. data/test/dummy/app/controllers/application_controller.rb +3 -0
  16. data/test/dummy/app/helpers/application_helper.rb +2 -0
  17. data/test/dummy/app/mailers/.gitkeep +0 -0
  18. data/test/dummy/app/models/.gitkeep +0 -0
  19. data/test/dummy/app/models/account.rb +6 -0
  20. data/test/dummy/app/models/address.rb +4 -0
  21. data/test/dummy/app/models/answer.rb +4 -0
  22. data/test/dummy/app/models/comment.rb +8 -0
  23. data/test/dummy/app/models/invoice.rb +4 -0
  24. data/test/dummy/app/models/order.rb +4 -0
  25. data/test/dummy/app/models/question.rb +4 -0
  26. data/test/dummy/app/models/subscription.rb +3 -0
  27. data/test/dummy/app/models/user.rb +4 -0
  28. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  29. data/test/dummy/config.ru +4 -0
  30. data/test/dummy/config/application.rb +56 -0
  31. data/test/dummy/config/boot.rb +10 -0
  32. data/test/dummy/config/database.yml +25 -0
  33. data/test/dummy/config/environment.rb +5 -0
  34. data/test/dummy/config/environments/development.rb +37 -0
  35. data/test/dummy/config/environments/production.rb +67 -0
  36. data/test/dummy/config/environments/test.rb +37 -0
  37. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/test/dummy/config/initializers/inflections.rb +15 -0
  39. data/test/dummy/config/initializers/mime_types.rb +5 -0
  40. data/test/dummy/config/initializers/secret_token.rb +7 -0
  41. data/test/dummy/config/initializers/session_store.rb +8 -0
  42. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  43. data/test/dummy/config/locales/en.yml +5 -0
  44. data/test/dummy/config/routes.rb +58 -0
  45. data/test/dummy/db/migrate/20120219165346_create_questions.rb +10 -0
  46. data/test/dummy/db/migrate/20120219165548_create_answers.rb +13 -0
  47. data/test/dummy/db/migrate/20120219171957_create_accounts.rb +9 -0
  48. data/test/dummy/db/migrate/20120219172039_create_invoices.rb +12 -0
  49. data/test/dummy/db/migrate/20120219172922_create_orders.rb +10 -0
  50. data/test/dummy/db/migrate/20120219174931_create_subscriptions.rb +10 -0
  51. data/test/dummy/db/migrate/20120219175744_create_users.rb +12 -0
  52. data/test/dummy/db/migrate/20120219232323_create_addresses.rb +9 -0
  53. data/test/dummy/db/migrate/20120220000804_create_comments.rb +12 -0
  54. data/test/dummy/db/schema.rb +74 -0
  55. data/test/dummy/lib/assets/.gitkeep +0 -0
  56. data/test/dummy/log/.gitkeep +0 -0
  57. data/test/dummy/public/404.html +26 -0
  58. data/test/dummy/public/422.html +26 -0
  59. data/test/dummy/public/500.html +25 -0
  60. data/test/dummy/public/favicon.ico +0 -0
  61. data/test/dummy/script/rails +6 -0
  62. data/test/sequenced_test.rb +100 -0
  63. data/test/test_helper.rb +13 -0
  64. metadata +224 -0
@@ -0,0 +1,13 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+ ENV["RAILS_ROOT"] = File.expand_path("../dummy", __FILE__)
4
+
5
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
6
+ require "rails/test_help"
7
+
8
+ Rails.backtrace_cleaner.remove_silencers!
9
+
10
+ ActiveRecord::Migrator.migrate(File.expand_path("../dummy/db/migrate/", __FILE__))
11
+
12
+ # Load support files
13
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
metadata ADDED
@@ -0,0 +1,224 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sequenced
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - Derrick Reimer
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2012-02-19 00:00:00 -08:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: activesupport
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 3.0.0
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: activerecord
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 3.0.0
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: rails
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 3.1.0
46
+ type: :development
47
+ prerelease: false
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: sqlite3
51
+ requirement: &id004 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: "0"
57
+ type: :development
58
+ prerelease: false
59
+ version_requirements: *id004
60
+ description: Sequenced is a simple Rails 3 engine that generates scoped sequential IDs for ActiveRecord models
61
+ email:
62
+ - derrickreimer@gmail.com
63
+ executables: []
64
+
65
+ extensions: []
66
+
67
+ extra_rdoc_files: []
68
+
69
+ files:
70
+ - .gitignore
71
+ - Gemfile
72
+ - MIT-LICENSE
73
+ - README.md
74
+ - Rakefile
75
+ - lib/sequenced.rb
76
+ - lib/sequenced/acts_as_sequenced.rb
77
+ - lib/sequenced/exceptions.rb
78
+ - lib/sequenced/version.rb
79
+ - sequenced.gemspec
80
+ - test/dummy/README.rdoc
81
+ - test/dummy/Rakefile
82
+ - test/dummy/app/assets/javascripts/application.js
83
+ - test/dummy/app/assets/stylesheets/application.css
84
+ - test/dummy/app/controllers/application_controller.rb
85
+ - test/dummy/app/helpers/application_helper.rb
86
+ - test/dummy/app/mailers/.gitkeep
87
+ - test/dummy/app/models/.gitkeep
88
+ - test/dummy/app/models/account.rb
89
+ - test/dummy/app/models/address.rb
90
+ - test/dummy/app/models/answer.rb
91
+ - test/dummy/app/models/comment.rb
92
+ - test/dummy/app/models/invoice.rb
93
+ - test/dummy/app/models/order.rb
94
+ - test/dummy/app/models/question.rb
95
+ - test/dummy/app/models/subscription.rb
96
+ - test/dummy/app/models/user.rb
97
+ - test/dummy/app/views/layouts/application.html.erb
98
+ - test/dummy/config.ru
99
+ - test/dummy/config/application.rb
100
+ - test/dummy/config/boot.rb
101
+ - test/dummy/config/database.yml
102
+ - test/dummy/config/environment.rb
103
+ - test/dummy/config/environments/development.rb
104
+ - test/dummy/config/environments/production.rb
105
+ - test/dummy/config/environments/test.rb
106
+ - test/dummy/config/initializers/backtrace_silencers.rb
107
+ - test/dummy/config/initializers/inflections.rb
108
+ - test/dummy/config/initializers/mime_types.rb
109
+ - test/dummy/config/initializers/secret_token.rb
110
+ - test/dummy/config/initializers/session_store.rb
111
+ - test/dummy/config/initializers/wrap_parameters.rb
112
+ - test/dummy/config/locales/en.yml
113
+ - test/dummy/config/routes.rb
114
+ - test/dummy/db/migrate/20120219165346_create_questions.rb
115
+ - test/dummy/db/migrate/20120219165548_create_answers.rb
116
+ - test/dummy/db/migrate/20120219171957_create_accounts.rb
117
+ - test/dummy/db/migrate/20120219172039_create_invoices.rb
118
+ - test/dummy/db/migrate/20120219172922_create_orders.rb
119
+ - test/dummy/db/migrate/20120219174931_create_subscriptions.rb
120
+ - test/dummy/db/migrate/20120219175744_create_users.rb
121
+ - test/dummy/db/migrate/20120219232323_create_addresses.rb
122
+ - test/dummy/db/migrate/20120220000804_create_comments.rb
123
+ - test/dummy/db/schema.rb
124
+ - test/dummy/lib/assets/.gitkeep
125
+ - test/dummy/log/.gitkeep
126
+ - test/dummy/public/404.html
127
+ - test/dummy/public/422.html
128
+ - test/dummy/public/500.html
129
+ - test/dummy/public/favicon.ico
130
+ - test/dummy/script/rails
131
+ - test/sequenced_test.rb
132
+ - test/test_helper.rb
133
+ - test/dummy/db/development.sqlite3
134
+ - test/dummy/db/test.sqlite3
135
+ - test/dummy/log/development.log
136
+ - test/dummy/log/test.log
137
+ has_rdoc: true
138
+ homepage: https://github.com/djreimer/sequenced
139
+ licenses: []
140
+
141
+ post_install_message:
142
+ rdoc_options: []
143
+
144
+ require_paths:
145
+ - lib
146
+ required_ruby_version: !ruby/object:Gem::Requirement
147
+ none: false
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ hash: 2780405698639159244
152
+ segments:
153
+ - 0
154
+ version: "0"
155
+ required_rubygems_version: !ruby/object:Gem::Requirement
156
+ none: false
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ hash: 2780405698639159244
161
+ segments:
162
+ - 0
163
+ version: "0"
164
+ requirements: []
165
+
166
+ rubyforge_project:
167
+ rubygems_version: 1.6.1
168
+ signing_key:
169
+ specification_version: 3
170
+ summary: Generate scoped sequential IDs for ActiveRecord models
171
+ test_files:
172
+ - test/dummy/app/assets/javascripts/application.js
173
+ - test/dummy/app/assets/stylesheets/application.css
174
+ - test/dummy/app/controllers/application_controller.rb
175
+ - test/dummy/app/helpers/application_helper.rb
176
+ - test/dummy/app/models/account.rb
177
+ - test/dummy/app/models/address.rb
178
+ - test/dummy/app/models/answer.rb
179
+ - test/dummy/app/models/comment.rb
180
+ - test/dummy/app/models/invoice.rb
181
+ - test/dummy/app/models/order.rb
182
+ - test/dummy/app/models/question.rb
183
+ - test/dummy/app/models/subscription.rb
184
+ - test/dummy/app/models/user.rb
185
+ - test/dummy/app/views/layouts/application.html.erb
186
+ - test/dummy/config/application.rb
187
+ - test/dummy/config/boot.rb
188
+ - test/dummy/config/database.yml
189
+ - test/dummy/config/environment.rb
190
+ - test/dummy/config/environments/development.rb
191
+ - test/dummy/config/environments/production.rb
192
+ - test/dummy/config/environments/test.rb
193
+ - test/dummy/config/initializers/backtrace_silencers.rb
194
+ - test/dummy/config/initializers/inflections.rb
195
+ - test/dummy/config/initializers/mime_types.rb
196
+ - test/dummy/config/initializers/secret_token.rb
197
+ - test/dummy/config/initializers/session_store.rb
198
+ - test/dummy/config/initializers/wrap_parameters.rb
199
+ - test/dummy/config/locales/en.yml
200
+ - test/dummy/config/routes.rb
201
+ - test/dummy/config.ru
202
+ - test/dummy/db/development.sqlite3
203
+ - test/dummy/db/migrate/20120219165346_create_questions.rb
204
+ - test/dummy/db/migrate/20120219165548_create_answers.rb
205
+ - test/dummy/db/migrate/20120219171957_create_accounts.rb
206
+ - test/dummy/db/migrate/20120219172039_create_invoices.rb
207
+ - test/dummy/db/migrate/20120219172922_create_orders.rb
208
+ - test/dummy/db/migrate/20120219174931_create_subscriptions.rb
209
+ - test/dummy/db/migrate/20120219175744_create_users.rb
210
+ - test/dummy/db/migrate/20120219232323_create_addresses.rb
211
+ - test/dummy/db/migrate/20120220000804_create_comments.rb
212
+ - test/dummy/db/schema.rb
213
+ - test/dummy/db/test.sqlite3
214
+ - test/dummy/log/development.log
215
+ - test/dummy/log/test.log
216
+ - test/dummy/public/404.html
217
+ - test/dummy/public/422.html
218
+ - test/dummy/public/500.html
219
+ - test/dummy/public/favicon.ico
220
+ - test/dummy/Rakefile
221
+ - test/dummy/README.rdoc
222
+ - test/dummy/script/rails
223
+ - test/sequenced_test.rb
224
+ - test/test_helper.rb