typus 0.9.17 → 0.9.18

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.17
1
+ 0.9.18
@@ -167,14 +167,14 @@ module Admin::TableHelper
167
167
  :id => item.id,
168
168
  :go => position.last }
169
169
 
170
- html_position << <<-HTML
171
- #{link_to _(position.first), params.merge(options)}
172
- HTML
173
-
170
+ first_or_last = (item.respond_to?(:first?) && (position.last == 'move_higher' && item.first?)) || (item.respond_to?(:last?) && (position.last == 'move_lower' && item.last?))
171
+ html_position << link_to_unless(first_or_last, _(position.first), params.merge(options)) do |name|
172
+ %(<span class="inactive">#{name}</span>)
173
+ end
174
174
  end
175
175
 
176
176
  <<-HTML
177
- <td>#{html_position.join('/ ')}</td>
177
+ <td>#{html_position.join(' / ')}</td>
178
178
  HTML
179
179
 
180
180
  end
data/config/routes.rb ADDED
@@ -0,0 +1,14 @@
1
+ ActionController::Routing::Routes.draw do |map|
2
+
3
+ map.with_options :controller => 'typus', :path_prefix => 'admin' do |i|
4
+ i.admin_quick_edit 'quick_edit', :action => 'quick_edit'
5
+ i.admin_dashboard '', :action => 'dashboard'
6
+ i.admin_sign_in 'sign_in', :action => 'sign_in'
7
+ i.admin_sign_out 'sign_out', :action => 'sign_out'
8
+ i.admin_sign_up 'sign_up', :action => 'sign_up'
9
+ i.admin_recover_password 'recover_password', :action => 'recover_password'
10
+ i.admin_reset_password 'reset_password', :action => 'reset_password'
11
+ i.admin_set_locale 'set_locale', :action => 'set_locale'
12
+ end
13
+
14
+ end
@@ -421,6 +421,10 @@ a.on {
421
421
  vertical-align: top;
422
422
  }
423
423
 
424
+ #content table.typus span.inactive {
425
+ color: #888;
426
+ }
427
+
424
428
  /* @end */
425
429
 
426
430
  /* @group Rails Errors */
@@ -0,0 +1,15 @@
1
+ ActionController::Routing::Routes.draw do |map|
2
+
3
+ begin
4
+ ActionController::Routing::Routes.recognize_path '/admin/typus_users'
5
+ rescue
6
+ map.connect ':controller/:action/:id'
7
+ end
8
+
9
+ begin
10
+ ActionController::Routing::Routes.recognize_path '/admin/typus_users.csv'
11
+ rescue
12
+ map.connect ':controller.:format'
13
+ end
14
+
15
+ end
data/typus.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{typus}
8
- s.version = "0.9.17"
8
+ s.version = "0.9.18"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Francesc Esplugas"]
12
- s.date = %q{2009-08-18}
12
+ s.date = %q{2009-08-21}
13
13
  s.description = %q{Effortless backend interface for Ruby on Rails applications. (Admin scaffold generator.)}
14
14
  s.email = %q{francesc@intraducibles.com}
15
15
  s.extra_rdoc_files = [
@@ -51,6 +51,7 @@ Gem::Specification.new do |s|
51
51
  "config/locales/typus/language.yml.template",
52
52
  "config/locales/typus/pt-BR.yml",
53
53
  "config/locales/typus/ru.yml",
54
+ "config/routes.rb",
54
55
  "generators/typus/templates/config/initializers/typus.rb",
55
56
  "generators/typus/templates/config/typus/README",
56
57
  "generators/typus/templates/config/typus/application.yml",
@@ -76,6 +77,7 @@ Gem::Specification.new do |s|
76
77
  "lib/typus/authentication.rb",
77
78
  "lib/typus/configuration.rb",
78
79
  "lib/typus/extensions/routes.rb",
80
+ "lib/typus/extensions/routes_hack.rb",
79
81
  "lib/typus/format.rb",
80
82
  "lib/typus/generator.rb",
81
83
  "lib/typus/hash.rb",
@@ -170,11 +172,10 @@ Gem::Specification.new do |s|
170
172
  "test/vendor/paginator_test.rb",
171
173
  "typus.gemspec"
172
174
  ]
173
- s.has_rdoc = true
174
175
  s.homepage = %q{http://intraducibles.com/projects/typus}
175
176
  s.rdoc_options = ["--charset=UTF-8"]
176
177
  s.require_paths = ["lib"]
177
- s.rubygems_version = %q{1.3.1}
178
+ s.rubygems_version = %q{1.3.5}
178
179
  s.summary = %q{Effortless backend interface for Ruby on Rails applications. (Admin scaffold generator.)}
179
180
  s.test_files = [
180
181
  "test/fixtures/app/controllers/admin/assets_controller.rb",
@@ -218,7 +219,7 @@ Gem::Specification.new do |s|
218
219
 
219
220
  if s.respond_to? :specification_version then
220
221
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
221
- s.specification_version = 2
222
+ s.specification_version = 3
222
223
 
223
224
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
224
225
  else
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: 0.9.17
4
+ version: 0.9.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesc Esplugas
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-18 00:00:00 +02:00
12
+ date: 2009-08-21 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -57,6 +57,7 @@ files:
57
57
  - config/locales/typus/language.yml.template
58
58
  - config/locales/typus/pt-BR.yml
59
59
  - config/locales/typus/ru.yml
60
+ - config/routes.rb
60
61
  - generators/typus/templates/config/initializers/typus.rb
61
62
  - generators/typus/templates/config/typus/README
62
63
  - generators/typus/templates/config/typus/application.yml
@@ -82,6 +83,7 @@ files:
82
83
  - lib/typus/authentication.rb
83
84
  - lib/typus/configuration.rb
84
85
  - lib/typus/extensions/routes.rb
86
+ - lib/typus/extensions/routes_hack.rb
85
87
  - lib/typus/format.rb
86
88
  - lib/typus/generator.rb
87
89
  - lib/typus/hash.rb
@@ -177,6 +179,8 @@ files:
177
179
  - typus.gemspec
178
180
  has_rdoc: true
179
181
  homepage: http://intraducibles.com/projects/typus
182
+ licenses: []
183
+
180
184
  post_install_message:
181
185
  rdoc_options:
182
186
  - --charset=UTF-8
@@ -197,9 +201,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
201
  requirements: []
198
202
 
199
203
  rubyforge_project:
200
- rubygems_version: 1.3.1
204
+ rubygems_version: 1.3.5
201
205
  signing_key:
202
- specification_version: 2
206
+ specification_version: 3
203
207
  summary: Effortless backend interface for Ruby on Rails applications. (Admin scaffold generator.)
204
208
  test_files:
205
209
  - test/fixtures/app/controllers/admin/assets_controller.rb