translation_center 1.5.9 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,31 @@
1
1
  class CreateTranslationCenterTranslations < ActiveRecord::Migration
2
2
  def change
3
- create_table :translation_center_translations do |t|
4
- t.integer :translation_key_id
5
- t.string :value
6
- t.string :lang
7
- t.references :translator, polymorphic: true
8
- t.string :status, default: 'pending'
9
-
10
- t.timestamps
3
+ # if mysql
4
+ if ActiveRecord::Base.connection.instance_of?(ActiveRecord::ConnectionAdapters::Mysql2Adapter)
5
+
6
+ create_table :translation_center_translations, options: 'CHARACTER SET=utf8' do |t|
7
+ t.integer :translation_key_id
8
+ t.string :value
9
+ t.string :lang
10
+ t.references :translator, polymorphic: true
11
+ t.string :status, default: 'pending'
12
+
13
+ t.timestamps
14
+ end
15
+
16
+ # else using pgsql
17
+ else
18
+
19
+ create_table :translation_center_translations, options: "ENCODING 'UTF8'" do |t|
20
+ t.integer :translation_key_id
21
+ t.string :value
22
+ t.string :lang
23
+ t.references :translator, polymorphic: true
24
+ t.string :status, default: 'pending'
25
+
26
+ t.timestamps
27
+ end
28
+
11
29
  end
12
30
  end
13
31
  end
@@ -6,9 +6,9 @@ require 'acts_as_votable'
6
6
  require 'ya2yaml'
7
7
  require 'font-awesome-rails'
8
8
  require 'audited-activerecord'
9
+ require 'meta_search'
9
10
 
10
11
  module TranslationCenter
11
- require 'meta_search'
12
12
 
13
13
  class Engine < ::Rails::Engine
14
14
  isolate_namespace TranslationCenter
@@ -1,3 +1,3 @@
1
1
  module TranslationCenter
2
- VERSION = "1.5.9"
2
+ VERSION = "1.6.0"
3
3
  end
@@ -2616541,3 +2616541,67 @@ Served asset /translation_center/loading.gif - 304 Not Modified (29ms)
2616541
2616541
  TranslationCenter::TranslationKey Load (0.4ms) SELECT `translation_center_translation_keys`.* FROM `translation_center_translation_keys` WHERE `translation_center_translation_keys`.`name` = 'activerecord.models' LIMIT 1
2616542
2616542
   (0.5ms) SELECT COUNT(*) FROM `translation_center_translations` WHERE `translation_center_translations`.`translation_key_id` = 9414 AND `translation_center_translations`.`lang` = 'en'
2616543
2616543
  TranslationCenter::Translation Load (0.4ms) SELECT `translation_center_translations`.* FROM `translation_center_translations` WHERE `translation_center_translations`.`translation_key_id` = 9414 AND `translation_center_translations`.`status` = 'accepted' AND `translation_center_translations`.`lang` = 'en' LIMIT 1
2616544
+ Connecting to database specified by database.yml
2616545
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
2616546
+ Migrating to DeviseCreateUsers (20130410082611)
2616547
+ Migrating to CreateArticles (20130410082701)
2616548
+ Migrating to ActsAsVotableMigration (20130410084711)
2616549
+ Migrating to FixTranslationUserRelation (20130506103956)
2616550
+ Migrating to FixTranslation (20130506103957)
2616551
+ Connecting to database specified by database.yml
2616552
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
2616553
+ Migrating to DeviseCreateUsers (20130410082611)
2616554
+ Migrating to CreateArticles (20130410082701)
2616555
+ Migrating to ActsAsVotableMigration (20130410084711)
2616556
+ Migrating to FixTranslationUserRelation (20130506103956)
2616557
+ Migrating to FixTranslation (20130506103957)
2616558
+  (260.0ms) CREATE TABLE `hoba` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `translation_key_id` int(11), `value` varchar(255), `lang` varchar(255), `translator_id` int(11), `translator_type` varchar(255), `status` varchar(255) DEFAULT 'pending', `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) CHARACTER SET=utf8
2616559
+  (46.1ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130506103957')
2616560
+ Migrating to CreateTranslationCenterCategories (20130410084711234392)
2616561
+ Migrating to CreateTranslationCenterTranslationKeys (20130410084711235054)
2616562
+ Migrating to CreateTranslationCenterTranslations (20130410084711235601)
2616563
+ Migrating to InstallAudited (20130410084711235602)
2616564
+ Migrating to AddDeStatusTranslationCenterTranslationKeys (20130410113111070575)
2616565
+ Migrating to AddArStatusTranslationCenterTranslationKeys (20130417134539377014)
2616566
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
2616567
+ Connecting to database specified by database.yml
2616568
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
2616569
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
2616570
+ Migrating to AddArStatusTranslationCenterTranslationKeys (20130417134539377014)
2616571
+  (488.3ms) ALTER TABLE `translation_center_translation_keys` DROP `ar_status`
2616572
+  (77.2ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20130417134539377014'
2616573
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
2616574
+ Connecting to database specified by database.yml
2616575
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
2616576
+ Migrating to DeviseCreateUsers (20130410082611)
2616577
+ Migrating to CreateArticles (20130410082701)
2616578
+ Migrating to ActsAsVotableMigration (20130410084711)
2616579
+ Migrating to FixTranslationUserRelation (20130506103956)
2616580
+ Migrating to FixTranslation (20130506103957)
2616581
+ Migrating to CreateTranslationCenterCategories (20130410084711234392)
2616582
+ Migrating to CreateTranslationCenterTranslationKeys (20130410084711235054)
2616583
+ Migrating to CreateTranslationCenterTranslations (20130410084711235601)
2616584
+ Migrating to InstallAudited (20130410084711235602)
2616585
+ Migrating to AddDeStatusTranslationCenterTranslationKeys (20130410113111070575)
2616586
+ Migrating to AddArStatusTranslationCenterTranslationKeys (20130417134539377014)
2616587
+  (375.0ms) ALTER TABLE `translation_center_translation_keys` ADD `ar_status` varchar(255) DEFAULT 'untranslated'
2616588
+  (54.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130417134539377014')
2616589
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
2616590
+ Connecting to database specified by database.yml
2616591
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
2616592
+ Migrating to DeviseCreateUsers (20130410082611)
2616593
+ Migrating to CreateArticles (20130410082701)
2616594
+ Migrating to ActsAsVotableMigration (20130410084711)
2616595
+ Migrating to FixTranslationUserRelation (20130506103956)
2616596
+ Migrating to FixTranslation (20130506103957)
2616597
+ Migrating to FixOk (20130506103958)
2616598
+  (145.3ms) CREATE TABLE `me` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `translation_key_id` int(11), `value` varchar(255), `lang` varchar(255), `translator_id` int(11), `translator_type` varchar(255), `status` varchar(255) DEFAULT 'pending', `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) CHARACTER SET=utf8
2616599
+  (60.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130506103958')
2616600
+ Migrating to CreateTranslationCenterCategories (20130410084711234392)
2616601
+ Migrating to CreateTranslationCenterTranslationKeys (20130410084711235054)
2616602
+ Migrating to CreateTranslationCenterTranslations (20130410084711235601)
2616603
+ Migrating to InstallAudited (20130410084711235602)
2616604
+ Migrating to AddDeStatusTranslationCenterTranslationKeys (20130410113111070575)
2616605
+ Migrating to AddArStatusTranslationCenterTranslationKeys (20130417134539377014)
2616606
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
2616607
+ Connecting to database specified by database.yml
@@ -0,0 +1 @@
1
+ 23298
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translation_center
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.9
4
+ version: 1.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-06-17 00:00:00.000000000 Z
14
+ date: 2013-06-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -332,6 +332,7 @@ files:
332
332
  - test/dummy/public/favicon.ico
333
333
  - test/dummy/public/500.html
334
334
  - test/dummy/public/404.html
335
+ - test/dummy/tmp/pids/server.pid
335
336
  - test/dummy/tmp/cache/assets/E64/640/sprockets%2Fdefdf9f0eddac95f602fd8d18c1c9c10
336
337
  - test/dummy/tmp/cache/assets/C5A/9B0/sprockets%2F19a7fe49a7e548113c0b258139735629
337
338
  - test/dummy/tmp/cache/assets/D01/3C0/sprockets%2Fd3ffab60d107685c7c005db15093237d
@@ -796,6 +797,7 @@ test_files:
796
797
  - test/dummy/public/favicon.ico
797
798
  - test/dummy/public/500.html
798
799
  - test/dummy/public/404.html
800
+ - test/dummy/tmp/pids/server.pid
799
801
  - test/dummy/tmp/cache/assets/E64/640/sprockets%2Fdefdf9f0eddac95f602fd8d18c1c9c10
800
802
  - test/dummy/tmp/cache/assets/C5A/9B0/sprockets%2F19a7fe49a7e548113c0b258139735629
801
803
  - test/dummy/tmp/cache/assets/D01/3C0/sprockets%2Fd3ffab60d107685c7c005db15093237d