carapace 0.1.0

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 (61) hide show
  1. data/CHANGELOG.md +13 -0
  2. data/LICENSE +24 -0
  3. data/LICENSE_JSBN +40 -0
  4. data/README.md +96 -0
  5. data/Rakefile +8 -0
  6. data/lib/carapace.rb +124 -0
  7. data/rails_generators/USAGE +7 -0
  8. data/rails_generators/carapace_generator.rb +7 -0
  9. data/rails_generators/templates/carapace.js +848 -0
  10. data/test/rails_app/README.md +130 -0
  11. data/test/rails_app/Rakefile +10 -0
  12. data/test/rails_app/app/controllers/application.rb +10 -0
  13. data/test/rails_app/app/controllers/message_controller.rb +13 -0
  14. data/test/rails_app/app/helpers/application_helper.rb +3 -0
  15. data/test/rails_app/app/helpers/message_helper.rb +2 -0
  16. data/test/rails_app/app/views/message/index.html.erb +24 -0
  17. data/test/rails_app/config/boot.rb +109 -0
  18. data/test/rails_app/config/database.yml +19 -0
  19. data/test/rails_app/config/environment.rb +60 -0
  20. data/test/rails_app/config/environments/development.rb +18 -0
  21. data/test/rails_app/config/environments/production.rb +19 -0
  22. data/test/rails_app/config/environments/test.rb +22 -0
  23. data/test/rails_app/config/initializers/inflections.rb +10 -0
  24. data/test/rails_app/config/initializers/mime_types.rb +5 -0
  25. data/test/rails_app/config/routes.rb +35 -0
  26. data/test/rails_app/doc/README_FOR_APP +2 -0
  27. data/test/rails_app/log/development.log +162 -0
  28. data/test/rails_app/log/production.log +0 -0
  29. data/test/rails_app/log/server.log +0 -0
  30. data/test/rails_app/log/test.log +24 -0
  31. data/test/rails_app/public/404.html +30 -0
  32. data/test/rails_app/public/422.html +30 -0
  33. data/test/rails_app/public/500.html +30 -0
  34. data/test/rails_app/public/dispatch.cgi +10 -0
  35. data/test/rails_app/public/dispatch.fcgi +24 -0
  36. data/test/rails_app/public/dispatch.rb +10 -0
  37. data/test/rails_app/public/favicon.ico +0 -0
  38. data/test/rails_app/public/images/rails.png +0 -0
  39. data/test/rails_app/public/javascripts/application.js +2 -0
  40. data/test/rails_app/public/javascripts/carapace.js +844 -0
  41. data/test/rails_app/public/javascripts/controls.js +963 -0
  42. data/test/rails_app/public/javascripts/dragdrop.js +972 -0
  43. data/test/rails_app/public/javascripts/effects.js +1120 -0
  44. data/test/rails_app/public/javascripts/prototype.js +4225 -0
  45. data/test/rails_app/public/robots.txt +5 -0
  46. data/test/rails_app/script/about +3 -0
  47. data/test/rails_app/script/console +3 -0
  48. data/test/rails_app/script/destroy +3 -0
  49. data/test/rails_app/script/generate +3 -0
  50. data/test/rails_app/script/performance/benchmarker +3 -0
  51. data/test/rails_app/script/performance/profiler +3 -0
  52. data/test/rails_app/script/performance/request +3 -0
  53. data/test/rails_app/script/plugin +3 -0
  54. data/test/rails_app/script/process/inspector +3 -0
  55. data/test/rails_app/script/process/reaper +3 -0
  56. data/test/rails_app/script/process/spawner +3 -0
  57. data/test/rails_app/script/runner +3 -0
  58. data/test/rails_app/script/server +3 -0
  59. data/test/rails_app/test/functional/message_controller_test.rb +11 -0
  60. data/test/rails_app/test/test_helper.rb +38 -0
  61. metadata +127 -0
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
@@ -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/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/performance/request'
@@ -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,11 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+
3
+ class MessageControllerTest < ActionController::TestCase
4
+
5
+ def test_index
6
+ get :index
7
+ assert_response :success
8
+ end
9
+
10
+ end
11
+
@@ -0,0 +1,38 @@
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
+ #
19
+ # The only drawback to using transactional fixtures is when you actually
20
+ # need to test transactions. Since your test is bracketed by a transaction,
21
+ # any transactions started in your code will be automatically rolled back.
22
+ self.use_transactional_fixtures = true
23
+
24
+ # Instantiated fixtures are slow, but give you @david where otherwise you
25
+ # would need people(:david). If you don't want to migrate your existing
26
+ # test cases which use the @david style and don't mind the speed hit (each
27
+ # instantiated fixtures translates to a database query per test method),
28
+ # then set this back to true.
29
+ self.use_instantiated_fixtures = false
30
+
31
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
32
+ #
33
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
34
+ # -- they do not yet inherit this setting
35
+ fixtures :all
36
+
37
+ # Add more helper methods to be used by all tests here...
38
+ end
metadata ADDED
@@ -0,0 +1,127 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: carapace
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - John Lane
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-05-30 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: Allows field contents to be encrypted between broswer and webserver
23
+ email:
24
+ - carapace@jelmail.com
25
+ executables: []
26
+
27
+ extensions: []
28
+
29
+ extra_rdoc_files: []
30
+
31
+ files:
32
+ - lib/carapace.rb
33
+ - test/rails_app/test/functional/message_controller_test.rb
34
+ - test/rails_app/test/test_helper.rb
35
+ - test/rails_app/doc/README_FOR_APP
36
+ - test/rails_app/log/test.log
37
+ - test/rails_app/log/development.log
38
+ - test/rails_app/log/server.log
39
+ - test/rails_app/log/production.log
40
+ - test/rails_app/README.md
41
+ - test/rails_app/script/performance/request
42
+ - test/rails_app/script/performance/benchmarker
43
+ - test/rails_app/script/performance/profiler
44
+ - test/rails_app/script/plugin
45
+ - test/rails_app/script/console
46
+ - test/rails_app/script/process/reaper
47
+ - test/rails_app/script/process/spawner
48
+ - test/rails_app/script/process/inspector
49
+ - test/rails_app/script/server
50
+ - test/rails_app/script/generate
51
+ - test/rails_app/script/runner
52
+ - test/rails_app/script/destroy
53
+ - test/rails_app/script/about
54
+ - test/rails_app/app/controllers/message_controller.rb
55
+ - test/rails_app/app/controllers/application.rb
56
+ - test/rails_app/app/helpers/application_helper.rb
57
+ - test/rails_app/app/helpers/message_helper.rb
58
+ - test/rails_app/app/views/message/index.html.erb
59
+ - test/rails_app/config/routes.rb
60
+ - test/rails_app/config/environment.rb
61
+ - test/rails_app/config/environments/production.rb
62
+ - test/rails_app/config/environments/development.rb
63
+ - test/rails_app/config/environments/test.rb
64
+ - test/rails_app/config/database.yml
65
+ - test/rails_app/config/initializers/mime_types.rb
66
+ - test/rails_app/config/initializers/inflections.rb
67
+ - test/rails_app/config/boot.rb
68
+ - test/rails_app/Rakefile
69
+ - test/rails_app/public/javascripts/dragdrop.js
70
+ - test/rails_app/public/javascripts/controls.js
71
+ - test/rails_app/public/javascripts/carapace.js
72
+ - test/rails_app/public/javascripts/effects.js
73
+ - test/rails_app/public/javascripts/prototype.js
74
+ - test/rails_app/public/javascripts/application.js
75
+ - test/rails_app/public/dispatch.fcgi
76
+ - test/rails_app/public/robots.txt
77
+ - test/rails_app/public/dispatch.cgi
78
+ - test/rails_app/public/dispatch.rb
79
+ - test/rails_app/public/404.html
80
+ - test/rails_app/public/images/rails.png
81
+ - test/rails_app/public/422.html
82
+ - test/rails_app/public/favicon.ico
83
+ - test/rails_app/public/500.html
84
+ - rails_generators/templates/carapace.js
85
+ - rails_generators/carapace_generator.rb
86
+ - rails_generators/USAGE
87
+ - LICENSE_JSBN
88
+ - LICENSE
89
+ - README.md
90
+ - Rakefile
91
+ - CHANGELOG.md
92
+ has_rdoc: true
93
+ homepage: http://rubygems.org/gems/carapace
94
+ licenses:
95
+ - MIT
96
+ post_install_message:
97
+ rdoc_options: []
98
+
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ hash: 3
107
+ segments:
108
+ - 0
109
+ version: "0"
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ hash: 3
116
+ segments:
117
+ - 0
118
+ version: "0"
119
+ requirements: []
120
+
121
+ rubyforge_project:
122
+ rubygems_version: 1.3.7
123
+ signing_key:
124
+ specification_version: 3
125
+ summary: RSA encryption for HTML form fields
126
+ test_files: []
127
+