bullring 0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +38 -0
  3. data/Rakefile +38 -0
  4. data/lib/bullring.rb +135 -0
  5. data/lib/bullring/js/bullring.js +64 -0
  6. data/lib/bullring/js/jslint.js +6393 -0
  7. data/lib/bullring/js/jslint.min.js +171 -0
  8. data/lib/bullring/util/drubied_process.rb +66 -0
  9. data/lib/bullring/util/exceptions.rb +17 -0
  10. data/lib/bullring/util/network.rb +29 -0
  11. data/lib/bullring/version.rb +3 -0
  12. data/lib/bullring/worker.rb +36 -0
  13. data/lib/bullring/workers/rhino_server.rb +172 -0
  14. data/lib/bullring/workers/rhino_server.sh +46 -0
  15. data/lib/bullring/workers/rhino_server_worker.rb +79 -0
  16. data/lib/bullring/workers/rhino_simple_worker.rb +0 -0
  17. data/lib/scripts/server_console.sh +22 -0
  18. data/lib/tasks/bullring_tasks.rake +10 -0
  19. data/test/bullring_test.rb +301 -0
  20. data/test/dummy/README.rdoc +261 -0
  21. data/test/dummy/Rakefile +7 -0
  22. data/test/dummy/app/assets/javascripts/application.js +15 -0
  23. data/test/dummy/app/assets/javascripts/home.js +2 -0
  24. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  25. data/test/dummy/app/assets/stylesheets/home.css +4 -0
  26. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  27. data/test/dummy/app/controllers/application_controller.rb +3 -0
  28. data/test/dummy/app/controllers/home_controller.rb +5 -0
  29. data/test/dummy/app/helpers/application_helper.rb +2 -0
  30. data/test/dummy/app/helpers/home_helper.rb +2 -0
  31. data/test/dummy/app/views/home/index.html.erb +4 -0
  32. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  33. data/test/dummy/config.ru +4 -0
  34. data/test/dummy/config/application.rb +56 -0
  35. data/test/dummy/config/boot.rb +10 -0
  36. data/test/dummy/config/database.yml +25 -0
  37. data/test/dummy/config/environment.rb +5 -0
  38. data/test/dummy/config/environments/development.rb +37 -0
  39. data/test/dummy/config/environments/production.rb +67 -0
  40. data/test/dummy/config/environments/test.rb +37 -0
  41. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  42. data/test/dummy/config/initializers/inflections.rb +15 -0
  43. data/test/dummy/config/initializers/mime_types.rb +5 -0
  44. data/test/dummy/config/initializers/quiet_assets.rb +11 -0
  45. data/test/dummy/config/initializers/secret_token.rb +7 -0
  46. data/test/dummy/config/initializers/session_store.rb +8 -0
  47. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  48. data/test/dummy/config/locales/en.yml +5 -0
  49. data/test/dummy/config/routes.rb +60 -0
  50. data/test/dummy/log/development.log +27 -0
  51. data/test/dummy/log/test.log +0 -0
  52. data/test/dummy/public/404.html +26 -0
  53. data/test/dummy/public/422.html +26 -0
  54. data/test/dummy/public/500.html +25 -0
  55. data/test/dummy/public/favicon.ico +0 -0
  56. data/test/dummy/script/rails +6 -0
  57. data/test/test_helper.rb +4 -0
  58. metadata +213 -0
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ require 'rubygems'
2
+ require 'bullring'
3
+ require 'test/unit'
4
+ require 'ruby-debug'
metadata ADDED
@@ -0,0 +1,213 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bullring
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.6'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - JP Slavinsky (Kindling Labs)
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-19 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: uglifier
16
+ requirement: &2151838560 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2151838560
25
+ - !ruby/object:Gem::Dependency
26
+ name: therubyrhino
27
+ requirement: &2151837840 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *2151837840
36
+ - !ruby/object:Gem::Dependency
37
+ name: sqlite3
38
+ requirement: &2151837080 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *2151837080
47
+ - !ruby/object:Gem::Dependency
48
+ name: rails
49
+ requirement: &2151832800 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 3.2.2
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *2151832800
58
+ - !ruby/object:Gem::Dependency
59
+ name: test-unit
60
+ requirement: &2151831460 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *2151831460
69
+ - !ruby/object:Gem::Dependency
70
+ name: ruby-debug19
71
+ requirement: &2151830600 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *2151830600
80
+ description: Safely run untrusted Javascript from Ruby
81
+ email:
82
+ - jps@kindlinglabs.com
83
+ executables: []
84
+ extensions: []
85
+ extra_rdoc_files: []
86
+ files:
87
+ - lib/bullring/js/bullring.js
88
+ - lib/bullring/js/jslint.js
89
+ - lib/bullring/js/jslint.min.js
90
+ - lib/bullring/util/drubied_process.rb
91
+ - lib/bullring/util/exceptions.rb
92
+ - lib/bullring/util/network.rb
93
+ - lib/bullring/version.rb
94
+ - lib/bullring/worker.rb
95
+ - lib/bullring/workers/rhino_server.rb
96
+ - lib/bullring/workers/rhino_server.sh
97
+ - lib/bullring/workers/rhino_server_worker.rb
98
+ - lib/bullring/workers/rhino_simple_worker.rb
99
+ - lib/bullring.rb
100
+ - lib/scripts/server_console.sh
101
+ - lib/tasks/bullring_tasks.rake
102
+ - MIT-LICENSE
103
+ - Rakefile
104
+ - README.rdoc
105
+ - test/bullring_test.rb
106
+ - test/dummy/app/assets/javascripts/application.js
107
+ - test/dummy/app/assets/javascripts/home.js
108
+ - test/dummy/app/assets/stylesheets/application.css
109
+ - test/dummy/app/assets/stylesheets/home.css
110
+ - test/dummy/app/assets/stylesheets/scaffold.css
111
+ - test/dummy/app/controllers/application_controller.rb
112
+ - test/dummy/app/controllers/home_controller.rb
113
+ - test/dummy/app/helpers/application_helper.rb
114
+ - test/dummy/app/helpers/home_helper.rb
115
+ - test/dummy/app/views/home/index.html.erb
116
+ - test/dummy/app/views/layouts/application.html.erb
117
+ - test/dummy/config/application.rb
118
+ - test/dummy/config/boot.rb
119
+ - test/dummy/config/database.yml
120
+ - test/dummy/config/environment.rb
121
+ - test/dummy/config/environments/development.rb
122
+ - test/dummy/config/environments/production.rb
123
+ - test/dummy/config/environments/test.rb
124
+ - test/dummy/config/initializers/backtrace_silencers.rb
125
+ - test/dummy/config/initializers/inflections.rb
126
+ - test/dummy/config/initializers/mime_types.rb
127
+ - test/dummy/config/initializers/quiet_assets.rb
128
+ - test/dummy/config/initializers/secret_token.rb
129
+ - test/dummy/config/initializers/session_store.rb
130
+ - test/dummy/config/initializers/wrap_parameters.rb
131
+ - test/dummy/config/locales/en.yml
132
+ - test/dummy/config/routes.rb
133
+ - test/dummy/config.ru
134
+ - test/dummy/log/development.log
135
+ - test/dummy/log/test.log
136
+ - test/dummy/public/404.html
137
+ - test/dummy/public/422.html
138
+ - test/dummy/public/500.html
139
+ - test/dummy/public/favicon.ico
140
+ - test/dummy/Rakefile
141
+ - test/dummy/README.rdoc
142
+ - test/dummy/script/rails
143
+ - test/test_helper.rb
144
+ homepage: http://www.github.com/kindlinglabs/bullring
145
+ licenses: []
146
+ post_install_message:
147
+ rdoc_options: []
148
+ require_paths:
149
+ - lib
150
+ required_ruby_version: !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - ! '>='
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ segments:
157
+ - 0
158
+ hash: -1682714108002767292
159
+ required_rubygems_version: !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ segments:
166
+ - 0
167
+ hash: -1682714108002767292
168
+ requirements: []
169
+ rubyforge_project:
170
+ rubygems_version: 1.8.6
171
+ signing_key:
172
+ specification_version: 3
173
+ summary: Safely run untrusted Javascript from Ruby
174
+ test_files:
175
+ - test/bullring_test.rb
176
+ - test/dummy/app/assets/javascripts/application.js
177
+ - test/dummy/app/assets/javascripts/home.js
178
+ - test/dummy/app/assets/stylesheets/application.css
179
+ - test/dummy/app/assets/stylesheets/home.css
180
+ - test/dummy/app/assets/stylesheets/scaffold.css
181
+ - test/dummy/app/controllers/application_controller.rb
182
+ - test/dummy/app/controllers/home_controller.rb
183
+ - test/dummy/app/helpers/application_helper.rb
184
+ - test/dummy/app/helpers/home_helper.rb
185
+ - test/dummy/app/views/home/index.html.erb
186
+ - test/dummy/app/views/layouts/application.html.erb
187
+ - test/dummy/config/application.rb
188
+ - test/dummy/config/boot.rb
189
+ - test/dummy/config/database.yml
190
+ - test/dummy/config/environment.rb
191
+ - test/dummy/config/environments/development.rb
192
+ - test/dummy/config/environments/production.rb
193
+ - test/dummy/config/environments/test.rb
194
+ - test/dummy/config/initializers/backtrace_silencers.rb
195
+ - test/dummy/config/initializers/inflections.rb
196
+ - test/dummy/config/initializers/mime_types.rb
197
+ - test/dummy/config/initializers/quiet_assets.rb
198
+ - test/dummy/config/initializers/secret_token.rb
199
+ - test/dummy/config/initializers/session_store.rb
200
+ - test/dummy/config/initializers/wrap_parameters.rb
201
+ - test/dummy/config/locales/en.yml
202
+ - test/dummy/config/routes.rb
203
+ - test/dummy/config.ru
204
+ - test/dummy/log/development.log
205
+ - test/dummy/log/test.log
206
+ - test/dummy/public/404.html
207
+ - test/dummy/public/422.html
208
+ - test/dummy/public/500.html
209
+ - test/dummy/public/favicon.ico
210
+ - test/dummy/Rakefile
211
+ - test/dummy/README.rdoc
212
+ - test/dummy/script/rails
213
+ - test/test_helper.rb