parlement 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/CHANGES +16 -0
  2. data/README +36 -3
  3. data/Rakefile +8 -12
  4. data/app/controllers/account_controller.rb +2 -0
  5. data/app/controllers/elt_controller.rb +1 -5
  6. data/app/controllers/subscriber_controller.rb +1 -1
  7. data/app/helpers/elt_helper.rb +30 -10
  8. data/app/models/elt.rb +2 -1
  9. data/app/models/mail.rb +41 -41
  10. data/app/models/mail_notify.rb +27 -10
  11. data/app/views/account/_login.rhtml +9 -7
  12. data/app/views/account/_show.rhtml +4 -4
  13. data/app/views/elt/_elt.rhtml +52 -51
  14. data/app/views/elt/_list.rhtml +22 -14
  15. data/app/views/elt/new.rhtml +1 -1
  16. data/app/views/elt/show.rhtml +15 -16
  17. data/app/views/layouts/top.rhtml +13 -1
  18. data/app/views/person/show.rhtml +1 -7
  19. data/config/boot.rb +32 -7
  20. data/config/database.yml +3 -0
  21. data/config/environment.rb +3 -1
  22. data/config/environments/development.rb +1 -1
  23. data/db/ROOT/parlement/ddRing.txt +14 -0
  24. data/db/ROOT/parlement/top-politics.txt +12 -0
  25. data/db/ROOT/perso.txt +1 -1
  26. data/db/development_structure.sql +30 -16
  27. data/db/schema.rb +18 -10
  28. data/db/schema.sql +34 -34
  29. data/public/javascripts/application.js +2 -0
  30. data/public/javascripts/blank.gif +0 -0
  31. data/public/javascripts/borders.js +687 -0
  32. data/public/javascripts/controls.js +95 -30
  33. data/public/javascripts/dragdrop.js +161 -21
  34. data/public/javascripts/effects.js +310 -211
  35. data/public/javascripts/ie7-load.htc +1 -0
  36. data/public/javascripts/prototype.js +228 -28
  37. data/test/fixtures/attachments.yml +3 -0
  38. data/test/fixtures/mail/mail_ruby +1 -0
  39. data/test/fixtures/people.yml +14 -0
  40. data/test/functional/account_controller_test.rb +3 -2
  41. data/test/unit/mail_notify_test.rb +2 -0
  42. data/test/unit/mail_test.rb +59 -6
  43. data/test/unit/person_test.rb +1 -1
  44. data/vendor/plugins/engines/CHANGELOG +92 -0
  45. data/vendor/plugins/engines/MIT-LICENSE +21 -0
  46. data/vendor/plugins/engines/README +325 -39
  47. data/vendor/plugins/engines/generators/engine/USAGE +26 -0
  48. data/vendor/plugins/engines/generators/engine/engine_generator.rb +199 -0
  49. data/vendor/plugins/engines/generators/engine/templates/README +85 -0
  50. data/vendor/plugins/engines/generators/engine/templates/init_engine.erb +13 -0
  51. data/vendor/plugins/engines/generators/engine/templates/install.erb +4 -0
  52. data/vendor/plugins/engines/generators/engine/templates/lib/engine.erb +6 -0
  53. data/vendor/plugins/engines/generators/engine/templates/licenses/GPL +18 -0
  54. data/vendor/plugins/engines/generators/engine/templates/licenses/LGPL +19 -0
  55. data/vendor/plugins/engines/generators/engine/templates/licenses/MIT +22 -0
  56. data/vendor/plugins/engines/generators/engine/templates/licenses/None +1 -0
  57. data/vendor/plugins/engines/generators/engine/templates/public/javascripts/engine.js +0 -0
  58. data/vendor/plugins/engines/generators/engine/templates/public/stylesheets/engine.css +0 -0
  59. data/vendor/plugins/engines/generators/engine/templates/tasks/engine.rake +0 -0
  60. data/vendor/plugins/engines/generators/engine/templates/test/test_helper.erb +13 -0
  61. data/vendor/plugins/engines/init.rb +18 -3
  62. data/vendor/plugins/engines/lib/bundles/require_resource.rb +124 -0
  63. data/vendor/plugins/engines/lib/bundles.rb +77 -0
  64. data/vendor/plugins/engines/lib/{action_mailer_extensions.rb → engines/action_mailer_extensions.rb} +15 -36
  65. data/vendor/plugins/engines/lib/{action_view_extensions.rb → engines/action_view_extensions.rb} +40 -33
  66. data/vendor/plugins/engines/lib/engines/active_record_extensions.rb +19 -0
  67. data/vendor/plugins/engines/lib/engines/dependencies_extensions.rb +118 -0
  68. data/vendor/plugins/engines/lib/engines/migration_extensions.rb +53 -0
  69. data/vendor/plugins/engines/lib/{ruby_extensions.rb → engines/ruby_extensions.rb} +14 -28
  70. data/vendor/plugins/engines/lib/engines/testing_extensions.rb +323 -0
  71. data/vendor/plugins/engines/lib/engines.rb +258 -148
  72. data/vendor/plugins/engines/tasks/engines.rake +161 -0
  73. data/vendor/plugins/engines/test/action_view_extensions_test.rb +9 -0
  74. data/vendor/plugins/engines/test/ruby_extensions_test.rb +24 -3
  75. data/vendor/plugins/guid/README.TXT +14 -4
  76. data/vendor/plugins/guid/init.rb +9 -2
  77. data/vendor/plugins/guid/lib/uuidtools.rb +22 -15
  78. data/vendor/plugins/login_engine/CHANGELOG +14 -0
  79. data/vendor/plugins/login_engine/README +93 -7
  80. data/vendor/plugins/login_engine/app/controllers/user_controller.rb +30 -20
  81. data/vendor/plugins/login_engine/app/helpers/user_helper.rb +1 -1
  82. data/vendor/plugins/login_engine/app/views/user/forgot_password.rhtml +2 -2
  83. data/vendor/plugins/login_engine/db/migrate/001_initial_schema.rb +25 -0
  84. data/vendor/plugins/login_engine/install.rb +4 -0
  85. data/vendor/plugins/login_engine/lib/login_engine/authenticated_system.rb +11 -5
  86. data/vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb +15 -9
  87. data/vendor/plugins/login_engine/lib/login_engine.rb +7 -3
  88. data/vendor/plugins/login_engine/test/functional/user_controller_test.rb +22 -19
  89. data/vendor/plugins/login_engine/test/test_helper.rb +4 -8
  90. data/vendor/plugins/login_engine/test/unit/user_test.rb +31 -11
  91. metadata +60 -57
  92. data/app/models/attachment.rb +0 -6
  93. data/public/attachment/file/architecture.png +0 -0
  94. data/public/attachment/file/architecture.svg +0 -8972
  95. data/public/attachment/file/security.svg +0 -8960
  96. data/public/engine_files/login_engine/stylesheets/login_engine.css +0 -81
  97. data/public/oldREADME +0 -190
  98. data/public/stylesheets/default.css +0 -235
  99. data/public/stylesheets/live_tree.css +0 -62
  100. data/public/stylesheets/scaffold.css +0 -74
  101. data/script/about +0 -3
  102. data/script/benchmarker +0 -19
  103. data/script/breakpointer +0 -3
  104. data/script/console +0 -3
  105. data/script/create_db +0 -7
  106. data/script/destroy +0 -3
  107. data/script/generate +0 -3
  108. data/script/performance/benchmarker +0 -3
  109. data/script/performance/profiler +0 -3
  110. data/script/plugin +0 -3
  111. data/script/process/reaper +0 -3
  112. data/script/process/spawner +0 -3
  113. data/script/process/spinner +0 -3
  114. data/script/profiler +0 -34
  115. data/script/runner +0 -3
  116. data/script/server +0 -3
  117. data/test/unit/user_test.rb +0 -94
  118. data/vendor/plugins/engines/lib/dependencies_extensions.rb +0 -56
  119. data/vendor/plugins/engines/lib/testing_extensions.rb +0 -33
  120. data/vendor/plugins/login_engine/db/schema.rb +0 -25
  121. data/vendor/plugins/login_engine/test/fixtures/templates/users.yml +0 -41
  122. /data/public/images/{eltBackground.png → eltBackground.jng} +0 -0
@@ -1,81 +0,0 @@
1
- /*
2
-
3
- This CSS file is basically the scaffold.css file, and is only
4
- included here to demonstrate using CSS files with Engines.
5
-
6
- */
7
-
8
- body { background-color: #fff; color: #333; }
9
-
10
- body, p, ol, ul, td {
11
- font-family: verdana, arial, helvetica, sans-serif;
12
- font-size: 13px;
13
- line-height: 18px;
14
- }
15
-
16
- pre {
17
- background-color: #eee;
18
- padding: 10px;
19
- font-size: 11px;
20
- }
21
-
22
- a { color: #000; }
23
- a:visited { color: #666; }
24
- a:hover { color: #fff; background-color:#000; }
25
-
26
- .fieldWithErrors {
27
- padding: 2px;
28
- background-color: red;
29
- display: table;
30
- }
31
-
32
- #ErrorExplanation {
33
- width: 400px;
34
- border: 2px solid red;
35
- padding: 7px;
36
- padding-bottom: 12px;
37
- margin-bottom: 20px;
38
- background-color: #f0f0f0;
39
- }
40
-
41
- #ErrorExplanation h2 {
42
- text-align: left;
43
- font-weight: bold;
44
- padding: 5px 5px 5px 15px;
45
- font-size: 12px;
46
- margin: -7px;
47
- background-color: #c00;
48
- color: #fff;
49
- }
50
-
51
- #ErrorExplanation p {
52
- color: #333;
53
- margin-bottom: 0;
54
- padding: 5px;
55
- }
56
-
57
- #ErrorExplanation ul li {
58
- font-size: 12px;
59
- list-style: square;
60
- }
61
-
62
- div.uploadStatus {
63
- margin: 5px;
64
- }
65
-
66
- div.progressBar {
67
- margin: 5px;
68
- }
69
-
70
- div.progressBar div.border {
71
- background-color: #fff;
72
- border: 1px solid grey;
73
- width: 100%;
74
- }
75
-
76
- div.progressBar div.background {
77
- background-color: #333;
78
- height: 18px;
79
- width: 0%;
80
- }
81
-
data/public/oldREADME DELETED
@@ -1,190 +0,0 @@
1
- == Welcome to Rails
2
-
3
- Rails is a web-application and persistance framework that includes everything
4
- needed to create database-backed web-applications according to the
5
- Model-View-Control pattern of separation. This pattern splits the view (also
6
- called the presentation) into "dumb" templates that are primarily responsible
7
- for inserting pre-build data in between HTML tags. The model contains the
8
- "smart" domain objects (such as Account, Product, Person, Post) that holds all
9
- the business logic and knows how to persist themselves to a database. The
10
- controller handles the incoming requests (such as Save New Account, Update
11
- Product, Show Post) by manipulating the model and directing data to the view.
12
-
13
- In Rails, the model is handled by what's called a object-relational mapping
14
- layer entitled Active Record. This layer allows you to present the data from
15
- database rows as objects and embellish these data objects with business logic
16
- methods. You can read more about Active Record in
17
- link:files/vendor/rails/activerecord/README.html.
18
-
19
- The controller and view is handled by the Action Pack, which handles both
20
- layers by its two parts: Action View and Action Controller. These two layers
21
- are bundled in a single package due to their heavy interdependence. This is
22
- unlike the relationship between the Active Record and Action Pack that is much
23
- more separate. Each of these packages can be used independently outside of
24
- Rails. You can read more about Action Pack in
25
- link:files/vendor/rails/actionpack/README.html.
26
-
27
-
28
- == Requirements
29
-
30
- * Database and driver (MySQL, PostgreSQL, or SQLite)
31
- * Rake[http://rake.rubyforge.org] for running tests and the generating documentation
32
-
33
- == Optionals
34
-
35
- * Apache 1.3.x or 2.x or lighttpd 1.3.11+ (or any FastCGI-capable webserver with a
36
- mod_rewrite-like module)
37
- * FastCGI (or mod_ruby) for better performance on Apache
38
-
39
- == Getting started
40
-
41
- 1. Run the WEBrick servlet: <tt>ruby script/server</tt>
42
- (run with --help for options)
43
- 2. Go to http://localhost:3000/ and get "Congratulations, you've put Ruby on Rails!"
44
- 3. Follow the guidelines on the "Congratulations, you've put Ruby on Rails!" screen
45
-
46
-
47
- == Example for Apache conf
48
-
49
- <VirtualHost *:80>
50
- ServerName rails
51
- DocumentRoot /path/application/public/
52
- ErrorLog /path/application/log/server.log
53
-
54
- <Directory /path/application/public/>
55
- Options ExecCGI FollowSymLinks
56
- AllowOverride all
57
- Allow from all
58
- Order allow,deny
59
- </Directory>
60
- </VirtualHost>
61
-
62
- NOTE: Be sure that CGIs can be executed in that directory as well. So ExecCGI
63
- should be on and ".cgi" should respond. All requests from 127.0.0.1 goes
64
- through CGI, so no Apache restart is necessary for changes. All other requests
65
- goes through FCGI (or mod_ruby) that requires restart to show changes.
66
-
67
-
68
- == Example for lighttpd conf (with FastCGI)
69
-
70
- server.port = 8080
71
- server.bind = "127.0.0.1"
72
- # server.event-handler = "freebsd-kqueue" # needed on OS X
73
-
74
- server.modules = ( "mod_rewrite", "mod_fastcgi" )
75
-
76
- url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
77
- server.error-handler-404 = "/dispatch.fcgi"
78
-
79
- server.document-root = "/path/application/public"
80
- server.errorlog = "/path/application/log/server.log"
81
-
82
- fastcgi.server = ( ".fcgi" =>
83
- ( "localhost" =>
84
- (
85
- "min-procs" => 1,
86
- "max-procs" => 5,
87
- "socket" => "/tmp/application.fcgi.socket",
88
- "bin-path" => "/path/application/public/dispatch.fcgi",
89
- "bin-environment" => ( "RAILS_ENV" => "development" )
90
- )
91
- )
92
- )
93
-
94
-
95
- == Debugging Rails
96
-
97
- Have "tail -f" commands running on both the server.log, production.log, and
98
- test.log files. Rails will automatically display debugging and runtime
99
- information to these files. Debugging info will also be shown in the browser
100
- on requests from 127.0.0.1.
101
-
102
-
103
- == Breakpoints
104
-
105
- Breakpoint support is available through the script/breakpointer client. This
106
- means that you can break out of execution at any point in the code, investigate
107
- and change the model, AND then resume execution! Example:
108
-
109
- class WeblogController < ActionController::Base
110
- def index
111
- @posts = Post.find_all
112
- breakpoint "Breaking out from the list"
113
- end
114
- end
115
-
116
- So the controller will accept the action, run the first line, then present you
117
- with a IRB prompt in the breakpointer window. Here you can do things like:
118
-
119
- Executing breakpoint "Breaking out from the list" at .../webrick_server.rb:16 in 'breakpoint'
120
-
121
- >> @posts.inspect
122
- => "[#<Post:0x14a6be8 @attributes={\"title\"=>nil, \"body\"=>nil, \"id\"=>\"1\"}>,
123
- #<Post:0x14a6620 @attributes={\"title\"=>\"Rails you know!\", \"body\"=>\"Only ten..\", \"id\"=>\"2\"}>]"
124
- >> @posts.first.title = "hello from a breakpoint"
125
- => "hello from a breakpoint"
126
-
127
- ...and even better is that you can examine how your runtime objects actually work:
128
-
129
- >> f = @posts.first
130
- => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
131
- >> f.
132
- Display all 152 possibilities? (y or n)
133
-
134
- Finally, when you're ready to resume execution, you press CTRL-D
135
-
136
-
137
- == Console
138
-
139
- You can interact with the domain model by starting the console through script/console.
140
- Here you'll have all parts of the application configured, just like it is when the
141
- application is running. You can inspect domain models, change values, and save to the
142
- database. Start the script without arguments will launch it in the development environment.
143
- Passing an argument will specify a different environment, like <tt>console production</tt>.
144
-
145
-
146
- == Description of contents
147
-
148
- app
149
- Holds all the code that's specific to this particular application.
150
-
151
- app/controllers
152
- Holds controllers that should be named like weblog_controller.rb for
153
- automated URL mapping. All controllers should descend from
154
- ActionController::Base.
155
-
156
- app/models
157
- Holds models that should be named like post.rb.
158
- Most models will descent from ActiveRecord::Base.
159
-
160
- app/views
161
- Holds the template files for the view that should be named like
162
- weblog/index.rhtml for the WeblogController#index action. All views uses eRuby
163
- syntax. This directory can also be used to keep stylesheets, images, and so on
164
- that can be symlinked to public.
165
-
166
- app/helpers
167
- Holds view helpers that should be named like weblog_helper.rb.
168
-
169
- config
170
- Configuration files for the Rails environment, the routing map, the database, and other dependencies.
171
-
172
- components
173
- Self-contained mini-applications that can bundle controllers, models, and views together.
174
-
175
- lib
176
- Application specific libraries. Basically, any kind of custom code that doesn't
177
- belong controllers, models, or helpers. This directory is in the load path.
178
-
179
- public
180
- The directory available for the web server. Contains sub-directories for images, stylesheets,
181
- and javascripts. Also contains the dispatchers and the default HTML files.
182
-
183
- script
184
- Helper scripts for automation and generation.
185
-
186
- test
187
- Unit and functional tests along with fixtures.
188
-
189
- vendor
190
- External libraries that the application depend on. This directory is in the load path.
@@ -1,235 +0,0 @@
1
- html {
2
- background: url("/images/Sleep-Deprivation-5.JPG");
3
- border: none;
4
- margin: 0px;
5
- padding: 0px; }
6
-
7
- body {
8
- font-family: Georgia, "Times New Roman", serif;
9
- /*border: solid thin #578fc8;*/
10
- border: solid 1px #9ec6ff;
11
- color: black;
12
- background: white;
13
- margin: 3em 3% 3% 3%;
14
- padding: 0 3%;
15
- text-align: justify; }
16
-
17
- input, textarea {
18
- color: black;
19
- background: transparent; }
20
-
21
- input[type='button'], input[type='submit'] {
22
- margin: 0;
23
- border: none;
24
- border-left: #fd8 1px solid;
25
- border-right: #fd8 1px solid; }
26
- textarea { width: 99%; }
27
-
28
- img {
29
- border: none;
30
- max-width: 100%; }
31
-
32
- blockquote { font-style: italic; }
33
-
34
- /* To make sure text is not glued to the right border */
35
- p { padding-right: 2%; }
36
-
37
- h1, h2 {
38
- font-weight: bolder;
39
- clear: left;
40
- text-align: left;
41
- padding-left: 1%;
42
- padding-bottom: 1%; }
43
- h1 { letter-spacing: 0.2em; }
44
-
45
- /*a:link, a:visited { color: #578fc8; } */
46
- a:link, a:visited, input[type='Button'], input[type='submit'] {
47
- color: #3b76ae;
48
- background: transparent;
49
- padding: 1px; }
50
- /*border: solid thin #578fc8;*/
51
- a:hover, a:active, input[type='Button']:hover, input[type='submit']:hover {
52
- border: outset 1px #9ec6ff;
53
- color: #8b0000;
54
- background-color: transparent;
55
- padding: 0; }
56
- a:active, input[type='Button']:active, input[type='submit']:active {
57
- border: inset 1px #9ec6ff;
58
- position: relative;
59
- left: 2px;
60
- top: 2px; }
61
-
62
-
63
- .notice, .warning, .error {
64
- font-size: larger;
65
- font-weight: bold;
66
- text-align: center; }
67
- .notice { color: #080; }
68
- .warning { color: #f84; }
69
- .error { color: #f00; }
70
-
71
- .login { margin-top: 1em; }
72
- .logout {
73
- float: left;
74
- font-size: smaller; }
75
-
76
- .helpLink, .helpLinkClose {
77
- text-decoration: none;
78
- font-size: medium;
79
- font-style: italic;
80
- padding-left: 1%;
81
- padding-right: 1%; }
82
- .helpLink { cursor: help; }
83
- .helpLinkClose { text-decoration: line-through; }
84
-
85
- .help {
86
- text-align: left;
87
- padding: 1em;
88
- font-size: medium;
89
- font-weight: normal;
90
- background: transparent; }
91
-
92
- .helpTitle, .helpTitle:link, .helpTitle:visited {
93
- display: block;
94
- font-size: larger;
95
- font-weight: bolder; }
96
-
97
-
98
- .sidebar, .links {
99
- width: 30%;
100
- text-align: center;
101
- background: white; }
102
- .links {
103
- border: solid 1px #9ec6ff;
104
- border-bottom: none;
105
- background: white;
106
- position: absolute;
107
- top: 0;
108
- right: 3%;
109
- height: 3em; }
110
- .sidebar {
111
- padding-left: 2%;
112
- margin-right: -1%;
113
- float: right; }
114
- /* Big hack for ie */
115
- * html .links {
116
- width: 33%;
117
- margin-right: -1px; }
118
-
119
-
120
- .title {
121
- font-size: larger;
122
- font-weight: bolder;
123
- letter-spacing: 0.5em; }
124
- .signets { font-size: smaller; }
125
-
126
- .boxTitle {
127
- background: url("/images/Sleep-Deprivation-5.JPG");
128
- text-align: left;
129
- font-weight: bolder;
130
- padding: 0.5em;
131
- color: #ff4; }
132
-
133
- .box {
134
- font-size: smaller;
135
- margin-bottom: 0.8em;
136
- background: #ccc;
137
- padding: 0.5em 0px; }
138
-
139
- .boxSubtitle {
140
- font-size: small;
141
- text-align: right;
142
- color: #ff4;
143
- background: #557; }
144
-
145
- .boxLine {
146
- text-align: left;
147
- padding-left: 1em; }
148
- .boxLineR {
149
- float: right;
150
- padding-right: 1em; }
151
-
152
- .boxMore {
153
- font-weight: bold;
154
- text-align: right; }
155
-
156
-
157
- .parent {
158
- position: relative;
159
- top: -2em;
160
- font-weight: bolder;
161
- font-style: italic; }
162
- .parent > a:link, .parent > a:visited { color: white; background: transparent; }
163
- .parent > a:hover, .parent > a:active { color: #ffa500; background: transparent; }
164
-
165
- .author {
166
- margin-right: 0.4em;
167
- font-style: italic;
168
- float: left; }
169
- .author:before {
170
- content: '<';
171
- margin-right: -0.5em; }
172
- .author:after {
173
- content: '>';
174
- margin-left: -0.5em; }
175
-
176
- .eltInfo {
177
- float: right;
178
- margin-left: 0.5em; }
179
-
180
- .icon {
181
- text-decoration: none;
182
- margin-right: 0.5em;
183
- color: #e94;
184
- font-weight: bolder;
185
- letter-spacing: -5px; }
186
- .icon:hover, .icon:active { color: #f0f; }
187
-
188
- .created_on {
189
- margin-right: 0.5em;
190
- font-size: smaller;
191
- font-weight: normal;
192
- float: right; }
193
-
194
- .elt { background: url("/images/eltBackground.png") repeat-x; }
195
-
196
- .eltBody { padding-left: 1%; }
197
-
198
- .eltSub {
199
- border-bottom: solid 1px white; /* Or IE would add strange vertical lines in
200
- the close part */
201
- margin-left: 2%;
202
- border-left: solid 9px #fd8;
203
- border-bottom: solid 1px #fd8;
204
- padding-left: 2%; }
205
-
206
- .pageCount {
207
- margin-left: 2em;
208
- margin-right: 2em;
209
- font-size: smaller;
210
- letter-spacing: 0.3em; }
211
-
212
- .eltSubsClose { margin-left: 3%; }
213
-
214
- .version {
215
- text-align: right;
216
- /* To make sure the sidebar is not the last element at the bottom */
217
- clear: right; }
218
- .version > a {
219
- font-size: smaller;
220
- color: #aaa;
221
- cursor: default;
222
- text-decoration: none; }
223
-
224
- .version > a + a { display: none; }
225
- .version:hover > a + a { display: inline; }
226
-
227
-
228
- body { -moz-border-radius: 1em 0 1em 1em; }
229
- input, textarea, input[type='button'], input[type='submit'] {
230
- -moz-border-radius: 0.5em 0 0.5em 0; }
231
- .links { -moz-border-radius: 1em 1em 0 0; }
232
- /* Due to IE, I recode the outset effet */
233
- .box { -moz-border-radius: 0 0 1em 1em; }
234
- .eltSub { -moz-border-radius: 0 0 0 1em; }
235
-
@@ -1,62 +0,0 @@
1
- .live_tree {
2
- border: 1px solid black;
3
- padding: 5px;
4
- overflow: auto;
5
- width: 100%;
6
- height: 100%;
7
- }
8
-
9
- .live_tree_branch, .live_tree_root {
10
- list-style-type: none;
11
- margin-left: 0;
12
- padding-left: 1em;
13
- }
14
-
15
- .live_tree_root {
16
- padding: 0;
17
- margin: 0;
18
- white-space: nowrap;
19
- }
20
-
21
- .live_tree_loading_tree {
22
- color: black;
23
- }
24
-
25
- .live_tree_searching {
26
- margin-bottom: 10px;
27
- }
28
-
29
- .live_tree_item {
30
- }
31
-
32
- a.live_tree_branch_expand_link {
33
- }
34
-
35
- a.live_tree_branch_collapse_link {
36
- }
37
-
38
- .live_tree_item_icon {
39
- color: #048;
40
- border-style: none;
41
- margin-right: 0.5ex;
42
- }
43
-
44
- .live_tree_check_box {
45
- }
46
-
47
- .live_tree_loading_icon {
48
- margin-right: 0.5ex;
49
- }
50
-
51
- a.live_tree_item_link {
52
- color: black;
53
- }
54
-
55
- .live_tree_item_name {
56
- color: black;
57
- }
58
-
59
- .live_tree_active_item_name {
60
- background-color: #048;
61
- color: white;
62
- }
@@ -1,74 +0,0 @@
1
- body { background-color: #fff; color: #333; }
2
-
3
- body, p, ol, ul, td {
4
- font-family: verdana, arial, helvetica, sans-serif;
5
- font-size: 13px;
6
- line-height: 18px;
7
- }
8
-
9
- pre {
10
- background-color: #eee;
11
- padding: 10px;
12
- font-size: 11px;
13
- }
14
-
15
- a { color: #000; }
16
- a:visited { color: #666; }
17
- a:hover { color: #fff; background-color:#000; }
18
-
19
- .fieldWithErrors {
20
- padding: 2px;
21
- background-color: red;
22
- display: table;
23
- }
24
-
25
- #ErrorExplanation {
26
- width: 400px;
27
- border: 2px solid 'red';
28
- padding: 7px;
29
- padding-bottom: 12px;
30
- margin-bottom: 20px;
31
- background-color: #f0f0f0;
32
- }
33
-
34
- #ErrorExplanation h2 {
35
- text-align: left;
36
- font-weight: bold;
37
- padding: 5px 5px 5px 15px;
38
- font-size: 12px;
39
- margin: -7px;
40
- background-color: #c00;
41
- color: #fff;
42
- }
43
-
44
- #ErrorExplanation p {
45
- color: #333;
46
- margin-bottom: 0;
47
- padding: 5px;
48
- }
49
-
50
- #ErrorExplanation ul li {
51
- font-size: 12px;
52
- list-style: square;
53
- }
54
-
55
- div.uploadStatus {
56
- margin: 5px;
57
- }
58
-
59
- div.progressBar {
60
- margin: 5px;
61
- }
62
-
63
- div.progressBar div.border {
64
- background-color: #fff;
65
- border: 1px solid grey;
66
- width: 100%;
67
- }
68
-
69
- div.progressBar div.background {
70
- background-color: #333;
71
- height: 18px;
72
- width: 0%;
73
- }
74
-
data/script/about DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/about'
data/script/benchmarker DELETED
@@ -1,19 +0,0 @@
1
- #!/usr/bin/ruby1.8
2
-
3
- if ARGV.empty?
4
- puts "Usage: benchmarker times 'Person.expensive_way' 'Person.another_expensive_way' ..."
5
- exit
6
- end
7
-
8
- require File.dirname(__FILE__) + '/../config/environment'
9
- require 'benchmark'
10
- include Benchmark
11
-
12
- # Don't include compilation in the benchmark
13
- ARGV[1..-1].each { |expression| eval(expression) }
14
-
15
- bm(6) do |x|
16
- ARGV[1..-1].each_with_index do |expression, idx|
17
- x.report("##{idx + 1}") { ARGV[0].to_i.times { eval(expression) } }
18
- end
19
- end
data/script/breakpointer DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/breakpointer'
data/script/console DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/console'
data/script/create_db DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require File.dirname(__FILE__) + '/../config/environment'
4
- require 'rubygems'
5
- require_gem 'db_structure'
6
-
7
- DBStructure::db_structure
data/script/destroy DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/destroy'
data/script/generate DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/generate'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/performance/benchmarker'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/performance/profiler'
data/script/plugin DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/plugin'