manageable 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/CHANGELOG.rdoc +3 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +1 -0
  4. data/Rakefile +34 -0
  5. data/lib/manageable.rb +4 -0
  6. data/lib/manageable/engine.rb +6 -0
  7. data/lib/manageable/version.rb +3 -0
  8. data/spec/dummy/Rakefile +7 -0
  9. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  10. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  11. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  12. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  13. data/spec/dummy/app/views/layouts/application.html.erb +16 -0
  14. data/spec/dummy/config.ru +4 -0
  15. data/spec/dummy/config/application.rb +48 -0
  16. data/spec/dummy/config/boot.rb +10 -0
  17. data/spec/dummy/config/database.yml +25 -0
  18. data/spec/dummy/config/environment.rb +5 -0
  19. data/spec/dummy/config/environments/development.rb +27 -0
  20. data/spec/dummy/config/environments/production.rb +51 -0
  21. data/spec/dummy/config/environments/test.rb +39 -0
  22. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  23. data/spec/dummy/config/initializers/inflections.rb +10 -0
  24. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  25. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  26. data/spec/dummy/config/initializers/session_store.rb +8 -0
  27. data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
  28. data/spec/dummy/config/locales/en.yml +5 -0
  29. data/spec/dummy/config/routes.rb +3 -0
  30. data/spec/dummy/db/development.sqlite3 +0 -0
  31. data/spec/dummy/db/schema.rb +16 -0
  32. data/spec/dummy/db/test.sqlite3 +0 -0
  33. data/spec/dummy/log/development.log +79 -0
  34. data/spec/dummy/log/test.log +69796 -0
  35. data/spec/dummy/public/404.html +26 -0
  36. data/spec/dummy/public/422.html +26 -0
  37. data/spec/dummy/public/500.html +26 -0
  38. data/spec/dummy/public/favicon.ico +0 -0
  39. data/spec/dummy/script/rails +6 -0
  40. data/spec/lib/manageable/engine_spec.rb +9 -0
  41. data/spec/lib/manageable/version_spec.rb +9 -0
  42. data/spec/spec_helper.rb +33 -0
  43. metadata +232 -0
@@ -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,26 @@
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
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
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,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe "The Engine" do
4
+
5
+ it "should define the module" do
6
+ Manageable.should be_a(Module)
7
+ end
8
+
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe "The Engine Version" do
4
+
5
+ it "should be retrievable" do
6
+ assert Manageable::VERSION
7
+ end
8
+
9
+ end
@@ -0,0 +1,33 @@
1
+ ENV["RAILS_ENV"] ||= 'test'
2
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
3
+ require 'rspec/rails'
4
+ require 'database_cleaner'
5
+ require 'shoulda-matchers'
6
+ require 'factory_girl'
7
+
8
+ ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
9
+
10
+ Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
11
+
12
+ FactoryGirl.definition_file_paths = [File.join(ENGINE_RAILS_ROOT, 'spec', 'factories')]
13
+ FactoryGirl.find_definitions
14
+
15
+ RSpec.configure do |config|
16
+ config.mock_with :rspec
17
+ config.use_transactional_fixtures = false
18
+ config.include Factory::Syntax::Methods
19
+ config.include Capybara::DSL, :example_group => { :file_path => /\bspec\/integration\// }
20
+
21
+ config.before(:suite) do
22
+ DatabaseCleaner.strategy = :transaction
23
+ DatabaseCleaner.clean_with(:truncation)
24
+ end
25
+
26
+ config.before(:each) do
27
+ DatabaseCleaner.start
28
+ end
29
+
30
+ config.after(:each) do
31
+ DatabaseCleaner.clean
32
+ end
33
+ end
metadata ADDED
@@ -0,0 +1,232 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: manageable
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Fabio Kreusch
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-02-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &17920100 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *17920100
25
+ - !ruby/object:Gem::Dependency
26
+ name: sqlite3
27
+ requirement: &17919440 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *17919440
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec-rails
38
+ requirement: &17918640 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '2.5'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *17918640
47
+ - !ruby/object:Gem::Dependency
48
+ name: shoulda-matchers
49
+ requirement: &17918000 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *17918000
58
+ - !ruby/object:Gem::Dependency
59
+ name: database_cleaner
60
+ requirement: &17917360 !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: *17917360
69
+ - !ruby/object:Gem::Dependency
70
+ name: capybara
71
+ requirement: &17916820 !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: *17916820
80
+ - !ruby/object:Gem::Dependency
81
+ name: launchy
82
+ requirement: &17916260 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *17916260
91
+ - !ruby/object:Gem::Dependency
92
+ name: factory_girl
93
+ requirement: &17909820 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *17909820
102
+ - !ruby/object:Gem::Dependency
103
+ name: guard-bundler
104
+ requirement: &17909220 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *17909220
113
+ - !ruby/object:Gem::Dependency
114
+ name: guard-rspec
115
+ requirement: &17908680 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *17908680
124
+ description: An administration engine
125
+ email:
126
+ - fabiokr@gmail.com
127
+ executables: []
128
+ extensions: []
129
+ extra_rdoc_files: []
130
+ files:
131
+ - lib/manageable.rb
132
+ - lib/manageable/version.rb
133
+ - lib/manageable/engine.rb
134
+ - MIT-LICENSE
135
+ - Rakefile
136
+ - README.rdoc
137
+ - CHANGELOG.rdoc
138
+ - spec/spec_helper.rb
139
+ - spec/lib/manageable/version_spec.rb
140
+ - spec/lib/manageable/engine_spec.rb
141
+ - spec/dummy/public/500.html
142
+ - spec/dummy/public/404.html
143
+ - spec/dummy/public/422.html
144
+ - spec/dummy/public/favicon.ico
145
+ - spec/dummy/db/schema.rb
146
+ - spec/dummy/db/test.sqlite3
147
+ - spec/dummy/db/development.sqlite3
148
+ - spec/dummy/script/rails
149
+ - spec/dummy/Rakefile
150
+ - spec/dummy/config.ru
151
+ - spec/dummy/app/helpers/application_helper.rb
152
+ - spec/dummy/app/assets/javascripts/application.js
153
+ - spec/dummy/app/assets/stylesheets/application.css
154
+ - spec/dummy/app/views/layouts/application.html.erb
155
+ - spec/dummy/app/controllers/application_controller.rb
156
+ - spec/dummy/config/boot.rb
157
+ - spec/dummy/config/environment.rb
158
+ - spec/dummy/config/locales/en.yml
159
+ - spec/dummy/config/initializers/secret_token.rb
160
+ - spec/dummy/config/initializers/wrap_parameters.rb
161
+ - spec/dummy/config/initializers/session_store.rb
162
+ - spec/dummy/config/initializers/backtrace_silencers.rb
163
+ - spec/dummy/config/initializers/inflections.rb
164
+ - spec/dummy/config/initializers/mime_types.rb
165
+ - spec/dummy/config/routes.rb
166
+ - spec/dummy/config/application.rb
167
+ - spec/dummy/config/environments/test.rb
168
+ - spec/dummy/config/environments/production.rb
169
+ - spec/dummy/config/environments/development.rb
170
+ - spec/dummy/config/database.yml
171
+ - spec/dummy/log/test.log
172
+ - spec/dummy/log/development.log
173
+ homepage: https://github.com/fabiokr/admin
174
+ licenses: []
175
+ post_install_message:
176
+ rdoc_options: []
177
+ require_paths:
178
+ - lib
179
+ required_ruby_version: !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
182
+ - - ! '>='
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ required_rubygems_version: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ! '>='
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ requirements: []
192
+ rubyforge_project:
193
+ rubygems_version: 1.8.15
194
+ signing_key:
195
+ specification_version: 3
196
+ summary: An administration engine
197
+ test_files:
198
+ - spec/spec_helper.rb
199
+ - spec/lib/manageable/version_spec.rb
200
+ - spec/lib/manageable/engine_spec.rb
201
+ - spec/dummy/public/500.html
202
+ - spec/dummy/public/404.html
203
+ - spec/dummy/public/422.html
204
+ - spec/dummy/public/favicon.ico
205
+ - spec/dummy/db/schema.rb
206
+ - spec/dummy/db/test.sqlite3
207
+ - spec/dummy/db/development.sqlite3
208
+ - spec/dummy/script/rails
209
+ - spec/dummy/Rakefile
210
+ - spec/dummy/config.ru
211
+ - spec/dummy/app/helpers/application_helper.rb
212
+ - spec/dummy/app/assets/javascripts/application.js
213
+ - spec/dummy/app/assets/stylesheets/application.css
214
+ - spec/dummy/app/views/layouts/application.html.erb
215
+ - spec/dummy/app/controllers/application_controller.rb
216
+ - spec/dummy/config/boot.rb
217
+ - spec/dummy/config/environment.rb
218
+ - spec/dummy/config/locales/en.yml
219
+ - spec/dummy/config/initializers/secret_token.rb
220
+ - spec/dummy/config/initializers/wrap_parameters.rb
221
+ - spec/dummy/config/initializers/session_store.rb
222
+ - spec/dummy/config/initializers/backtrace_silencers.rb
223
+ - spec/dummy/config/initializers/inflections.rb
224
+ - spec/dummy/config/initializers/mime_types.rb
225
+ - spec/dummy/config/routes.rb
226
+ - spec/dummy/config/application.rb
227
+ - spec/dummy/config/environments/test.rb
228
+ - spec/dummy/config/environments/production.rb
229
+ - spec/dummy/config/environments/development.rb
230
+ - spec/dummy/config/database.yml
231
+ - spec/dummy/log/test.log
232
+ - spec/dummy/log/development.log