qadmin 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Rakefile +1 -0
- data/lib/qadmin.rb +1 -1
- data/lib/qadmin/helper.rb +5 -1
- metadata +11 -1
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -11,6 +11,7 @@ $hoe = Hoe.new('qadmin', Qadmin::VERSION) do |p|
|
|
11
11
|
p.summary = p.description = "An [almost] one command solution for adding admin interfaces/resources to a Rails app."
|
12
12
|
p.extra_deps = [
|
13
13
|
['activesupport','>= 2.3.2'],
|
14
|
+
['mislav-will_paginate','>= 2.3.7'],
|
14
15
|
['restful_query','>= 0.2.0']
|
15
16
|
]
|
16
17
|
p.extra_dev_deps = [
|
data/lib/qadmin.rb
CHANGED
data/lib/qadmin/helper.rb
CHANGED
@@ -102,7 +102,7 @@ module Qadmin
|
|
102
102
|
when :boolean
|
103
103
|
yes?(raw_value)
|
104
104
|
when :text
|
105
|
-
|
105
|
+
truncate(raw_value, :length => 30, :omission => ". . . #{link_to('More', send("#{model_instance_name}_path", instance))}")
|
106
106
|
else
|
107
107
|
h(raw_value)
|
108
108
|
end
|
@@ -123,6 +123,10 @@ module Qadmin
|
|
123
123
|
def alt_rows
|
124
124
|
%{class="#{cycle('alt', '')}"}
|
125
125
|
end
|
126
|
+
|
127
|
+
def yes?(boolean)
|
128
|
+
boolean ? 'Yes' : 'No'
|
129
|
+
end
|
126
130
|
|
127
131
|
end
|
128
132
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Quint
|
@@ -22,6 +22,16 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 2.3.2
|
24
24
|
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: mislav-will_paginate
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.3.7
|
34
|
+
version:
|
25
35
|
- !ruby/object:Gem::Dependency
|
26
36
|
name: restful_query
|
27
37
|
type: :runtime
|