typus 0.9.30 → 0.9.31

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.30
1
+ 0.9.31
@@ -8,7 +8,7 @@ module TypusHelper
8
8
  returning(String.new) do |html|
9
9
 
10
10
  Typus.applications.each do |app|
11
-
11
+
12
12
  available = Typus.application(app).map do |resource|
13
13
  resource if @current_user.resources.include?(resource)
14
14
  end
@@ -75,7 +75,7 @@ module TypusHelper
75
75
 
76
76
  html << <<-HTML
77
77
  <tr class="#{cycle('even', 'odd')}">
78
- <td>#{link_to _(resource.tableize.humanize), resource_path}</td>
78
+ <td>#{link_to _(resource.titleize.capitalize), resource_path}</td>
79
79
  <td align="right" style="vertical-align: bottom;"></td>
80
80
  </tr>
81
81
  HTML
data/lib/typus/preview.rb CHANGED
@@ -16,7 +16,7 @@ module Typus
16
16
  <script type="text/javascript" charset="utf-8">
17
17
  $(document).ready(function() { $("##{to_dom}").fancybox(); });
18
18
  </script>
19
- <a id="#{to_dom}" href="#{send(attachment).url(file_preview)}">#{send(attribute)}</a>
19
+ <a id="#{to_dom}" href="#{send(attachment).url(file_preview)}" title="#{typus_name}">#{send(attribute)}</a>
20
20
  HTML
21
21
  else
22
22
  <<-HTML
data/lib/typus.rb CHANGED
@@ -70,8 +70,10 @@ module Typus
70
70
 
71
71
  def boot!
72
72
 
73
- # return unless File.exists?("#{Rails.root}/config/initializers/typus.rb") || testing?
74
- return if %w( script/generate script/destroy ).include?($0)
73
+ commands = [ 'script/generate',
74
+ 'script/destroy' ]
75
+
76
+ return if commands.include?($0)
75
77
 
76
78
  if testing?
77
79
  Typus::Configuration.options[:config_folder] = 'vendor/plugins/typus/test/config/working'
@@ -108,8 +110,10 @@ module Typus
108
110
  require 'vendor/paginator'
109
111
  require 'vendor/rss_parser'
110
112
 
111
- # Run controllers generator ...
112
- generator unless testing? || Rails.env.production?
113
+ commands = [ '/usr/local/bin/thin',
114
+ 'script/server' ]
115
+
116
+ generator if commands.include?($0)
113
117
 
114
118
  end
115
119
 
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.30"
8
+ s.version = "0.9.31"
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-09-17}
12
+ s.date = %q{2009-09-30}
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 = [
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.30
4
+ version: 0.9.31
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-09-17 00:00:00 +02:00
12
+ date: 2009-09-30 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15