classiccms 0.3.7 → 0.3.8

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.
@@ -70,8 +70,9 @@ module Classiccms
70
70
 
71
71
  #from gem
72
72
  #require resque
73
- Resque.redis = YAML.load_file(File.join(ROOT, 'resque.yml'))[ENV['RACK_ENV']]
74
- Resque.redis.namespace = CONFIG[:database]
73
+ redis_conf = YAML.load_file(File.join(Dir.pwd, 'config/redis.yml'))[ENV['RACK_ENV']]
74
+ Resque.redis = redis_conf['host']
75
+ Resque.redis.namespace = redis_conf['database']
75
76
 
76
77
  #require helpers
77
78
  require File.join(File.dirname(__FILE__), 'helpers.rb')
@@ -29,6 +29,12 @@ module Classiccms
29
29
  f.puts mongoid
30
30
  end
31
31
 
32
+ #replace database name
33
+ redis = File.read(File.join(Dir.pwd, app_name, 'config/redis.yml')).gsub('$', app_name)
34
+ File.open(File.join(Dir.pwd, app_name, 'config/redis.yml'), 'w') do |f|
35
+ f.puts redis
36
+ end
37
+
32
38
  puts "#{app_name} created!"
33
39
  end
34
40
  end
@@ -0,0 +1,9 @@
1
+ development:
2
+ host: localhost:6379
3
+ database: $_development
4
+ test:
5
+ host: localhost:6379
6
+ database: $_test
7
+ production:
8
+ host: localhost:6379
9
+ database: $
@@ -1,3 +1,3 @@
1
1
  module Classiccms #:nodoc
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: classiccms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-08 00:00:00.000000000 Z
12
+ date: 2012-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -362,7 +362,6 @@ files:
362
362
  - lib/classiccms/models/slug.rb
363
363
  - lib/classiccms/models/uploader.rb
364
364
  - lib/classiccms/models/user.rb
365
- - lib/classiccms/mongoid.rb
366
365
  - lib/classiccms/public/css/fonts.sass
367
366
  - lib/classiccms/public/css/icons.sass
368
367
  - lib/classiccms/public/css/images.sass
@@ -1144,7 +1143,6 @@ files:
1144
1143
  - lib/classiccms/public/js/uploadify/uploadify.css
1145
1144
  - lib/classiccms/public/js/uploadify/uploadify.swf
1146
1145
  - lib/classiccms/public/js/uploadifyLang_en.js
1147
- - lib/classiccms/resque.yml
1148
1146
  - lib/classiccms/scaffold/.gitignore
1149
1147
  - lib/classiccms/scaffold/Gemfile
1150
1148
  - lib/classiccms/scaffold/Rakefile
@@ -1156,6 +1154,7 @@ files:
1156
1154
  - lib/classiccms/scaffold/config/application.rb
1157
1155
  - lib/classiccms/scaffold/config/config.yml
1158
1156
  - lib/classiccms/scaffold/config/mongoid.yml
1157
+ - lib/classiccms/scaffold/config/redis.yml
1159
1158
  - lib/classiccms/scaffold/public/favicon.ico
1160
1159
  - lib/classiccms/scaffold/public/javascripts/index.coffee
1161
1160
  - lib/classiccms/scaffold/public/stylesheets/reset.sass
@@ -1 +0,0 @@
1
-
@@ -1,3 +0,0 @@
1
- development: localhost:6379
2
- test: localhost:6379
3
- development: localhost:6379