whowish_word 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ begin
2
+ WhowishWordHtml.collection.drop_indexes
3
+ WhowishWordHtml.create_indexes
4
+ rescue Exception=>e
5
+
6
+ end
@@ -45,7 +45,7 @@ module WhowishWord
45
45
  end
46
46
 
47
47
  ActionController::Base.append_view_path(File.join(File.dirname(__FILE__), 'rails', 'app'))
48
-
48
+
49
49
  end
50
50
 
51
51
  end
@@ -4,6 +4,6 @@ class WhowishWordHtml
4
4
  field :word_id,:type=>String
5
5
  field :content, :type=>String
6
6
 
7
- index :word_id, :unique=>true
7
+ index [[ :word_id, Mongo::DESCENDING ]], :unique=>true
8
8
 
9
9
  end
@@ -17,11 +17,12 @@ module WhowishWord
17
17
  @orm_engine = orm_engine
18
18
 
19
19
  init_username_and_password
20
- run_database_migration
21
20
  install_route
22
21
  install_hook
23
22
  load_rails
24
23
 
24
+ run_database_migration
25
+
25
26
  words = WhowishWordHtml.all()
26
27
 
27
28
  @words = {}
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "whowish_word"
6
- s.version = "0.3.0"
6
+ s.version = "0.3.1"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Tanin Na Nakorn"]
9
9
  s.email = ["tanin47@yahoo.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whowish_word
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
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: 2011-11-09 00:00:00.000000000Z
12
+ date: 2011-11-10 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: A Rails gem that make static content editable
15
15
  email:
@@ -34,6 +34,7 @@ files:
34
34
  - lib/whowish_word/config.rb
35
35
  - lib/whowish_word/constant.rb
36
36
  - lib/whowish_word/db_migration/active_record/whowish_word_html.rb
37
+ - lib/whowish_word/db_migration/mongoid/whowish_word_html.rb
37
38
  - lib/whowish_word/initializer.rb
38
39
  - lib/whowish_word/rails/app/controllers/whowish_word_controller.rb
39
40
  - lib/whowish_word/rails/app/models/active_record/whowish_word_html.rb