leap_web_core 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 (51) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/Rakefile +38 -0
  3. data/Readme.md +4 -0
  4. data/app/controllers/home_controller.rb +5 -0
  5. data/app/views/home/index.html.haml +1 -0
  6. data/config/initializers/backtrace_silencers.rb +7 -0
  7. data/config/initializers/inflections.rb +15 -0
  8. data/config/initializers/mime_types.rb +5 -0
  9. data/config/initializers/simple_form.rb +181 -0
  10. data/config/initializers/validations.rb +4 -0
  11. data/config/initializers/wrap_parameters.rb +10 -0
  12. data/config/routes.rb +3 -0
  13. data/lib/extensions/testing.rb +24 -0
  14. data/lib/leap_web_core.rb +6 -0
  15. data/lib/leap_web_core/dependencies.rb +40 -0
  16. data/lib/leap_web_core/engine.rb +9 -0
  17. data/lib/leap_web_core/version.rb +3 -0
  18. data/lib/tasks/leap_web_core_tasks.rake +4 -0
  19. data/test/dummy/README.rdoc +261 -0
  20. data/test/dummy/Rakefile +7 -0
  21. data/test/dummy/app/assets/javascripts/application.js +15 -0
  22. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  23. data/test/dummy/app/controllers/application_controller.rb +3 -0
  24. data/test/dummy/app/helpers/application_helper.rb +2 -0
  25. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  26. data/test/dummy/config.ru +4 -0
  27. data/test/dummy/config/application.rb +65 -0
  28. data/test/dummy/config/boot.rb +10 -0
  29. data/test/dummy/config/environment.rb +5 -0
  30. data/test/dummy/config/environments/development.rb +31 -0
  31. data/test/dummy/config/environments/production.rb +64 -0
  32. data/test/dummy/config/environments/test.rb +35 -0
  33. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/dummy/config/initializers/inflections.rb +15 -0
  35. data/test/dummy/config/initializers/mime_types.rb +5 -0
  36. data/test/dummy/config/initializers/secret_token.rb +7 -0
  37. data/test/dummy/config/initializers/session_store.rb +8 -0
  38. data/test/dummy/config/initializers/wrap_parameters.rb +10 -0
  39. data/test/dummy/config/locales/en.yml +5 -0
  40. data/test/dummy/config/routes.rb +58 -0
  41. data/test/dummy/log/development.log +129 -0
  42. data/test/dummy/log/test.log +0 -0
  43. data/test/dummy/public/404.html +26 -0
  44. data/test/dummy/public/422.html +26 -0
  45. data/test/dummy/public/500.html +25 -0
  46. data/test/dummy/public/favicon.ico +0 -0
  47. data/test/dummy/script/rails +6 -0
  48. data/test/integration/navigation_test.rb +9 -0
  49. data/test/leap_web_core_test.rb +7 -0
  50. data/test/test_helper.rb +15 -0
  51. metadata +195 -0
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby1.8
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,9 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class LeapWebCoreTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, LeapWebCore
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata ADDED
@@ -0,0 +1,195 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: leap_web_core
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Azul
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-09-11 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ prerelease: false
22
+ type: :runtime
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ hash: 31
29
+ segments:
30
+ - 3
31
+ - 2
32
+ - 8
33
+ version: 3.2.8
34
+ name: rails
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ prerelease: false
38
+ type: :runtime
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ hash: 21
45
+ segments:
46
+ - 1
47
+ - 1
48
+ - 3
49
+ version: 1.1.3
50
+ name: couchrest
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ prerelease: false
54
+ type: :runtime
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ hash: -749150683
61
+ segments:
62
+ - 2
63
+ - 0
64
+ - 0
65
+ - beta
66
+ - 2
67
+ version: 2.0.0.beta2
68
+ name: couchrest_model
69
+ version_requirements: *id003
70
+ description: This web interface provides various administrative tools for the leap platform through plugins. Currently it manages user accounts and certificates.
71
+ email:
72
+ - azul@leap.se
73
+ executables: []
74
+
75
+ extensions: []
76
+
77
+ extra_rdoc_files: []
78
+
79
+ files:
80
+ - app/controllers/home_controller.rb
81
+ - app/views/home/index.html.haml
82
+ - config/initializers/inflections.rb
83
+ - config/initializers/mime_types.rb
84
+ - config/initializers/simple_form.rb
85
+ - config/initializers/backtrace_silencers.rb
86
+ - config/initializers/validations.rb
87
+ - config/initializers/wrap_parameters.rb
88
+ - config/routes.rb
89
+ - lib/leap_web_core/version.rb
90
+ - lib/leap_web_core/dependencies.rb
91
+ - lib/leap_web_core/engine.rb
92
+ - lib/leap_web_core.rb
93
+ - lib/extensions/testing.rb
94
+ - lib/tasks/leap_web_core_tasks.rake
95
+ - MIT-LICENSE
96
+ - Rakefile
97
+ - Readme.md
98
+ - test/dummy/README.rdoc
99
+ - test/dummy/app/helpers/application_helper.rb
100
+ - test/dummy/app/assets/javascripts/application.js
101
+ - test/dummy/app/assets/stylesheets/application.css
102
+ - test/dummy/app/controllers/application_controller.rb
103
+ - test/dummy/app/views/layouts/application.html.erb
104
+ - test/dummy/script/rails
105
+ - test/dummy/Rakefile
106
+ - test/dummy/config.ru
107
+ - test/dummy/log/development.log
108
+ - test/dummy/log/test.log
109
+ - test/dummy/public/404.html
110
+ - test/dummy/public/422.html
111
+ - test/dummy/public/favicon.ico
112
+ - test/dummy/public/500.html
113
+ - test/dummy/config/locales/en.yml
114
+ - test/dummy/config/environment.rb
115
+ - test/dummy/config/environments/development.rb
116
+ - test/dummy/config/environments/test.rb
117
+ - test/dummy/config/environments/production.rb
118
+ - test/dummy/config/initializers/inflections.rb
119
+ - test/dummy/config/initializers/session_store.rb
120
+ - test/dummy/config/initializers/secret_token.rb
121
+ - test/dummy/config/initializers/mime_types.rb
122
+ - test/dummy/config/initializers/backtrace_silencers.rb
123
+ - test/dummy/config/initializers/wrap_parameters.rb
124
+ - test/dummy/config/routes.rb
125
+ - test/dummy/config/boot.rb
126
+ - test/dummy/config/application.rb
127
+ - test/integration/navigation_test.rb
128
+ - test/test_helper.rb
129
+ - test/leap_web_core_test.rb
130
+ homepage: http://www.leap.se
131
+ licenses: []
132
+
133
+ post_install_message:
134
+ rdoc_options: []
135
+
136
+ require_paths:
137
+ - lib
138
+ required_ruby_version: !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ hash: 3
144
+ segments:
145
+ - 0
146
+ version: "0"
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ none: false
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ hash: 3
153
+ segments:
154
+ - 0
155
+ version: "0"
156
+ requirements: []
157
+
158
+ rubyforge_project:
159
+ rubygems_version: 1.8.15
160
+ signing_key:
161
+ specification_version: 3
162
+ summary: Web interface to the leap platform
163
+ test_files:
164
+ - test/dummy/README.rdoc
165
+ - test/dummy/app/helpers/application_helper.rb
166
+ - test/dummy/app/assets/javascripts/application.js
167
+ - test/dummy/app/assets/stylesheets/application.css
168
+ - test/dummy/app/controllers/application_controller.rb
169
+ - test/dummy/app/views/layouts/application.html.erb
170
+ - test/dummy/script/rails
171
+ - test/dummy/Rakefile
172
+ - test/dummy/config.ru
173
+ - test/dummy/log/development.log
174
+ - test/dummy/log/test.log
175
+ - test/dummy/public/404.html
176
+ - test/dummy/public/422.html
177
+ - test/dummy/public/favicon.ico
178
+ - test/dummy/public/500.html
179
+ - test/dummy/config/locales/en.yml
180
+ - test/dummy/config/environment.rb
181
+ - test/dummy/config/environments/development.rb
182
+ - test/dummy/config/environments/test.rb
183
+ - test/dummy/config/environments/production.rb
184
+ - test/dummy/config/initializers/inflections.rb
185
+ - test/dummy/config/initializers/session_store.rb
186
+ - test/dummy/config/initializers/secret_token.rb
187
+ - test/dummy/config/initializers/mime_types.rb
188
+ - test/dummy/config/initializers/backtrace_silencers.rb
189
+ - test/dummy/config/initializers/wrap_parameters.rb
190
+ - test/dummy/config/routes.rb
191
+ - test/dummy/config/boot.rb
192
+ - test/dummy/config/application.rb
193
+ - test/integration/navigation_test.rb
194
+ - test/test_helper.rb
195
+ - test/leap_web_core_test.rb