phenomenal_rails 1.0.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.
- data/LICENSE +179 -0
- data/README.rdoc +3 -0
- data/Rakefile +5 -0
- data/app/assets/javascripts/phenomenal_rails/application.js +9 -0
- data/app/assets/stylesheets/phenomenal_rails/application.css +7 -0
- data/app/controllers/phenomenal_rails/application_controller.rb +4 -0
- data/app/views/layouts/phenomenal_rails/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/lib/phenomenal_rails/context.rb +22 -0
- data/lib/phenomenal_rails/engine.rb +12 -0
- data/lib/phenomenal_rails/middleware.rb +15 -0
- data/lib/phenomenal_rails/resolver.rb +58 -0
- data/lib/phenomenal_rails/version.rb +3 -0
- data/lib/phenomenal_rails.rb +43 -0
- data/lib/tasks/phenomenal_rails_tasks.rake +4 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/contexts/persistent_feature/persistent_feature.rb +12 -0
- data/spec/dummy/app/contexts/persistent_feature/test_context/test_context.rb +9 -0
- data/spec/dummy/app/contexts/persistent_feature/test_context/views/shared/_partial1.html.haml +1 -0
- data/spec/dummy/app/controllers/application_controller.rb +8 -0
- data/spec/dummy/app/helpers/application_helper.rb +5 -0
- data/spec/dummy/app/views/layouts/application.html.erb +12 -0
- data/spec/dummy/app/views/pages/home.html.haml +26 -0
- data/spec/dummy/app/views/shared/_partial1.html.haml +1 -0
- data/spec/dummy/config/application.rb +48 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +4 -0
- data/spec/dummy/config/environments/development.rb +30 -0
- data/spec/dummy/config/environments/production.rb +60 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +11 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/production.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +2184 -0
- data/spec/dummy/log/production.log +1135 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/spec_helper.rb +32 -0
- metadata +166 -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 ruby1.9.2
|
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'
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
ENV["RAILS_ENV"] = 'test'
|
3
|
+
require File.expand_path("../../config/environment", __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
require 'rspec/autorun'
|
6
|
+
|
7
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
8
|
+
# in spec/support/ and its subdirectories.
|
9
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
10
|
+
|
11
|
+
RSpec.configure do |config|
|
12
|
+
# ## Mock Framework
|
13
|
+
#
|
14
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
15
|
+
#
|
16
|
+
# config.mock_with :mocha
|
17
|
+
# config.mock_with :flexmock
|
18
|
+
# config.mock_with :rr
|
19
|
+
|
20
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
21
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
22
|
+
|
23
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
24
|
+
# examples within a transaction, remove the following line or assign false
|
25
|
+
# instead of true.
|
26
|
+
config.use_transactional_fixtures = true
|
27
|
+
|
28
|
+
# If true, the base class of anonymous controllers will be inferred
|
29
|
+
# automatically. This will be the default behavior in future versions of
|
30
|
+
# rspec-rails.
|
31
|
+
config.infer_base_class_for_anonymous_controllers = false
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,166 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: phenomenal_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Loic Vigneron - Thibault Poncelet
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-03-07 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: &70097645453100 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.1.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70097645453100
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: phenomenal
|
27
|
+
requirement: &70097645449860 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.0.1
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70097645449860
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec-rails
|
38
|
+
requirement: &70097645464440 !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: *70097645464440
|
47
|
+
description: Rails integration of phenomenal
|
48
|
+
email: thibault.poncelet@student.uclouvain.be - loic.vigneron@student.uclouvain.be
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- app/assets/javascripts/phenomenal_rails/application.js
|
54
|
+
- app/assets/stylesheets/phenomenal_rails/application.css
|
55
|
+
- app/controllers/phenomenal_rails/application_controller.rb
|
56
|
+
- app/views/layouts/phenomenal_rails/application.html.erb
|
57
|
+
- config/routes.rb
|
58
|
+
- lib/phenomenal_rails/context.rb
|
59
|
+
- lib/phenomenal_rails/engine.rb
|
60
|
+
- lib/phenomenal_rails/middleware.rb
|
61
|
+
- lib/phenomenal_rails/resolver.rb
|
62
|
+
- lib/phenomenal_rails/version.rb
|
63
|
+
- lib/phenomenal_rails.rb
|
64
|
+
- lib/tasks/phenomenal_rails_tasks.rake
|
65
|
+
- LICENSE
|
66
|
+
- Rakefile
|
67
|
+
- README.rdoc
|
68
|
+
- spec/dummy/app/assets/javascripts/application.js
|
69
|
+
- spec/dummy/app/contexts/persistent_feature/persistent_feature.rb
|
70
|
+
- spec/dummy/app/contexts/persistent_feature/test_context/test_context.rb
|
71
|
+
- spec/dummy/app/contexts/persistent_feature/test_context/views/shared/_partial1.html.haml
|
72
|
+
- spec/dummy/app/controllers/application_controller.rb
|
73
|
+
- spec/dummy/app/helpers/application_helper.rb
|
74
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
75
|
+
- spec/dummy/app/views/pages/home.html.haml
|
76
|
+
- spec/dummy/app/views/shared/_partial1.html.haml
|
77
|
+
- spec/dummy/config/application.rb
|
78
|
+
- spec/dummy/config/boot.rb
|
79
|
+
- spec/dummy/config/database.yml
|
80
|
+
- spec/dummy/config/environment.rb
|
81
|
+
- spec/dummy/config/environments/development.rb
|
82
|
+
- spec/dummy/config/environments/production.rb
|
83
|
+
- spec/dummy/config/environments/test.rb
|
84
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
85
|
+
- spec/dummy/config/initializers/inflections.rb
|
86
|
+
- spec/dummy/config/initializers/mime_types.rb
|
87
|
+
- spec/dummy/config/initializers/secret_token.rb
|
88
|
+
- spec/dummy/config/initializers/session_store.rb
|
89
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
90
|
+
- spec/dummy/config/locales/en.yml
|
91
|
+
- spec/dummy/config/routes.rb
|
92
|
+
- spec/dummy/config.ru
|
93
|
+
- spec/dummy/db/development.sqlite3
|
94
|
+
- spec/dummy/db/production.sqlite3
|
95
|
+
- spec/dummy/db/test.sqlite3
|
96
|
+
- spec/dummy/log/development.log
|
97
|
+
- spec/dummy/log/production.log
|
98
|
+
- spec/dummy/public/404.html
|
99
|
+
- spec/dummy/public/422.html
|
100
|
+
- spec/dummy/public/500.html
|
101
|
+
- spec/dummy/public/favicon.ico
|
102
|
+
- spec/dummy/Rakefile
|
103
|
+
- spec/dummy/script/rails
|
104
|
+
- spec/spec_helper.rb
|
105
|
+
homepage: http://www.phenomenal-gem.com
|
106
|
+
licenses: []
|
107
|
+
post_install_message:
|
108
|
+
rdoc_options: []
|
109
|
+
require_paths:
|
110
|
+
- lib
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
113
|
+
requirements:
|
114
|
+
- - ! '>='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ! '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 1.8.15
|
126
|
+
signing_key:
|
127
|
+
specification_version: 3
|
128
|
+
summary: Rails glue for phenomenal
|
129
|
+
test_files:
|
130
|
+
- spec/dummy/app/assets/javascripts/application.js
|
131
|
+
- spec/dummy/app/contexts/persistent_feature/persistent_feature.rb
|
132
|
+
- spec/dummy/app/contexts/persistent_feature/test_context/test_context.rb
|
133
|
+
- spec/dummy/app/contexts/persistent_feature/test_context/views/shared/_partial1.html.haml
|
134
|
+
- spec/dummy/app/controllers/application_controller.rb
|
135
|
+
- spec/dummy/app/helpers/application_helper.rb
|
136
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
137
|
+
- spec/dummy/app/views/pages/home.html.haml
|
138
|
+
- spec/dummy/app/views/shared/_partial1.html.haml
|
139
|
+
- spec/dummy/config/application.rb
|
140
|
+
- spec/dummy/config/boot.rb
|
141
|
+
- spec/dummy/config/database.yml
|
142
|
+
- spec/dummy/config/environment.rb
|
143
|
+
- spec/dummy/config/environments/development.rb
|
144
|
+
- spec/dummy/config/environments/production.rb
|
145
|
+
- spec/dummy/config/environments/test.rb
|
146
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
147
|
+
- spec/dummy/config/initializers/inflections.rb
|
148
|
+
- spec/dummy/config/initializers/mime_types.rb
|
149
|
+
- spec/dummy/config/initializers/secret_token.rb
|
150
|
+
- spec/dummy/config/initializers/session_store.rb
|
151
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
152
|
+
- spec/dummy/config/locales/en.yml
|
153
|
+
- spec/dummy/config/routes.rb
|
154
|
+
- spec/dummy/config.ru
|
155
|
+
- spec/dummy/db/development.sqlite3
|
156
|
+
- spec/dummy/db/production.sqlite3
|
157
|
+
- spec/dummy/db/test.sqlite3
|
158
|
+
- spec/dummy/log/development.log
|
159
|
+
- spec/dummy/log/production.log
|
160
|
+
- spec/dummy/public/404.html
|
161
|
+
- spec/dummy/public/422.html
|
162
|
+
- spec/dummy/public/500.html
|
163
|
+
- spec/dummy/public/favicon.ico
|
164
|
+
- spec/dummy/Rakefile
|
165
|
+
- spec/dummy/script/rails
|
166
|
+
- spec/spec_helper.rb
|