typus 3.1.6 → 3.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,24 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 3.1.8 (unreleased)
5
+ ------------------
6
+
7
+ Changes: <https://github.com/fesplugas/typus/compare/v3.1.7...master>
8
+
9
+
10
+ 3.1.7 (2012-01-25)
11
+ ------------------
12
+
13
+ * [FIXED] Require ActiveRecord extension only if ActiveRecord is defined.
14
+
15
+ * [NEW] Show association name on related tables.
16
+
17
+ * [FIXED] Fixed gemspec to add compatibility with Rails 3.2.0
18
+
19
+ Changes: <https://github.com/fesplugas/typus/compare/v3.1.6...v3.1.7>
20
+
21
+
4
22
  3.1.6 (2012-01-02)
5
23
  ------------------
6
24
 
@@ -1,4 +1,4 @@
1
- Copyright (c) 2007-2011 Francesc Esplugas Marti
1
+ Copyright (c) 2007-2012 Francesc Esplugas Marti
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -166,7 +166,7 @@ class Admin::ResourcesController < Admin::BaseController
166
166
  else
167
167
  not_allowed
168
168
  end
169
- end
169
+ end
170
170
  end
171
171
 
172
172
  def set_wheres
@@ -5,7 +5,7 @@
5
5
  <div class="box_relationships" id="<%= association_name %>">
6
6
 
7
7
  <h2>
8
- <%= @model_to_relate.model_name.human.pluralize %>
8
+ <%= @resource.human_attribute_name(association_name) %>
9
9
  <small><%= add_new %></small>
10
10
  </h2>
11
11
 
@@ -1,4 +1,4 @@
1
- <% yield_name = "table_headers_#{model}" %>
1
+ <% yield_name = "table_headers_#{model}_#{rand(100)}" %>
2
2
 
3
3
  <% content_for yield_name do %>
4
4
  <thead>
@@ -7,7 +7,7 @@ class Object
7
7
  # Probably there's a better way to verify if a model responds to an STI
8
8
  # pattern.
9
9
  def self.is_sti?
10
- superclass.superclass == ActiveRecord::Base
10
+ (name != base_class.name) && base_class.descends_from_active_record?
11
11
  end
12
12
 
13
13
  end
@@ -1,4 +1,4 @@
1
- require "support/active_record"
1
+ require "support/active_record" if defined?(ActiveRecord)
2
2
  require "support/hash"
3
3
  require "support/object"
4
4
  require "support/string"
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Module designed to work with `acts_as_list`.
3
+ #
1
4
  module Typus
2
5
  module Controller
3
6
  module ActsAsList
@@ -7,16 +10,6 @@ module Typus
7
10
  base.before_filter :check_resource_ownership, :only => [:position]
8
11
  end
9
12
 
10
- ##
11
- # This module is designed to work with `acts_as_list`.
12
- #
13
- # Available positions are:
14
- #
15
- # - move_to_top
16
- # - move_higher
17
- # - move_lower
18
- # - move_to_bottom
19
- #
20
13
  def position
21
14
  if %w(move_to_top move_higher move_lower move_to_bottom).include?(params[:go])
22
15
  @item.send(params[:go])
@@ -1,8 +1,5 @@
1
1
  ##
2
- # This module is designed to work with `rails-trash`. Add it to your `Gemfile`
3
- # if you have plans to use it:
4
- #
5
- # gem "rails-trash", "~> 1.1.1"
2
+ # Module designed to work with `rails-trash`.
6
3
  #
7
4
  module Typus
8
5
  module Controller
@@ -1,3 +1,3 @@
1
1
  module Typus
2
- VERSION = "3.1.6"
2
+ VERSION = "3.1.7"
3
3
  end
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
  s.add_dependency "bcrypt-ruby", "~> 3.0.0"
30
30
  s.add_dependency "jquery-rails"
31
31
  s.add_dependency "kaminari", "~> 0.12.4"
32
- s.add_dependency "rails", "~> 3.1.3"
32
+ s.add_dependency "rails", ">= 3.1.3"
33
33
 
34
34
  # Development dependencies are defined in the `Gemfile`.
35
35
  end
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: 3.1.6
4
+ version: 3.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-02 00:00:00.000000000 Z
12
+ date: 2012-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bcrypt-ruby
16
- requirement: &70213462925800 !ruby/object:Gem::Requirement
16
+ requirement: &70093502726560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70213462925800
24
+ version_requirements: *70093502726560
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &70213462924980 !ruby/object:Gem::Requirement
27
+ requirement: &70093502724380 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70213462924980
35
+ version_requirements: *70093502724380
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: kaminari
38
- requirement: &70213462921200 !ruby/object:Gem::Requirement
38
+ requirement: &70093502721740 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,18 +43,18 @@ dependencies:
43
43
  version: 0.12.4
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70213462921200
46
+ version_requirements: *70093502721740
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rails
49
- requirement: &70213462939560 !ruby/object:Gem::Requirement
49
+ requirement: &70093502737120 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - ~>
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 3.1.3
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70213462939560
57
+ version_requirements: *70093502737120
58
58
  description: Ruby on Rails Admin Panel (Engine) to allow trusted users edit structured
59
59
  content.
60
60
  email:
@@ -138,7 +138,7 @@ files:
138
138
  - app/views/admin/resources/_show.html.erb
139
139
  - app/views/admin/resources/edit.html.erb
140
140
  - app/views/admin/resources/edit/_actions.html.erb
141
- - app/views/admin/resources/edit/_rencently_edited.html.erb
141
+ - app/views/admin/resources/edit/_recently_edited.html.erb
142
142
  - app/views/admin/resources/index.html.erb
143
143
  - app/views/admin/resources/new.html.erb
144
144
  - app/views/admin/resources/show.html.erb
@@ -333,7 +333,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
333
333
  version: '0'
334
334
  segments:
335
335
  - 0
336
- hash: 3351687569820403912
336
+ hash: 3514957204800588845
337
337
  required_rubygems_version: !ruby/object:Gem::Requirement
338
338
  none: false
339
339
  requirements:
@@ -342,10 +342,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
342
  version: '0'
343
343
  segments:
344
344
  - 0
345
- hash: 3351687569820403912
345
+ hash: 3514957204800588845
346
346
  requirements: []
347
347
  rubyforge_project: typus
348
- rubygems_version: 1.8.11
348
+ rubygems_version: 1.8.15
349
349
  signing_key:
350
350
  specification_version: 3
351
351
  summary: Effortless backend interface for Ruby on Rails applications. (Admin scaffold