qadmin 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ == 0.2.1 2009-03-22
2
+
3
+ * 1 minor enhancement:
4
+ * Fixed dependencies (will_paginate)
5
+
1
6
  == 0.2.0 2009-03-20
2
7
 
3
8
  * 1 major enhancement:
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 = [
@@ -6,7 +6,7 @@ unless defined?(ActiveSupport)
6
6
  end
7
7
 
8
8
  module Qadmin
9
- VERSION = '0.2.0'
9
+ VERSION = '0.2.1'
10
10
  end
11
11
 
12
12
  %w{
@@ -102,7 +102,7 @@ module Qadmin
102
102
  when :boolean
103
103
  yes?(raw_value)
104
104
  when :text
105
- truncate_words(raw_value, 10, ". . . #{link_to('More', send("#{model_instance_name}_path", instance))}")
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.0
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