Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for #57. Renamed module from browsercms_news_module to bcms_news

  • Loading branch information...
commit 177578a3d78780cb76a7299eb1f66f0233e1c0e2 1 parent 93d00da
@peakpg peakpg authored
View
1  .gitignore
@@ -4,7 +4,6 @@ log/*.log
tmp/**/*
db/*.sqlite3
db/schema.rb
-config/database.yml
*.gem
.dotest
tmp/restart.txt
View
8 browsercms_news_module.gemspec → bcms_news.gemspec
@@ -1,7 +1,7 @@
SPEC = Gem::Specification.new do |spec|
- spec.name = "browser_cms_news_module"
+ spec.name = "bcms_news"
spec.rubyforge_project = spec.name
- spec.version = "3.0.0"
+ spec.version = "1.0.0"
spec.summary = "The News Module for BrowserCMS"
spec.author = "BrowserMedia"
spec.email = "github@browsermedia.com"
@@ -14,8 +14,8 @@ SPEC = Gem::Specification.new do |spec|
spec.files += Dir["app/views/cms/news_articles/*"]
spec.files += Dir["app/views/portlets/**/*"]
spec.files += Dir["db/migrate/[0-9]*_create_news_articles.rb"]
- spec.files += Dir["lib/browser_cms_news_module.rb"]
- spec.files += Dir["lib/browser_cms_news_module/*"]
+ spec.files += Dir["lib/bcms_news.rb"]
+ spec.files += Dir["lib/bcms_news/*"]
spec.files += Dir["rails/init.rb"]
spec.has_rdoc = true
spec.extra_rdoc_files = ["README"]
View
39 config/database.yml
@@ -0,0 +1,39 @@
+# MySQL. Versions 4.1 and 5.0 are recommended.
+#
+# Install the MySQL driver:
+# gem install mysql
+# On Mac OS X:
+# sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
+# On Mac OS X Leopard:
+# sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
+# This sets the ARCHFLAGS environment variable to your native architecture
+# On Windows:
+# gem install mysql
+# Choose the win32 build.
+# Install MySQL and put its /bin directory on your path.
+#
+# And be sure to use new-style password hashing:
+# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
+development:
+ adapter: mysql
+ encoding: utf8
+ reconnect: false
+ database: bcms_news_development
+ pool: 5
+ username: root
+ password:
+ socket: /tmp/mysql.sock
+
+# Warning: The database defined as "test" will be erased and
+# re-generated from your development database when you run "rake".
+# Do not set this db to the same as development or production.
+test:
+ adapter: mysql
+ encoding: utf8
+ reconnect: false
+ database: bcms_news_test
+ pool: 5
+ username: root
+ password:
+ socket: /tmp/mysql.sock
+
View
2  config/initializers/init_module.rb
@@ -1 +1 @@
-require File.join(File.dirname(__FILE__), "..", "..", "lib", "browser_cms_news_module")
+require File.join(File.dirname(__FILE__), "..", "..", "lib", "bcms_news")
View
2  config/initializers/session_store.rb
@@ -5,7 +5,7 @@
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
ActionController::Base.session = {
- :key => '_browsercms_news_module_session',
+ :key => '_bcms_news_session',
:secret => 'a9adeb5a2c5894f3a51b866ef341e6ad1924a7bdfafa31ad19d18570e2b3c841afa8bb90ec722d19da8e14e525faaba5d13d0a4f12b30e8c8d55b5525c5352c9'
}
View
2  config/routes.rb
@@ -1,4 +1,4 @@
ActionController::Routing::Routes.draw do |map|
- map.routes_for_browser_cms_news_module
+ map.routes_for_bcms_news
map.routes_for_browser_cms
end
View
1  lib/bcms_news.rb
@@ -0,0 +1 @@
+require 'bcms_news/routes'
View
2  lib/browser_cms_news_module/routes.rb → lib/bcms_news/routes.rb
@@ -1,5 +1,5 @@
module Cms::Routes
- def routes_for_browser_cms_news_module
+ def routes_for_bcms_news
news_articles '/news/articles.rss',
:controller => "news_articles",
View
1  lib/browser_cms_news_module.rb
@@ -1 +0,0 @@
-require 'browser_cms_news_module/routes'
Please sign in to comment.
Something went wrong with that request. Please try again.