wontomedia 1.0.2 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/Capfile +14 -0
  2. data/Gemfile +21 -0
  3. data/Gemfile.lock +110 -0
  4. data/README.markdown +3 -1
  5. data/Rakefile +47 -14
  6. data/VERSION.yml +2 -2
  7. data/app/controllers/admin_controller.rb +1 -1
  8. data/app/controllers/application_controller.rb +1 -1
  9. data/app/controllers/connections_controller.rb +1 -1
  10. data/app/controllers/items_controller.rb +1 -1
  11. data/app/helpers/connections_helper.rb +1 -1
  12. data/app/helpers/format_helper.rb +1 -1
  13. data/app/helpers/items_helper.rb +1 -1
  14. data/app/models/category_item.rb +1 -1
  15. data/app/models/connection.rb +1 -1
  16. data/app/models/individual_item.rb +1 -1
  17. data/app/models/item.rb +1 -1
  18. data/app/models/property_item.rb +1 -1
  19. data/app/models/qualified_item.rb +1 -1
  20. data/app/views/admin/index.html.erb +1 -1
  21. data/app/views/admin/search.html.erb +1 -1
  22. data/app/views/connections/_index_outbound_links.html.erb +1 -1
  23. data/app/views/connections/_spo_select_controls.html.erb +1 -1
  24. data/app/views/connections/edit.html.erb +1 -1
  25. data/app/views/connections/index.html.erb +1 -1
  26. data/app/views/connections/new.html.erb +1 -1
  27. data/app/views/connections/show.html.erb +1 -1
  28. data/app/views/items/_active_content.html.erb +1 -1
  29. data/app/views/items/_class_select.html.erb +1 -1
  30. data/app/views/items/_content_examples.html.erb +1 -1
  31. data/app/views/items/_core_tasks.html.erb +1 -1
  32. data/app/views/items/_form_fields.html.erb +1 -1
  33. data/app/views/items/_inline_add_popopen.html.erb +1 -1
  34. data/app/views/items/_inline_item_add_form.html.erb +1 -1
  35. data/app/views/items/_inline_scalar_add_form.html.erb +1 -1
  36. data/app/views/items/_list_outbound_links.html.erb +1 -1
  37. data/app/views/items/_most_populous_classes.html.erb +1 -1
  38. data/app/views/items/_screen_select.html.erb +1 -1
  39. data/app/views/items/_show_outbound_links.html.erb +1 -1
  40. data/app/views/items/_topic_list.html.erb +1 -1
  41. data/app/views/items/_type_select.html.erb +1 -1
  42. data/app/views/items/edit.html.erb +1 -1
  43. data/app/views/items/index.html.erb +1 -1
  44. data/app/views/items/new.html.erb +1 -1
  45. data/app/views/items/newpop.html.erb +1 -1
  46. data/app/views/items/show.html.erb +1 -1
  47. data/app/views/layouts/_amazon_ads.html.erb +1 -1
  48. data/app/views/layouts/_dynamic_alert_framework.html.erb +1 -1
  49. data/app/views/layouts/_footer.html.erb +2 -2
  50. data/app/views/layouts/_glossary_help_box.html.erb +1 -1
  51. data/app/views/layouts/_google_ads.html.erb +1 -1
  52. data/app/views/layouts/_language_select.html.erb +1 -1
  53. data/app/views/layouts/_login_controls.html.erb +1 -1
  54. data/app/views/layouts/_master_help.html.erb +1 -1
  55. data/app/views/layouts/_navigation_menu.html.erb +1 -1
  56. data/app/views/layouts/_search_box.html.erb +1 -1
  57. data/app/views/layouts/_status_msgs.html.erb +1 -1
  58. data/app/views/layouts/application.html.erb +1 -1
  59. data/app/views/layouts/base.html.erb +1 -1
  60. data/app/views/layouts/home.html.erb +1 -1
  61. data/app/views/layouts/popup.html.erb +1 -1
  62. data/app/views/layouts/search.html.erb +1 -1
  63. data/assets/wontomedia-sample.rb +1 -1
  64. data/config/asset_packages.yml +1 -1
  65. data/config/boot.rb +17 -0
  66. data/config/caliper.yml +1 -1
  67. data/config/cucumber.yml +1 -1
  68. data/config/database-mysql-development.yml +1 -1
  69. data/config/database-mysql.yml +1 -1
  70. data/config/deploy.rb +42 -0
  71. data/config/deploy_on_a2hosting.rb +53 -0
  72. data/config/deploy_wontomedia.rb +85 -0
  73. data/config/environment.rb +2 -10
  74. data/config/environments/cucumber.rb +0 -7
  75. data/config/environments/development.rb +1 -1
  76. data/config/environments/production.rb +1 -1
  77. data/config/environments/test.rb +1 -1
  78. data/config/initializers/extensions.rb +1 -1
  79. data/config/initializers/mongrel.rb +90 -0
  80. data/config/preinitializer.rb +38 -0
  81. data/config/routes.rb +1 -1
  82. data/db/fixtures/connections.yml +1 -1
  83. data/db/fixtures/items.yml +1 -1
  84. data/default-custom/app/views/items/_home_introductory_text.html.erb +1 -1
  85. data/default-custom/app/views/items/home.html.erb +1 -1
  86. data/default-custom/app/views/layouts/_local_navigation.html.erb +1 -1
  87. data/default-custom/config/initializers/wontomedia.rb +53 -0
  88. data/default-custom/public/images/logo.png +0 -0
  89. data/default-custom/public/robots.txt +2 -0
  90. data/doc/README.markdown +3 -2
  91. data/doc/README_FOR_APP +1 -1
  92. data/doc/customization.markdown +15 -15
  93. data/doc/scripts/rake-customize.markdown +10 -10
  94. data/lib/helpers/connection_helper.rb +1 -1
  95. data/lib/helpers/item_helper.rb +1 -1
  96. data/lib/helpers/tripple_navigation.rb +1 -1
  97. data/{vendor/plugins/asset_packager → lib}/tasks/asset_packager_tasks.rake +2 -3
  98. data/lib/tasks/cucumber.rake +1 -1
  99. data/lib/tasks/customize.rake +10 -8
  100. data/lib/tasks/db.rake +1 -1
  101. data/lib/tasks/javascript_testing_tasks.rake +4 -2
  102. data/public/404.html +2 -2
  103. data/public/422.html +2 -2
  104. data/public/500.html +2 -2
  105. data/public/javascripts/application.js +1 -1
  106. data/public/javascripts/forConnectionsForms.js +1 -1
  107. data/public/javascripts/forItemsForms.js +1 -1
  108. data/public/javascripts/forItemsShow.js +1 -1
  109. data/public/javascripts/itemCreatePopup.js +1 -1
  110. data/public/javascripts/itemTitleToName.js +1 -1
  111. data/public/javascripts/reconcileJQueryAndPrototype.js +1 -1
  112. metadata +220 -18
  113. data/default-custom/public/images/logo.svg +0 -74
  114. data/doc/gemlist.txt +0 -42
  115. data/public/robots.txt +0 -7
@@ -0,0 +1,53 @@
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
+ set :deploy_to, "/home/glenivey/#{application}"
20
+ set :apps_config_root, '/home/glenivey/SiteConfigs'
21
+ set :bundle_flags, ''
22
+
23
+ ssh_options[:port] = 7822
24
+ set :use_sudo, false
25
+ set :user, "glenivey"
26
+
27
+
28
+ namespace :deploy do
29
+ desc "Start the app servers"
30
+ task :start, :roles => :app do
31
+ a2_mongrel_start
32
+ end
33
+
34
+ desc "Stop the app servers"
35
+ task :stop, :roles => :app do
36
+ a2_mongrel_stop
37
+ end
38
+
39
+ desc "Restart the app servers"
40
+ task :restart, :roles => :app do
41
+ a2_mongrel_stop
42
+ a2_mongrel_start
43
+ end
44
+ end
45
+
46
+ def a2_mongrel_start
47
+ run "cd #{app_to_run} && " +
48
+ "bundle exec mongrel_rails start -d -p #{a2_port} -e production -P log/mongrel.pid < /dev/null >& /dev/null"
49
+ end
50
+
51
+ def a2_mongrel_stop
52
+ run "cd #{app_to_run} && bundle exec mongrel_rails stop"
53
+ end
@@ -0,0 +1,85 @@
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
+ set :scm, :git
19
+ set :branch, 'master'
20
+ set :deploy_via, :remote_cache
21
+ set :git_enable_submodules, 1
22
+
23
+ before 'deploy:symlink', 'deploy:link:submodule'
24
+ before 'deploy:symlink', 'deploy:link:customize'
25
+ before 'deploy:symlink', 'deploy:link:database_yml'
26
+
27
+
28
+ namespace :deploy do
29
+ namespace :link do
30
+ desc 'create links/dirs to allow wontomedia to execute outside the cap deploy directory'
31
+ task :submodule, :roles => [ :app, :db ] do
32
+ bundle_dir = File.join app_to_customize, '.bundle'
33
+ run "if [ ! -e #{bundle_dir} ]; then " +
34
+ " mkdir -p #{bundle_dir}; " +
35
+ " ln -s #{File.join release_path, '.bundle', 'config'} #{File.join bundle_dir, 'config'};" +
36
+ "fi"
37
+
38
+ log_dir = File.join app_to_customize, 'log'
39
+ run "if [ ! -e #{log_dir} ]; then " +
40
+ " ln -s #{File.join shared_path, 'log'} #{log_dir};" +
41
+ "fi"
42
+
43
+ run "mkdir -p #{File.join app_to_customize, 'tmp'}"
44
+ end
45
+
46
+ desc 'create links to fill in customizations'
47
+ task :customize, :roles => [ :app, :db ] do
48
+ do_rake "customize[#{app_customization}]", app_to_customize
49
+ end
50
+
51
+ desc 'link to production database.yml'
52
+ task :database_yml, :roles => [ :app, :db ] do
53
+ run "ln -s #{File.join apps_config_root, application+'-database.yml'} " +
54
+ "#{File.join app_to_customize, 'config', 'database.yml'}"
55
+ end
56
+ end
57
+ end
58
+
59
+ namespace :deploy do
60
+ namespace:db do
61
+ desc 'empties database and reloads w/ seeds,fixtures -- use in demo environment only'
62
+ task :reload, :roles => :db, :except => { :primary => false } do
63
+ do_fixtures_load
64
+ do_seed
65
+ end
66
+
67
+ desc 'repopulate database with seed data'
68
+ task :seed, :roles => :db, :except => { :primary => false } do
69
+ do_seed
70
+ end
71
+
72
+ desc 'reload (demo) database with fixture data'
73
+ task :fixtures, :roles => :db, :except => { :primary => false } do
74
+ do_fixtures_load
75
+ end
76
+ end
77
+ end
78
+
79
+
80
+ def do_fixtures_load; do_rake "db:fixtures:load", current_path; end
81
+ def do_seed; do_rake "db:reseed", current_path; end
82
+
83
+ def do_rake(task, path = nil)
84
+ run "cd #{path || release_path} && RAILS_ENV=production #{rake} #{task}"
85
+ end
@@ -1,5 +1,5 @@
1
1
  # WontoMedia - a wontology web application
2
- # Copyright (C) 2010 - Glen E. Ivey
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
@@ -26,7 +26,7 @@ Rails::Initializer.run do |config|
26
26
  config.frameworks -= [ :action_mailer ]
27
27
  config.time_zone = 'UTC'
28
28
  config.action_controller.session = {
29
- :session_key => '_wontomedia_session',
29
+ :key => '_wontomedia_session',
30
30
  :secret => '1f59de398da7f80aca3f4a943eae6e8f5759efe7ec9e7690c57a4f485012f4f487ccf4530d4885a70fb20f51801306ddc50688b00bb3616da44303238cb15a64'
31
31
  }
32
32
  end
@@ -57,14 +57,6 @@ end
57
57
  # you must remove the Active Record framework.
58
58
  # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
59
59
 
60
- # Specify gems that this application depends on.
61
- # They can then be installed with "rake gems:install" on new installations.
62
- # You have to specify the :lib option for libraries, where the Gem name (sqlite3-ruby) differs from the file itself (sqlite3)
63
- # config.gem "bj"
64
- # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
65
- # config.gem "sqlite3-ruby", :lib => "sqlite3"
66
- # config.gem "aws-s3", :lib => "aws/s3"
67
-
68
60
  # Only load the plugins named here, in the order given. By default, all
69
61
  # plugins in vendor/plugins are loaded in alphabetical order.
70
62
  # :all can be used as a placeholder for all plugins not explicitly named
@@ -20,10 +20,3 @@ config.action_controller.allow_forgery_protection = false
20
20
  # The :test delivery method accumulates sent emails in the
21
21
  # ActionMailer::Base.deliveries array.
22
22
  config.action_mailer.delivery_method = :test
23
-
24
- config.gem 'cucumber-rails', :lib => false, :version => '>=0.2.4' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber-rails'))
25
- config.gem 'database_cleaner', :lib => false, :version => '>=0.4.3' unless File.directory?(File.join(Rails.root, 'vendor/plugins/database_cleaner'))
26
- config.gem 'webrat', :lib => false, :version => '>=0.6.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/webrat'))
27
- config.gem 'rspec', :lib => false, :version => '>=1.3.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec'))
28
- config.gem 'rspec-rails', :lib => false, :version => '>=1.3.2' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails'))
29
-
@@ -1,5 +1,5 @@
1
1
  # WontoMedia - a wontology web application
2
- # Copyright (C) 2010 - Glen E. Ivey
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
@@ -1,5 +1,5 @@
1
1
  # WontoMedia - a wontology web application
2
- # Copyright (C) 2010 - Glen E. Ivey
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
@@ -1,5 +1,5 @@
1
1
  # WontoMedia - a wontology web application
2
- # Copyright (C) 2010 - Glen E. Ivey
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
@@ -1,5 +1,5 @@
1
1
  # WontoMedia - a wontology web application
2
- # Copyright (C) 2010 - Glen E. Ivey
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
@@ -0,0 +1,90 @@
1
+ # code below from https://gist.github.com/826692
2
+ # see also: http://rcaguilar.wordpress.com/2011/02/14/broken-mongrels-after-rails-2-3-11-upgrade/
3
+ # https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4690-mongrel-doesnt-work-with-rails-238#ticket-4690-61
4
+ # much thanks to all--glen
5
+
6
+
7
+
8
+
9
+ if ['2.3.8', '2.3.9', '2.3.10', '2.3.11'].include?(Rails.version) &&
10
+ Gem.available?('mongrel', '~>1.1.5') && self.class.const_defined?(:Mongrel)
11
+
12
+ # Pulled right from latest rack. Old looked like this in 1.1.0 version.
13
+ #
14
+ # def [](k)
15
+ # super(@names[k] ||= @names[k.downcase])
16
+ # end
17
+ #
18
+ module Rack
19
+ module Utils
20
+ class HeaderHash < Hash
21
+ def [](k)
22
+ super(@names[k]) if @names[k]
23
+ super(@names[k.downcase])
24
+ end
25
+ end
26
+ end
27
+ end
28
+
29
+ # Code pulled from the ticket above.
30
+ #
31
+ class Mongrel::CGIWrapper
32
+ def header_with_rails_fix(options = 'text/html')
33
+ @head['cookie'] = options.delete('cookie').flatten.map { |v| v.sub(/^\n/,'') } if options.class != String and options['cookie']
34
+ header_without_rails_fix(options)
35
+ end
36
+ alias_method_chain :header, :rails_fix
37
+ end
38
+
39
+ # Pulled right from 2.3.8 ActionPack. Simple diff was
40
+ #
41
+ # if headers.include?('Set-Cookie')
42
+ # headers['cookie'] = headers.delete('Set-Cookie').split("\n")
43
+ # end
44
+ #
45
+ # to
46
+ #
47
+ # if headers['Set-Cookie']
48
+ # headers['cookie'] = headers.delete('Set-Cookie').split("\n")
49
+ # end
50
+ #
51
+ module ActionController
52
+ class CGIHandler
53
+ def self.dispatch_cgi(app, cgi, out = $stdout)
54
+ env = cgi.__send__(:env_table)
55
+ env.delete "HTTP_CONTENT_LENGTH"
56
+ cgi.stdinput.extend ProperStream
57
+ env["SCRIPT_NAME"] = "" if env["SCRIPT_NAME"] == "/"
58
+ env.update({
59
+ "rack.version" => [0,1],
60
+ "rack.input" => cgi.stdinput,
61
+ "rack.errors" => $stderr,
62
+ "rack.multithread" => false,
63
+ "rack.multiprocess" => true,
64
+ "rack.run_once" => false,
65
+ "rack.url_scheme" => ["yes", "on", "1"].include?(env["HTTPS"]) ? "https" : "http"
66
+ })
67
+ env["QUERY_STRING"] ||= ""
68
+ env["HTTP_VERSION"] ||= env["SERVER_PROTOCOL"]
69
+ env["REQUEST_PATH"] ||= "/"
70
+ env.delete "PATH_INFO" if env["PATH_INFO"] == ""
71
+ status, headers, body = app.call(env)
72
+ begin
73
+ out.binmode if out.respond_to?(:binmode)
74
+ out.sync = false if out.respond_to?(:sync=)
75
+ headers['Status'] = status.to_s
76
+ if headers['Set-Cookie']
77
+ headers['cookie'] = headers.delete('Set-Cookie').split("\n")
78
+ end
79
+ out.write(cgi.header(headers))
80
+ body.each { |part|
81
+ out.write part
82
+ out.flush if out.respond_to?(:flush)
83
+ }
84
+ ensure
85
+ body.close if body.respond_to?(:close)
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,38 @@
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
+ begin
20
+ require "rubygems"
21
+ require "bundler"
22
+ rescue LoadError
23
+ raise "Could not load the bundler gem. Install it with `gem install bundler`."
24
+ end
25
+
26
+ if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24")
27
+ raise RuntimeError, "Your bundler version is too old for Rails 2.3." +
28
+ "Run `gem install bundler` to upgrade."
29
+ end
30
+
31
+ begin
32
+ # Set up load paths for all bundled gems
33
+ ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
34
+ Bundler.setup
35
+ rescue Bundler::GemNotFound
36
+ raise RuntimeError, "Bundler couldn't find some gems." +
37
+ "Did you run `bundle install`?"
38
+ end
data/config/routes.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # WontoMedia - a wontology web application
2
- # Copyright (C) 2010 - Glen E. Ivey
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
@@ -1,5 +1,5 @@
1
1
  # WontoMedia - a wontology web application
2
- # Copyright (C) 2010 - Glen E. Ivey
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
@@ -1,5 +1,5 @@
1
1
  # WontoMedia - a wontology web application
2
- # Copyright (C) 2010 - Glen E. Ivey
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
@@ -1,6 +1,6 @@
1
1
  <%
2
2
  # WontoMedia - a wontology web application
3
- # Copyright (C) 2010 - Glen E. Ivey
3
+ # Copyright (C) 2011 - Glen E. Ivey
4
4
  # www.wontology.com
5
5
  #
6
6
  # This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
1
1
  <%
2
2
  # WontoMedia - a wontology web application
3
- # Copyright (C) 2010 - Glen E. Ivey
3
+ # Copyright (C) 2011 - Glen E. Ivey
4
4
  # www.wontology.com
5
5
  #
6
6
  # This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
1
1
  <%
2
2
  # WontoMedia - a wontology web application
3
- # Copyright (C) 2010 - Glen E. Ivey
3
+ # Copyright (C) 2011 - Glen E. Ivey
4
4
  # www.wontology.com
5
5
  #
6
6
  # This program is free software: you can redistribute it and/or modify
@@ -0,0 +1,53 @@
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
+ require "ostruct"
20
+
21
+ WontoMedia = OpenStruct.new({
22
+ :site_title => "WontoMedia Demo",
23
+ :site_tagline => "WontoMedia Demo",
24
+ :site_logo_title => "<div style='margin-bottom: 0.5em; margin-top: 0.25em; text-align: center;'><span style='color: black; font-family: Monotype Corsiva, Apple Chancery, URW Chancery L, chancery, script, cursive; font-style: italic; font-size: 130%;'>WontoMedia Demo Server</span></div>",
25
+
26
+ :help_url_prefix => "http://wiki.wontology.org/wiki/help.php?title=",
27
+ :popup_url_prefix => "http://wiki.wontology.org/wiki/popup.php?title=",
28
+ :site_content_url_prefix =>
29
+ "http://wiki.wontology.org/wiki/help.php?title=Wontology:",
30
+ :site_content_url_postfix => '',
31
+
32
+ :search => OpenStruct.new({
33
+ :google_site_search => true,
34
+ :publisher_id => "partner-pub-2447626445162341",
35
+ :search_engine => "pcrhs4-9v0t",
36
+ }),
37
+
38
+ :ads => OpenStruct.new({
39
+ :amazon => OpenStruct.new({
40
+ :associate_id => "wontology-20"
41
+ }),
42
+ :google => OpenStruct.new({
43
+ :publisher_id => "pub-2447626445162341",
44
+ :data_page_slot => "4071806725"
45
+ })
46
+ }),
47
+
48
+ :analytics => OpenStruct.new({
49
+ :google => OpenStruct.new({
50
+ :profile_id => "UA-13113606-1"
51
+ })
52
+ })
53
+ })