typus 3.1.0.rc2 → 3.1.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +7 -8
- data/lib/typus.rb +2 -2
- data/lib/typus/orm/active_record/admin_user_v1.rb +1 -1
- data/lib/typus/orm/active_record/admin_user_v2.rb +1 -1
- data/lib/typus/version.rb +1 -1
- data/test/app/models/typus_user_roles_test.rb +2 -1
- data/test/app/models/typus_user_test.rb +1 -1
- data/test/lib/typus/i18n_test.rb +1 -1
- data/test/lib/typus_test.rb +4 -3
- data/typus.gemspec +7 -1
- metadata +62 -7
data/Gemfile
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
|
-
gem 'rails', '3.1.0.rc1'
|
4
|
-
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
5
|
-
gem 'sqlite3'
|
6
|
-
gem 'jquery-rails'
|
7
|
-
|
8
3
|
# Specify your gem's dependencies in typus.gemspec
|
9
4
|
gemspec
|
10
5
|
|
6
|
+
gem 'sqlite3'
|
7
|
+
|
11
8
|
# And this stuff needed for the demo application.
|
12
9
|
gem 'acts_as_list'
|
13
10
|
gem 'acts_as_tree'
|
14
|
-
gem 'dragonfly', '~> 0.9'
|
15
11
|
gem 'factory_girl'
|
16
|
-
|
17
|
-
|
12
|
+
|
13
|
+
# Asset Management
|
14
|
+
gem "dragonfly", "~> 0.9"
|
15
|
+
gem "rack-cache", :require => "rack/cache"
|
16
|
+
gem "paperclip"
|
18
17
|
|
19
18
|
group :test do
|
20
19
|
gem 'shoulda-context'
|
data/lib/typus.rb
CHANGED
@@ -102,10 +102,10 @@ module Typus
|
|
102
102
|
#
|
103
103
|
|
104
104
|
mattr_accessor :image_preview_size
|
105
|
-
@@image_preview_size = '
|
105
|
+
@@image_preview_size = 'x650>'
|
106
106
|
|
107
107
|
mattr_accessor :image_thumb_size
|
108
|
-
@@image_thumb_size = '
|
108
|
+
@@image_thumb_size = 'x100'
|
109
109
|
|
110
110
|
##
|
111
111
|
# Defines the default relationship table.
|
data/lib/typus/version.rb
CHANGED
@@ -108,7 +108,7 @@ class TypusUserTest < ActiveSupport::TestCase
|
|
108
108
|
|
109
109
|
test "admin gets a list of application resources for Admin application" do
|
110
110
|
typus_user = Factory.build(:typus_user)
|
111
|
-
assert_equal %w(TypusUser), typus_user.application("Admin")
|
111
|
+
assert_equal %w(AdminUser TypusUser), typus_user.application("Admin")
|
112
112
|
end
|
113
113
|
|
114
114
|
test "editor get a list of all applications" do
|
data/test/lib/typus/i18n_test.rb
CHANGED
data/test/lib/typus_test.rb
CHANGED
@@ -47,11 +47,11 @@ class TypusTest < ActiveSupport::TestCase
|
|
47
47
|
context "dragonfly" do
|
48
48
|
|
49
49
|
should "verify default_config for image_preview_size" do
|
50
|
-
|
50
|
+
assert_equal "x650>", Typus.image_preview_size
|
51
51
|
end
|
52
52
|
|
53
53
|
should "verify default_config for image_thumb_size" do
|
54
|
-
|
54
|
+
assert_equal "x100", Typus.image_thumb_size
|
55
55
|
end
|
56
56
|
|
57
57
|
end
|
@@ -81,7 +81,8 @@ class TypusTest < ActiveSupport::TestCase
|
|
81
81
|
end
|
82
82
|
|
83
83
|
should "return models and should be sorted" do
|
84
|
-
expected = ["
|
84
|
+
expected = ["AdminUser",
|
85
|
+
"Animal",
|
85
86
|
"Article::Entry",
|
86
87
|
"Asset",
|
87
88
|
"Bird",
|
data/typus.gemspec
CHANGED
@@ -18,6 +18,12 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.
|
21
|
+
s.add_development_dependency "dragonfly", "~> 0.9"
|
22
|
+
s.add_development_dependency "jquery-rails"
|
23
|
+
s.add_development_dependency "paperclip"
|
24
|
+
s.add_development_dependency "rack-cache"
|
25
|
+
|
26
|
+
s.add_dependency "jquery-rails"
|
22
27
|
s.add_dependency "kaminari"
|
28
|
+
s.add_dependency "rails", "~> 3.1.0.rc2"
|
23
29
|
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.rc3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Francesc Esplugas
|
@@ -10,21 +10,21 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-06-
|
13
|
+
date: 2011-06-09 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: dragonfly
|
17
17
|
prerelease: false
|
18
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
24
|
-
type: :
|
23
|
+
version: "0.9"
|
24
|
+
type: :development
|
25
25
|
version_requirements: *id001
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
|
-
name:
|
27
|
+
name: jquery-rails
|
28
28
|
prerelease: false
|
29
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
@@ -32,8 +32,63 @@ dependencies:
|
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: "0"
|
35
|
-
type: :
|
35
|
+
type: :development
|
36
36
|
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: paperclip
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: "0"
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rack-cache
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: "0"
|
57
|
+
type: :development
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: jquery-rails
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "0"
|
68
|
+
type: :runtime
|
69
|
+
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: kaminari
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
type: :runtime
|
80
|
+
version_requirements: *id006
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: rails
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 3.1.0.rc2
|
90
|
+
type: :runtime
|
91
|
+
version_requirements: *id007
|
37
92
|
description: Ruby on Rails Admin Panel (Engine) to allow trusted users edit structured content.
|
38
93
|
email:
|
39
94
|
- core@typuscms.com
|