jbasdf-disguise 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +5 -0
- data/LICENSE +20 -0
- data/README.rdoc +43 -0
- data/Rakefile +93 -0
- data/VERSION +1 -0
- data/app/controllers/admin/disguise/themes_controller.rb +32 -0
- data/app/models/theme.rb +37 -0
- data/app/views/admin/themes/_theme.html.erb +7 -0
- data/app/views/admin/themes/edit.html.erb +10 -0
- data/app/views/admin/themes/no_themes.html.erb +4 -0
- data/config/disguise_routes.rb +6 -0
- data/db/migrate/20090530170040_create_themes.rb +11 -0
- data/disguise.gemspec +163 -0
- data/generators/theme/USAGE +13 -0
- data/generators/theme/templates/INSTALL +5 -0
- data/generators/theme/templates/description.txt +1 -0
- data/generators/theme/templates/locales/en.yml +2 -0
- data/generators/theme/templates/preview.gif +0 -0
- data/generators/theme/templates/stylesheets/styles.css +1 -0
- data/generators/theme/templates/views/_footer.html.erb +7 -0
- data/generators/theme/templates/views/_head.html.erb +9 -0
- data/generators/theme/templates/views/_header.html.erb +28 -0
- data/generators/theme/templates/views/application.html.erb +18 -0
- data/generators/theme/templates/views/home.html.erb +14 -0
- data/generators/theme/theme_generator.rb +43 -0
- data/lib/action_controller/disguise_application.rb +50 -0
- data/lib/disguise.rb +8 -0
- data/lib/disguise/initialize_routes.rb +8 -0
- data/lib/disguise/tasks.rb +34 -0
- data/locales/ar.yml +8 -0
- data/locales/bg.yml +8 -0
- data/locales/ca.yml +8 -0
- data/locales/cs.yml +8 -0
- data/locales/da.yml +8 -0
- data/locales/de.yml +8 -0
- data/locales/el.yml +8 -0
- data/locales/en.yml +7 -0
- data/locales/es.yml +8 -0
- data/locales/fr.yml +8 -0
- data/locales/it.yml +8 -0
- data/locales/iw.yml +8 -0
- data/locales/ja.yml +8 -0
- data/locales/ko.yml +8 -0
- data/locales/lt.yml +8 -0
- data/locales/lv.yml +8 -0
- data/locales/nl.yml +8 -0
- data/locales/no.yml +9 -0
- data/locales/pl.yml +8 -0
- data/locales/pt.yml +8 -0
- data/locales/ro.yml +8 -0
- data/locales/ru.yml +8 -0
- data/locales/sk.yml +8 -0
- data/locales/sl.yml +8 -0
- data/locales/sr.yml +8 -0
- data/locales/sv.yml +8 -0
- data/locales/tl.yml +8 -0
- data/locales/uk.yml +8 -0
- data/locales/vi.yml +8 -0
- data/locales/zh-CN.yml +8 -0
- data/locales/zh-TW.yml +8 -0
- data/locales/zh.yml +8 -0
- data/rails/init.rb +3 -0
- data/tasks/rails.rake +2 -0
- data/test/disguise_test.rb +7 -0
- data/test/test_helper.rb +18 -0
- metadata +120 -0
data/locales/no.yml
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
---
|
2
|
+
? "no"
|
3
|
+
:
|
4
|
+
disguise:
|
5
|
+
activate_theme_message: "Klikk på et tema for å aktivere den"
|
6
|
+
current_theme: "Aktuelle tema"
|
7
|
+
no_themes_message: "Du har ennå ikke opprettet noen temaer for din søknad. Hvis du vil opprette et nytt tema rett og slett kjøre theme generator og følg instruksjonene:"
|
8
|
+
set_theme: "Set Theme"
|
9
|
+
theme_updated: "Temaet ble oppdatert."
|
data/locales/pl.yml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
pl:
|
3
|
+
disguise:
|
4
|
+
activate_theme_message: "Kliknij na temat, aby uaktywnić"
|
5
|
+
current_theme: "Aktualny temat"
|
6
|
+
no_themes_message: "Jeszcze nie utworzono żadnych tematów dla danej aplikacji. Jeśli chcesz utworzyć nowy temat wygenerować temat generatora i postępuj zgodnie z instrukcjami:"
|
7
|
+
set_theme: "Ustaw Theme"
|
8
|
+
theme_updated: "Temat został zaktualizowany."
|
data/locales/pt.yml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
pt:
|
3
|
+
disguise:
|
4
|
+
activate_theme_message: "Clique em um tema para ativá-la"
|
5
|
+
current_theme: "Tema atual"
|
6
|
+
no_themes_message: "Você ainda não criou nenhum temas para a sua aplicação. Se você gostaria de criar um novo tema basta executar o tema gerador e siga as instruções:"
|
7
|
+
set_theme: "Configurar tema"
|
8
|
+
theme_updated: "Tema foi atualizado."
|
data/locales/ro.yml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
ro:
|
3
|
+
disguise:
|
4
|
+
activate_theme_message: "Click pe o temă pentru a activa"
|
5
|
+
current_theme: "Tematica curenta"
|
6
|
+
no_themes_message: "Încă nu aţi creat nici teme pentru cererea dumneavoastră. Dacă doriţi să creaţi o nouă temă pur şi simplu rulaţi tema generator şi urmaţi instrucţiunile:"
|
7
|
+
set_theme: "Setare Tematica"
|
8
|
+
theme_updated: "Tematica a fost actualizat cu succes."
|
data/locales/ru.yml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
ru:
|
3
|
+
disguise:
|
4
|
+
activate_theme_message: "Нажмите на тему для его активации"
|
5
|
+
current_theme: "Текущая тема"
|
6
|
+
no_themes_message: "Вы еще не создали какой-либо темы для вашего приложения. Если вы хотите создать новую тему просто запустить тему генератора и следуйте инструкциям:"
|
7
|
+
set_theme: "Установить тема"
|
8
|
+
theme_updated: "Тема была успешно обновлена."
|
data/locales/sk.yml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
sk:
|
3
|
+
disguise:
|
4
|
+
activate_theme_message: "Kliknite na tému pre jeho aktiváciu"
|
5
|
+
current_theme: "Aktuálna téma"
|
6
|
+
no_themes_message: "Vy ešte nemáte vytvorený akékoľvek témy pre vaše aplikácie. Ak chcete vytvoriť novú tému jednoducho spustiť generátor tému a postupujte podľa návodu:"
|
7
|
+
set_theme: "Nastaviť Témy"
|
8
|
+
theme_updated: "Téma bolo úspešne aktualizované."
|
data/locales/sl.yml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
sl:
|
3
|
+
disguise:
|
4
|
+
activate_theme_message: "Kliknite na temo, da jo aktivirate"
|
5
|
+
current_theme: "Trenutne teme"
|
6
|
+
no_themes_message: "Še niste ustvarili nobenih teme za vašo prijavo. Če želite ustvariti novo temo, preprosto zaženite theme generator in sledite navodilom:"
|
7
|
+
set_theme: "Nastavljanje teme"
|
8
|
+
theme_updated: "Tema je bila uspeÅ ¡no posodobljen."
|
data/locales/sr.yml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
sr:
|
3
|
+
disguise:
|
4
|
+
activate_theme_message: "Кликните на тему да активирате га"
|
5
|
+
current_theme: "Тренутне теме"
|
6
|
+
no_themes_message: "Још нисте креирали теме за било које ваше апликације. Ако желите креирати нову тему једноставно покренути тему генератор и следите упутства:"
|
7
|
+
set_theme: "Постави тему"
|
8
|
+
theme_updated: "Тема је успешно обновљен."
|
data/locales/sv.yml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
sv:
|
3
|
+
disguise:
|
4
|
+
activate_theme_message: "Klicka på ett tema för att aktivera den"
|
5
|
+
current_theme: "Aktuella teman"
|
6
|
+
no_themes_message: "Du har ännu inte skapat några teman för din ansökan. Om du vill skapa ett nytt tema kör helt enkelt temat generator och följ instruktionerna:"
|
7
|
+
set_theme: "Ställ Tema"
|
8
|
+
theme_updated: "Tema har uppdaterats."
|
data/locales/tl.yml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
tl:
|
3
|
+
disguise:
|
4
|
+
activate_theme_message: "Mag-click sa isang tema upang buhayin ito"
|
5
|
+
current_theme: "Kasalukuyang Theme"
|
6
|
+
no_themes_message: "Hindi mo pa ng anumang mga tema para sa iyong application. Kung nais mong lumikha ng isang bagong tema lamang patakbuhin ang tema dyeneretor at sundin ang mga tagubilin:"
|
7
|
+
set_theme: "Itakda ang Theme"
|
8
|
+
theme_updated: "Tema ay matagumpay na na-update."
|
data/locales/uk.yml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
uk:
|
3
|
+
disguise:
|
4
|
+
activate_theme_message: "Натисніть на тему для його активації"
|
5
|
+
current_theme: "Поточна тема"
|
6
|
+
no_themes_message: "Ви ще не створили якої-небудь теми для вашої програми. Якщо ви хочете створити нову тему просто запустити тему генератора і дотримуйтесь інструкцій:"
|
7
|
+
set_theme: "Встановити тема"
|
8
|
+
theme_updated: "Тема була успішно оновлено."
|
data/locales/vi.yml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
vi:
|
3
|
+
disguise:
|
4
|
+
activate_theme_message: "Click chuột vào một chủ đề để kích hoạt nó"
|
5
|
+
current_theme: "Chủ đề hiện tại"
|
6
|
+
no_themes_message: "Bạn chưa tạo ra bất kỳ chủ đề cho các ứng dụng của bạn. Nếu bạn muốn tạo ra một chủ đề mới chủ đề đơn giản hãy chạy máy phát điện và làm theo hướng dẫn:"
|
7
|
+
set_theme: "Đặt Chủ đề"
|
8
|
+
theme_updated: "Chủ đề đã được cập nhật."
|
data/locales/zh-CN.yml
ADDED
data/locales/zh-TW.yml
ADDED
data/locales/zh.yml
ADDED
data/rails/init.rb
ADDED
data/tasks/rails.rake
ADDED
data/test/test_helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + "/rails_root/config/environment")
|
3
|
+
require 'test_help'
|
4
|
+
|
5
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
6
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
7
|
+
require 'disguise'
|
8
|
+
|
9
|
+
gem 'thoughtbot-factory_girl' # from github
|
10
|
+
|
11
|
+
require 'factory_girl'
|
12
|
+
require 'redgreen' rescue LoadError
|
13
|
+
|
14
|
+
|
15
|
+
class ActiveSupport::TestCase
|
16
|
+
self.use_transactional_fixtures = true
|
17
|
+
self.use_instantiated_fixtures = false
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jbasdf-disguise
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Justin Ball
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-05-30 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Add themes to your Rails application to easily change the view layer and impress everyone you know
|
17
|
+
email: justinball@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- LICENSE
|
24
|
+
- README.rdoc
|
25
|
+
files:
|
26
|
+
- .document
|
27
|
+
- .gitignore
|
28
|
+
- LICENSE
|
29
|
+
- README.rdoc
|
30
|
+
- Rakefile
|
31
|
+
- VERSION
|
32
|
+
- app/controllers/admin/disguise/themes_controller.rb
|
33
|
+
- app/models/theme.rb
|
34
|
+
- app/views/admin/themes/_theme.html.erb
|
35
|
+
- app/views/admin/themes/edit.html.erb
|
36
|
+
- app/views/admin/themes/no_themes.html.erb
|
37
|
+
- config/disguise_routes.rb
|
38
|
+
- db/migrate/20090530170040_create_themes.rb
|
39
|
+
- disguise.gemspec
|
40
|
+
- generators/theme/USAGE
|
41
|
+
- generators/theme/templates/INSTALL
|
42
|
+
- generators/theme/templates/description.txt
|
43
|
+
- generators/theme/templates/locales/en.yml
|
44
|
+
- generators/theme/templates/preview.gif
|
45
|
+
- generators/theme/templates/stylesheets/styles.css
|
46
|
+
- generators/theme/templates/views/_footer.html.erb
|
47
|
+
- generators/theme/templates/views/_head.html.erb
|
48
|
+
- generators/theme/templates/views/_header.html.erb
|
49
|
+
- generators/theme/templates/views/application.html.erb
|
50
|
+
- generators/theme/templates/views/home.html.erb
|
51
|
+
- generators/theme/theme_generator.rb
|
52
|
+
- lib/action_controller/disguise_application.rb
|
53
|
+
- lib/disguise.rb
|
54
|
+
- lib/disguise/initialize_routes.rb
|
55
|
+
- lib/disguise/tasks.rb
|
56
|
+
- locales/ar.yml
|
57
|
+
- locales/bg.yml
|
58
|
+
- locales/ca.yml
|
59
|
+
- locales/cs.yml
|
60
|
+
- locales/da.yml
|
61
|
+
- locales/de.yml
|
62
|
+
- locales/el.yml
|
63
|
+
- locales/en.yml
|
64
|
+
- locales/es.yml
|
65
|
+
- locales/fr.yml
|
66
|
+
- locales/it.yml
|
67
|
+
- locales/iw.yml
|
68
|
+
- locales/ja.yml
|
69
|
+
- locales/ko.yml
|
70
|
+
- locales/lt.yml
|
71
|
+
- locales/lv.yml
|
72
|
+
- locales/nl.yml
|
73
|
+
- locales/no.yml
|
74
|
+
- locales/pl.yml
|
75
|
+
- locales/pt.yml
|
76
|
+
- locales/ro.yml
|
77
|
+
- locales/ru.yml
|
78
|
+
- locales/sk.yml
|
79
|
+
- locales/sl.yml
|
80
|
+
- locales/sr.yml
|
81
|
+
- locales/sv.yml
|
82
|
+
- locales/tl.yml
|
83
|
+
- locales/uk.yml
|
84
|
+
- locales/vi.yml
|
85
|
+
- locales/zh-CN.yml
|
86
|
+
- locales/zh-TW.yml
|
87
|
+
- locales/zh.yml
|
88
|
+
- rails/init.rb
|
89
|
+
- tasks/rails.rake
|
90
|
+
- test/disguise_test.rb
|
91
|
+
- test/test_helper.rb
|
92
|
+
has_rdoc: true
|
93
|
+
homepage: http://github.com/jbasdf/disguise
|
94
|
+
post_install_message:
|
95
|
+
rdoc_options:
|
96
|
+
- --charset=UTF-8
|
97
|
+
require_paths:
|
98
|
+
- lib
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: "0"
|
104
|
+
version:
|
105
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: "0"
|
110
|
+
version:
|
111
|
+
requirements: []
|
112
|
+
|
113
|
+
rubyforge_project: disguise
|
114
|
+
rubygems_version: 1.2.0
|
115
|
+
signing_key:
|
116
|
+
specification_version: 2
|
117
|
+
summary: Easy to use view theme system for Rails
|
118
|
+
test_files:
|
119
|
+
- test/disguise_test.rb
|
120
|
+
- test/test_helper.rb
|