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 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
- gem 'paperclip'
17
- gem 'rack-cache', :require => 'rack/cache'
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'
@@ -102,10 +102,10 @@ module Typus
102
102
  #
103
103
 
104
104
  mattr_accessor :image_preview_size
105
- @@image_preview_size = 'x450'
105
+ @@image_preview_size = 'x650>'
106
106
 
107
107
  mattr_accessor :image_thumb_size
108
- @@image_thumb_size = '150x150#'
108
+ @@image_thumb_size = 'x100'
109
109
 
110
110
  ##
111
111
  # Defines the default relationship table.
@@ -79,7 +79,7 @@ module Typus
79
79
  end
80
80
 
81
81
  def set_token
82
- self.token = "#{ActiveSupport::SecureRandom.hex(3)}-#{ActiveSupport::SecureRandom.hex(3)}"
82
+ self.token = "#{SecureRandom.hex(3)}-#{SecureRandom.hex(3)}"
83
83
  end
84
84
 
85
85
  def password_required?
@@ -62,7 +62,7 @@ module Typus
62
62
  end
63
63
 
64
64
  def set_token
65
- self.token = "#{ActiveSupport::SecureRandom.hex(6)}-#{ActiveSupport::SecureRandom.hex(6)}"
65
+ self.token = "#{SecureRandom.hex(6)}-#{SecureRandom.hex(6)}"
66
66
  end
67
67
 
68
68
  def password_must_be_strong
@@ -1,3 +1,3 @@
1
1
  module Typus
2
- VERSION = "3.1.0.rc2"
2
+ VERSION = "3.1.0.rc3"
3
3
  end
@@ -13,7 +13,8 @@ class TypusUserRolesTest < ActiveSupport::TestCase
13
13
  end
14
14
 
15
15
  should "verify models access" do
16
- expected = ["Article::Entry",
16
+ expected = ["AdminUser",
17
+ "Article::Entry",
17
18
  "Asset",
18
19
  "Bird",
19
20
  "Case",
@@ -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
@@ -7,7 +7,7 @@ class I18nTest < ActiveSupport::TestCase
7
7
  end
8
8
 
9
9
  test "default_locale" do
10
- assert Typus::I18n.default_locale(:en)
10
+ assert_equal :en, Typus::I18n.default_locale
11
11
  end
12
12
 
13
13
  end
@@ -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
- assert Typus.image_preview_size.eql?('x450')
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
- assert Typus.image_thumb_size.eql?('150x150#')
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 = ["Animal",
84
+ expected = ["AdminUser",
85
+ "Animal",
85
86
  "Article::Entry",
86
87
  "Asset",
87
88
  "Bird",
@@ -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.add_dependency "rails", "~> 3.1.0.rc2"
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.rc2
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-08 00:00:00 Z
13
+ date: 2011-06-09 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rails
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: 3.1.0.rc2
24
- type: :runtime
23
+ version: "0.9"
24
+ type: :development
25
25
  version_requirements: *id001
26
26
  - !ruby/object:Gem::Dependency
27
- name: kaminari
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: :runtime
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