typus 3.0.10 → 3.0.11.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/Gemfile +9 -5
- data/README.md +17 -53
- data/app/assets/vendor/typus/javascripts/application.js +2 -0
- data/app/assets/vendor/typus/javascripts/jquery.application.js +29 -0
- data/app/assets/vendor/typus/javascripts/jquery.rails.autocomplete.js +32 -0
- data/app/assets/vendor/typus/javascripts/jquery.rails.js +158 -0
- data/app/assets/vendor/typus/javascripts/jquery.searchField.js +91 -0
- data/app/assets/vendor/typus/stylesheets/application.css +11 -0
- data/app/assets/vendor/typus/stylesheets/reset.css +48 -0
- data/app/assets/vendor/typus/stylesheets/screen.css +361 -0
- data/app/assets/vendor/typus/vendor/jquery-tokeninput/css/token-input-facebook.css +122 -0
- data/app/assets/vendor/typus/vendor/jquery-tokeninput/css/token-input-mac.css +204 -0
- data/app/assets/vendor/typus/vendor/jquery-tokeninput/css/token-input.css +120 -0
- data/app/assets/vendor/typus/vendor/jquery-tokeninput/js/jquery.tokeninput.js +736 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/jquery-ui-1.8.12.custom.css +578 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/index.html +367 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/js/jquery-1.5.1.min.js +16 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/js/jquery-ui-1.8.12.custom.min.js +783 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/blank.gif +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_close.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_loading.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_left.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_right.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_e.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_n.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_ne.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_nw.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_s.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_se.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_sw.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_w.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_left.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_main.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_over.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_right.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-x.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-y.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancybox.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.easing-1.3.pack.js +72 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.css +359 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js +1156 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.js +46 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.mousewheel-3.0.4.pack.js +14 -0
- data/app/controllers/admin/account_controller.rb +2 -2
- data/app/controllers/admin/base_controller.rb +4 -0
- data/app/controllers/admin/resources_controller.rb +8 -83
- data/app/controllers/admin/session_controller.rb +10 -2
- data/app/helpers/admin/file_preview_helper.rb +15 -1
- data/app/helpers/admin/filters_helper.rb +4 -4
- data/app/helpers/admin/relationships_helper.rb +11 -6
- data/app/helpers/admin/resources_helper.rb +4 -1
- data/app/helpers/admin/table_helper.rb +6 -3
- data/app/views/admin/dashboard/_sidebar.html.erb +1 -3
- data/app/views/admin/helpers/table/_table.html.erb +0 -8
- data/app/views/admin/resources/index.html.erb +3 -1
- data/app/views/admin/shared/_head.html.erb +30 -0
- data/app/views/admin/templates/_belongs_to_with_autocomplete.html.erb +23 -4
- data/app/views/admin/templates/_relate_form.html.erb +1 -1
- data/app/views/admin/templates/_selector.html.erb +5 -1
- data/app/views/layouts/admin/base.html.erb +1 -30
- data/app/views/layouts/admin/headless.html.erb +1 -30
- data/app/views/layouts/admin/session.html.erb +1 -19
- data/doc/mongo_db.md +10 -0
- data/lib/generators/typus/typus_generator.rb +0 -5
- data/lib/support/active_record.rb +8 -0
- data/lib/typus.rb +2 -1
- data/lib/typus/controller/actions.rb +7 -0
- data/lib/typus/controller/acts_as.rb +22 -0
- data/lib/typus/controller/associations.rb +66 -0
- data/lib/typus/controller/autocomplete.rb +1 -1
- data/lib/typus/controller/format.rb +1 -1
- data/lib/typus/engine.rb +7 -2
- data/lib/typus/orm/active_record/class_methods.rb +1 -1
- data/lib/typus/version.rb +1 -1
- data/test/app/controllers/admin/assets_controller_test.rb +8 -5
- data/test/app/controllers/admin/pages_controller_test.rb +2 -2
- data/test/app/controllers/admin/posts_controller_test.rb +27 -2
- data/test/app/controllers/admin/views_controller_test.rb +36 -0
- data/test/app/helpers/admin/file_preview_helper_test.rb +9 -1
- data/test/app/helpers/admin/filters_helper_test.rb +5 -0
- data/test/app/helpers/admin/resources_helper_test.rb +2 -2
- data/test/app/helpers/admin/table_helper_test.rb +26 -0
- data/test/factories.rb +11 -0
- data/test/fixtures/rails_app/app/controllers/admin/hits_controller.rb +0 -3
- data/test/fixtures/rails_app/app/controllers/admin/views_controller.rb +6 -0
- data/test/fixtures/rails_app/app/models/asset.rb +16 -4
- data/test/fixtures/rails_app/app/models/site.rb +16 -0
- data/test/fixtures/rails_app/app/models/view.rb +2 -0
- data/test/fixtures/rails_app/config/typus/crud_extended.yml +2 -2
- data/test/fixtures/rails_app/db/schema.rb +15 -0
- data/test/lib/support/active_record_test.rb +24 -0
- data/test/lib/typus/orm/active_record/class_methods_test.rb +4 -4
- data/test/lib/typus_test.rb +1 -1
- metadata +68 -190
- data/.gemtest +0 -0
- data/doc/hudson_setup.md +0 -19
- data/lib/generators/typus/assets_generator.rb +0 -19
- data/test/fixtures/rails_app/app/views/layouts/admin/headless.html.erb +0 -38
@@ -0,0 +1,36 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
=begin
|
4
|
+
|
5
|
+
What's being tested here?
|
6
|
+
|
7
|
+
- `set_context` which forces the display of items related to domain.
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
class Admin::ViewsControllerTest < ActionController::TestCase
|
12
|
+
|
13
|
+
setup do
|
14
|
+
@request.session[:typus_user_id] = Factory(:typus_user).id
|
15
|
+
@site = Factory(:site, :domain => 'test.host')
|
16
|
+
view = Factory(:view, :site => @site)
|
17
|
+
view = Factory(:view)
|
18
|
+
end
|
19
|
+
|
20
|
+
teardown do
|
21
|
+
@request.session[:typus_user_id] = nil
|
22
|
+
end
|
23
|
+
|
24
|
+
test "get :index returns only views on the current_context" do
|
25
|
+
get :index
|
26
|
+
assert_response :success
|
27
|
+
assert_equal [@site.id], assigns(:items).map(&:site_id)
|
28
|
+
end
|
29
|
+
|
30
|
+
test "get :new should initialize item in the current_scope" do
|
31
|
+
get :new
|
32
|
+
assert_response :success
|
33
|
+
assert assigns(:item).site_id.eql?(@site.id)
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -26,14 +26,22 @@ class Admin::FilePreviewHelperTest < ActiveSupport::TestCase
|
|
26
26
|
@asset = @item = Factory(:asset)
|
27
27
|
end
|
28
28
|
|
29
|
-
should "work for :
|
29
|
+
should "work for :dragonfly_required and return nil when attribute is required" do
|
30
30
|
assert_nil link_to_detach_attribute('dragonfly_required')
|
31
31
|
end
|
32
32
|
|
33
|
+
should "work for :paperclip_required and return nil when attribute is required" do
|
34
|
+
assert_nil link_to_detach_attribute('paperclip_required')
|
35
|
+
end
|
36
|
+
|
33
37
|
should "work for :dragonfly and return link when attribute is not required" do
|
34
38
|
assert_match /Remove/, link_to_detach_attribute('dragonfly')
|
35
39
|
end
|
36
40
|
|
41
|
+
should "work for :paperclip_required and return link when attribute is not required" do
|
42
|
+
assert_match /Remove/, link_to_detach_attribute('paperclip')
|
43
|
+
end
|
44
|
+
|
37
45
|
end
|
38
46
|
|
39
47
|
context "typus_file_preview_for_dragonfly" do
|
@@ -114,6 +114,11 @@ class Admin::FiltersHelperTest < ActiveSupport::TestCase
|
|
114
114
|
@resource = Post
|
115
115
|
end
|
116
116
|
|
117
|
+
# This hack has to be removed!
|
118
|
+
def set_context
|
119
|
+
Post
|
120
|
+
end
|
121
|
+
|
117
122
|
should "return an array from status which is a Hash" do
|
118
123
|
output = string_filter("status")
|
119
124
|
expected = [["Show by status", ""],
|
@@ -19,7 +19,7 @@ class Admin::ResourcesHelperTest < ActiveSupport::TestCase
|
|
19
19
|
params = { :resource => "Post" }
|
20
20
|
|
21
21
|
expected = ["admin/helpers/resources/display_link_to_previous",
|
22
|
-
{:body=>"Cancel adding a new comment?", :url=>{:controller=>"posts", :action => 'new'}}]
|
22
|
+
{:body=>"Cancel adding a new comment?", :url=>{:controller=>"/admin/posts", :action => 'new'}}]
|
23
23
|
|
24
24
|
assert_equal expected, display_link_to_previous(params)
|
25
25
|
end
|
@@ -29,7 +29,7 @@ class Admin::ResourcesHelperTest < ActiveSupport::TestCase
|
|
29
29
|
params = { :resource => "Post", :resource_id => @post.id }
|
30
30
|
|
31
31
|
expected = ["admin/helpers/resources/display_link_to_previous",
|
32
|
-
{:body=>"Cancel adding a new comment?", :url=>{:controller=>"posts", :action => 'edit', :id => @post.id}}]
|
32
|
+
{:body=>"Cancel adding a new comment?", :url=>{:controller=>"/admin/posts", :action => 'edit', :id => @post.id}}]
|
33
33
|
|
34
34
|
assert_equal expected, display_link_to_previous(params)
|
35
35
|
end
|
@@ -56,6 +56,32 @@ class Admin::TableHelperTest < ActiveSupport::TestCase
|
|
56
56
|
|
57
57
|
end
|
58
58
|
|
59
|
+
context "table_actions" do
|
60
|
+
setup do
|
61
|
+
admin_user = mock
|
62
|
+
admin_user.stubs(:can?).returns(true)
|
63
|
+
self.stubs(:admin_user).returns(admin_user)
|
64
|
+
self.stubs(:params).returns({:controller => 'admin/comments', :action => 'some_other_action'})
|
65
|
+
end
|
66
|
+
|
67
|
+
should "work" do
|
68
|
+
item = Factory(:comment)
|
69
|
+
@resource_actions = [["Show", {:action => :show}, {}]]
|
70
|
+
expected = %Q(<a href="/admin/comments/show/#{item.id}">Show</a>)
|
71
|
+
|
72
|
+
assert_equal expected, table_actions(Comment, item, nil)
|
73
|
+
end
|
74
|
+
|
75
|
+
should "work with conditions" do
|
76
|
+
item = Factory(:comment, :id => 1)
|
77
|
+
proc1 = Proc.new {|item| item.id != 1}
|
78
|
+
@resource_actions = [["Show", {:action => :show}, {}, proc1], ["Edit", {:action => :edit}, {}]]
|
79
|
+
expected = %Q(<a href="/admin/comments/edit/#{item.id}">Edit</a>)
|
80
|
+
|
81
|
+
assert_equal expected, table_actions(Comment, item, nil)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
59
85
|
context "resource_actions" do
|
60
86
|
|
61
87
|
should "return a default value which is an empty array" do
|
data/test/factories.rb
CHANGED
@@ -21,6 +21,7 @@ Factory.define :asset do |f|
|
|
21
21
|
f.dragonfly File.new("#{Rails.root}/public/images/rails.png")
|
22
22
|
f.dragonfly_required File.new("#{Rails.root}/public/images/rails.png")
|
23
23
|
f.paperclip File.new("#{Rails.root}/public/images/rails.png")
|
24
|
+
f.paperclip_required File.new("#{Rails.root}/public/images/rails.png")
|
24
25
|
end
|
25
26
|
|
26
27
|
Factory.define :category do |f|
|
@@ -56,6 +57,7 @@ end
|
|
56
57
|
Factory.define :view do |f|
|
57
58
|
f.ip "127.0.0.1"
|
58
59
|
f.association :post
|
60
|
+
f.association :site
|
59
61
|
end
|
60
62
|
|
61
63
|
##
|
@@ -109,3 +111,12 @@ end
|
|
109
111
|
Factory.define :image_holder do |f|
|
110
112
|
f.sequence(:name) { |n| "ImageHolder##{n}" }
|
111
113
|
end
|
114
|
+
|
115
|
+
##
|
116
|
+
# Contexts
|
117
|
+
##
|
118
|
+
|
119
|
+
Factory.define :site do |f|
|
120
|
+
f.sequence(:name) { |n| "Site##{n}" }
|
121
|
+
f.sequence(:domain) { |n| "site#{n}.local" }
|
122
|
+
end
|
@@ -13,15 +13,27 @@ class Asset < ActiveRecord::Base
|
|
13
13
|
# Dragonfly Stuff
|
14
14
|
#
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
if defined?(Dragonfly)
|
17
|
+
|
18
|
+
image_accessor :dragonfly
|
19
|
+
|
20
|
+
image_accessor :dragonfly_required
|
21
|
+
validates :dragonfly_required, :presence => true
|
22
|
+
|
23
|
+
end
|
19
24
|
|
20
25
|
##
|
21
26
|
# Paperclip Stuff
|
22
27
|
#
|
23
28
|
|
24
|
-
|
29
|
+
if defined?(Paperclip)
|
30
|
+
|
31
|
+
has_attached_file :paperclip, :styles => { :medium => "300x300>", :thumb => "100x100>" }
|
32
|
+
|
33
|
+
has_attached_file :paperclip_required, :styles => { :medium => "300x300>", :thumb => "100x100>" }
|
34
|
+
validates_attachment_presence :paperclip_required
|
35
|
+
|
36
|
+
end
|
25
37
|
|
26
38
|
##
|
27
39
|
# Instance Methods
|
@@ -2,8 +2,8 @@ Asset:
|
|
2
2
|
fields:
|
3
3
|
default: caption, dragonfly, dragonfly_required
|
4
4
|
special: caption, dragonfly, dragonfly_required, original_file_name
|
5
|
-
form: caption, dragonfly, dragonfly_required, original_file_name
|
6
|
-
new: dragonfly_required
|
5
|
+
form: caption, dragonfly, dragonfly_required, paperclip, paperclip_required, original_file_name
|
6
|
+
new: dragonfly, dragonfly_required, paperclip, paperclip_required
|
7
7
|
application: CRUD Extended
|
8
8
|
|
9
9
|
Category:
|
@@ -29,6 +29,11 @@ ActiveRecord::Schema.define do
|
|
29
29
|
t.string :paperclip_content_type
|
30
30
|
t.integer :paperclip_file_size
|
31
31
|
t.datetime :paperclip_updated_at
|
32
|
+
# Paperclip Required Attachment
|
33
|
+
t.string :paperclip_required_file_name
|
34
|
+
t.string :paperclip_required_content_type
|
35
|
+
t.integer :paperclip_required_file_size
|
36
|
+
t.datetime :paperclip_required_updated_at
|
32
37
|
end
|
33
38
|
|
34
39
|
create_table :categories, :force => true do |t|
|
@@ -116,6 +121,7 @@ ActiveRecord::Schema.define do
|
|
116
121
|
create_table :views, :force => true do |t|
|
117
122
|
t.string :ip, :default => '127.0.0.1'
|
118
123
|
t.integer :post_id
|
124
|
+
t.integer :site_id
|
119
125
|
t.timestamps
|
120
126
|
end
|
121
127
|
|
@@ -182,4 +188,13 @@ ActiveRecord::Schema.define do
|
|
182
188
|
t.string :imageable_type
|
183
189
|
end
|
184
190
|
|
191
|
+
##
|
192
|
+
# Context
|
193
|
+
#
|
194
|
+
|
195
|
+
create_table :sites, :force => true do |t|
|
196
|
+
t.string :name, :null => false
|
197
|
+
t.string :domain, :null => false
|
198
|
+
end
|
199
|
+
|
185
200
|
end
|
@@ -147,4 +147,28 @@ class ActiveRecordTest < ActiveSupport::TestCase
|
|
147
147
|
|
148
148
|
end
|
149
149
|
|
150
|
+
context "namespaced?" do
|
151
|
+
|
152
|
+
should "return true if namespaced" do
|
153
|
+
assert Delayed::Task.namespaced?
|
154
|
+
end
|
155
|
+
|
156
|
+
should "return false if no namespaced" do
|
157
|
+
assert !Entry.namespaced?
|
158
|
+
end
|
159
|
+
|
160
|
+
end
|
161
|
+
|
162
|
+
context "namespace" do
|
163
|
+
|
164
|
+
should "return the namespace" do
|
165
|
+
assert_equal "Delayed", Delayed::Task.namespace
|
166
|
+
end
|
167
|
+
|
168
|
+
should "not return the namespace" do
|
169
|
+
assert Entry.namespace.nil?
|
170
|
+
end
|
171
|
+
|
172
|
+
end
|
173
|
+
|
150
174
|
end
|
@@ -128,12 +128,12 @@ class ClassMethodsTest < ActiveSupport::TestCase
|
|
128
128
|
end
|
129
129
|
|
130
130
|
should "return fields for new Asset" do
|
131
|
-
expected = %w(dragonfly_required)
|
131
|
+
expected = %w(dragonfly dragonfly_required paperclip paperclip_required)
|
132
132
|
assert_equal expected, Asset.typus_fields_for(:new).keys
|
133
133
|
end
|
134
134
|
|
135
135
|
should "return fields for edit Asset" do
|
136
|
-
expected = %w(caption dragonfly dragonfly_required original_file_name)
|
136
|
+
expected = %w(caption dragonfly dragonfly_required paperclip paperclip_required original_file_name)
|
137
137
|
assert_equal expected, Asset.typus_fields_for(:edit).keys
|
138
138
|
end
|
139
139
|
|
@@ -374,8 +374,8 @@ class ClassMethodsTest < ActiveSupport::TestCase
|
|
374
374
|
expected = {"application"=>"CRUD Extended",
|
375
375
|
"fields"=>{"default"=>"caption, dragonfly, dragonfly_required",
|
376
376
|
"special"=>"caption, dragonfly, dragonfly_required, original_file_name",
|
377
|
-
"form"=>"caption, dragonfly, dragonfly_required, original_file_name",
|
378
|
-
"new"=>"dragonfly_required"}}
|
377
|
+
"form"=>"caption, dragonfly, dragonfly_required, paperclip, paperclip_required, original_file_name",
|
378
|
+
"new"=>"dragonfly, dragonfly_required, paperclip, paperclip_required"}}
|
379
379
|
assert_equal expected, Asset.read_model_config
|
380
380
|
end
|
381
381
|
|
data/test/lib/typus_test.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 3
|
8
|
-
- 0
|
9
|
-
- 10
|
10
|
-
version: 3.0.10
|
4
|
+
prerelease: 7
|
5
|
+
version: 3.0.11.rc1
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Francesc Esplugas
|
@@ -15,8 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
13
|
+
date: 2011-06-08 00:00:00 Z
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
16
|
name: bcrypt-ruby
|
@@ -26,9 +20,6 @@ dependencies:
|
|
26
20
|
requirements:
|
27
21
|
- - ">="
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
23
|
version: "0"
|
33
24
|
type: :runtime
|
34
25
|
version_requirements: *id001
|
@@ -40,10 +31,6 @@ dependencies:
|
|
40
31
|
requirements:
|
41
32
|
- - ~>
|
42
33
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 5
|
44
|
-
segments:
|
45
|
-
- 1
|
46
|
-
- 5
|
47
34
|
version: "1.5"
|
48
35
|
type: :runtime
|
49
36
|
version_requirements: *id002
|
@@ -55,9 +42,6 @@ dependencies:
|
|
55
42
|
requirements:
|
56
43
|
- - ">="
|
57
44
|
- !ruby/object:Gem::Version
|
58
|
-
hash: 3
|
59
|
-
segments:
|
60
|
-
- 0
|
61
45
|
version: "0"
|
62
46
|
type: :runtime
|
63
47
|
version_requirements: *id003
|
@@ -69,12 +53,6 @@ dependencies:
|
|
69
53
|
requirements:
|
70
54
|
- - ~>
|
71
55
|
- !ruby/object:Gem::Version
|
72
|
-
hash: 1923831917
|
73
|
-
segments:
|
74
|
-
- 3
|
75
|
-
- 0
|
76
|
-
- pre
|
77
|
-
- 2
|
78
56
|
version: 3.0.pre2
|
79
57
|
type: :runtime
|
80
58
|
version_requirements: *id004
|
@@ -88,12 +66,66 @@ extensions: []
|
|
88
66
|
extra_rdoc_files: []
|
89
67
|
|
90
68
|
files:
|
91
|
-
- .gemtest
|
92
69
|
- .gitignore
|
93
70
|
- Gemfile
|
94
71
|
- MIT-LICENSE
|
95
72
|
- README.md
|
96
73
|
- Rakefile
|
74
|
+
- app/assets/vendor/typus/javascripts/application.js
|
75
|
+
- app/assets/vendor/typus/javascripts/jquery.application.js
|
76
|
+
- app/assets/vendor/typus/javascripts/jquery.rails.autocomplete.js
|
77
|
+
- app/assets/vendor/typus/javascripts/jquery.rails.js
|
78
|
+
- app/assets/vendor/typus/javascripts/jquery.searchField.js
|
79
|
+
- app/assets/vendor/typus/stylesheets/application.css
|
80
|
+
- app/assets/vendor/typus/stylesheets/reset.css
|
81
|
+
- app/assets/vendor/typus/stylesheets/screen.css
|
82
|
+
- app/assets/vendor/typus/vendor/jquery-tokeninput/css/token-input-facebook.css
|
83
|
+
- app/assets/vendor/typus/vendor/jquery-tokeninput/css/token-input-mac.css
|
84
|
+
- app/assets/vendor/typus/vendor/jquery-tokeninput/css/token-input.css
|
85
|
+
- app/assets/vendor/typus/vendor/jquery-tokeninput/js/jquery.tokeninput.js
|
86
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
|
87
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
|
88
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
|
89
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
|
90
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
|
91
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
|
92
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
|
93
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
|
94
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
|
95
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_222222_256x240.png
|
96
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_228ef1_256x240.png
|
97
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
|
98
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
|
99
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ffffff_256x240.png
|
100
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/jquery-ui-1.8.12.custom.css
|
101
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/index.html
|
102
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/js/jquery-1.5.1.min.js
|
103
|
+
- app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/js/jquery-ui-1.8.12.custom.min.js
|
104
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/blank.gif
|
105
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_close.png
|
106
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_loading.png
|
107
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_left.png
|
108
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_right.png
|
109
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_e.png
|
110
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_n.png
|
111
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_ne.png
|
112
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_nw.png
|
113
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_s.png
|
114
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_se.png
|
115
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_sw.png
|
116
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_w.png
|
117
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_left.png
|
118
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_main.png
|
119
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_over.png
|
120
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_right.png
|
121
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-x.png
|
122
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-y.png
|
123
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancybox.png
|
124
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.easing-1.3.pack.js
|
125
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.css
|
126
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js
|
127
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.js
|
128
|
+
- app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.mousewheel-3.0.4.pack.js
|
97
129
|
- app/controllers/admin/account_controller.rb
|
98
130
|
- app/controllers/admin/base_controller.rb
|
99
131
|
- app/controllers/admin/dashboard_controller.rb
|
@@ -143,6 +175,7 @@ files:
|
|
143
175
|
- app/views/admin/resources/new.html.erb
|
144
176
|
- app/views/admin/resources/show.html.erb
|
145
177
|
- app/views/admin/session/new.html.erb
|
178
|
+
- app/views/admin/shared/_head.html.erb
|
146
179
|
- app/views/admin/templates/_belongs_to.html.erb
|
147
180
|
- app/views/admin/templates/_belongs_to_with_autocomplete.html.erb
|
148
181
|
- app/views/admin/templates/_boolean.html.erb
|
@@ -186,7 +219,7 @@ files:
|
|
186
219
|
- config/locales/typus.zh-CN.models.yml
|
187
220
|
- config/locales/typus.zh-CN.yml
|
188
221
|
- config/routes.rb
|
189
|
-
- doc/
|
222
|
+
- doc/mongo_db.md
|
190
223
|
- lib/generators/templates/config/initializers/typus.rb
|
191
224
|
- lib/generators/templates/config/initializers/typus_authentication.rb
|
192
225
|
- lib/generators/templates/config/initializers/typus_resources.rb
|
@@ -197,58 +230,7 @@ files:
|
|
197
230
|
- lib/generators/templates/config/typus/typus_roles.yml
|
198
231
|
- lib/generators/templates/controller.rb
|
199
232
|
- lib/generators/templates/migration.rb
|
200
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
|
201
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
|
202
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
|
203
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
|
204
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
|
205
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
|
206
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
|
207
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
|
208
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
|
209
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_222222_256x240.png
|
210
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_228ef1_256x240.png
|
211
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
|
212
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
|
213
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_ffffff_256x240.png
|
214
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/jquery-ui-1.8.9.custom.css
|
215
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/js/jquery-1.4.4.min.js
|
216
|
-
- lib/generators/templates/public/vendor/jquery-ui-1.8.9.custom/js/jquery-ui-1.8.9.custom.min.js
|
217
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/blank.gif
|
218
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_close.png
|
219
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_loading.png
|
220
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_left.png
|
221
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_right.png
|
222
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_e.png
|
223
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_n.png
|
224
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_ne.png
|
225
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_nw.png
|
226
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_s.png
|
227
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_se.png
|
228
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_sw.png
|
229
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_w.png
|
230
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_left.png
|
231
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_main.png
|
232
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_over.png
|
233
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_right.png
|
234
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-x.png
|
235
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-y.png
|
236
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/fancybox.png
|
237
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.easing-1.3.pack.js
|
238
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.css
|
239
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js
|
240
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.js
|
241
|
-
- lib/generators/templates/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.mousewheel-3.0.4.pack.js
|
242
|
-
- lib/generators/templates/public/vendor/typus/javascripts/application.js
|
243
|
-
- lib/generators/templates/public/vendor/typus/javascripts/jquery.application.js
|
244
|
-
- lib/generators/templates/public/vendor/typus/javascripts/jquery.rails.autocomplete.js
|
245
|
-
- lib/generators/templates/public/vendor/typus/javascripts/jquery.rails.js
|
246
|
-
- lib/generators/templates/public/vendor/typus/javascripts/jquery.searchField.js
|
247
|
-
- lib/generators/templates/public/vendor/typus/stylesheets/application.css
|
248
|
-
- lib/generators/templates/public/vendor/typus/stylesheets/reset.css
|
249
|
-
- lib/generators/templates/public/vendor/typus/stylesheets/screen.css
|
250
233
|
- lib/generators/templates/view.html.erb
|
251
|
-
- lib/generators/typus/assets_generator.rb
|
252
234
|
- lib/generators/typus/config_generator.rb
|
253
235
|
- lib/generators/typus/controller_generator.rb
|
254
236
|
- lib/generators/typus/initializers_generator.rb
|
@@ -268,6 +250,7 @@ files:
|
|
268
250
|
- lib/typus/authentication/session.rb
|
269
251
|
- lib/typus/configuration.rb
|
270
252
|
- lib/typus/controller/actions.rb
|
253
|
+
- lib/typus/controller/acts_as.rb
|
271
254
|
- lib/typus/controller/associations.rb
|
272
255
|
- lib/typus/controller/autocomplete.rb
|
273
256
|
- lib/typus/controller/filters.rb
|
@@ -303,6 +286,7 @@ files:
|
|
303
286
|
- test/app/controllers/admin/status_controller_test.rb
|
304
287
|
- test/app/controllers/admin/typus_users_controller_test.rb
|
305
288
|
- test/app/controllers/admin/users_controller_test.rb
|
289
|
+
- test/app/controllers/admin/views_controller_test.rb
|
306
290
|
- test/app/helpers/admin/base_helper_test.rb
|
307
291
|
- test/app/helpers/admin/dashboard_helper_test.rb
|
308
292
|
- test/app/helpers/admin/file_preview_helper_test.rb
|
@@ -387,6 +371,7 @@ files:
|
|
387
371
|
- test/fixtures/rails_app/app/models/post.rb
|
388
372
|
- test/fixtures/rails_app/app/models/project.rb
|
389
373
|
- test/fixtures/rails_app/app/models/project_collaborator.rb
|
374
|
+
- test/fixtures/rails_app/app/models/site.rb
|
390
375
|
- test/fixtures/rails_app/app/models/typus_user.rb
|
391
376
|
- test/fixtures/rails_app/app/models/user.rb
|
392
377
|
- test/fixtures/rails_app/app/models/view.rb
|
@@ -407,7 +392,6 @@ files:
|
|
407
392
|
- test/fixtures/rails_app/app/views/admin/status/index.html.erb
|
408
393
|
- test/fixtures/rails_app/app/views/admin/templates/_datepicker.html.erb
|
409
394
|
- test/fixtures/rails_app/app/views/admin/watch_dog/index.html.erb
|
410
|
-
- test/fixtures/rails_app/app/views/layouts/admin/headless.html.erb
|
411
395
|
- test/fixtures/rails_app/config.ru
|
412
396
|
- test/fixtures/rails_app/config/application.rb
|
413
397
|
- test/fixtures/rails_app/config/boot.rb
|
@@ -465,56 +449,6 @@ files:
|
|
465
449
|
- test/fixtures/rails_app/public/images/rails.png
|
466
450
|
- test/fixtures/rails_app/public/robots.txt
|
467
451
|
- test/fixtures/rails_app/public/stylesheets/.gitkeep
|
468
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
|
469
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
|
470
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
|
471
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
|
472
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
|
473
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
|
474
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
|
475
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
|
476
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
|
477
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_222222_256x240.png
|
478
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_228ef1_256x240.png
|
479
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
|
480
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
|
481
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_ffffff_256x240.png
|
482
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/jquery-ui-1.8.9.custom.css
|
483
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/js/jquery-1.4.4.min.js
|
484
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/js/jquery-ui-1.8.9.custom.min.js
|
485
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/blank.gif
|
486
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_close.png
|
487
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_loading.png
|
488
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_left.png
|
489
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_right.png
|
490
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_e.png
|
491
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_n.png
|
492
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_ne.png
|
493
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_nw.png
|
494
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_s.png
|
495
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_se.png
|
496
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_sw.png
|
497
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_w.png
|
498
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_left.png
|
499
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_main.png
|
500
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_over.png
|
501
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_right.png
|
502
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-x.png
|
503
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-y.png
|
504
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancybox.png
|
505
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.easing-1.3.pack.js
|
506
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.css
|
507
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js
|
508
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.js
|
509
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.mousewheel-3.0.4.pack.js
|
510
|
-
- test/fixtures/rails_app/public/vendor/typus/javascripts/application.js
|
511
|
-
- test/fixtures/rails_app/public/vendor/typus/javascripts/jquery.application.js
|
512
|
-
- test/fixtures/rails_app/public/vendor/typus/javascripts/jquery.rails.autocomplete.js
|
513
|
-
- test/fixtures/rails_app/public/vendor/typus/javascripts/jquery.rails.js
|
514
|
-
- test/fixtures/rails_app/public/vendor/typus/javascripts/jquery.searchField.js
|
515
|
-
- test/fixtures/rails_app/public/vendor/typus/stylesheets/application.css
|
516
|
-
- test/fixtures/rails_app/public/vendor/typus/stylesheets/reset.css
|
517
|
-
- test/fixtures/rails_app/public/vendor/typus/stylesheets/screen.css
|
518
452
|
- test/fixtures/rails_app/script/rails
|
519
453
|
- test/fixtures/rails_app/tmp/.gitkeep
|
520
454
|
- test/lib/support/active_record_test.rb
|
@@ -536,7 +470,6 @@ files:
|
|
536
470
|
- test/lib/typus_test.rb
|
537
471
|
- test/test_helper.rb
|
538
472
|
- typus.gemspec
|
539
|
-
has_rdoc: true
|
540
473
|
homepage: http://core.typuscms.com/
|
541
474
|
licenses: []
|
542
475
|
|
@@ -550,23 +483,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
550
483
|
requirements:
|
551
484
|
- - ">="
|
552
485
|
- !ruby/object:Gem::Version
|
553
|
-
hash: 3
|
554
|
-
segments:
|
555
|
-
- 0
|
556
486
|
version: "0"
|
557
487
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
558
488
|
none: false
|
559
489
|
requirements:
|
560
|
-
- - "
|
490
|
+
- - ">"
|
561
491
|
- !ruby/object:Gem::Version
|
562
|
-
|
563
|
-
segments:
|
564
|
-
- 0
|
565
|
-
version: "0"
|
492
|
+
version: 1.3.1
|
566
493
|
requirements: []
|
567
494
|
|
568
495
|
rubyforge_project: typus
|
569
|
-
rubygems_version: 1.5
|
496
|
+
rubygems_version: 1.8.5
|
570
497
|
signing_key:
|
571
498
|
specification_version: 3
|
572
499
|
summary: Effortless backend interface for Ruby on Rails applications. (Admin scaffold generator)
|
@@ -589,6 +516,7 @@ test_files:
|
|
589
516
|
- test/app/controllers/admin/status_controller_test.rb
|
590
517
|
- test/app/controllers/admin/typus_users_controller_test.rb
|
591
518
|
- test/app/controllers/admin/users_controller_test.rb
|
519
|
+
- test/app/controllers/admin/views_controller_test.rb
|
592
520
|
- test/app/helpers/admin/base_helper_test.rb
|
593
521
|
- test/app/helpers/admin/dashboard_helper_test.rb
|
594
522
|
- test/app/helpers/admin/file_preview_helper_test.rb
|
@@ -673,6 +601,7 @@ test_files:
|
|
673
601
|
- test/fixtures/rails_app/app/models/post.rb
|
674
602
|
- test/fixtures/rails_app/app/models/project.rb
|
675
603
|
- test/fixtures/rails_app/app/models/project_collaborator.rb
|
604
|
+
- test/fixtures/rails_app/app/models/site.rb
|
676
605
|
- test/fixtures/rails_app/app/models/typus_user.rb
|
677
606
|
- test/fixtures/rails_app/app/models/user.rb
|
678
607
|
- test/fixtures/rails_app/app/models/view.rb
|
@@ -693,7 +622,6 @@ test_files:
|
|
693
622
|
- test/fixtures/rails_app/app/views/admin/status/index.html.erb
|
694
623
|
- test/fixtures/rails_app/app/views/admin/templates/_datepicker.html.erb
|
695
624
|
- test/fixtures/rails_app/app/views/admin/watch_dog/index.html.erb
|
696
|
-
- test/fixtures/rails_app/app/views/layouts/admin/headless.html.erb
|
697
625
|
- test/fixtures/rails_app/config.ru
|
698
626
|
- test/fixtures/rails_app/config/application.rb
|
699
627
|
- test/fixtures/rails_app/config/boot.rb
|
@@ -751,56 +679,6 @@ test_files:
|
|
751
679
|
- test/fixtures/rails_app/public/images/rails.png
|
752
680
|
- test/fixtures/rails_app/public/robots.txt
|
753
681
|
- test/fixtures/rails_app/public/stylesheets/.gitkeep
|
754
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
|
755
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
|
756
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
|
757
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
|
758
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
|
759
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
|
760
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
|
761
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
|
762
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
|
763
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_222222_256x240.png
|
764
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_228ef1_256x240.png
|
765
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
|
766
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
|
767
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/images/ui-icons_ffffff_256x240.png
|
768
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/css/ui-lightness/jquery-ui-1.8.9.custom.css
|
769
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/js/jquery-1.4.4.min.js
|
770
|
-
- test/fixtures/rails_app/public/vendor/jquery-ui-1.8.9.custom/js/jquery-ui-1.8.9.custom.min.js
|
771
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/blank.gif
|
772
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_close.png
|
773
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_loading.png
|
774
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_left.png
|
775
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_right.png
|
776
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_e.png
|
777
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_n.png
|
778
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_ne.png
|
779
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_nw.png
|
780
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_s.png
|
781
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_se.png
|
782
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_sw.png
|
783
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_w.png
|
784
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_left.png
|
785
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_main.png
|
786
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_over.png
|
787
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_right.png
|
788
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-x.png
|
789
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-y.png
|
790
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/fancybox.png
|
791
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.easing-1.3.pack.js
|
792
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.css
|
793
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js
|
794
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.js
|
795
|
-
- test/fixtures/rails_app/public/vendor/jquery.fancybox-1.3.4/fancybox/jquery.mousewheel-3.0.4.pack.js
|
796
|
-
- test/fixtures/rails_app/public/vendor/typus/javascripts/application.js
|
797
|
-
- test/fixtures/rails_app/public/vendor/typus/javascripts/jquery.application.js
|
798
|
-
- test/fixtures/rails_app/public/vendor/typus/javascripts/jquery.rails.autocomplete.js
|
799
|
-
- test/fixtures/rails_app/public/vendor/typus/javascripts/jquery.rails.js
|
800
|
-
- test/fixtures/rails_app/public/vendor/typus/javascripts/jquery.searchField.js
|
801
|
-
- test/fixtures/rails_app/public/vendor/typus/stylesheets/application.css
|
802
|
-
- test/fixtures/rails_app/public/vendor/typus/stylesheets/reset.css
|
803
|
-
- test/fixtures/rails_app/public/vendor/typus/stylesheets/screen.css
|
804
682
|
- test/fixtures/rails_app/script/rails
|
805
683
|
- test/fixtures/rails_app/tmp/.gitkeep
|
806
684
|
- test/lib/support/active_record_test.rb
|