wontomedia 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Capfile +14 -0
- data/Gemfile +21 -0
- data/Gemfile.lock +110 -0
- data/README.markdown +3 -1
- data/Rakefile +47 -14
- data/VERSION.yml +2 -2
- data/app/controllers/admin_controller.rb +1 -1
- data/app/controllers/application_controller.rb +1 -1
- data/app/controllers/connections_controller.rb +1 -1
- data/app/controllers/items_controller.rb +1 -1
- data/app/helpers/connections_helper.rb +1 -1
- data/app/helpers/format_helper.rb +1 -1
- data/app/helpers/items_helper.rb +1 -1
- data/app/models/category_item.rb +1 -1
- data/app/models/connection.rb +1 -1
- data/app/models/individual_item.rb +1 -1
- data/app/models/item.rb +1 -1
- data/app/models/property_item.rb +1 -1
- data/app/models/qualified_item.rb +1 -1
- data/app/views/admin/index.html.erb +1 -1
- data/app/views/admin/search.html.erb +1 -1
- data/app/views/connections/_index_outbound_links.html.erb +1 -1
- data/app/views/connections/_spo_select_controls.html.erb +1 -1
- data/app/views/connections/edit.html.erb +1 -1
- data/app/views/connections/index.html.erb +1 -1
- data/app/views/connections/new.html.erb +1 -1
- data/app/views/connections/show.html.erb +1 -1
- data/app/views/items/_active_content.html.erb +1 -1
- data/app/views/items/_class_select.html.erb +1 -1
- data/app/views/items/_content_examples.html.erb +1 -1
- data/app/views/items/_core_tasks.html.erb +1 -1
- data/app/views/items/_form_fields.html.erb +1 -1
- data/app/views/items/_inline_add_popopen.html.erb +1 -1
- data/app/views/items/_inline_item_add_form.html.erb +1 -1
- data/app/views/items/_inline_scalar_add_form.html.erb +1 -1
- data/app/views/items/_list_outbound_links.html.erb +1 -1
- data/app/views/items/_most_populous_classes.html.erb +1 -1
- data/app/views/items/_screen_select.html.erb +1 -1
- data/app/views/items/_show_outbound_links.html.erb +1 -1
- data/app/views/items/_topic_list.html.erb +1 -1
- data/app/views/items/_type_select.html.erb +1 -1
- data/app/views/items/edit.html.erb +1 -1
- data/app/views/items/index.html.erb +1 -1
- data/app/views/items/new.html.erb +1 -1
- data/app/views/items/newpop.html.erb +1 -1
- data/app/views/items/show.html.erb +1 -1
- data/app/views/layouts/_amazon_ads.html.erb +1 -1
- data/app/views/layouts/_dynamic_alert_framework.html.erb +1 -1
- data/app/views/layouts/_footer.html.erb +2 -2
- data/app/views/layouts/_glossary_help_box.html.erb +1 -1
- data/app/views/layouts/_google_ads.html.erb +1 -1
- data/app/views/layouts/_language_select.html.erb +1 -1
- data/app/views/layouts/_login_controls.html.erb +1 -1
- data/app/views/layouts/_master_help.html.erb +1 -1
- data/app/views/layouts/_navigation_menu.html.erb +1 -1
- data/app/views/layouts/_search_box.html.erb +1 -1
- data/app/views/layouts/_status_msgs.html.erb +1 -1
- data/app/views/layouts/application.html.erb +1 -1
- data/app/views/layouts/base.html.erb +1 -1
- data/app/views/layouts/home.html.erb +1 -1
- data/app/views/layouts/popup.html.erb +1 -1
- data/app/views/layouts/search.html.erb +1 -1
- data/assets/wontomedia-sample.rb +1 -1
- data/config/asset_packages.yml +1 -1
- data/config/boot.rb +17 -0
- data/config/caliper.yml +1 -1
- data/config/cucumber.yml +1 -1
- data/config/database-mysql-development.yml +1 -1
- data/config/database-mysql.yml +1 -1
- data/config/deploy.rb +42 -0
- data/config/deploy_on_a2hosting.rb +53 -0
- data/config/deploy_wontomedia.rb +85 -0
- data/config/environment.rb +2 -10
- data/config/environments/cucumber.rb +0 -7
- data/config/environments/development.rb +1 -1
- data/config/environments/production.rb +1 -1
- data/config/environments/test.rb +1 -1
- data/config/initializers/extensions.rb +1 -1
- data/config/initializers/mongrel.rb +90 -0
- data/config/preinitializer.rb +38 -0
- data/config/routes.rb +1 -1
- data/db/fixtures/connections.yml +1 -1
- data/db/fixtures/items.yml +1 -1
- data/default-custom/app/views/items/_home_introductory_text.html.erb +1 -1
- data/default-custom/app/views/items/home.html.erb +1 -1
- data/default-custom/app/views/layouts/_local_navigation.html.erb +1 -1
- data/default-custom/config/initializers/wontomedia.rb +53 -0
- data/default-custom/public/images/logo.png +0 -0
- data/default-custom/public/robots.txt +2 -0
- data/doc/README.markdown +3 -2
- data/doc/README_FOR_APP +1 -1
- data/doc/customization.markdown +15 -15
- data/doc/scripts/rake-customize.markdown +10 -10
- data/lib/helpers/connection_helper.rb +1 -1
- data/lib/helpers/item_helper.rb +1 -1
- data/lib/helpers/tripple_navigation.rb +1 -1
- data/{vendor/plugins/asset_packager → lib}/tasks/asset_packager_tasks.rake +2 -3
- data/lib/tasks/cucumber.rake +1 -1
- data/lib/tasks/customize.rake +10 -8
- data/lib/tasks/db.rake +1 -1
- data/lib/tasks/javascript_testing_tasks.rake +4 -2
- data/public/404.html +2 -2
- data/public/422.html +2 -2
- data/public/500.html +2 -2
- data/public/javascripts/application.js +1 -1
- data/public/javascripts/forConnectionsForms.js +1 -1
- data/public/javascripts/forItemsForms.js +1 -1
- data/public/javascripts/forItemsShow.js +1 -1
- data/public/javascripts/itemCreatePopup.js +1 -1
- data/public/javascripts/itemTitleToName.js +1 -1
- data/public/javascripts/reconcileJQueryAndPrototype.js +1 -1
- metadata +220 -18
- data/default-custom/public/images/logo.svg +0 -74
- data/doc/gemlist.txt +0 -42
- data/public/robots.txt +0 -7
data/Capfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# !!!!! This file was auto-generated by "capify" IF YOU MODIFY IT, you
|
2
|
+
# !!!!! *MUST* replace this notice with a WontoMedia copyright
|
3
|
+
# !!!!! attribute (get from policy/copyright-notices/header.rb) *AND*
|
4
|
+
# !!!!! remove the name of this file from the copyright checking
|
5
|
+
# !!!!! ignore list (policy/copyright-notice-exceptions) *BEFORE*
|
6
|
+
# !!!!! submitting to any version control that feeds back to the
|
7
|
+
# !!!!! WontoMedia project.
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
|
12
|
+
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
|
13
|
+
|
14
|
+
load 'config/deploy' # remove this line to skip loading any of the default tasks
|
data/Gemfile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# WontoMedia - a wontology web application
|
2
|
+
# Copyright (C) 2011 - Glen E. Ivey
|
3
|
+
# www.wontology.com
|
4
|
+
#
|
5
|
+
# This program is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU Affero General Public License version
|
7
|
+
# 3 as published by the Free Software Foundation.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU Affero General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program in the file COPYING and/or LICENSE. If not,
|
16
|
+
# see <http://www.gnu.org/licenses/>.
|
17
|
+
|
18
|
+
|
19
|
+
source :rubygems
|
20
|
+
source "http://gems.github.com"
|
21
|
+
gemspec
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
wontomedia (1.0.3)
|
5
|
+
mongrel
|
6
|
+
mysql (= 2.8.1)
|
7
|
+
rails (= 2.3.11)
|
8
|
+
rake (= 0.8.7)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: http://rubygems.org/
|
12
|
+
remote: http://gems.github.com/
|
13
|
+
specs:
|
14
|
+
ZenTest (4.5.0)
|
15
|
+
actionmailer (2.3.11)
|
16
|
+
actionpack (= 2.3.11)
|
17
|
+
actionpack (2.3.11)
|
18
|
+
activesupport (= 2.3.11)
|
19
|
+
rack (~> 1.1.0)
|
20
|
+
activerecord (2.3.11)
|
21
|
+
activesupport (= 2.3.11)
|
22
|
+
activeresource (2.3.11)
|
23
|
+
activesupport (= 2.3.11)
|
24
|
+
activesupport (2.3.11)
|
25
|
+
builder (3.0.0)
|
26
|
+
capistrano (2.5.19)
|
27
|
+
highline
|
28
|
+
net-scp (>= 1.0.0)
|
29
|
+
net-sftp (>= 2.0.0)
|
30
|
+
net-ssh (>= 2.0.14)
|
31
|
+
net-ssh-gateway (>= 1.0.0)
|
32
|
+
cgi_multipart_eof_fix (2.5.0)
|
33
|
+
cucumber (0.10.0)
|
34
|
+
builder (>= 2.1.2)
|
35
|
+
diff-lcs (~> 1.1.2)
|
36
|
+
gherkin (~> 2.3.2)
|
37
|
+
json (~> 1.4.6)
|
38
|
+
term-ansicolor (~> 1.0.5)
|
39
|
+
cucumber-rails (0.3.2)
|
40
|
+
cucumber (>= 0.8.0)
|
41
|
+
daemons (1.1.0)
|
42
|
+
database_cleaner (0.6.5)
|
43
|
+
diff-lcs (1.1.2)
|
44
|
+
fastthread (1.0.7)
|
45
|
+
gem_plugin (0.2.3)
|
46
|
+
gemcutter (0.7.0)
|
47
|
+
gherkin (2.3.4)
|
48
|
+
json (~> 1.4.6)
|
49
|
+
git (1.2.5)
|
50
|
+
highline (1.6.1)
|
51
|
+
json (1.4.6)
|
52
|
+
json_pure (1.5.1)
|
53
|
+
migration_test_helper (1.3.3)
|
54
|
+
mongrel (1.1.5)
|
55
|
+
cgi_multipart_eof_fix (>= 2.4)
|
56
|
+
daemons (>= 1.0.3)
|
57
|
+
fastthread (>= 1.0.1)
|
58
|
+
gem_plugin (>= 0.2.3)
|
59
|
+
mysql (2.8.1)
|
60
|
+
net-scp (1.0.4)
|
61
|
+
net-ssh (>= 1.99.1)
|
62
|
+
net-sftp (2.0.5)
|
63
|
+
net-ssh (>= 2.0.9)
|
64
|
+
net-ssh (2.1.3)
|
65
|
+
net-ssh-gateway (1.0.1)
|
66
|
+
net-ssh (>= 1.99.1)
|
67
|
+
nokogiri (1.4.4)
|
68
|
+
rack (1.1.1)
|
69
|
+
rack-test (0.5.7)
|
70
|
+
rack (>= 1.0)
|
71
|
+
rails (2.3.11)
|
72
|
+
actionmailer (= 2.3.11)
|
73
|
+
actionpack (= 2.3.11)
|
74
|
+
activerecord (= 2.3.11)
|
75
|
+
activeresource (= 2.3.11)
|
76
|
+
activesupport (= 2.3.11)
|
77
|
+
rake (>= 0.8.3)
|
78
|
+
rake (0.8.7)
|
79
|
+
rspec (1.3.1)
|
80
|
+
rspec-rails (1.3.3)
|
81
|
+
rack (>= 1.0.0)
|
82
|
+
rspec (= 1.3.1)
|
83
|
+
rubyforge (2.0.4)
|
84
|
+
json_pure (>= 1.1.7)
|
85
|
+
selenium-client (1.2.18)
|
86
|
+
technicalpickles-jeweler (1.2.1)
|
87
|
+
git (>= 1.2.1)
|
88
|
+
rubyforge
|
89
|
+
term-ansicolor (1.0.5)
|
90
|
+
webrat (0.7.3)
|
91
|
+
nokogiri (>= 1.2.0)
|
92
|
+
rack (>= 1.0)
|
93
|
+
rack-test (>= 0.5.3)
|
94
|
+
|
95
|
+
PLATFORMS
|
96
|
+
ruby
|
97
|
+
|
98
|
+
DEPENDENCIES
|
99
|
+
ZenTest
|
100
|
+
bundler
|
101
|
+
capistrano
|
102
|
+
cucumber-rails
|
103
|
+
database_cleaner
|
104
|
+
gemcutter
|
105
|
+
migration_test_helper
|
106
|
+
rspec-rails (= 1.3.3)
|
107
|
+
selenium-client
|
108
|
+
technicalpickles-jeweler
|
109
|
+
webrat
|
110
|
+
wontomedia!
|
data/README.markdown
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
WontoMedia "README" file
|
2
|
-
|
2
|
+
|
3
|
+
Copyright (C) 2011 - Glen E. Ivey
|
3
4
|
(see the end of this file for copyright/licensing information)
|
4
5
|
|
5
6
|
|
@@ -54,3 +55,4 @@ Finally, you can also find us at:
|
|
54
55
|
You should have received a copy of the GNU Free Documentation
|
55
56
|
License along with document in the file COPYING.DOCUMENTATION. If
|
56
57
|
not, see <http://www.gnu.org/licenses/>.
|
58
|
+
|
data/Rakefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# WontoMedia - a wontology web application
|
2
|
-
# Copyright (C)
|
2
|
+
# Copyright (C) 2011 - Glen E. Ivey
|
3
3
|
# www.wontology.com
|
4
4
|
#
|
5
5
|
# This program is free software: you can redistribute it and/or modify
|
@@ -16,6 +16,30 @@
|
|
16
16
|
# see <http://www.gnu.org/licenses/>.
|
17
17
|
|
18
18
|
|
19
|
+
have_jeweler = false
|
20
|
+
begin
|
21
|
+
require 'rubygems'
|
22
|
+
require 'jeweler'
|
23
|
+
have_jeweler = true
|
24
|
+
rescue LoadError
|
25
|
+
unless ENV['NO_RAKE_WARN']
|
26
|
+
puts <<-MESSAGE
|
27
|
+
|
28
|
+
WARNING: Missing development dependency(ies):
|
29
|
+
'Jeweler', and/or 'rubygems' are not available.
|
30
|
+
|
31
|
+
Install an individual missing gem with:
|
32
|
+
'sudo gem install [gem name]'
|
33
|
+
('sudo' may not be necessary on your system)
|
34
|
+
|
35
|
+
Or install all of Wontomedia's development dependencies with:
|
36
|
+
'bundle install'
|
37
|
+
MESSAGE
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
|
42
|
+
|
19
43
|
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
|
20
44
|
|
21
45
|
require 'rake'
|
@@ -31,8 +55,7 @@ end
|
|
31
55
|
|
32
56
|
############################################################
|
33
57
|
# block to use Jeweler to generate our gemspec, gem, etc.
|
34
|
-
|
35
|
-
require 'jeweler'
|
58
|
+
if have_jeweler
|
36
59
|
Jeweler::Tasks.new do |s|
|
37
60
|
s.name = "wontomedia"
|
38
61
|
s.rubyforge_project = "wontomedia"
|
@@ -56,11 +79,9 @@ ENDOSTRING
|
|
56
79
|
"vendor/plugins/redirect_routing/**/*",
|
57
80
|
"doc/*", "doc/scripts/*",
|
58
81
|
"{app,config,bin,db,default-custom,generators,lib,public,script}/**/*"].
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
File.symlink?( maybe_exclude )
|
63
|
-
end
|
82
|
+
exclude("database.yml", "**/*_packaged.js", "**/*_packaged.css") do |maybe_exclude|
|
83
|
+
File.symlink?( maybe_exclude )
|
84
|
+
end
|
64
85
|
s.test_files = []
|
65
86
|
# Note: 1) Explicitly add any other non-testing packages under 'vendor'
|
66
87
|
# 2) Exclude all of our symbolic links
|
@@ -73,10 +94,24 @@ ENDOSTRING
|
|
73
94
|
# aren't included because developers are expected to pull from Git
|
74
95
|
|
75
96
|
s.required_ruby_version = '~>1.8.7'
|
76
|
-
s.add_dependency 'rake',
|
77
|
-
s.add_dependency 'rails', '
|
78
|
-
|
79
|
-
|
97
|
+
s.add_dependency 'rake', '=0.8.7'
|
98
|
+
s.add_dependency 'rails', '=2.3.11'
|
99
|
+
|
100
|
+
# eventually move to an optional group for people who don't deploy this way
|
101
|
+
s.add_dependency 'mysql', '=2.8.1'
|
102
|
+
s.add_dependency 'mongrel'
|
103
|
+
|
104
|
+
s.add_development_dependency 'bundler'
|
105
|
+
s.add_development_dependency 'capistrano'
|
106
|
+
s.add_development_dependency 'rspec-rails', '=1.3.3' # gets rspec
|
107
|
+
s.add_development_dependency 'webrat'
|
108
|
+
s.add_development_dependency 'cucumber-rails' # gets cucumber, nokogiri
|
109
|
+
s.add_development_dependency 'database_cleaner'
|
110
|
+
s.add_development_dependency 'selenium-client'
|
111
|
+
s.add_development_dependency 'technicalpickles-jeweler' # gets rubyforge
|
112
|
+
s.add_development_dependency 'gemcutter'
|
113
|
+
s.add_development_dependency 'ZenTest'
|
114
|
+
s.add_development_dependency 'migration_test_helper'
|
80
115
|
end
|
81
116
|
|
82
117
|
task :build => :gemspec # don't build a gem from a stale spec
|
@@ -84,8 +119,6 @@ ENDOSTRING
|
|
84
119
|
rubyforge.doc_task = "doc:app"
|
85
120
|
end
|
86
121
|
Jeweler::GemcutterTasks.new
|
87
|
-
rescue LoadError
|
88
|
-
puts "WARNING: Missing development dependency. 'Jeweler' and/or 'rubyforge' not available. Install them with:\n 'sudo gem install rubyforge'\n 'sudo gem install technicalpickles-jeweler -s http://gems.github.com'"
|
89
122
|
end
|
90
123
|
|
91
124
|
|
data/VERSION.yml
CHANGED
data/app/helpers/items_helper.rb
CHANGED
data/app/models/category_item.rb
CHANGED
data/app/models/connection.rb
CHANGED
data/app/models/item.rb
CHANGED
data/app/models/property_item.rb
CHANGED