sorcery 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sorcery might be problematic. Click here for more details.

Files changed (93) hide show
  1. data/Gemfile +5 -2
  2. data/Gemfile.lock +12 -0
  3. data/README.rdoc +12 -7
  4. data/VERSION +1 -1
  5. data/lib/sorcery/controller/submodules/brute_force_protection.rb +1 -1
  6. data/lib/sorcery/crypto_providers/common.rb +2 -2
  7. data/lib/sorcery/engine.rb +0 -4
  8. data/lib/sorcery/initializers/initializer.rb +1 -0
  9. data/lib/sorcery/model/adapters/active_record.rb +28 -0
  10. data/lib/sorcery/model/adapters/mongoid.rb +59 -0
  11. data/lib/sorcery/model/submodules/activity_logging.rb +12 -3
  12. data/lib/sorcery/model/submodules/brute_force_protection.rb +6 -1
  13. data/lib/sorcery/model/submodules/external.rb +1 -0
  14. data/lib/sorcery/model/submodules/remember_me.rb +15 -1
  15. data/lib/sorcery/model/submodules/reset_password.rb +10 -3
  16. data/lib/sorcery/model/submodules/user_activation.rb +11 -1
  17. data/lib/sorcery/model/temporary_token.rb +1 -1
  18. data/lib/sorcery/model.rb +15 -7
  19. data/lib/sorcery/sinatra.rb +0 -1
  20. data/lib/sorcery/test_helpers/internal/sinatra.rb +6 -54
  21. data/lib/sorcery/test_helpers/internal.rb +2 -1
  22. data/lib/sorcery/test_helpers/sinatra.rb +4 -1
  23. data/lib/sorcery.rb +22 -1
  24. data/sorcery.gemspec +107 -10
  25. data/spec/Gemfile.lock +1 -1
  26. data/spec/rails3/Gemfile.lock +5 -5
  27. data/spec/rails3/spec/user_reset_password_spec.rb +2 -2
  28. data/spec/rails3/spec/user_spec.rb +0 -1
  29. data/spec/rails3_mongoid/.gitignore +4 -0
  30. data/spec/rails3_mongoid/.rspec +1 -0
  31. data/spec/rails3_mongoid/Gemfile +14 -0
  32. data/spec/rails3_mongoid/Gemfile.lock +146 -0
  33. data/spec/rails3_mongoid/Rakefile +11 -0
  34. data/spec/rails3_mongoid/app/controllers/application_controller.rb +108 -0
  35. data/spec/rails3_mongoid/app/helpers/application_helper.rb +2 -0
  36. data/spec/rails3_mongoid/app/mailers/sorcery_mailer.rb +25 -0
  37. data/spec/rails3_mongoid/app/models/authentication.rb +7 -0
  38. data/spec/rails3_mongoid/app/models/user.rb +5 -0
  39. data/spec/rails3_mongoid/app/views/layouts/application.html.erb +14 -0
  40. data/spec/rails3_mongoid/app/views/sorcery_mailer/activation_email.html.erb +17 -0
  41. data/spec/rails3_mongoid/app/views/sorcery_mailer/activation_email.text.erb +9 -0
  42. data/spec/rails3_mongoid/app/views/sorcery_mailer/activation_success_email.html.erb +17 -0
  43. data/spec/rails3_mongoid/app/views/sorcery_mailer/activation_success_email.text.erb +9 -0
  44. data/spec/rails3_mongoid/app/views/sorcery_mailer/reset_password_email.html.erb +16 -0
  45. data/spec/rails3_mongoid/app/views/sorcery_mailer/reset_password_email.text.erb +8 -0
  46. data/spec/rails3_mongoid/config/application.rb +51 -0
  47. data/spec/rails3_mongoid/config/boot.rb +13 -0
  48. data/spec/rails3_mongoid/config/environment.rb +5 -0
  49. data/spec/rails3_mongoid/config/environments/development.rb +26 -0
  50. data/spec/rails3_mongoid/config/environments/in_memory.rb +0 -0
  51. data/spec/rails3_mongoid/config/environments/production.rb +49 -0
  52. data/spec/rails3_mongoid/config/environments/test.rb +35 -0
  53. data/spec/rails3_mongoid/config/initializers/backtrace_silencers.rb +7 -0
  54. data/spec/rails3_mongoid/config/initializers/inflections.rb +10 -0
  55. data/spec/rails3_mongoid/config/initializers/mime_types.rb +5 -0
  56. data/spec/rails3_mongoid/config/initializers/secret_token.rb +7 -0
  57. data/spec/rails3_mongoid/config/initializers/session_store.rb +8 -0
  58. data/spec/rails3_mongoid/config/locales/en.yml +5 -0
  59. data/spec/rails3_mongoid/config/mongoid.yml +7 -0
  60. data/spec/rails3_mongoid/config/routes.rb +59 -0
  61. data/spec/rails3_mongoid/config.ru +4 -0
  62. data/spec/rails3_mongoid/db/schema.rb +23 -0
  63. data/spec/rails3_mongoid/db/seeds.rb +7 -0
  64. data/spec/rails3_mongoid/lib/tasks/.gitkeep +0 -0
  65. data/spec/rails3_mongoid/public/404.html +26 -0
  66. data/spec/rails3_mongoid/public/422.html +26 -0
  67. data/spec/rails3_mongoid/public/500.html +26 -0
  68. data/spec/rails3_mongoid/public/favicon.ico +0 -0
  69. data/spec/rails3_mongoid/public/images/rails.png +0 -0
  70. data/spec/rails3_mongoid/public/javascripts/application.js +2 -0
  71. data/spec/rails3_mongoid/public/javascripts/controls.js +965 -0
  72. data/spec/rails3_mongoid/public/javascripts/dragdrop.js +974 -0
  73. data/spec/rails3_mongoid/public/javascripts/effects.js +1123 -0
  74. data/spec/rails3_mongoid/public/javascripts/prototype.js +6001 -0
  75. data/spec/rails3_mongoid/public/javascripts/rails.js +175 -0
  76. data/spec/rails3_mongoid/public/robots.txt +5 -0
  77. data/spec/rails3_mongoid/public/stylesheets/.gitkeep +0 -0
  78. data/spec/rails3_mongoid/script/rails +6 -0
  79. data/spec/rails3_mongoid/spec/spec.opts +2 -0
  80. data/spec/rails3_mongoid/spec/spec_helper.orig.rb +27 -0
  81. data/spec/rails3_mongoid/spec/spec_helper.rb +55 -0
  82. data/spec/rails3_mongoid/spec/user_activation_spec.rb +178 -0
  83. data/spec/rails3_mongoid/spec/user_activity_logging_spec.rb +31 -0
  84. data/spec/rails3_mongoid/spec/user_brute_force_protection_spec.rb +41 -0
  85. data/spec/rails3_mongoid/spec/user_oauth_spec.rb +34 -0
  86. data/spec/rails3_mongoid/spec/user_remember_me_spec.rb +51 -0
  87. data/spec/rails3_mongoid/spec/user_reset_password_spec.rb +174 -0
  88. data/spec/rails3_mongoid/spec/user_spec.rb +329 -0
  89. data/spec/rails3_mongoid/vendor/plugins/.gitkeep +0 -0
  90. data/spec/sinatra/Gemfile.lock +5 -5
  91. data/spec/sinatra/spec/spec_helper.rb +0 -1
  92. metadata +150 -37
  93. data/spec/untitled folder +0 -18
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sorcery
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.2
5
+ version: 0.5.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Noam Ben Ari
@@ -10,78 +10,100 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-30 00:00:00 +03:00
13
+ date: 2011-05-10 00:00:00 +03:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
- name: rails
17
+ name: oauth
18
18
  requirement: &id001 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 3.0.0
23
+ version: 0.4.4
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency
28
- name: json
28
+ name: oauth2
29
29
  requirement: &id002 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 1.5.1
34
+ version: 0.1.1
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: *id002
38
38
  - !ruby/object:Gem::Dependency
39
- name: oauth
39
+ name: rails
40
40
  requirement: &id003 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: 0.4.4
46
- type: :runtime
45
+ version: 3.0.0
46
+ type: :development
47
47
  prerelease: false
48
48
  version_requirements: *id003
49
49
  - !ruby/object:Gem::Dependency
50
- name: oauth2
50
+ name: json
51
51
  requirement: &id004 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: 0.1.1
57
- type: :runtime
56
+ version: 1.5.1
57
+ type: :development
58
58
  prerelease: false
59
59
  version_requirements: *id004
60
60
  - !ruby/object:Gem::Dependency
61
- name: rspec
61
+ name: mongoid
62
62
  requirement: &id005 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ~>
66
66
  - !ruby/object:Gem::Version
67
- version: 2.5.0
67
+ version: "2.0"
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: *id005
71
71
  - !ruby/object:Gem::Dependency
72
- name: rspec-rails
72
+ name: bson_ext
73
73
  requirement: &id006 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ~>
77
77
  - !ruby/object:Gem::Version
78
- version: 2.5.0
78
+ version: "1.3"
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: *id006
82
82
  - !ruby/object:Gem::Dependency
83
- name: ruby-debug19
83
+ name: rspec
84
84
  requirement: &id007 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 2.5.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: *id007
93
+ - !ruby/object:Gem::Dependency
94
+ name: rspec-rails
95
+ requirement: &id008 !ruby/object:Gem::Requirement
96
+ none: false
97
+ requirements:
98
+ - - ~>
99
+ - !ruby/object:Gem::Version
100
+ version: 2.5.0
101
+ type: :development
102
+ prerelease: false
103
+ version_requirements: *id008
104
+ - !ruby/object:Gem::Dependency
105
+ name: ruby-debug19
106
+ requirement: &id009 !ruby/object:Gem::Requirement
85
107
  none: false
86
108
  requirements:
87
109
  - - ">="
@@ -89,10 +111,10 @@ dependencies:
89
111
  version: "0"
90
112
  type: :development
91
113
  prerelease: false
92
- version_requirements: *id007
114
+ version_requirements: *id009
93
115
  - !ruby/object:Gem::Dependency
94
116
  name: sqlite3-ruby
95
- requirement: &id008 !ruby/object:Gem::Requirement
117
+ requirement: &id010 !ruby/object:Gem::Requirement
96
118
  none: false
97
119
  requirements:
98
120
  - - ">="
@@ -100,10 +122,10 @@ dependencies:
100
122
  version: "0"
101
123
  type: :development
102
124
  prerelease: false
103
- version_requirements: *id008
125
+ version_requirements: *id010
104
126
  - !ruby/object:Gem::Dependency
105
127
  name: yard
106
- requirement: &id009 !ruby/object:Gem::Requirement
128
+ requirement: &id011 !ruby/object:Gem::Requirement
107
129
  none: false
108
130
  requirements:
109
131
  - - ~>
@@ -111,10 +133,10 @@ dependencies:
111
133
  version: 0.6.0
112
134
  type: :development
113
135
  prerelease: false
114
- version_requirements: *id009
136
+ version_requirements: *id011
115
137
  - !ruby/object:Gem::Dependency
116
138
  name: bundler
117
- requirement: &id010 !ruby/object:Gem::Requirement
139
+ requirement: &id012 !ruby/object:Gem::Requirement
118
140
  none: false
119
141
  requirements:
120
142
  - - ~>
@@ -122,10 +144,10 @@ dependencies:
122
144
  version: 1.0.0
123
145
  type: :development
124
146
  prerelease: false
125
- version_requirements: *id010
147
+ version_requirements: *id012
126
148
  - !ruby/object:Gem::Dependency
127
149
  name: jeweler
128
- requirement: &id011 !ruby/object:Gem::Requirement
150
+ requirement: &id013 !ruby/object:Gem::Requirement
129
151
  none: false
130
152
  requirements:
131
153
  - - ~>
@@ -133,10 +155,10 @@ dependencies:
133
155
  version: 1.5.2
134
156
  type: :development
135
157
  prerelease: false
136
- version_requirements: *id011
158
+ version_requirements: *id013
137
159
  - !ruby/object:Gem::Dependency
138
160
  name: simplecov
139
- requirement: &id012 !ruby/object:Gem::Requirement
161
+ requirement: &id014 !ruby/object:Gem::Requirement
140
162
  none: false
141
163
  requirements:
142
164
  - - ">="
@@ -144,10 +166,10 @@ dependencies:
144
166
  version: 0.3.8
145
167
  type: :development
146
168
  prerelease: false
147
- version_requirements: *id012
169
+ version_requirements: *id014
148
170
  - !ruby/object:Gem::Dependency
149
171
  name: timecop
150
- requirement: &id013 !ruby/object:Gem::Requirement
172
+ requirement: &id015 !ruby/object:Gem::Requirement
151
173
  none: false
152
174
  requirements:
153
175
  - - ">="
@@ -155,10 +177,10 @@ dependencies:
155
177
  version: "0"
156
178
  type: :development
157
179
  prerelease: false
158
- version_requirements: *id013
180
+ version_requirements: *id015
159
181
  - !ruby/object:Gem::Dependency
160
182
  name: bcrypt-ruby
161
- requirement: &id014 !ruby/object:Gem::Requirement
183
+ requirement: &id016 !ruby/object:Gem::Requirement
162
184
  none: false
163
185
  requirements:
164
186
  - - ~>
@@ -166,10 +188,10 @@ dependencies:
166
188
  version: 2.1.4
167
189
  type: :runtime
168
190
  prerelease: false
169
- version_requirements: *id014
191
+ version_requirements: *id016
170
192
  - !ruby/object:Gem::Dependency
171
193
  name: oauth
172
- requirement: &id015 !ruby/object:Gem::Requirement
194
+ requirement: &id017 !ruby/object:Gem::Requirement
173
195
  none: false
174
196
  requirements:
175
197
  - - ">="
@@ -177,10 +199,10 @@ dependencies:
177
199
  version: 0.4.4
178
200
  type: :runtime
179
201
  prerelease: false
180
- version_requirements: *id015
202
+ version_requirements: *id017
181
203
  - !ruby/object:Gem::Dependency
182
204
  name: oauth2
183
- requirement: &id016 !ruby/object:Gem::Requirement
205
+ requirement: &id018 !ruby/object:Gem::Requirement
184
206
  none: false
185
207
  requirements:
186
208
  - - ">="
@@ -188,7 +210,7 @@ dependencies:
188
210
  version: 0.1.1
189
211
  type: :runtime
190
212
  prerelease: false
191
- version_requirements: *id016
213
+ version_requirements: *id018
192
214
  description: Provides common authentication needs such as signing in/out, activating by email and resetting password.
193
215
  email: nbenari@gmail.com
194
216
  executables: []
@@ -238,6 +260,8 @@ files:
238
260
  - lib/sorcery/engine.rb
239
261
  - lib/sorcery/initializers/initializer.rb
240
262
  - lib/sorcery/model.rb
263
+ - lib/sorcery/model/adapters/active_record.rb
264
+ - lib/sorcery/model/adapters/mongoid.rb
241
265
  - lib/sorcery/model/submodules/activity_logging.rb
242
266
  - lib/sorcery/model/submodules/brute_force_protection.rb
243
267
  - lib/sorcery/model/submodules/external.rb
@@ -336,6 +360,67 @@ files:
336
360
  - spec/rails3/spec/user_reset_password_spec.rb
337
361
  - spec/rails3/spec/user_spec.rb
338
362
  - spec/rails3/vendor/plugins/.gitkeep
363
+ - spec/rails3_mongoid/.gitignore
364
+ - spec/rails3_mongoid/.rspec
365
+ - spec/rails3_mongoid/Gemfile
366
+ - spec/rails3_mongoid/Gemfile.lock
367
+ - spec/rails3_mongoid/Rakefile
368
+ - spec/rails3_mongoid/app/controllers/application_controller.rb
369
+ - spec/rails3_mongoid/app/helpers/application_helper.rb
370
+ - spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
371
+ - spec/rails3_mongoid/app/models/authentication.rb
372
+ - spec/rails3_mongoid/app/models/user.rb
373
+ - spec/rails3_mongoid/app/views/layouts/application.html.erb
374
+ - spec/rails3_mongoid/app/views/sorcery_mailer/activation_email.html.erb
375
+ - spec/rails3_mongoid/app/views/sorcery_mailer/activation_email.text.erb
376
+ - spec/rails3_mongoid/app/views/sorcery_mailer/activation_success_email.html.erb
377
+ - spec/rails3_mongoid/app/views/sorcery_mailer/activation_success_email.text.erb
378
+ - spec/rails3_mongoid/app/views/sorcery_mailer/reset_password_email.html.erb
379
+ - spec/rails3_mongoid/app/views/sorcery_mailer/reset_password_email.text.erb
380
+ - spec/rails3_mongoid/config.ru
381
+ - spec/rails3_mongoid/config/application.rb
382
+ - spec/rails3_mongoid/config/boot.rb
383
+ - spec/rails3_mongoid/config/environment.rb
384
+ - spec/rails3_mongoid/config/environments/development.rb
385
+ - spec/rails3_mongoid/config/environments/in_memory.rb
386
+ - spec/rails3_mongoid/config/environments/production.rb
387
+ - spec/rails3_mongoid/config/environments/test.rb
388
+ - spec/rails3_mongoid/config/initializers/backtrace_silencers.rb
389
+ - spec/rails3_mongoid/config/initializers/inflections.rb
390
+ - spec/rails3_mongoid/config/initializers/mime_types.rb
391
+ - spec/rails3_mongoid/config/initializers/secret_token.rb
392
+ - spec/rails3_mongoid/config/initializers/session_store.rb
393
+ - spec/rails3_mongoid/config/locales/en.yml
394
+ - spec/rails3_mongoid/config/mongoid.yml
395
+ - spec/rails3_mongoid/config/routes.rb
396
+ - spec/rails3_mongoid/db/schema.rb
397
+ - spec/rails3_mongoid/db/seeds.rb
398
+ - spec/rails3_mongoid/lib/tasks/.gitkeep
399
+ - spec/rails3_mongoid/public/404.html
400
+ - spec/rails3_mongoid/public/422.html
401
+ - spec/rails3_mongoid/public/500.html
402
+ - spec/rails3_mongoid/public/favicon.ico
403
+ - spec/rails3_mongoid/public/images/rails.png
404
+ - spec/rails3_mongoid/public/javascripts/application.js
405
+ - spec/rails3_mongoid/public/javascripts/controls.js
406
+ - spec/rails3_mongoid/public/javascripts/dragdrop.js
407
+ - spec/rails3_mongoid/public/javascripts/effects.js
408
+ - spec/rails3_mongoid/public/javascripts/prototype.js
409
+ - spec/rails3_mongoid/public/javascripts/rails.js
410
+ - spec/rails3_mongoid/public/robots.txt
411
+ - spec/rails3_mongoid/public/stylesheets/.gitkeep
412
+ - spec/rails3_mongoid/script/rails
413
+ - spec/rails3_mongoid/spec/spec.opts
414
+ - spec/rails3_mongoid/spec/spec_helper.orig.rb
415
+ - spec/rails3_mongoid/spec/spec_helper.rb
416
+ - spec/rails3_mongoid/spec/user_activation_spec.rb
417
+ - spec/rails3_mongoid/spec/user_activity_logging_spec.rb
418
+ - spec/rails3_mongoid/spec/user_brute_force_protection_spec.rb
419
+ - spec/rails3_mongoid/spec/user_oauth_spec.rb
420
+ - spec/rails3_mongoid/spec/user_remember_me_spec.rb
421
+ - spec/rails3_mongoid/spec/user_reset_password_spec.rb
422
+ - spec/rails3_mongoid/spec/user_spec.rb
423
+ - spec/rails3_mongoid/vendor/plugins/.gitkeep
339
424
  - spec/sinatra/Gemfile
340
425
  - spec/sinatra/Gemfile.lock
341
426
  - spec/sinatra/Rakefile
@@ -365,7 +450,6 @@ files:
365
450
  - spec/sorcery_crypto_providers_spec.rb
366
451
  - spec/spec.opts
367
452
  - spec/spec_helper.rb
368
- - spec/untitled folder
369
453
  has_rdoc: true
370
454
  homepage: http://github.com/NoamB/sorcery
371
455
  licenses:
@@ -439,6 +523,35 @@ test_files:
439
523
  - spec/rails3/spec/user_remember_me_spec.rb
440
524
  - spec/rails3/spec/user_reset_password_spec.rb
441
525
  - spec/rails3/spec/user_spec.rb
526
+ - spec/rails3_mongoid/app/controllers/application_controller.rb
527
+ - spec/rails3_mongoid/app/helpers/application_helper.rb
528
+ - spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
529
+ - spec/rails3_mongoid/app/models/authentication.rb
530
+ - spec/rails3_mongoid/app/models/user.rb
531
+ - spec/rails3_mongoid/config/application.rb
532
+ - spec/rails3_mongoid/config/boot.rb
533
+ - spec/rails3_mongoid/config/environment.rb
534
+ - spec/rails3_mongoid/config/environments/development.rb
535
+ - spec/rails3_mongoid/config/environments/in_memory.rb
536
+ - spec/rails3_mongoid/config/environments/production.rb
537
+ - spec/rails3_mongoid/config/environments/test.rb
538
+ - spec/rails3_mongoid/config/initializers/backtrace_silencers.rb
539
+ - spec/rails3_mongoid/config/initializers/inflections.rb
540
+ - spec/rails3_mongoid/config/initializers/mime_types.rb
541
+ - spec/rails3_mongoid/config/initializers/secret_token.rb
542
+ - spec/rails3_mongoid/config/initializers/session_store.rb
543
+ - spec/rails3_mongoid/config/routes.rb
544
+ - spec/rails3_mongoid/db/schema.rb
545
+ - spec/rails3_mongoid/db/seeds.rb
546
+ - spec/rails3_mongoid/spec/spec_helper.orig.rb
547
+ - spec/rails3_mongoid/spec/spec_helper.rb
548
+ - spec/rails3_mongoid/spec/user_activation_spec.rb
549
+ - spec/rails3_mongoid/spec/user_activity_logging_spec.rb
550
+ - spec/rails3_mongoid/spec/user_brute_force_protection_spec.rb
551
+ - spec/rails3_mongoid/spec/user_oauth_spec.rb
552
+ - spec/rails3_mongoid/spec/user_remember_me_spec.rb
553
+ - spec/rails3_mongoid/spec/user_reset_password_spec.rb
554
+ - spec/rails3_mongoid/spec/user_spec.rb
442
555
  - spec/sinatra/authentication.rb
443
556
  - spec/sinatra/db/migrate/activation/20101224223622_add_activation_to_users.rb
444
557
  - spec/sinatra/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb
@@ -1,18 +0,0 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
- $LOAD_PATH.unshift(File.dirname(__FILE__))
3
-
4
- require 'simplecov'
5
- SimpleCov.root File.join(File.dirname(__FILE__), '..', 'lib')
6
- SimpleCov.start
7
-
8
-
9
- require 'rspec'
10
- require 'sorcery'
11
-
12
- # Requires supporting files with custom matchers and macros, etc,
13
- # in ./support/ and its subdirectories.
14
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
15
-
16
- RSpec.configure do |config|
17
-
18
- end