radiant-images-extension 0.4.1 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.4
@@ -4,10 +4,6 @@ class Admin::ImagesController < Admin::ResourceController
4
4
  before_filter :edit_assets, :only => [ :show, :edit ]
5
5
  around_filter :rescue_s3_exceptions, :only => [ :create, :update, :destroy ]
6
6
 
7
- def index
8
- @images = Image.paginate :page => params[:page], :per_page => params[:pp] || 25
9
- end
10
-
11
7
  protected
12
8
 
13
9
  def index_assets
data/app/models/image.rb CHANGED
@@ -20,6 +20,7 @@ class Image < ActiveRecord::Base
20
20
  :secret_access_key => ImagesExtension.s3_credentials['secret_access_key']
21
21
  },
22
22
  :s3_host_alias => Radiant::Config['s3.host_alias'],
23
+ :s3_protocol => Radiant::Config['s3.protocol'],
23
24
  :bucket => Radiant::Config['s3.bucket'],
24
25
  :url => Radiant::Config['images.url'],
25
26
  :path => Radiant::Config['images.path']
data/images_extension.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'paperclip'
2
2
  require 'aws/s3'
3
3
  require 'acts_as_list'
4
+ require 'will_paginate'
4
5
 
5
6
  class ImagesExtension < Radiant::Extension
6
7
  version YAML::load_file(File.join(File.dirname(__FILE__), 'VERSION'))
@@ -40,6 +41,7 @@ class ImagesExtension < Radiant::Extension
40
41
  #Radiant::Config['s3.host_alias']
41
42
  #Radiant::Config['s3.key']
42
43
  #Radiant::Config['s3.secret']
44
+ #Radiant::Config['s3.protocol']
43
45
 
44
46
  unless Radiant::Config["images.image_magick_path"].nil?
45
47
  # Passenger needs this configuration to work with Image magick
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-images-extension}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dirk Kelly", "Mario Visic"]
12
- s.date = %q{2010-11-23}
12
+ s.date = %q{2010-12-06}
13
13
  s.description = %q{Image Radiant Extension management tool, meant only to be useful to pages and extensions that need to require images.}
14
14
  s.email = %q{info@squaretalent.com}
15
15
  s.extra_rdoc_files = [
@@ -37,11 +37,6 @@ describe Admin::ImagesController do
37
37
  get :index
38
38
  assigns(:images).should == @images
39
39
  end
40
-
41
- it 'should use pagination' do
42
- get :index
43
- assigns(:images).class.should == WillPaginate::Collection
44
- end
45
40
 
46
41
  it 'should include the index stylesheet' do
47
42
  mock(controller).index_assets
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-images-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dirk Kelly
@@ -16,13 +16,13 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-23 00:00:00 +08:00
19
+ date: 2010-12-06 00:00:00 +08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
- name: radiant
23
+ type: :runtime
24
24
  prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
28
28
  - - ">="
@@ -33,12 +33,12 @@ dependencies:
33
33
  - 9
34
34
  - 1
35
35
  version: 0.9.1
36
- type: :runtime
37
- version_requirements: *id001
36
+ name: radiant
37
+ requirement: *id001
38
38
  - !ruby/object:Gem::Dependency
39
- name: paperclip
39
+ type: :runtime
40
40
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
41
+ version_requirements: &id002 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ~>
@@ -49,12 +49,12 @@ dependencies:
49
49
  - 3
50
50
  - 5
51
51
  version: 2.3.5
52
- type: :runtime
53
- version_requirements: *id002
52
+ name: paperclip
53
+ requirement: *id002
54
54
  - !ruby/object:Gem::Dependency
55
- name: aws-s3
55
+ type: :runtime
56
56
  prerelease: false
57
- requirement: &id003 !ruby/object:Gem::Requirement
57
+ version_requirements: &id003 !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements:
60
60
  - - ">="
@@ -65,12 +65,12 @@ dependencies:
65
65
  - 6
66
66
  - 2
67
67
  version: 0.6.2
68
- type: :runtime
69
- version_requirements: *id003
68
+ name: aws-s3
69
+ requirement: *id003
70
70
  - !ruby/object:Gem::Dependency
71
- name: acts_as_list
71
+ type: :runtime
72
72
  prerelease: false
73
- requirement: &id004 !ruby/object:Gem::Requirement
73
+ version_requirements: &id004 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ">="
@@ -81,12 +81,12 @@ dependencies:
81
81
  - 1
82
82
  - 2
83
83
  version: 0.1.2
84
- type: :runtime
85
- version_requirements: *id004
84
+ name: acts_as_list
85
+ requirement: *id004
86
86
  - !ruby/object:Gem::Dependency
87
- name: rspec
87
+ type: :development
88
88
  prerelease: false
89
- requirement: &id005 !ruby/object:Gem::Requirement
89
+ version_requirements: &id005 !ruby/object:Gem::Requirement
90
90
  none: false
91
91
  requirements:
92
92
  - - ">="
@@ -97,12 +97,12 @@ dependencies:
97
97
  - 3
98
98
  - 0
99
99
  version: 1.3.0
100
- type: :development
101
- version_requirements: *id005
100
+ name: rspec
101
+ requirement: *id005
102
102
  - !ruby/object:Gem::Dependency
103
- name: rr
103
+ type: :development
104
104
  prerelease: false
105
- requirement: &id006 !ruby/object:Gem::Requirement
105
+ version_requirements: &id006 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ">="
@@ -113,8 +113,8 @@ dependencies:
113
113
  - 0
114
114
  - 0
115
115
  version: 1.0.0
116
- type: :development
117
- version_requirements: *id006
116
+ name: rr
117
+ requirement: *id006
118
118
  description: Image Radiant Extension management tool, meant only to be useful to pages and extensions that need to require images.
119
119
  email: info@squaretalent.com
120
120
  executables: []