refinerycms-image_rotators 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ require 'acts_as_list'
2
+
1
3
  class ImageRotatorImage < ActiveRecord::Base
2
4
 
3
5
  belongs_to :image_rotator
@@ -18,6 +18,8 @@ Gem::Specification.new do |s|
18
18
  s.authors = %w(Jacob\\ Swanner)
19
19
  s.require_paths = %w(lib)
20
20
 
21
+ s.add_dependency 'acts_as_list', '~> 0.1.2'
22
+
21
23
  s.files = [
22
24
  '#{files.join("',\n '")}'
23
25
  ]
@@ -1,4 +1,8 @@
1
- User.find(:all).each do |user|
2
- user.plugins.create(:name => "image_rotators",
3
- :position => (user.plugins.maximum(:position) || -1) +1)
1
+ if defined?(::User)
2
+ User.find(:all).each do |user|
3
+ if user.plugins.where(:name => 'image_rotators').blank?
4
+ user.plugins.create(:name => "image_rotators",
5
+ :position => (user.plugins.maximum(:position) || -1) +1)
6
+ end
7
+ end
4
8
  end
@@ -1,7 +1,7 @@
1
1
  module Refinery
2
2
  module ImageRotators
3
3
  def self.version
4
- %{0.3.0}
4
+ %{0.3.1}
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-image_rotators
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacob Swanner
@@ -15,10 +15,25 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-13 00:00:00 -04:00
18
+ date: 2011-05-23 00:00:00 -04:00
19
19
  default_executable:
20
- dependencies: []
21
-
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: acts_as_list
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 31
30
+ segments:
31
+ - 0
32
+ - 1
33
+ - 2
34
+ version: 0.1.2
35
+ type: :runtime
36
+ version_requirements: *id001
22
37
  description: An open source Ruby on Rails image rotator engine designed for integration with RefineryCMS.
23
38
  email: jacob@envylabs.com
24
39
  executables: []