typus 0.9.30 → 0.9.31
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/helpers/typus_helper.rb +2 -2
- data/lib/typus/preview.rb +1 -1
- data/lib/typus.rb +8 -4
- data/typus.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.31
|
data/app/helpers/typus_helper.rb
CHANGED
@@ -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.
|
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
|
-
|
74
|
-
|
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
|
-
|
112
|
-
|
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.
|
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-
|
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.
|
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-
|
12
|
+
date: 2009-09-30 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|