further 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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +4 -0
- data/Rakefile +38 -0
- data/lib/further.rb +2 -0
- data/lib/further/core.rb +44 -0
- data/lib/further/version.rb +3 -0
- data/lib/generators/further/USAGE +10 -0
- data/lib/generators/further/further_generator.rb +16 -0
- data/lib/generators/further/templates/create_further_informations.rb +12 -0
- data/lib/generators/further/templates/further_information.rb +5 -0
- data/lib/tasks/further_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/sites_controller.rb +83 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/sites_helper.rb +2 -0
- data/test/dummy/app/models/site.rb +4 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/sites/_form.html.erb +17 -0
- data/test/dummy/app/views/sites/edit.html.erb +6 -0
- data/test/dummy/app/views/sites/index.html.erb +21 -0
- data/test/dummy/app/views/sites/new.html.erb +5 -0
- data/test/dummy/app/views/sites/show.html.erb +5 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +59 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20131119113259_create_sites.rb +10 -0
- data/test/dummy/db/schema.rb +34 -0
- data/test/dummy/log/development.log +310 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/further_informations.yml +9 -0
- data/test/dummy/test/fixtures/sites.yml +9 -0
- data/test/dummy/test/functional/sites_controller_test.rb +49 -0
- data/test/dummy/test/unit/further_information_test.rb +7 -0
- data/test/dummy/test/unit/helpers/sites_helper_test.rb +4 -0
- data/test/dummy/test/unit/site_test.rb +7 -0
- data/test/further_test.rb +19 -0
- data/test/test_helper.rb +15 -0
- metadata +178 -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,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 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,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SitesControllerTest < ActionController::TestCase
|
4
|
+
setup do
|
5
|
+
@site = sites(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get :index
|
10
|
+
assert_response :success
|
11
|
+
assert_not_nil assigns(:sites)
|
12
|
+
end
|
13
|
+
|
14
|
+
test "should get new" do
|
15
|
+
get :new
|
16
|
+
assert_response :success
|
17
|
+
end
|
18
|
+
|
19
|
+
test "should create site" do
|
20
|
+
assert_difference('Site.count') do
|
21
|
+
post :create, site: { }
|
22
|
+
end
|
23
|
+
|
24
|
+
assert_redirected_to site_path(assigns(:site))
|
25
|
+
end
|
26
|
+
|
27
|
+
test "should show site" do
|
28
|
+
get :show, id: @site
|
29
|
+
assert_response :success
|
30
|
+
end
|
31
|
+
|
32
|
+
test "should get edit" do
|
33
|
+
get :edit, id: @site
|
34
|
+
assert_response :success
|
35
|
+
end
|
36
|
+
|
37
|
+
test "should update site" do
|
38
|
+
put :update, id: @site, site: { }
|
39
|
+
assert_redirected_to site_path(assigns(:site))
|
40
|
+
end
|
41
|
+
|
42
|
+
test "should destroy site" do
|
43
|
+
assert_difference('Site.count', -1) do
|
44
|
+
delete :destroy, id: @site
|
45
|
+
end
|
46
|
+
|
47
|
+
assert_redirected_to sites_path
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class FurtherTest < ActiveSupport::TestCase
|
4
|
+
test "truth" do
|
5
|
+
assert_kind_of Module, Further
|
6
|
+
end
|
7
|
+
|
8
|
+
test "further should not raise error if there is no information record" do
|
9
|
+
|
10
|
+
end
|
11
|
+
|
12
|
+
test "further return nil if there is no info" do
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
test "further create or add new information record when adding new info" do
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -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,178 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: further
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Abdulaziz AlShetwi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-11-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.13
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.13
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sqlite3
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: ''
|
42
|
+
email:
|
43
|
+
- ecleeld@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- lib/further/core.rb
|
49
|
+
- lib/further/version.rb
|
50
|
+
- lib/further.rb
|
51
|
+
- lib/generators/further/further_generator.rb
|
52
|
+
- lib/generators/further/templates/create_further_informations.rb
|
53
|
+
- lib/generators/further/templates/further_information.rb
|
54
|
+
- lib/generators/further/USAGE
|
55
|
+
- lib/tasks/further_tasks.rake
|
56
|
+
- MIT-LICENSE
|
57
|
+
- Rakefile
|
58
|
+
- README.md
|
59
|
+
- test/dummy/app/assets/javascripts/application.js
|
60
|
+
- test/dummy/app/assets/stylesheets/application.css
|
61
|
+
- test/dummy/app/controllers/application_controller.rb
|
62
|
+
- test/dummy/app/controllers/sites_controller.rb
|
63
|
+
- test/dummy/app/helpers/application_helper.rb
|
64
|
+
- test/dummy/app/helpers/sites_helper.rb
|
65
|
+
- test/dummy/app/models/site.rb
|
66
|
+
- test/dummy/app/views/layouts/application.html.erb
|
67
|
+
- test/dummy/app/views/sites/_form.html.erb
|
68
|
+
- test/dummy/app/views/sites/edit.html.erb
|
69
|
+
- test/dummy/app/views/sites/index.html.erb
|
70
|
+
- test/dummy/app/views/sites/new.html.erb
|
71
|
+
- test/dummy/app/views/sites/show.html.erb
|
72
|
+
- test/dummy/config/application.rb
|
73
|
+
- test/dummy/config/boot.rb
|
74
|
+
- test/dummy/config/database.yml
|
75
|
+
- test/dummy/config/environment.rb
|
76
|
+
- test/dummy/config/environments/development.rb
|
77
|
+
- test/dummy/config/environments/production.rb
|
78
|
+
- test/dummy/config/environments/test.rb
|
79
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
80
|
+
- test/dummy/config/initializers/inflections.rb
|
81
|
+
- test/dummy/config/initializers/mime_types.rb
|
82
|
+
- test/dummy/config/initializers/secret_token.rb
|
83
|
+
- test/dummy/config/initializers/session_store.rb
|
84
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
85
|
+
- test/dummy/config/locales/en.yml
|
86
|
+
- test/dummy/config/routes.rb
|
87
|
+
- test/dummy/config.ru
|
88
|
+
- test/dummy/db/development.sqlite3
|
89
|
+
- test/dummy/db/migrate/20131119113259_create_sites.rb
|
90
|
+
- test/dummy/db/schema.rb
|
91
|
+
- test/dummy/log/development.log
|
92
|
+
- test/dummy/public/404.html
|
93
|
+
- test/dummy/public/422.html
|
94
|
+
- test/dummy/public/500.html
|
95
|
+
- test/dummy/public/favicon.ico
|
96
|
+
- test/dummy/Rakefile
|
97
|
+
- test/dummy/README.rdoc
|
98
|
+
- test/dummy/script/rails
|
99
|
+
- test/dummy/test/fixtures/further_informations.yml
|
100
|
+
- test/dummy/test/fixtures/sites.yml
|
101
|
+
- test/dummy/test/functional/sites_controller_test.rb
|
102
|
+
- test/dummy/test/unit/further_information_test.rb
|
103
|
+
- test/dummy/test/unit/helpers/sites_helper_test.rb
|
104
|
+
- test/dummy/test/unit/site_test.rb
|
105
|
+
- test/further_test.rb
|
106
|
+
- test/test_helper.rb
|
107
|
+
homepage: https://github.com/ecleel/further
|
108
|
+
licenses: []
|
109
|
+
metadata: {}
|
110
|
+
post_install_message:
|
111
|
+
rdoc_options: []
|
112
|
+
require_paths:
|
113
|
+
- lib
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - '>='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
requirements: []
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 2.0.3
|
127
|
+
signing_key:
|
128
|
+
specification_version: 4
|
129
|
+
summary: Add more data in you model without adding a column in your table.
|
130
|
+
test_files:
|
131
|
+
- test/dummy/app/assets/javascripts/application.js
|
132
|
+
- test/dummy/app/assets/stylesheets/application.css
|
133
|
+
- test/dummy/app/controllers/application_controller.rb
|
134
|
+
- test/dummy/app/controllers/sites_controller.rb
|
135
|
+
- test/dummy/app/helpers/application_helper.rb
|
136
|
+
- test/dummy/app/helpers/sites_helper.rb
|
137
|
+
- test/dummy/app/models/site.rb
|
138
|
+
- test/dummy/app/views/layouts/application.html.erb
|
139
|
+
- test/dummy/app/views/sites/_form.html.erb
|
140
|
+
- test/dummy/app/views/sites/edit.html.erb
|
141
|
+
- test/dummy/app/views/sites/index.html.erb
|
142
|
+
- test/dummy/app/views/sites/new.html.erb
|
143
|
+
- test/dummy/app/views/sites/show.html.erb
|
144
|
+
- test/dummy/config/application.rb
|
145
|
+
- test/dummy/config/boot.rb
|
146
|
+
- test/dummy/config/database.yml
|
147
|
+
- test/dummy/config/environment.rb
|
148
|
+
- test/dummy/config/environments/development.rb
|
149
|
+
- test/dummy/config/environments/production.rb
|
150
|
+
- test/dummy/config/environments/test.rb
|
151
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
152
|
+
- test/dummy/config/initializers/inflections.rb
|
153
|
+
- test/dummy/config/initializers/mime_types.rb
|
154
|
+
- test/dummy/config/initializers/secret_token.rb
|
155
|
+
- test/dummy/config/initializers/session_store.rb
|
156
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
157
|
+
- test/dummy/config/locales/en.yml
|
158
|
+
- test/dummy/config/routes.rb
|
159
|
+
- test/dummy/config.ru
|
160
|
+
- test/dummy/db/development.sqlite3
|
161
|
+
- test/dummy/db/migrate/20131119113259_create_sites.rb
|
162
|
+
- test/dummy/db/schema.rb
|
163
|
+
- test/dummy/log/development.log
|
164
|
+
- test/dummy/public/404.html
|
165
|
+
- test/dummy/public/422.html
|
166
|
+
- test/dummy/public/500.html
|
167
|
+
- test/dummy/public/favicon.ico
|
168
|
+
- test/dummy/Rakefile
|
169
|
+
- test/dummy/README.rdoc
|
170
|
+
- test/dummy/script/rails
|
171
|
+
- test/dummy/test/fixtures/further_informations.yml
|
172
|
+
- test/dummy/test/fixtures/sites.yml
|
173
|
+
- test/dummy/test/functional/sites_controller_test.rb
|
174
|
+
- test/dummy/test/unit/further_information_test.rb
|
175
|
+
- test/dummy/test/unit/helpers/sites_helper_test.rb
|
176
|
+
- test/dummy/test/unit/site_test.rb
|
177
|
+
- test/further_test.rb
|
178
|
+
- test/test_helper.rb
|