gsterndale-warrant 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/README.textile +2 -2
  2. data/VERSION.yml +1 -1
  3. data/test/rails_root/config/environment.rb +0 -4
  4. data/test/rails_root/test/unit/post_test.rb +18 -0
  5. metadata +9 -104
  6. data/test/rails_root/vendor/gems/RedCloth-3.0.4/bin/redcloth +0 -3
  7. data/test/rails_root/vendor/gems/RedCloth-3.0.4/doc/CHANGELOG +0 -160
  8. data/test/rails_root/vendor/gems/RedCloth-3.0.4/doc/COPYING +0 -25
  9. data/test/rails_root/vendor/gems/RedCloth-3.0.4/doc/README +0 -106
  10. data/test/rails_root/vendor/gems/RedCloth-3.0.4/doc/REFERENCE +0 -216
  11. data/test/rails_root/vendor/gems/RedCloth-3.0.4/doc/make.rb +0 -359
  12. data/test/rails_root/vendor/gems/RedCloth-3.0.4/lib/redcloth.rb +0 -1130
  13. data/test/rails_root/vendor/gems/RedCloth-3.0.4/run-tests.rb +0 -28
  14. data/test/rails_root/vendor/gems/RedCloth-3.0.4/setup.rb +0 -1376
  15. data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/code.yml +0 -105
  16. data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/hard_breaks.yml +0 -26
  17. data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/images.yml +0 -171
  18. data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/instiki.yml +0 -39
  19. data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/links.yml +0 -155
  20. data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/lists.yml +0 -77
  21. data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/markdown.yml +0 -218
  22. data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/poignant.yml +0 -64
  23. data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/table.yml +0 -198
  24. data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/textism.yml +0 -406
  25. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/LICENSE +0 -21
  26. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/README.textile +0 -204
  27. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/Rakefile +0 -54
  28. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/TODO.textile +0 -8
  29. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/USAGE +0 -1
  30. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/clearance_generator.rb +0 -92
  31. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/lib/insert_commands.rb +0 -103
  32. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/lib/rake_commands.rb +0 -22
  33. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/README +0 -54
  34. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/application.rb +0 -5
  35. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/confirmations_controller.rb +0 -3
  36. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/passwords_controller.rb +0 -3
  37. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/sessions_controller.rb +0 -3
  38. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/users_controller.rb +0 -3
  39. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/models/clearance_mailer.rb +0 -5
  40. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/models/user.rb +0 -3
  41. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/clearance_mailer/change_password.html.erb +0 -10
  42. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/clearance_mailer/confirmation.html.erb +0 -1
  43. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/passwords/edit.html.erb +0 -25
  44. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/passwords/new.html.erb +0 -15
  45. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/sessions/new.html.erb +0 -28
  46. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/users/_form.html.erb +0 -13
  47. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/users/edit.html.erb +0 -6
  48. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/users/new.html.erb +0 -6
  49. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/db/migrate/create_users_with_clearance_columns.rb +0 -21
  50. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/db/migrate/update_users_with_clearance_columns.rb +0 -42
  51. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/factories/clearance.rb +0 -16
  52. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional/confirmations_controller_test.rb +0 -5
  53. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional/passwords_controller_test.rb +0 -5
  54. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional/sessions_controller_test.rb +0 -5
  55. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional/users_controller_test.rb +0 -5
  56. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/unit/clearance_mailer_test.rb +0 -6
  57. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/unit/user_test.rb +0 -5
  58. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance.rb +0 -14
  59. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/application_controller.rb +0 -82
  60. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/confirmations_controller.rb +0 -42
  61. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/passwords_controller.rb +0 -68
  62. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/sessions_controller.rb +0 -68
  63. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/users_controller.rb +0 -40
  64. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/models/clearance_mailer.rb +0 -29
  65. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/models/user.rb +0 -85
  66. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional/confirmations_controller_test.rb +0 -44
  67. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional/passwords_controller_test.rb +0 -175
  68. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional/sessions_controller_test.rb +0 -194
  69. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional/users_controller_test.rb +0 -85
  70. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/test_helper.rb +0 -28
  71. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/unit/clearance_mailer_test.rb +0 -65
  72. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/unit/user_test.rb +0 -163
  73. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/rails/init.rb +0 -1
  74. data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/shoulda_macros/clearance.rb +0 -173
@@ -18,8 +18,8 @@ In config/environment.rb:
18
18
  :lib => 'shoulda',
19
19
  :source => 'http://gems.github.com',
20
20
  :version => '>= 2.0.6'
21
- config.gem 'Warrant',
22
- :lib => 'Warrant',
21
+ config.gem 'gsterndale-warrant',
22
+ :lib => 'warrant',
23
23
  :source => 'http://gems.github.com'
24
24
 
25
25
  Then:
@@ -1,4 +1,4 @@
1
1
  ---
2
+ :minor: 3
2
3
  :patch: 0
3
4
  :major: 0
4
- :minor: 2
@@ -20,10 +20,6 @@ Rails::Initializer.run do |config|
20
20
  :lib => 'shoulda',
21
21
  :source => 'http://gems.github.com',
22
22
  :version => '>= 2.0.6'
23
- config.gem "thoughtbot-clearance",
24
- :lib => 'clearance',
25
- :source => 'http://gems.github.com',
26
- :version => '>= 0.4.0'
27
23
 
28
24
  # This simulates loading the warrant gem, but without relying on vendor/gems
29
25
  warrant_path = File.join(File.dirname(__FILE__), *%w(.. .. ..))
@@ -35,6 +35,24 @@ class PostTest < Test::Unit::TestCase
35
35
  assert @post = Factory(:post)
36
36
  end
37
37
 
38
+ should "not error on find with id" do
39
+ assert_nothing_raised do
40
+ Post.find(@post.id)
41
+ end
42
+ end
43
+
44
+ should "find post with id" do
45
+ assert_equal @post, Post.find(@post.id)
46
+ end
47
+
48
+ should "find post in find all" do
49
+ assert_include Post.find(:all), @post
50
+ end
51
+
52
+ should "find post in all" do
53
+ assert_include Post.all, @post
54
+ end
55
+
38
56
  context "no method is authorized" do
39
57
  setup do
40
58
  Post.stubs(:create?).returns(false)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gsterndale-warrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Sterndale
@@ -35,6 +35,7 @@ files:
35
35
  - lib/warrant/lib/extensions/active_record.rb
36
36
  - lib/warrant/lib/warrant.rb
37
37
  - lib/warrant/test
38
+ - lib/warrant/test/functional
38
39
  - lib/warrant/test/test_helper.rb
39
40
  - lib/warrant.rb
40
41
  - test/rails_root
@@ -69,6 +70,8 @@ files:
69
70
  - test/rails_root/db/migrate
70
71
  - test/rails_root/db/migrate/20090123181754_create_users.rb
71
72
  - test/rails_root/db/migrate/20090123181755_create_posts.rb
73
+ - test/rails_root/db/schema.rb
74
+ - test/rails_root/db/test.sqlite3
72
75
  - test/rails_root/doc
73
76
  - test/rails_root/doc/README_FOR_APP
74
77
  - test/rails_root/doc/README_FOR_TEMPLATE
@@ -134,6 +137,11 @@ files:
134
137
  - test/rails_root/test/test_helper.rb
135
138
  - test/rails_root/test/unit
136
139
  - test/rails_root/test/unit/post_test.rb
140
+ - test/rails_root/tmp
141
+ - test/rails_root/tmp/cache
142
+ - test/rails_root/tmp/pids
143
+ - test/rails_root/tmp/sessions
144
+ - test/rails_root/tmp/sockets
137
145
  - test/rails_root/vendor
138
146
  - test/rails_root/vendor/gems
139
147
  - test/rails_root/vendor/gems/mocha-0.9.4
@@ -318,109 +326,6 @@ files:
318
326
  - test/rails_root/vendor/gems/quietbacktrace-0.1.1/README.txt
319
327
  - test/rails_root/vendor/gems/quietbacktrace-0.1.1/test
320
328
  - test/rails_root/vendor/gems/quietbacktrace-0.1.1/test/quiet_backtrace_test.rb
321
- - test/rails_root/vendor/gems/RedCloth-3.0.4
322
- - test/rails_root/vendor/gems/RedCloth-3.0.4/bin
323
- - test/rails_root/vendor/gems/RedCloth-3.0.4/bin/redcloth
324
- - test/rails_root/vendor/gems/RedCloth-3.0.4/doc
325
- - test/rails_root/vendor/gems/RedCloth-3.0.4/doc/CHANGELOG
326
- - test/rails_root/vendor/gems/RedCloth-3.0.4/doc/COPYING
327
- - test/rails_root/vendor/gems/RedCloth-3.0.4/doc/make.rb
328
- - test/rails_root/vendor/gems/RedCloth-3.0.4/doc/README
329
- - test/rails_root/vendor/gems/RedCloth-3.0.4/doc/REFERENCE
330
- - test/rails_root/vendor/gems/RedCloth-3.0.4/lib
331
- - test/rails_root/vendor/gems/RedCloth-3.0.4/lib/redcloth.rb
332
- - test/rails_root/vendor/gems/RedCloth-3.0.4/run-tests.rb
333
- - test/rails_root/vendor/gems/RedCloth-3.0.4/setup.rb
334
- - test/rails_root/vendor/gems/RedCloth-3.0.4/tests
335
- - test/rails_root/vendor/gems/RedCloth-3.0.4/tests/code.yml
336
- - test/rails_root/vendor/gems/RedCloth-3.0.4/tests/hard_breaks.yml
337
- - test/rails_root/vendor/gems/RedCloth-3.0.4/tests/images.yml
338
- - test/rails_root/vendor/gems/RedCloth-3.0.4/tests/instiki.yml
339
- - test/rails_root/vendor/gems/RedCloth-3.0.4/tests/links.yml
340
- - test/rails_root/vendor/gems/RedCloth-3.0.4/tests/lists.yml
341
- - test/rails_root/vendor/gems/RedCloth-3.0.4/tests/markdown.yml
342
- - test/rails_root/vendor/gems/RedCloth-3.0.4/tests/poignant.yml
343
- - test/rails_root/vendor/gems/RedCloth-3.0.4/tests/table.yml
344
- - test/rails_root/vendor/gems/RedCloth-3.0.4/tests/textism.yml
345
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0
346
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators
347
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance
348
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/clearance_generator.rb
349
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/lib
350
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/lib/insert_commands.rb
351
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/lib/rake_commands.rb
352
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates
353
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app
354
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers
355
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/application.rb
356
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/confirmations_controller.rb
357
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/passwords_controller.rb
358
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/sessions_controller.rb
359
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/users_controller.rb
360
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/models
361
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/models/clearance_mailer.rb
362
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/models/user.rb
363
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views
364
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/clearance_mailer
365
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/clearance_mailer/change_password.html.erb
366
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/clearance_mailer/confirmation.html.erb
367
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/passwords
368
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/passwords/edit.html.erb
369
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/passwords/new.html.erb
370
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/sessions
371
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/sessions/new.html.erb
372
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/users
373
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/users/_form.html.erb
374
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/users/edit.html.erb
375
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/users/new.html.erb
376
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/db
377
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/db/migrate
378
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/db/migrate/create_users_with_clearance_columns.rb
379
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/db/migrate/update_users_with_clearance_columns.rb
380
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/README
381
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test
382
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/factories
383
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/factories/clearance.rb
384
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional
385
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional/confirmations_controller_test.rb
386
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional/passwords_controller_test.rb
387
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional/sessions_controller_test.rb
388
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional/users_controller_test.rb
389
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/unit
390
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/unit/clearance_mailer_test.rb
391
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/unit/user_test.rb
392
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/USAGE
393
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib
394
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance
395
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app
396
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers
397
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/application_controller.rb
398
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/confirmations_controller.rb
399
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/passwords_controller.rb
400
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/sessions_controller.rb
401
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/users_controller.rb
402
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/models
403
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/models/clearance_mailer.rb
404
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/models/user.rb
405
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test
406
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional
407
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional/confirmations_controller_test.rb
408
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional/passwords_controller_test.rb
409
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional/sessions_controller_test.rb
410
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional/users_controller_test.rb
411
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/test_helper.rb
412
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/unit
413
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/unit/clearance_mailer_test.rb
414
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/unit/user_test.rb
415
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance.rb
416
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/LICENSE
417
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/rails
418
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/rails/init.rb
419
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/Rakefile
420
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/README.textile
421
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/shoulda_macros
422
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/shoulda_macros/clearance.rb
423
- - test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/TODO.textile
424
329
  - test/rails_root/vendor/gems/thoughtbot-factory_girl-1.1.5
425
330
  - test/rails_root/vendor/gems/thoughtbot-factory_girl-1.1.5/Changelog
426
331
  - test/rails_root/vendor/gems/thoughtbot-factory_girl-1.1.5/CONTRIBUTION_GUIDELINES.rdoc
@@ -1,3 +0,0 @@
1
- #!/usr/bin/ruby18
2
- require 'redcloth'
3
- puts RedCloth.new( ARGF.read ).to_html
@@ -1,160 +0,0 @@
1
- --- %YAML:1.0
2
- - version: 3.0.4
3
- date: 2005-02-18
4
- changes:
5
- - The caps class doesn't swallow spaces.
6
- - Horizontal rules required to be on an empty line.
7
- - Hard breaks don't screw with Markdown headers any longer.
8
- - Fixed error triggered by complex lists.
9
- - Inline markups need to be butted up against enclosing text, no spaces.
10
- - Fixed problem with intermingled single and double quotes.
11
- - Brought back lite_mode.
12
-
13
- - version: 3.0.3
14
- date: 2005-02-06
15
- changes:
16
- - Stack overflow regexp on code inlines obliterated.
17
- - Citations scaled back.
18
- - Toggle span tags on CAPS with :no_span_tags accessor.
19
-
20
- - version: 3.0.2
21
- date: 2005-02-02
22
- changes:
23
- - Stack overflow Regexps replaced.
24
- - All code blocks protected from formatting.
25
- - Hard breaks working.
26
- - Filter HTML now uses detailed cleaner.
27
-
28
- - version: 3.0.1
29
- date: 2004-11-15
30
- changes:
31
- - Using `float' rather than `text-align' to align image blocks.
32
- - Shelving more HTML attributes to prevent them from clashing with Textile glyphs.
33
- - Simplifying the block regexp.
34
-
35
- - version: 3.0
36
- date: 2004-10-26
37
- changes:
38
- - Broke up the Textile engine into smaller parts, recoded central block parser.
39
- - Added preliminary support for Markdown.
40
- - Added support for custom Textile prefixes.
41
- - RedCloth now generates XHTML fragments.
42
- - Complete HTML documents should now work, RedCloth ignores complex HTML.
43
-
44
- - version: 2.0.12
45
- date: 2004-08-09
46
- changes:
47
- - Escaping tighter for <pre> tags that share a single line.
48
- - No more String#htmlesc!. Moved to RedCloth#htmlesc.
49
- - Pruned out the code that was handling multibyte.
50
-
51
- - version: 2.0.11
52
- date: 2004-06-01
53
- changes:
54
- - Fixed the new 2.0-style aliased links.
55
- - Lines starting with div opening or closing tags aren't given paragraph tags.
56
- - Escaped some sample markup that was being translated by RDoc.
57
- - Subtle changes to the quick tags to help them interact with surrounding HTML better.
58
- - Ensure angle brackets inside code quick tags get escaped.
59
- - New patch and test by F. Ros to fix <pre> tags with class settings.
60
- - Commented out encode_entities and fix_entities, they do nothing now. Thanks, Denis.
61
- - Scaled back QTAGS a back to avoid mixing up hyphens and dels. Thanks, Denis.
62
- - Work on the references to ensure they are generating at least XHTML 1.0 Transitional.
63
-
64
- - version: 2.0.10
65
- date: 2004-05-26
66
- changes:
67
- - Table and list problems. Rewrote the <pre> handling code.. again.
68
-
69
- - version: 2.0.9
70
- date: 2004-05-26
71
- changes:
72
- - Improved RDoc. Ri documentation is auto-installed now!
73
- - Links were consuming closing HTML tags. (See latest test in tests/links.yml.)
74
- - Further speed patch from Denis. Good good.
75
- - Patch by F. Ros to fix <pre> tags with class settings.
76
-
77
- - version: 2.0.8
78
- date: 2004-05-22
79
- changes:
80
- - First scan of the glyphs() method only scans for pre|notextile|code, the
81
- deeper passes scan for all HTML. Now inlines work around HTML tags!
82
- (What a pain!)
83
- - Moved tables and blocks into glyphs to keep them shielded from the parser
84
- if they are in <pre> tags.
85
- - Patch by Denis Mertz to speed up RedCloth by compiling the various RegExps
86
- only once. Thanks, David!
87
-
88
- - version: 2.0.7
89
- date: 2004-04-21
90
- changes:
91
- - New REFERENCE and QUICK-REFERENCE. See http://hobix.com/textile/.
92
- - Lists rewritten to accomplish better line folding.
93
- - Better, greedier links.
94
- - Additional link and list tests.
95
-
96
- - version: 2.0.6
97
- date: 2004-04-16
98
- changes:
99
- - Bold and strong tags were mixed up. '*' is now strong. '**' is bold.
100
- They were swapped until now.
101
- - Horizontal alignments were pretty buggy. Combining alignments with
102
- indents was totally broken.
103
- - Fixed table problem. Now glyphs are handled between tables and blocks.
104
- - Nested <pre> and <code> tags are now escaped. Much better handling of
105
- HTML inside <pre> tags. Really: quite nice.
106
- - Patch from Florian Gross to fix an html filtration inconsistency.
107
-
108
- - version: 2.0.5
109
- date: 2004-04-14
110
- changes:
111
- - Added safe mode (patch courtesy of Florian Gross).
112
- - Added line folding (suggested by Jim Menard).
113
- - Fixing notextile tags to work multi-line.
114
- - Ambiguity with em-dash and block opener.
115
- - Footnote bug. (Thanks, Jim Menard!)
116
-
117
- - version: 2.0.4
118
- date: 2004-04-08
119
- changes:
120
- - Scaled back aggresiveness of the inline matching to aid the em-dash.
121
- - Scaled back footnotes to stay out of array indices.
122
-
123
- - version: 2.0.3
124
- date: 2004-04-02
125
- changes:
126
- - Handling of pre, code, notextile was all wrong. Also, got rid of the goofed up
127
- split then collect. Now using gsub! and recursion to handle inlines and glyphs.
128
- - Better acronym support.
129
- - Suppression of Regexp warnings.
130
- - Single- and double-quoted string wierdness. Thanks, Bret Pettichord.
131
-
132
- - version: 2.0.2
133
- date: 2004-03-08
134
- changes:
135
- - Fixed broken lists, broken tables.
136
- - code/pre tags now escape properly, glyphs are working, spans are working when surrounded by html tags.
137
- - Fixed classes and ids.
138
- - Restricted notextile tags to a single line.
139
-
140
- - version: 2.0.1
141
- date: 2004-02-10
142
- changes:
143
- - Unmatched closing slash on regexps in ruby 1.6.8.
144
- - Fixes to bulleted lists.
145
-
146
- - version: 2.0
147
- date: 2004-02-06
148
- changes:
149
- - Complete rewrite of RedCloth, against beta2 from textism.com.
150
-
151
- - version: 0.41
152
- date: 2003-06-20
153
- changes:
154
- - Newlines were outputing as escaped.
155
-
156
- - version: 0.4
157
- date: 2003-06-20
158
- changes:
159
- - Initial public release.
160
- - Integration of YAML-based PyTextile tests.
@@ -1,25 +0,0 @@
1
- Redistribution and use in source and binary forms, with or without
2
- modification, are permitted provided that the following conditions are met:
3
-
4
- * Redistributions of source code must retain the above copyright notice,
5
- this list of conditions and the following disclaimer.
6
-
7
- * Redistributions in binary form must reproduce the above copyright notice,
8
- this list of conditions and the following disclaimer in the documentation
9
- and/or other materials provided with the distribution.
10
-
11
- * Neither the name Textile nor the names of its contributors may be used to
12
- endorse or promote products derived from this software without specific
13
- prior written permission.
14
-
15
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
19
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25
- POSSIBILITY OF SUCH DAMAGE.
@@ -1,106 +0,0 @@
1
- p=. !redcloth3-title.png!
2
-
3
- <div id="sidebar">
4
-
5
- h4. Get RedCloth 3
6
-
7
- p(example1). *Stable version:* "3.0.3":http://rubyforge.org/frs/download.php/2896/RedCloth-3.0.3.tar.gz
8
-
9
- Take a complete tour of Textile at "A Textile Reference":http://hobix.com/textile/.
10
-
11
- For fast syntax checking, try the "Quick Reference":http://hobix.com/textile/quick.html.
12
-
13
- p(example1). Upgrade with "RubyGems":http://rubygems.rubyforge.org/! Try:
14
- @gem install RedCloth@.
15
-
16
- See the "project page":http://rubyforge.org/projects/redcloth/ for bug reporting, old releases and CVS instructions. "Documentation":http://redcloth.rubyforge.org/rdoc/ is also hosted at RubyForge.
17
-
18
- h4. RedCloth Links
19
-
20
- "Instiki":http://www.instiki.org is the greatest Wiki ever! Uses RedCloth for its markup!
21
-
22
- "Hobix":http://hobix.com is a lovely little blogging package which uses RedCloth for blog entries.
23
-
24
- <div id="css-buttons">
25
-
26
- * "(css-button w3c)%W3C% xhtml 1.0(Valid XHTML 1.0!)":http://validator.w3.org/check?uri=referer
27
- * "(css-button w3c w3c2)%W3C% valid css(Valid CSS!)":http://jigsaw.w3.org/css-validator/check/referer
28
-
29
- </div>
30
-
31
- </div>
32
-
33
- RedCloth is a module for using Textile in Ruby. Textile is a text format. A very simple text format. Another stab at making readable text that can be converted to HTML.
34
-
35
- h2. What is Textile?
36
-
37
- Textile is a simple markup language.
38
-
39
- table{width:400px}.
40
- |_. textile|_. to|_. html|
41
- | <notextile>_a phrase_</notextile> |->|_a phrase_|
42
- | <notextile>*a phrase*</notextile> |->|*a phrase*|
43
- | <notextile>_*a phrase*_</notextile> |->|_*a phrase*_|
44
- | <notextile>"Google":http://google.com</notextile> |->|"Google":http://google.com|
45
-
46
- No need to use verbose HTML to build your docs, your blogs, your pages. Textile gives you readable text while you're writing and beautiful text for your readers. And if you need to break out into HTML, Textile will allow you to do so.
47
-
48
- Textile also handles some subtleties of formatting which will enhance your document's readability:
49
-
50
- * Single- and double-quotes around words or phrases are converted to curly quotations, much easier on
51
- the eye. "Observe!"
52
-
53
- * Double hyphens are replaced with an em-dash. Observe -- very nice!
54
-
55
- * Single hyphens are replaced with en-dashes. Observe - so cute!
56
-
57
- * Triplets of periods become an ellipsis. Observe...
58
-
59
- * The letter 'x' becomes a dimension sign when used alone. Observe: 2 x 2.
60
-
61
- * Conversion of <notextile>(TM)</notextile> to (TM), <notextile>(R)</notextile> to (R), <notextile>(C)</notextile> to (C).
62
-
63
- For more on Textile's language, hop over to "A Textile Reference":http://hobix.com/textile/.
64
-
65
- h2. Using RedCloth
66
-
67
- The RedCloth class is an extension of Ruby's String class. Use it like you would a String:
68
-
69
- <pre>
70
- >> r = RedCloth.new "*strong text* and _emphasized text_"
71
- => "*strong text* and _emphasized text_"
72
- >> r.gsub!( 'text', 'words' )
73
- => "*strong words* and _emphasized words_"
74
- </pre>
75
-
76
- To generate HTML from your RedCloth object, use the @RedCloth#to_html@ method:
77
-
78
- <pre>
79
- >> r.to_html
80
- => "<p><strong>strong words</strong> and <em>emphasized words</em></p>"
81
- </pre>
82
-
83
-
84
- h2. Installing RedCloth
85
-
86
- To install RedCloth via RubyGems:
87
-
88
- <pre>
89
- gem install RedCloth
90
- </pre>
91
-
92
- Or "download RedCloth":http://rubyforge.org/frs/download.php/2896/RedCloth-3.0.3.tar.gz and simply run the install.rb like so:
93
-
94
- <pre>
95
- ruby install.rb config
96
- ruby install.rb setup
97
- sudo ruby install.rb install
98
- </pre>
99
-
100
-
101
- h2. Acknowledgements
102
-
103
- Textile is (c) 2003 Dean Allen. All rights reserved. You can read more "here":http://www.textism.com/tools/textile/.
104
-
105
- RedCloth is also based on PyTextile, which is: Copyright (c) 2003, "Mark Pilgrim":http://diveintomark.org/. All rights reserved. You can read more about PyTextile "here":http://dealmeida.net/projects/textile.
106
-