typus 3.0.11 → 3.0.12

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.
Files changed (96) hide show
  1. data/README.md +4 -1
  2. data/app/helpers/admin/relationships_helper.rb +2 -2
  3. data/app/views/admin/dashboard/_applications.html.erb +1 -1
  4. data/app/views/admin/helpers/resources/_errors.html.erb +1 -1
  5. data/app/views/admin/helpers/sidebar/_sidebar.html.erb +1 -1
  6. data/app/views/admin/resources/index.html.erb +2 -2
  7. data/app/views/admin/templates/_has_n.html.erb +1 -1
  8. data/app/views/admin/templates/_has_one.html.erb +1 -1
  9. data/config/locales/typus.ca.yml +1 -1
  10. data/config/locales/typus.de.models.yml +6 -5
  11. data/config/locales/typus.de.yml +39 -36
  12. data/config/locales/typus.el.yml +1 -1
  13. data/config/locales/typus.es.yml +1 -1
  14. data/config/locales/typus.fr.yml +1 -1
  15. data/config/locales/typus.hu.yml +1 -1
  16. data/config/locales/typus.locale.yml.template +1 -1
  17. data/config/locales/typus.pt-BR.yml +1 -1
  18. data/config/locales/typus.pt-PT.yml +1 -1
  19. data/config/locales/typus.ru.yml +1 -1
  20. data/config/locales/typus.zh-CN.yml +1 -1
  21. data/lib/typus/version.rb +1 -1
  22. data/typus.gemspec +7 -4
  23. metadata +16 -164
  24. data/test/app/controllers/admin/account_controller_test.rb +0 -106
  25. data/test/app/controllers/admin/assets_controller_test.rb +0 -156
  26. data/test/app/controllers/admin/base_controller_test.rb +0 -41
  27. data/test/app/controllers/admin/birds_controller_test.rb +0 -42
  28. data/test/app/controllers/admin/cases_controller_test.rb +0 -21
  29. data/test/app/controllers/admin/categories_controller_test.rb +0 -134
  30. data/test/app/controllers/admin/comments_controller_test.rb +0 -79
  31. data/test/app/controllers/admin/dashboard_controller_test.rb +0 -162
  32. data/test/app/controllers/admin/image_holders_controller_test.rb +0 -75
  33. data/test/app/controllers/admin/invoices_controller_test.rb +0 -78
  34. data/test/app/controllers/admin/orders_controller_test.rb +0 -18
  35. data/test/app/controllers/admin/pages_controller_test.rb +0 -37
  36. data/test/app/controllers/admin/posts_controller_test.rb +0 -770
  37. data/test/app/controllers/admin/projects_controller_test.rb +0 -52
  38. data/test/app/controllers/admin/session_controller_test.rb +0 -92
  39. data/test/app/controllers/admin/status_controller_test.rb +0 -54
  40. data/test/app/controllers/admin/typus_users_controller_test.rb +0 -156
  41. data/test/app/controllers/admin/users_controller_test.rb +0 -106
  42. data/test/app/controllers/admin/views_controller_test.rb +0 -36
  43. data/test/app/helpers/admin/base_helper_test.rb +0 -83
  44. data/test/app/helpers/admin/dashboard_helper_test.rb +0 -32
  45. data/test/app/helpers/admin/file_preview_helper_test.rb +0 -90
  46. data/test/app/helpers/admin/filters_helper_test.rb +0 -166
  47. data/test/app/helpers/admin/form_helper_test.rb +0 -126
  48. data/test/app/helpers/admin/list_helper_test.rb +0 -76
  49. data/test/app/helpers/admin/relationships_helper_test.rb +0 -19
  50. data/test/app/helpers/admin/resources_helper_test.rb +0 -46
  51. data/test/app/helpers/admin/search_helper_test.rb +0 -60
  52. data/test/app/helpers/admin/sidebar_helper_test.rb +0 -34
  53. data/test/app/helpers/admin/table_helper_test.rb +0 -241
  54. data/test/app/mailers/admin/mailer_test.rb +0 -32
  55. data/test/app/models/admin_user_test.rb +0 -5
  56. data/test/app/models/typus_user_roles_test.rb +0 -125
  57. data/test/app/models/typus_user_test.rb +0 -228
  58. data/test/config/routes_test.rb +0 -29
  59. data/test/factories.rb +0 -122
  60. data/test/fixtures/config/broken/application.yml +0 -68
  61. data/test/fixtures/config/broken/application_roles.yml +0 -20
  62. data/test/fixtures/config/broken/empty.yml +0 -0
  63. data/test/fixtures/config/broken/empty_roles.yml +0 -0
  64. data/test/fixtures/config/broken/undefined.yml +0 -3
  65. data/test/fixtures/config/broken/undefined_roles.yml +0 -6
  66. data/test/fixtures/config/default/typus.yml +0 -13
  67. data/test/fixtures/config/default/typus_roles.yml +0 -2
  68. data/test/fixtures/config/empty/empty_01.yml +0 -0
  69. data/test/fixtures/config/empty/empty_01_roles.yml +0 -0
  70. data/test/fixtures/config/empty/empty_02.yml +0 -0
  71. data/test/fixtures/config/empty/empty_02_roles.yml +0 -0
  72. data/test/fixtures/config/locales/es.yml +0 -10
  73. data/test/fixtures/config/namespaced/application.yml +0 -5
  74. data/test/fixtures/config/namespaced/application_roles.yml +0 -2
  75. data/test/fixtures/config/ordered/001_roles.yml +0 -2
  76. data/test/fixtures/config/ordered/002_roles.yml +0 -2
  77. data/test/fixtures/config/unordered/app_one_roles.yml +0 -2
  78. data/test/fixtures/config/unordered/app_two_roles.yml +0 -2
  79. data/test/lib/support/active_record_test.rb +0 -174
  80. data/test/lib/support/fake_user_test.rb +0 -63
  81. data/test/lib/support/hash_test.rb +0 -29
  82. data/test/lib/support/object_test.rb +0 -17
  83. data/test/lib/support/string_test.rb +0 -98
  84. data/test/lib/typus/configuration_test.rb +0 -46
  85. data/test/lib/typus/controller/actions_test.rb +0 -141
  86. data/test/lib/typus/controller/associations_test.rb +0 -7
  87. data/test/lib/typus/controller/autocomplete_test.rb +0 -7
  88. data/test/lib/typus/controller/filters_test.rb +0 -73
  89. data/test/lib/typus/controller/format_test.rb +0 -7
  90. data/test/lib/typus/i18n_test.rb +0 -9
  91. data/test/lib/typus/orm/active_record/class_methods_test.rb +0 -390
  92. data/test/lib/typus/orm/active_record/search_test.rb +0 -330
  93. data/test/lib/typus/regex_test.rb +0 -53
  94. data/test/lib/typus/resources_test.rb +0 -41
  95. data/test/lib/typus_test.rb +0 -142
  96. data/test/test_helper.rb +0 -15
data/README.md CHANGED
@@ -27,7 +27,10 @@
27
27
 
28
28
  Add **Typus** to your `Gemfile`
29
29
 
30
- gem 'typus', :git => 'git://github.com/typus/typus.git'
30
+ gem "typus", "~> 3.0.11"
31
+
32
+ # Bundle edge typus instead:
33
+ # gem "typus", :git => "git://github.com/typus/typus.git", :branch => "3-0-stable"
31
34
 
32
35
  Update your bundle, run the generator and start the application server:
33
36
 
@@ -38,7 +38,7 @@ module Admin
38
38
 
39
39
  render "admin/templates/has_n",
40
40
  :association_name => @association_name,
41
- :association_title => @model_to_relate.model_name.human.pluralize,
41
+ :association_title => @model_to_relate.model_name.human(:count => 2),
42
42
  :add_new => build_add_new(options),
43
43
  :form => form,
44
44
  :table => build_relationship_table
@@ -66,7 +66,7 @@ module Admin
66
66
 
67
67
  render "admin/templates/has_n",
68
68
  :association_name => @association_name,
69
- :association_title => @model_to_relate.model_name.human.pluralize,
69
+ :association_title => @model_to_relate.model_name.human(:count => 2),
70
70
  :add_new => build_add_new,
71
71
  :form => form,
72
72
  :table => build_relationship_table
@@ -12,7 +12,7 @@
12
12
 
13
13
  <%
14
14
  klass = model.typus_constantize
15
- klass_human_name = klass.model_name.human.pluralize
15
+ klass_human_name = klass.model_name.human(:count => 2)
16
16
  admin_items_path = { :controller => "/admin/#{klass.to_resource}" }
17
17
  %>
18
18
 
@@ -1,6 +1,6 @@
1
1
  <% if @item.errors.any? %>
2
2
  <div id="errorExplanation">
3
- <h3><%= Typus::I18n.t("%{errors} prohibited this page from being saved:", :errors => pluralize(@item.errors.count, "error")) %></h3>
3
+ <h3><%= Typus::I18n.t("%{errors} errors prohibited this page from being saved:", :errors => @item.errors.count) %></h3>
4
4
  <ul>
5
5
  <% @item.errors.full_messages.each do |full_message| %>
6
6
  <li><%= full_message %></li>
@@ -6,7 +6,7 @@
6
6
  %>
7
7
 
8
8
  <%= link_to :controller => resource, :action => "index" do %>
9
- <h3><%= klass.model_name.human.pluralize %></h3>
9
+ <h3><%= klass.model_name.human(:count => 2) %></h3>
10
10
  <% end %>
11
11
 
12
12
  <% if @resource.model_name.eql?(key) %>
@@ -1,5 +1,5 @@
1
1
  <%
2
- page_title = @resource.model_name.human.pluralize
2
+ page_title = @resource.model_name.human(:count => 2)
3
3
  title(page_title)
4
4
  %>
5
5
 
@@ -33,5 +33,5 @@
33
33
  <%= build_list(@resource, fields, @items) %>
34
34
  <%= will_paginate(@items, Typus.pagination) %>
35
35
  <% else %>
36
- <p><%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human.downcase.pluralize) %></p>
36
+ <p><%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human(:count => 2)) %></p>
37
37
  <% end %>
@@ -11,7 +11,7 @@
11
11
  <%= table %>
12
12
  <%= will_paginate(@items, Typus.pagination.merge(:anchor => association_name)) %>
13
13
  <% else %>
14
- <p><%= Typus::I18n.t("No %{resources} found.", :resources => association_title.downcase) %></p>
14
+ <p><%= Typus::I18n.t("No %{resources} found.", :resources => association_title) %></p>
15
15
  <% end %>
16
16
 
17
17
  </div>
@@ -8,7 +8,7 @@
8
8
  <% if @items.any? -%>
9
9
  <%= table %>
10
10
  <% else %>
11
- <p><%= Typus::I18n.t("No %{resources} found.", :resources => association_title.downcase) %></p>
11
+ <p><%= Typus::I18n.t("No %{resources} found.", :resources => association_title) %></p>
12
12
  <% end %>
13
13
 
14
14
  </div>
@@ -75,7 +75,7 @@ ca:
75
75
  "View all %{attribute}":
76
76
  "View site": "Veure la web"
77
77
 
78
- "%{errors} prohibited this page from being saved:":
78
+ "%{errors} errors prohibited this page from being saved:":
79
79
  "%{model} successfully created": "%{model} satisfactòriament creat."
80
80
  "%{model} successfully removed": "%{model} satisfactòriament eliminat."
81
81
  "%{model} successfully updated": "%{model} satisfactòriament actualitzat."
@@ -1,5 +1,6 @@
1
1
  # German (de) translations for Typus by:
2
2
  # - Michael Grunewalder <http://michael.grunewalder.com>
3
+ # - Thomas von Deyen <http://thomas.vondeyen.com>
3
4
 
4
5
  de:
5
6
  activerecord:
@@ -7,11 +8,11 @@ de:
7
8
  admin_user:
8
9
  attributes:
9
10
  admin_user:
10
- email:
11
+ email: "E-Mail"
11
12
  first_name: "Vorname"
12
13
  last_name: "Nachname"
13
14
  password: "Passwort"
14
- password_confirmation: "Passwort Best&auml;tigung"
15
- status:
16
- role:
17
- locale:
15
+ password_confirmation: "Passwort Bestätigung"
16
+ status: "Status"
17
+ role: "Rolle"
18
+ locale: "Sprache"
@@ -1,80 +1,83 @@
1
1
  # German (de) translations for Typus by:
2
2
  # - Michael Grunewalder <http://michael.grunewalder.com>
3
+ # - Thomas von Deyen <http://thomas.vondeyen.com>
3
4
 
4
5
  de:
5
-
6
6
  "Actions": "Aktionen"
7
- "Active":
8
- "Add": "Zuf&uuml;gen"
7
+ "Active": "Aktiv"
8
+ "Add": "Hinzufügen"
9
9
  "Add new": "Erstellen"
10
- "Are you sure?":
10
+ "All" : 'Alle'
11
+ "Are you sure?": "Sind Sie sicher?"
11
12
  "Are you sure you want to sign out and end your session?": "Wollen Sie sich abmelden und die Sitzung beenden?"
13
+ "Assign": "Zuweisen"
12
14
 
13
- "Change %{attribute}?": "%{attribute}&auml;ndern?"
14
- "Create %{resource}": "Erstellen %{resource}"
15
+ "Change %{attribute}?": "%{attribute} ändern?"
16
+ "Create %{resource}": "%{resource} erstellen"
15
17
 
16
18
  "Dashboard": "Dashboard"
17
19
  "Down": "Runter"
18
20
 
19
21
  "Edit": "Bearbeiten"
20
- "Edit %{resource}": "Bearbeiten %{resource}"
22
+ "Edit %{resource}": "%{resource} bearbeiten"
21
23
  "Enter your email below to create the first user": "Geben Sie Ihre Email Adresse unten ein, um den ersten Benutzer zu erstellen"
22
24
 
23
- "False": "Falsch"
25
+ "False": "Nein"
24
26
  "Filter": "Filter"
25
27
 
26
28
  "I remember my password": "Ich erinnere mein Passwort"
27
- "If you didn't request a password update, you can ignore this message": "Falls Sie keine Passwort &Auml;derung beantragt haben, k&ouml;nnen Sie diese nachricht ignorieren"
28
- "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Wenn Sie &Auml;nderungen an Feldern vorgenommen haben, ohne den Speichern/Bearbeiten Knopf gedr7uuml;ckt zu haben, gehen diese &Auml;nderungen verloren"
29
+ "If you didn't request a password update, you can ignore this message": "Falls Sie keine Passwort Änderung beantragt haben, können Sie diese Nachricht ignorieren"
30
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Wenn Sie Änderungen an Feldern vorgenommen haben, ohne den Speichern/Bearbeiten Knopf gedrückt zu haben, gehen diese Änderungen verloren"
29
31
  "Inactive":
30
32
 
31
33
  "Last few days": "Letzten Tage"
32
34
  "Last 30 days": "Letzten 30 Tage"
33
35
  "Last 7 days": "Letzten 7 Tage"
34
- "List":
35
- "Logged as": "Aufgezeichnet als"
36
- "Login": "Anmeldem"
36
+ "List" : 'Liste'
37
+ "Logged as": "Angemeldet als"
38
+ "Login": "Anmelden"
37
39
 
38
40
  "New": "Neu"
39
- "New %{resource}": "Neu %{resource}"
40
- "Next": "N&auml;chster"
41
- "No %{resources} found":
41
+ "New %{resource}": "%{resource} erstellen"
42
+ "Next": "Nächste"
43
+ "No %{resources} found": "Keine %{resources} gefunden"
42
44
 
43
- "Password recovery link sent to your email": "Der Link zur Wiederfindung des Passworts wurde an Ihre Email Adresse gechickt"
45
+ "Password recovery link sent to your email": "Der Link zur Wiederherstelllung Ihres Passworts wurde an Ihre Email Adresse geschickt"
44
46
  "Previous": "Vorheriger"
45
47
 
46
- "Record moved %{to}": "Datensatz verschoben nach %{to}"
48
+ "Record moved %{to}": "Datensatz wurde verschoben nach %{to}"
47
49
  "Recover password": "Passwort vergessen?"
48
50
  "Remove": "Eintrag"
49
- "Remove %{resource}?": "Eintrag %{resource}?"
50
- "Reset password": "Passwort zur&uuml;cksetzen"
51
+ "Remove %{resource}?": "%{resource} entfernen?"
52
+ "Reset password": "Passwort zurücksetzen"
51
53
  "Resources": "Resourcen"
52
54
 
53
- "Save %{resource}":
55
+ "Save %{resource}": "%{resource} speichern"
54
56
  "Search": "Suchen"
55
57
  "Show": "Anzeigen"
56
- "Show all dates":
57
- "Show by %{attribute}":
58
- "Show %{resource}": "Anzeigen %{resource}"
58
+ "Show all dates": "Alle anzeigen"
59
+ "Show by %{attribute}": "An Hand von %{attribute} anzeigen"
60
+ "Show %{resource}": "%{resource} anzeigen"
59
61
  "Sign in": "Anmelden"
60
62
  "Sign out": "Abmelden"
61
63
  "Sign up": "Konto erstellen"
62
- "System Users Administration": "System Benutzer Verwaltung"
64
+ "System Users Administration": "Admin Benutzer Verwaltung"
63
65
 
64
66
  "Today": "Heute"
65
- "True": "Richtig"
67
+ "Trash": "Löschen"
68
+ "True": "Ja"
66
69
 
67
- "Unrelate":
70
+ "Unrelate": "Trennen"
68
71
  "Up": "Hoch"
69
72
 
70
- "View all %{attribute}":
71
- "View site": "Site anzeigen"
73
+ "View all %{attribute}": "Alle %{attribute} anzeigen"
74
+ "View site": "Webseite anzeigen"
72
75
 
73
- "You can update your password at": "Sie k7ouml;nnen Ihr Passwort &auml;ndern unter"
74
- "You can't change your role": "Sie k&ouml;nnen Ihre Rolle nicht &auml;ndern"
75
- "You can't toggle your status": "Sie k&ouml;nnen Ihren Status nicht umschalten"
76
+ "You can update your password at": "Sie können Ihr Passwort ändern unter"
77
+ "You can't change your role": "Sie können Ihre Rolle nicht ändern"
78
+ "You can't toggle your status": "Sie können Ihren Status nicht umschalten"
76
79
 
77
- "%{errors} prohibited this page from being saved:":
78
- "%{model} successfully created": "%{model} erfolgreich erstellt"
79
- "%{model} successfully removed": "%{model} erfolgreich gel&ouml;scht"
80
- "%{model} successfully updated": "%{model} erfolgreich ge&auml;ndert"
80
+ "%{errors} errors prohibited this page from being saved:": "%{errors} Fehler haben diese Seite davon abgehalten gespeichert zu werden:"
81
+ "%{model} successfully created": "%{model} wurde erfolgreich erstellt"
82
+ "%{model} successfully removed": "%{model} wurde erfolgreich gelöscht"
83
+ "%{model} successfully updated": "%{model} wurde erfolgreich geändert"
@@ -75,7 +75,7 @@ el:
75
75
  "You can't change your role": "Δεν έχετε την δυνατότητα να αλλάξετε τον ρόλο σας"
76
76
  "You can't toggle your status": "Δεν επιτρέπεται η αλλαγή της κατάστασής σας"
77
77
 
78
- "%{errors} prohibited this page from being saved:":
78
+ "%{errors} errors prohibited this page from being saved:":
79
79
  "%{model} successfully created": "Το μοντέλο %{model} δημιουργήθηκε επιτυχώς"
80
80
  "%{model} successfully removed": "Το μοντέλο %{model} απομακρύνθηκε επιτυχώς"
81
81
  "%{model} successfully updated": "Το μοντέλο %{model} ανανεώθηκε επιτυχώς"
@@ -76,7 +76,7 @@ es:
76
76
  "View all %{attribute}":
77
77
  "View site": "Ver web"
78
78
 
79
- "%{errors} prohibited this page from being saved:":
79
+ "%{errors} errors prohibited this page from being saved:":
80
80
  "%{model} successfully created": "%{model} satisfactoriamente creado."
81
81
  "%{model} successfully removed": "%{model} satisfactoriamente eliminado."
82
82
  "%{model} successfully updated": "%{model} satisfactoriamente actualizado."
@@ -81,7 +81,7 @@ fr:
81
81
  "You can't change your role": "Vous ne pouvez pas changer votre propre rôle."
82
82
  "You can't toggle your status": "Vous ne pouvez pas basculer votre statut"
83
83
 
84
- "%{errors} prohibited this page from being saved:":
84
+ "%{errors} errors prohibited this page from being saved:":
85
85
  "%{model} successfully created": "%{model} correctement créé(e)."
86
86
  "%{model} successfully removed": "%{model} correctement supprimé(e)."
87
87
  "%{model} successfully updated": "%{model} correctement mis(e)-à-jour."
@@ -74,7 +74,7 @@ hu:
74
74
  "You can't change your role": "Nincsen jogod megváltoztatni a jogosultsági szintedet"
75
75
  "You can't toggle your status": "Nincs jogod változtatni a státuszodat"
76
76
 
77
- "%{errors} prohibited this page from being saved:":
77
+ "%{errors} errors prohibited this page from being saved:":
78
78
  "%{model} successfully created": "%{model} sikeresen létrehozva"
79
79
  "%{model} successfully removed": "%{model} sikeresen törölve"
80
80
  "%{model} successfully updated": "%{model} sikereseb frissítve"
@@ -75,7 +75,7 @@
75
75
  "You can't change your role":
76
76
  "You can't toggle your status":
77
77
 
78
- "%{errors} prohibited this page from being saved:":
78
+ "%{errors} errors prohibited this page from being saved:":
79
79
  "%{model} successfully created":
80
80
  "%{model} successfully removed":
81
81
  "%{model} successfully updated":
@@ -74,7 +74,7 @@ pt-BR:
74
74
  "You can update your password at": "Você pode atualizar sua senha em"
75
75
  "You can't change your role": "Você não pode mudar sua própria função no sistema."
76
76
 
77
- "%{errors} prohibited this page from being saved:":
77
+ "%{errors} errors prohibited this page from being saved:":
78
78
  "%{model} successfully created": "%{model} criado com sucesso."
79
79
  "%{model} successfully removed": "%{model} removido com sucesso."
80
80
  "%{model} successfully updated": "%{model} atualizado com sucesso."
@@ -74,7 +74,7 @@
74
74
  "You can update your password at": "Pode atualizar a sua senha em"
75
75
  "You can't change your role": "Não pode mudar sua própria função no sistema."
76
76
 
77
- "%{errors} prohibited this page from being saved:":
77
+ "%{errors} errors prohibited this page from being saved:":
78
78
  "%{model} successfully created": "%{model} criado com sucesso."
79
79
  "%{model} successfully removed": "%{model} removido com sucesso."
80
80
  "%{model} successfully updated": "%{model} atualizado com sucesso."
@@ -74,7 +74,7 @@ ru:
74
74
  "You can't change your role": "Вы не можете менять свою собственную роль"
75
75
  "You can't toggle your status": "Вы не можете менять свой статус"
76
76
 
77
- "%{errors} prohibited this page from being saved:":
77
+ "%{errors} errors prohibited this page from being saved:":
78
78
  "%{model} successfully created": "%{model} создан"
79
79
  "%{model} successfully removed": "%{model} удален"
80
80
  "%{model} successfully updated": "%{model} успешно обновлен"
@@ -73,7 +73,7 @@ zh-CN:
73
73
  "You can't change your role": "你不能修改你的角色"
74
74
  "You can't toggle your status": "你不能修改自己的状态"
75
75
 
76
- "%{errors} prohibited this page from being saved:":
76
+ "%{errors} errors prohibited this page from being saved:":
77
77
  "%{model} successfully created": "%{model} 创建成功"
78
78
  "%{model} successfully removed": "%{model} 删除成功"
79
79
  "%{model} successfully updated": "%{model} 更新成功"
@@ -1,3 +1,3 @@
1
1
  module Typus
2
- VERSION = "3.0.11"
2
+ VERSION = "3.0.12"
3
3
  end
@@ -2,6 +2,9 @@
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
3
  require "typus/version"
4
4
 
5
+ files = `git ls-files`.split("\n") + Dir["config/locales/*.yml"]
6
+ test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
7
+
5
8
  Gem::Specification.new do |s|
6
9
  s.name = "typus"
7
10
  s.version = Typus::VERSION
@@ -14,13 +17,13 @@ Gem::Specification.new do |s|
14
17
 
15
18
  s.rubyforge_project = "typus"
16
19
 
17
- s.files = `git ls-files`.split("\n")
18
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
+ s.files = files - test_files
21
+ s.test_files = []
19
22
  s.require_paths = ["lib"]
20
23
 
21
24
  s.add_dependency "bcrypt-ruby"
22
25
  s.add_dependency "fastercsv", "~> 1.5"
23
- s.add_dependency "rails", "~> 3.0.8"
26
+ s.add_dependency "rails", "~> 3.0.9"
24
27
  s.add_dependency "render_inheritable"
25
- s.add_dependency "will_paginate", "~> 3.0.pre2"
28
+ s.add_dependency "will_paginate", "~> 3.0.0"
26
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typus
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.11
4
+ version: 3.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-13 00:00:00.000000000 +02:00
13
- default_executable:
12
+ date: 2011-08-12 00:00:00.000000000Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: bcrypt-ruby
17
- requirement: &2156431880 !ruby/object:Gem::Requirement
16
+ requirement: &70126650078560 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ! '>='
@@ -22,10 +21,10 @@ dependencies:
22
21
  version: '0'
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *2156431880
24
+ version_requirements: *70126650078560
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: fastercsv
28
- requirement: &2156421280 !ruby/object:Gem::Requirement
27
+ requirement: &70126650078060 !ruby/object:Gem::Requirement
29
28
  none: false
30
29
  requirements:
31
30
  - - ~>
@@ -33,21 +32,21 @@ dependencies:
33
32
  version: '1.5'
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: *2156421280
35
+ version_requirements: *70126650078060
37
36
  - !ruby/object:Gem::Dependency
38
37
  name: rails
39
- requirement: &2156420720 !ruby/object:Gem::Requirement
38
+ requirement: &70126650077560 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
41
  - - ~>
43
42
  - !ruby/object:Gem::Version
44
- version: 3.0.8
43
+ version: 3.0.9
45
44
  type: :runtime
46
45
  prerelease: false
47
- version_requirements: *2156420720
46
+ version_requirements: *70126650077560
48
47
  - !ruby/object:Gem::Dependency
49
48
  name: render_inheritable
50
- requirement: &2156420300 !ruby/object:Gem::Requirement
49
+ requirement: &70126650077160 !ruby/object:Gem::Requirement
51
50
  none: false
52
51
  requirements:
53
52
  - - ! '>='
@@ -55,18 +54,18 @@ dependencies:
55
54
  version: '0'
56
55
  type: :runtime
57
56
  prerelease: false
58
- version_requirements: *2156420300
57
+ version_requirements: *70126650077160
59
58
  - !ruby/object:Gem::Dependency
60
59
  name: will_paginate
61
- requirement: &2156419760 !ruby/object:Gem::Requirement
60
+ requirement: &70126650076620 !ruby/object:Gem::Requirement
62
61
  none: false
63
62
  requirements:
64
63
  - - ~>
65
64
  - !ruby/object:Gem::Version
66
- version: 3.0.pre2
65
+ version: 3.0.0
67
66
  type: :runtime
68
67
  prerelease: false
69
- version_requirements: *2156419760
68
+ version_requirements: *70126650076620
70
69
  description: Ruby on Rails Admin Panel (Engine) to allow trusted users edit structured
71
70
  content.
72
71
  email:
@@ -281,81 +280,7 @@ files:
281
280
  - lib/typus/regex.rb
282
281
  - lib/typus/resources.rb
283
282
  - lib/typus/version.rb
284
- - test/app/controllers/admin/account_controller_test.rb
285
- - test/app/controllers/admin/assets_controller_test.rb
286
- - test/app/controllers/admin/base_controller_test.rb
287
- - test/app/controllers/admin/birds_controller_test.rb
288
- - test/app/controllers/admin/cases_controller_test.rb
289
- - test/app/controllers/admin/categories_controller_test.rb
290
- - test/app/controllers/admin/comments_controller_test.rb
291
- - test/app/controllers/admin/dashboard_controller_test.rb
292
- - test/app/controllers/admin/image_holders_controller_test.rb
293
- - test/app/controllers/admin/invoices_controller_test.rb
294
- - test/app/controllers/admin/orders_controller_test.rb
295
- - test/app/controllers/admin/pages_controller_test.rb
296
- - test/app/controllers/admin/posts_controller_test.rb
297
- - test/app/controllers/admin/projects_controller_test.rb
298
- - test/app/controllers/admin/session_controller_test.rb
299
- - test/app/controllers/admin/status_controller_test.rb
300
- - test/app/controllers/admin/typus_users_controller_test.rb
301
- - test/app/controllers/admin/users_controller_test.rb
302
- - test/app/controllers/admin/views_controller_test.rb
303
- - test/app/helpers/admin/base_helper_test.rb
304
- - test/app/helpers/admin/dashboard_helper_test.rb
305
- - test/app/helpers/admin/file_preview_helper_test.rb
306
- - test/app/helpers/admin/filters_helper_test.rb
307
- - test/app/helpers/admin/form_helper_test.rb
308
- - test/app/helpers/admin/list_helper_test.rb
309
- - test/app/helpers/admin/relationships_helper_test.rb
310
- - test/app/helpers/admin/resources_helper_test.rb
311
- - test/app/helpers/admin/search_helper_test.rb
312
- - test/app/helpers/admin/sidebar_helper_test.rb
313
- - test/app/helpers/admin/table_helper_test.rb
314
- - test/app/mailers/admin/mailer_test.rb
315
- - test/app/models/admin_user_test.rb
316
- - test/app/models/typus_user_roles_test.rb
317
- - test/app/models/typus_user_test.rb
318
- - test/config/routes_test.rb
319
- - test/factories.rb
320
- - test/fixtures/config/broken/application.yml
321
- - test/fixtures/config/broken/application_roles.yml
322
- - test/fixtures/config/broken/empty.yml
323
- - test/fixtures/config/broken/empty_roles.yml
324
- - test/fixtures/config/broken/undefined.yml
325
- - test/fixtures/config/broken/undefined_roles.yml
326
- - test/fixtures/config/default/typus.yml
327
- - test/fixtures/config/default/typus_roles.yml
328
- - test/fixtures/config/empty/empty_01.yml
329
- - test/fixtures/config/empty/empty_01_roles.yml
330
- - test/fixtures/config/empty/empty_02.yml
331
- - test/fixtures/config/empty/empty_02_roles.yml
332
- - test/fixtures/config/locales/es.yml
333
- - test/fixtures/config/namespaced/application.yml
334
- - test/fixtures/config/namespaced/application_roles.yml
335
- - test/fixtures/config/ordered/001_roles.yml
336
- - test/fixtures/config/ordered/002_roles.yml
337
- - test/fixtures/config/unordered/app_one_roles.yml
338
- - test/fixtures/config/unordered/app_two_roles.yml
339
- - test/lib/support/active_record_test.rb
340
- - test/lib/support/fake_user_test.rb
341
- - test/lib/support/hash_test.rb
342
- - test/lib/support/object_test.rb
343
- - test/lib/support/string_test.rb
344
- - test/lib/typus/configuration_test.rb
345
- - test/lib/typus/controller/actions_test.rb
346
- - test/lib/typus/controller/associations_test.rb
347
- - test/lib/typus/controller/autocomplete_test.rb
348
- - test/lib/typus/controller/filters_test.rb
349
- - test/lib/typus/controller/format_test.rb
350
- - test/lib/typus/i18n_test.rb
351
- - test/lib/typus/orm/active_record/class_methods_test.rb
352
- - test/lib/typus/orm/active_record/search_test.rb
353
- - test/lib/typus/regex_test.rb
354
- - test/lib/typus/resources_test.rb
355
- - test/lib/typus_test.rb
356
- - test/test_helper.rb
357
283
  - typus.gemspec
358
- has_rdoc: true
359
284
  homepage: http://core.typuscms.com/
360
285
  licenses: []
361
286
  post_install_message:
@@ -376,82 +301,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
376
301
  version: '0'
377
302
  requirements: []
378
303
  rubyforge_project: typus
379
- rubygems_version: 1.6.2
304
+ rubygems_version: 1.8.7
380
305
  signing_key:
381
306
  specification_version: 3
382
307
  summary: Effortless backend interface for Ruby on Rails applications. (Admin scaffold
383
308
  generator)
384
- test_files:
385
- - test/app/controllers/admin/account_controller_test.rb
386
- - test/app/controllers/admin/assets_controller_test.rb
387
- - test/app/controllers/admin/base_controller_test.rb
388
- - test/app/controllers/admin/birds_controller_test.rb
389
- - test/app/controllers/admin/cases_controller_test.rb
390
- - test/app/controllers/admin/categories_controller_test.rb
391
- - test/app/controllers/admin/comments_controller_test.rb
392
- - test/app/controllers/admin/dashboard_controller_test.rb
393
- - test/app/controllers/admin/image_holders_controller_test.rb
394
- - test/app/controllers/admin/invoices_controller_test.rb
395
- - test/app/controllers/admin/orders_controller_test.rb
396
- - test/app/controllers/admin/pages_controller_test.rb
397
- - test/app/controllers/admin/posts_controller_test.rb
398
- - test/app/controllers/admin/projects_controller_test.rb
399
- - test/app/controllers/admin/session_controller_test.rb
400
- - test/app/controllers/admin/status_controller_test.rb
401
- - test/app/controllers/admin/typus_users_controller_test.rb
402
- - test/app/controllers/admin/users_controller_test.rb
403
- - test/app/controllers/admin/views_controller_test.rb
404
- - test/app/helpers/admin/base_helper_test.rb
405
- - test/app/helpers/admin/dashboard_helper_test.rb
406
- - test/app/helpers/admin/file_preview_helper_test.rb
407
- - test/app/helpers/admin/filters_helper_test.rb
408
- - test/app/helpers/admin/form_helper_test.rb
409
- - test/app/helpers/admin/list_helper_test.rb
410
- - test/app/helpers/admin/relationships_helper_test.rb
411
- - test/app/helpers/admin/resources_helper_test.rb
412
- - test/app/helpers/admin/search_helper_test.rb
413
- - test/app/helpers/admin/sidebar_helper_test.rb
414
- - test/app/helpers/admin/table_helper_test.rb
415
- - test/app/mailers/admin/mailer_test.rb
416
- - test/app/models/admin_user_test.rb
417
- - test/app/models/typus_user_roles_test.rb
418
- - test/app/models/typus_user_test.rb
419
- - test/config/routes_test.rb
420
- - test/factories.rb
421
- - test/fixtures/config/broken/application.yml
422
- - test/fixtures/config/broken/application_roles.yml
423
- - test/fixtures/config/broken/empty.yml
424
- - test/fixtures/config/broken/empty_roles.yml
425
- - test/fixtures/config/broken/undefined.yml
426
- - test/fixtures/config/broken/undefined_roles.yml
427
- - test/fixtures/config/default/typus.yml
428
- - test/fixtures/config/default/typus_roles.yml
429
- - test/fixtures/config/empty/empty_01.yml
430
- - test/fixtures/config/empty/empty_01_roles.yml
431
- - test/fixtures/config/empty/empty_02.yml
432
- - test/fixtures/config/empty/empty_02_roles.yml
433
- - test/fixtures/config/locales/es.yml
434
- - test/fixtures/config/namespaced/application.yml
435
- - test/fixtures/config/namespaced/application_roles.yml
436
- - test/fixtures/config/ordered/001_roles.yml
437
- - test/fixtures/config/ordered/002_roles.yml
438
- - test/fixtures/config/unordered/app_one_roles.yml
439
- - test/fixtures/config/unordered/app_two_roles.yml
440
- - test/lib/support/active_record_test.rb
441
- - test/lib/support/fake_user_test.rb
442
- - test/lib/support/hash_test.rb
443
- - test/lib/support/object_test.rb
444
- - test/lib/support/string_test.rb
445
- - test/lib/typus/configuration_test.rb
446
- - test/lib/typus/controller/actions_test.rb
447
- - test/lib/typus/controller/associations_test.rb
448
- - test/lib/typus/controller/autocomplete_test.rb
449
- - test/lib/typus/controller/filters_test.rb
450
- - test/lib/typus/controller/format_test.rb
451
- - test/lib/typus/i18n_test.rb
452
- - test/lib/typus/orm/active_record/class_methods_test.rb
453
- - test/lib/typus/orm/active_record/search_test.rb
454
- - test/lib/typus/regex_test.rb
455
- - test/lib/typus/resources_test.rb
456
- - test/lib/typus_test.rb
457
- - test/test_helper.rb
309
+ test_files: []