typus 3.1.0.rc4 → 3.1.0.rc5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/app/assets/images/{typus/blank.gif → blank.gif} +0 -0
- data/app/assets/images/{typus/fancy_close.png → fancy_close.png} +0 -0
- data/app/assets/images/{typus/fancy_loading.png → fancy_loading.png} +0 -0
- data/app/assets/images/{typus/fancy_nav_left.png → fancy_nav_left.png} +0 -0
- data/app/assets/images/{typus/fancy_nav_right.png → fancy_nav_right.png} +0 -0
- data/app/assets/images/{typus/fancy_shadow_e.png → fancy_shadow_e.png} +0 -0
- data/app/assets/images/{typus/fancy_shadow_n.png → fancy_shadow_n.png} +0 -0
- data/app/assets/images/{typus/fancy_shadow_ne.png → fancy_shadow_ne.png} +0 -0
- data/app/assets/images/{typus/fancy_shadow_nw.png → fancy_shadow_nw.png} +0 -0
- data/app/assets/images/{typus/fancy_shadow_s.png → fancy_shadow_s.png} +0 -0
- data/app/assets/images/{typus/fancy_shadow_se.png → fancy_shadow_se.png} +0 -0
- data/app/assets/images/{typus/fancy_shadow_sw.png → fancy_shadow_sw.png} +0 -0
- data/app/assets/images/{typus/fancy_shadow_w.png → fancy_shadow_w.png} +0 -0
- data/app/assets/images/{typus/fancy_title_left.png → fancy_title_left.png} +0 -0
- data/app/assets/images/{typus/fancy_title_main.png → fancy_title_main.png} +0 -0
- data/app/assets/images/{typus/fancy_title_over.png → fancy_title_over.png} +0 -0
- data/app/assets/images/{typus/fancy_title_right.png → fancy_title_right.png} +0 -0
- data/app/assets/images/{typus/fancybox-x.png → fancybox-x.png} +0 -0
- data/app/assets/images/{typus/fancybox-y.png → fancybox-y.png} +0 -0
- data/app/assets/images/{typus/fancybox.png → fancybox.png} +0 -0
- data/app/assets/javascripts/typus.js +7 -0
- data/app/assets/javascripts/typus/application.js +3 -7
- data/app/assets/stylesheets/typus.css +7 -0
- data/app/assets/stylesheets/typus/application.css +11 -6
- data/app/controllers/admin/resources_controller.rb +6 -1
- data/app/helpers/admin/filters_helper.rb +1 -5
- data/app/helpers/admin/form_helper.rb +14 -12
- data/app/helpers/admin/relationships_helper.rb +15 -13
- data/app/helpers/admin/resources_helper.rb +2 -3
- data/app/helpers/admin/sidebar_helper.rb +2 -2
- data/app/helpers/admin/table_helper.rb +10 -14
- data/app/views/admin/base/user_guide.html.erb +1 -1
- data/app/views/admin/resources/index.html.erb +1 -1
- data/app/views/admin/resources/new.html.erb +1 -1
- data/app/views/admin/shared/_head.html.erb +2 -2
- data/app/views/admin/templates/_selector.html.erb +1 -7
- data/config/locales/typus.ca.models.yml +8 -8
- data/config/locales/typus.ca.yml +1 -2
- data/config/locales/typus.de.yml +1 -2
- data/config/locales/typus.el.yml +1 -2
- data/config/locales/typus.es.yml +1 -2
- data/config/locales/typus.fr.yml +1 -2
- data/config/locales/typus.hu.yml +1 -2
- data/config/locales/typus.it.yml +1 -2
- data/config/locales/typus.locale.yml.template +1 -2
- data/config/locales/typus.pt-BR.yml +1 -2
- data/config/locales/typus.ru.yml +1 -2
- data/config/locales/typus.zh-CN.yml +1 -2
- data/lib/generators/templates/config/initializers/typus_authentication.rb +2 -2
- data/lib/generators/typus/migration_generator.rb +1 -1
- data/lib/support/active_record.rb +1 -5
- data/lib/typus.rb +2 -2
- data/lib/typus/authentication/session.rb +5 -5
- data/lib/typus/controller/headless.rb +1 -1
- data/lib/typus/controller/trash.rb +2 -1
- data/lib/typus/orm/active_record/user/instance_methods.rb +1 -1
- data/lib/typus/orm/base.rb +1 -1
- data/lib/typus/version.rb +1 -1
- data/test/app/controllers/admin/posts_controller_test.rb +4 -4
- data/test/fixtures/rails_app/app/controllers/admin/assets_controller.rb +1 -1
- data/test/fixtures/rails_app/app/controllers/admin/entries_controller.rb +3 -0
- data/test/fixtures/rails_app/app/models/entry.rb +12 -0
- data/test/fixtures/rails_app/app/models/post.rb +20 -12
- data/test/fixtures/rails_app/db/schema.rb +1 -0
- data/test/lib/support/active_record_test.rb +46 -108
- data/test/lib/typus_test.rb +4 -4
- data/typus.gemspec +2 -1
- metadata +41 -30
- data/app/assets/javascripts/typus/custom.js +0 -2
- data/app/assets/stylesheets/typus/custom.css +0 -11
data/test/lib/typus_test.rb
CHANGED
@@ -122,12 +122,12 @@ class TypusTest < ActiveSupport::TestCase
|
|
122
122
|
assert Typus.respond_to?("user_class_name=")
|
123
123
|
end
|
124
124
|
|
125
|
-
test "
|
126
|
-
assert Typus.
|
125
|
+
test "user_foreign_key returns default value" do
|
126
|
+
assert Typus.user_foreign_key.eql?("typus_user_id")
|
127
127
|
end
|
128
128
|
|
129
|
-
test "
|
130
|
-
assert Typus.respond_to?("
|
129
|
+
test "user_foreign_key setter presence" do
|
130
|
+
assert Typus.respond_to?("user_foreign_key=")
|
131
131
|
end
|
132
132
|
|
133
133
|
end
|
data/typus.gemspec
CHANGED
@@ -22,8 +22,9 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_development_dependency "jquery-rails"
|
23
23
|
s.add_development_dependency "paperclip"
|
24
24
|
s.add_development_dependency "rack-cache"
|
25
|
+
s.add_development_dependency "rails-trash"
|
25
26
|
|
26
27
|
s.add_dependency "jquery-rails"
|
27
28
|
s.add_dependency "kaminari"
|
28
|
-
s.add_dependency "rails", "~> 3.1.0.
|
29
|
+
s.add_dependency "rails", "~> 3.1.0.rc3"
|
29
30
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: typus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 6
|
5
|
-
version: 3.1.0.
|
5
|
+
version: 3.1.0.rc5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Francesc Esplugas
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-06-
|
13
|
+
date: 2011-06-10 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: dragonfly
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
type: :development
|
58
58
|
version_requirements: *id004
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
|
-
name:
|
60
|
+
name: rails-trash
|
61
61
|
prerelease: false
|
62
62
|
requirement: &id005 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: "0"
|
68
|
-
type: :
|
68
|
+
type: :development
|
69
69
|
version_requirements: *id005
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: jquery-rails
|
72
72
|
prerelease: false
|
73
73
|
requirement: &id006 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
@@ -79,16 +79,27 @@ dependencies:
|
|
79
79
|
type: :runtime
|
80
80
|
version_requirements: *id006
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
|
-
name:
|
82
|
+
name: kaminari
|
83
83
|
prerelease: false
|
84
84
|
requirement: &id007 !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: "0"
|
90
90
|
type: :runtime
|
91
91
|
version_requirements: *id007
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: rails
|
94
|
+
prerelease: false
|
95
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ~>
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 3.1.0.rc3
|
101
|
+
type: :runtime
|
102
|
+
version_requirements: *id008
|
92
103
|
description: Ruby on Rails Admin Panel (Engine) to allow trusted users edit structured content.
|
93
104
|
email:
|
94
105
|
- core@typuscms.com
|
@@ -104,33 +115,33 @@ files:
|
|
104
115
|
- MIT-LICENSE
|
105
116
|
- README.md
|
106
117
|
- Rakefile
|
107
|
-
- app/assets/images/
|
108
|
-
- app/assets/images/
|
109
|
-
- app/assets/images/
|
110
|
-
- app/assets/images/
|
111
|
-
- app/assets/images/
|
112
|
-
- app/assets/images/
|
113
|
-
- app/assets/images/
|
114
|
-
- app/assets/images/
|
115
|
-
- app/assets/images/
|
116
|
-
- app/assets/images/
|
117
|
-
- app/assets/images/
|
118
|
-
- app/assets/images/
|
119
|
-
- app/assets/images/
|
120
|
-
- app/assets/images/
|
121
|
-
- app/assets/images/
|
122
|
-
- app/assets/images/
|
123
|
-
- app/assets/images/
|
124
|
-
- app/assets/images/
|
125
|
-
- app/assets/images/
|
126
|
-
- app/assets/images/
|
118
|
+
- app/assets/images/blank.gif
|
119
|
+
- app/assets/images/fancy_close.png
|
120
|
+
- app/assets/images/fancy_loading.png
|
121
|
+
- app/assets/images/fancy_nav_left.png
|
122
|
+
- app/assets/images/fancy_nav_right.png
|
123
|
+
- app/assets/images/fancy_shadow_e.png
|
124
|
+
- app/assets/images/fancy_shadow_n.png
|
125
|
+
- app/assets/images/fancy_shadow_ne.png
|
126
|
+
- app/assets/images/fancy_shadow_nw.png
|
127
|
+
- app/assets/images/fancy_shadow_s.png
|
128
|
+
- app/assets/images/fancy_shadow_se.png
|
129
|
+
- app/assets/images/fancy_shadow_sw.png
|
130
|
+
- app/assets/images/fancy_shadow_w.png
|
131
|
+
- app/assets/images/fancy_title_left.png
|
132
|
+
- app/assets/images/fancy_title_main.png
|
133
|
+
- app/assets/images/fancy_title_over.png
|
134
|
+
- app/assets/images/fancy_title_right.png
|
135
|
+
- app/assets/images/fancybox-x.png
|
136
|
+
- app/assets/images/fancybox-y.png
|
137
|
+
- app/assets/images/fancybox.png
|
138
|
+
- app/assets/javascripts/typus.js
|
127
139
|
- app/assets/javascripts/typus/application.js
|
128
|
-
- app/assets/javascripts/typus/custom.js
|
129
140
|
- app/assets/javascripts/typus/jquery.application.js
|
130
141
|
- app/assets/javascripts/typus/jquery.rails.autocomplete.js
|
131
142
|
- app/assets/javascripts/typus/jquery.searchField.js
|
143
|
+
- app/assets/stylesheets/typus.css
|
132
144
|
- app/assets/stylesheets/typus/application.css
|
133
|
-
- app/assets/stylesheets/typus/custom.css
|
134
145
|
- app/assets/stylesheets/typus/pagination.css
|
135
146
|
- app/assets/stylesheets/typus/reset.css
|
136
147
|
- app/assets/stylesheets/typus/screen.css
|