ricogen 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ Rake::TestTask.new(:test) do |t|
12
12
  t.verbose = true
13
13
  end
14
14
 
15
- spec = eval(File.read('hamgen.gemspec'))
15
+ spec = eval(File.read('ricogen.gemspec'))
16
16
  Rake::GemPackageTask.new(spec) do |pkg|
17
17
  pkg.gem_spec = spec
18
18
  end
@@ -20,5 +20,5 @@ end
20
20
  desc "Build and install local gem"
21
21
  task "local" => "repackage" do
22
22
  puts "Installing locally... this might take a second"
23
- puts `gem install pkg/hamgen-#{File.read('VERSION').strip}.gem --no-ri --no-rdoc`
23
+ puts `gem install pkg/ricogen-#{File.read('VERSION').strip}.gem --no-ri --no-rdoc`
24
24
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1
1
+ 0.2
data/init.rb CHANGED
@@ -71,8 +71,9 @@ puts " Installing Mongodb dependencies, files and environment preferences ...".
71
71
  puts "---------------------------------------------------------"
72
72
  run "cp #{@path}_config.rb config/initializers/"
73
73
  run "cp #{@path}mongo.rb config/initializers/"
74
- run "cp #{@path}database.yml config/"
74
+ run "cp #{@path}mongoid.yml config/"
75
75
  run "cp #{@path}magent.yml config/"
76
+ run "cp #{@path}auth_providers.yml config/"
76
77
 
77
78
  default_config = {"session_secret" => ActiveSupport::SecureRandom.hex(80),
78
79
  "session_key" => "__app_session",
data/templates/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source "http://gemcutter.org"
2
2
 
3
- gem "rails", "3.0.1"
3
+ gem "rails", "3.0.3"
4
4
 
5
5
  # ui
6
6
  gem "haml"
@@ -12,20 +12,29 @@ gem 'ruby-stemmer', '~> 0.8.2'
12
12
  gem 'magent', '~> 0.5.2'
13
13
  gem 'uuidtools'
14
14
  gem 'sanitize', '~> 1.2.1'
15
+ gem 'dynamic_form'
16
+ gem 'will_paginate', :git => 'git://github.com/mislav/will_paginate.git', :branch => "rails3"
17
+ gem 'rdiscount'
18
+
19
+ # twitter
20
+ gem "twitter-text", "1.1.8"
21
+ gem "twitter_oauth"
15
22
 
16
23
  # mongodb
17
- gem 'bson', '1.1.1'
18
- gem 'bson_ext', '1.1.1'
19
- gem 'plucky', '0.3.6'
24
+ gem 'bson', '1.1.2'
25
+ gem 'bson_ext', '1.1.2'
20
26
 
21
- gem 'mongo', '1.1.1'
22
- gem 'jnunemaker-validatable', '1.8.4'
23
- gem 'mongo_mapper', '0.8.6'
24
- gem 'mongomapper_ext', '0.5.1'
27
+ gem 'mongo', '1.1.2'
28
+ gem 'mongoid', '2.0.0.beta.20'
29
+ gem 'mongoid_ext', :git => "git://github.com/dcu/mongoid_ext.git"
25
30
 
26
31
  # authentication
27
- gem 'omniauth', '0.1.4'
28
- gem 'multiauth', '0.2.7'
32
+ gem 'omniauth', '~> 0.1.6'
33
+ gem 'multiauth', :git => "http://github.com/dcu/multiauth.git"
34
+
35
+ gem 'orm_adapter'
36
+ gem 'devise', :git => 'http://github.com/plataformatec/devise.git'
37
+
29
38
 
30
39
  group :scripts do
31
40
  gem 'eventmachine', '~> 0.12.10'
@@ -39,4 +48,12 @@ group :development do
39
48
  gem 'mongrel', '1.2.0.pre2'
40
49
  gem 'nifty-generators', '~> 0.4.2'
41
50
  gem 'capistrano'
51
+ gem "fabrication"
52
+ gem "autotest"
53
+ gem "remarkable_mongoid", ">= 0.5.0"
54
+ gem 'hpricot'
55
+ gem 'ruby_parser'
56
+ gem "database_cleaner"
57
+
42
58
  end
59
+
@@ -4,5 +4,5 @@
4
4
  g.test_framework = :rspec
5
5
  end
6
6
 
7
- config.middleware.use "MongoMapperExt::FileServer"
7
+ config.middleware.use "MongoidExt::FileServer"
8
8
 
@@ -0,0 +1,55 @@
1
+ base: &common
2
+ Google:
3
+ openid: https://www.google.com/accounts/o8/id
4
+ Yahoo:
5
+ openid: http://yahoo.com
6
+ AOL:
7
+ openid: 'http://openid.aol.com/{user_name}'
8
+ MySpace:
9
+ openid: 'http://www.myspace.com/{user_name}'
10
+ MyOpenID:
11
+ openid: 'http://{user_name}.myopenid.com/'
12
+ Wordpress:
13
+ openid: 'http://{user_name}.wordpress.com/'
14
+ Blogger:
15
+ openid: 'http://{user_name}.blogspot.com/'
16
+ Flickr:
17
+ openid: 'http://flickr.com/photos/{user_name}/'
18
+ Launchpad:
19
+ openid: 'https://launchpad.net/~{user_name}'
20
+ Vidoop:
21
+ openid: 'http://{user_name}.myvidoop.com/'
22
+ ClaimID:
23
+ openid: 'http://claimid.com/{user_name}'
24
+ Technorati:
25
+ openid: 'http://technorati.com/people/technorati/{user_name}/'
26
+ Verisign:
27
+ openid: 'http://{user_name}.pip.verisignlabs.com/'
28
+ LiveJournal:
29
+ openid: 'http://{user_name}.livejournal.com'
30
+ OpenId:
31
+ openid: '{user_name}'
32
+ Twitter:
33
+ id: 'ID'
34
+ token: 'TOKEN'
35
+ Identica:
36
+ id: 'ID'
37
+ token: 'TOKEN'
38
+ Facebook:
39
+ id: 'ID'
40
+ token: 'TOKEN'
41
+ Github:
42
+ id: 'ID'
43
+ token: 'TOKEN'
44
+ LinkedIn:
45
+ id: "ID"
46
+ token: "TOKEN"
47
+
48
+ development:
49
+ <<: *common
50
+
51
+ production:
52
+ <<: *common
53
+
54
+ test:
55
+ <<: *common
data/templates/mongo.rb CHANGED
@@ -1,18 +1,10 @@
1
- MongoMapper.setup(YAML.load_file(Rails.root.join('config', 'database.yml')),
2
- Rails.env, { :logger => Rails.logger, :passenger => false })
3
-
4
1
  Magent.setup(YAML.load_file(Rails.root.join('config', 'magent.yml')),
5
2
  Rails.env, {})
6
3
 
7
4
 
8
- MongoMapperExt.init
5
+ MongoidExt.init
9
6
 
10
7
  Dir.glob("#{RAILS_ROOT}/app/models/**/*.rb") do |model_path|
11
8
  File.basename(model_path, ".rb").classify.constantize
12
9
  end
13
10
 
14
- # HACK: do not create indexes on every request
15
- module MongoMapper::Plugins::Indexes::ClassMethods
16
- def ensure_index(*args)
17
- end
18
- end
@@ -0,0 +1,23 @@
1
+ defaults: &defaults
2
+ host: localhost
3
+ autocreate_indexes: false
4
+ allow_dynamic_fields: true
5
+ include_root_in_json: false
6
+ parameterize_keys: true
7
+ persist_in_safe_mode: false
8
+ raise_not_found_error: true
9
+ reconnect_time: 3
10
+
11
+ development:
12
+ <<: *defaults
13
+ database: app-development
14
+ persist_in_safe_mode: true
15
+
16
+ test:
17
+ <<: *defaults
18
+ database: app-test
19
+
20
+ production:
21
+ <<: *defaults
22
+ database: app-production
23
+
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
8
- version: "0.1"
7
+ - 2
8
+ version: "0.2"
9
9
  platform: ruby
10
10
  authors:
11
11
  - Hampton Catlin
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-28 00:00:00 -05:00
17
+ date: 2010-11-19 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -91,11 +91,11 @@ files:
91
91
  - ricogen.gemspec
92
92
  - templates/compass.rb
93
93
  - templates/application.rb
94
+ - templates/auth_providers.yml
94
95
  - templates/_config.rb
95
96
  - templates/environment.rb
96
97
  - templates/compass.config
97
98
  - templates/application.html.haml
98
- - templates/database.yml
99
99
  - templates/Gemfile
100
100
  - templates/gitignore
101
101
  - templates/magent.yml
@@ -113,6 +113,7 @@ files:
113
113
  - templates/mongo.rb
114
114
  - templates/javascripts/application.js
115
115
  - templates/javascripts/rails.js
116
+ - templates/mongoid.yml
116
117
  - Rakefile
117
118
  - test/hamgen_test.rb
118
119
  - init.rb
@@ -1,10 +0,0 @@
1
- development:
2
- database: app-development
3
- host: localhost
4
- port: 27017
5
-
6
- test:
7
- database: app-test
8
-
9
- production:
10
- database: app-development