raptcha 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. data/README +88 -0
  2. data/bin/raptcha +2225 -0
  3. data/gemspec.rb +28 -0
  4. data/install.rb +210 -0
  5. data/lib/raptcha.rb +2225 -0
  6. data/out +0 -0
  7. data/rails/README +182 -0
  8. data/rails/Rakefile +10 -0
  9. data/rails/app/controllers/application.rb +7 -0
  10. data/rails/app/controllers/raptcha_controller.rb +43 -0
  11. data/rails/app/helpers/application_helper.rb +3 -0
  12. data/rails/config/boot.rb +45 -0
  13. data/rails/config/database.yml +36 -0
  14. data/rails/config/environment.rb +62 -0
  15. data/rails/config/environments/development.rb +21 -0
  16. data/rails/config/environments/production.rb +18 -0
  17. data/rails/config/environments/test.rb +19 -0
  18. data/rails/config/lighttpd.conf +54 -0
  19. data/rails/config/routes.rb +23 -0
  20. data/rails/doc/README_FOR_APP +2 -0
  21. data/rails/lib/raptcha.rb +2225 -0
  22. data/rails/log/development.log +16 -0
  23. data/rails/log/fastcgi.crash.log +4 -0
  24. data/rails/log/lighttpd.access.log +2 -0
  25. data/rails/log/lighttpd.error.log +3 -0
  26. data/rails/log/production.log +0 -0
  27. data/rails/log/server.log +0 -0
  28. data/rails/log/test.log +0 -0
  29. data/rails/public/404.html +30 -0
  30. data/rails/public/500.html +30 -0
  31. data/rails/public/dispatch.cgi +10 -0
  32. data/rails/public/dispatch.fcgi +24 -0
  33. data/rails/public/dispatch.rb +10 -0
  34. data/rails/public/favicon.ico +0 -0
  35. data/rails/public/images/rails.png +0 -0
  36. data/rails/public/index.html +277 -0
  37. data/rails/public/javascripts/application.js +2 -0
  38. data/rails/public/javascripts/controls.js +833 -0
  39. data/rails/public/javascripts/dragdrop.js +942 -0
  40. data/rails/public/javascripts/effects.js +1088 -0
  41. data/rails/public/javascripts/prototype.js +2515 -0
  42. data/rails/public/robots.txt +1 -0
  43. data/rails/script/about +3 -0
  44. data/rails/script/breakpointer +3 -0
  45. data/rails/script/console +3 -0
  46. data/rails/script/destroy +3 -0
  47. data/rails/script/generate +3 -0
  48. data/rails/script/performance/benchmarker +3 -0
  49. data/rails/script/performance/profiler +3 -0
  50. data/rails/script/plugin +3 -0
  51. data/rails/script/process/inspector +3 -0
  52. data/rails/script/process/reaper +3 -0
  53. data/rails/script/process/spawner +3 -0
  54. data/rails/script/runner +3 -0
  55. data/rails/script/server +3 -0
  56. data/rails/test/test_helper.rb +28 -0
  57. data/rails/tmp/sessions/ruby_sess.04085f44b9141c9d +0 -0
  58. data/raptcha-0.0.1.gem +0 -0
  59. data/samples.rb +19 -0
  60. metadata +143 -0
@@ -0,0 +1 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/about'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/breakpointer'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/console'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/destroy'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/generate'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/benchmarker'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/profiler'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/plugin'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/inspector'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/reaper'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/spawner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/runner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/server'
@@ -0,0 +1,28 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
+ require 'test_help'
4
+
5
+ class Test::Unit::TestCase
6
+ # Transactional fixtures accelerate your tests by wrapping each test method
7
+ # in a transaction that's rolled back on completion. This ensures that the
8
+ # test database remains unchanged so your fixtures don't have to be reloaded
9
+ # between every test method. Fewer database queries means faster tests.
10
+ #
11
+ # Read Mike Clark's excellent walkthrough at
12
+ # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
+ #
14
+ # Every Active Record database supports transactions except MyISAM tables
15
+ # in MySQL. Turn off transactional fixtures in this case; however, if you
16
+ # don't care one way or the other, switching from MyISAM to InnoDB tables
17
+ # is recommended.
18
+ self.use_transactional_fixtures = true
19
+
20
+ # Instantiated fixtures are slow, but give you @david where otherwise you
21
+ # would need people(:david). If you don't want to migrate your existing
22
+ # test cases which use the @david style and don't mind the speed hit (each
23
+ # instantiated fixtures translates to a database query per test method),
24
+ # then set this back to true.
25
+ self.use_instantiated_fixtures = false
26
+
27
+ # Add more helper methods to be used by all tests here...
28
+ end
data/raptcha-0.0.1.gem ADDED
Binary file
data/samples.rb ADDED
@@ -0,0 +1,19 @@
1
+ require 'lib/raptcha'
2
+
3
+ colors = [
4
+ 'springgreen',
5
+ 'purple',
6
+ 'blue',
7
+ 'red',
8
+ 'orange',
9
+ ]
10
+
11
+ puts '<div style="background:black;display:table;">'
12
+
13
+ 5.times do |i|
14
+ puts '<br><br>'
15
+ puts Raptcha.inline(:foreground => colors[i])
16
+ puts '<br><br>'
17
+ end
18
+
19
+ puts '</div>'
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.2
3
+ specification_version: 1
4
+ name: raptcha
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.0.1
7
+ date: 2007-07-06 00:00:00 -06:00
8
+ summary: raptcha
9
+ require_paths:
10
+ - lib
11
+ email: ara.t.howard@gmail.com
12
+ homepage: http://codeforpeople.com/lib/ruby/raptcha/
13
+ rubyforge_project:
14
+ description:
15
+ autorequire: raptcha
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: false
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Ara T. Howard
31
+ files:
32
+ - bin
33
+ - bin/raptcha
34
+ - gemspec.rb
35
+ - install.rb
36
+ - lib
37
+ - lib/raptcha.rb
38
+ - out
39
+ - rails
40
+ - rails/app
41
+ - rails/app/controllers
42
+ - rails/app/controllers/application.rb
43
+ - rails/app/controllers/raptcha_controller.rb
44
+ - rails/app/helpers
45
+ - rails/app/helpers/application_helper.rb
46
+ - rails/app/models
47
+ - rails/app/views
48
+ - rails/app/views/layouts
49
+ - rails/components
50
+ - rails/config
51
+ - rails/config/boot.rb
52
+ - rails/config/database.yml
53
+ - rails/config/environment.rb
54
+ - rails/config/environments
55
+ - rails/config/environments/development.rb
56
+ - rails/config/environments/production.rb
57
+ - rails/config/environments/test.rb
58
+ - rails/config/lighttpd.conf
59
+ - rails/config/routes.rb
60
+ - rails/db
61
+ - rails/doc
62
+ - rails/doc/README_FOR_APP
63
+ - rails/lib
64
+ - rails/lib/raptcha.rb
65
+ - rails/lib/tasks
66
+ - rails/log
67
+ - rails/log/development.log
68
+ - rails/log/fastcgi.crash.log
69
+ - rails/log/lighttpd.access.log
70
+ - rails/log/lighttpd.error.log
71
+ - rails/log/production.log
72
+ - rails/log/server.log
73
+ - rails/log/test.log
74
+ - rails/public
75
+ - rails/public/404.html
76
+ - rails/public/500.html
77
+ - rails/public/dispatch.cgi
78
+ - rails/public/dispatch.fcgi
79
+ - rails/public/dispatch.rb
80
+ - rails/public/favicon.ico
81
+ - rails/public/images
82
+ - rails/public/images/rails.png
83
+ - rails/public/index.html
84
+ - rails/public/javascripts
85
+ - rails/public/javascripts/application.js
86
+ - rails/public/javascripts/controls.js
87
+ - rails/public/javascripts/dragdrop.js
88
+ - rails/public/javascripts/effects.js
89
+ - rails/public/javascripts/prototype.js
90
+ - rails/public/robots.txt
91
+ - rails/public/stylesheets
92
+ - rails/Rakefile
93
+ - rails/README
94
+ - rails/script
95
+ - rails/script/about
96
+ - rails/script/breakpointer
97
+ - rails/script/console
98
+ - rails/script/destroy
99
+ - rails/script/generate
100
+ - rails/script/performance
101
+ - rails/script/performance/benchmarker
102
+ - rails/script/performance/profiler
103
+ - rails/script/plugin
104
+ - rails/script/process
105
+ - rails/script/process/inspector
106
+ - rails/script/process/reaper
107
+ - rails/script/process/spawner
108
+ - rails/script/runner
109
+ - rails/script/server
110
+ - rails/test
111
+ - rails/test/fixtures
112
+ - rails/test/functional
113
+ - rails/test/integration
114
+ - rails/test/mocks
115
+ - rails/test/mocks/development
116
+ - rails/test/mocks/test
117
+ - rails/test/test_helper.rb
118
+ - rails/test/unit
119
+ - rails/tmp
120
+ - rails/tmp/cache
121
+ - rails/tmp/pids
122
+ - rails/tmp/sessions
123
+ - rails/tmp/sessions/ruby_sess.04085f44b9141c9d
124
+ - rails/tmp/sockets
125
+ - rails/vendor
126
+ - rails/vendor/plugins
127
+ - raptcha-0.0.1.gem
128
+ - README
129
+ - samples.rb
130
+ test_files: []
131
+
132
+ rdoc_options: []
133
+
134
+ extra_rdoc_files: []
135
+
136
+ executables:
137
+ - raptcha
138
+ extensions: []
139
+
140
+ requirements: []
141
+
142
+ dependencies: []
143
+