refinerycms-page-images 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
data/lib/gemspec.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- version = '0.9.8'
2
+ version = '0.9.9'
3
3
  raise "Could not get version so gemspec can not be built" if version.nil?
4
4
  files = (Dir.glob("*") | Dir.glob("**/*")).reject{|f| f =~ %r{.gem(spec)?$}}
5
5
 
@@ -12,10 +12,10 @@ Gem::Specification.new do |s|
12
12
  s.summary = %q{Page Images Engine for Refinery CMS}
13
13
  s.email = %q{dave@resolvedigital.com}
14
14
  s.homepage = %q{http://github.com/resolve/refinerycms-page-images}
15
- s.authors = ['Resolve Digital', 'David Jones']
15
+ s.authors = ['Resolve Digital', 'David Jones', 'Philip Arndt']
16
16
  s.require_paths = %w(lib)
17
17
 
18
- #s.add_dependency 'refinerycms', '>= 0.9.9'
18
+ s.add_dependency 'refinerycms', '>= 0.9.9'
19
19
 
20
20
  s.files = [
21
21
  '#{files.join("',\n '")}'
@@ -1,6 +1,6 @@
1
1
  class RefinerycmsPageImages < Refinery::Generators::EngineInstaller
2
2
 
3
- source_root File.expand_path('../../', __FILE__)
3
+ source_root File.expand_path('../../../', __FILE__)
4
4
  engine_name "page_images"
5
5
 
6
6
  end
@@ -17,6 +17,7 @@ module Refinery
17
17
 
18
18
  def images_attributes=(data)
19
19
  self.images.clear
20
+ data.reject!{|i, d| d['id'].blank?}
20
21
  self.images += (0..(data.length-1)).collect { |i|
21
22
  (Image.find(data[i.to_s]['id'].to_i) rescue nil)
22
23
  }.compact
data/readme.md CHANGED
@@ -6,7 +6,7 @@ Page Images allows you to relate one or more images to any page in Refinery whic
6
6
 
7
7
  ## Requirements
8
8
 
9
- * refinerycms >= 0.9.9 (as yet *unreleased*)
9
+ * refinerycms >= 0.9.9
10
10
 
11
11
  ## Features
12
12
 
@@ -17,7 +17,7 @@ Page Images allows you to relate one or more images to any page in Refinery whic
17
17
 
18
18
  Add this line to your applications `Gemfile`
19
19
 
20
- gem 'refinerycms-page-images', '~> 0.9.7'
20
+ gem 'refinerycms-page-images', '~> 0.9.9'
21
21
 
22
22
  Next run
23
23
 
metadata CHANGED
@@ -1,25 +1,39 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-page-images
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 9
9
- - 8
10
- version: 0.9.8
8
+ - 9
9
+ version: 0.9.9
11
10
  platform: ruby
12
11
  authors:
13
12
  - Resolve Digital
14
13
  - David Jones
14
+ - Philip Arndt
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-15 00:00:00 +13:00
19
+ date: 2010-12-31 00:00:00 +13:00
20
20
  default_executable:
21
- dependencies: []
22
-
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: refinerycms
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ segments:
31
+ - 0
32
+ - 9
33
+ - 9
34
+ version: 0.9.9
35
+ type: :runtime
36
+ version_requirements: *id001
23
37
  description: Page Images Engine for Refinery CMS
24
38
  email: dave@resolvedigital.com
25
39
  executables: []
@@ -52,7 +66,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
52
66
  requirements:
53
67
  - - ">="
54
68
  - !ruby/object:Gem::Version
55
- hash: 3
56
69
  segments:
57
70
  - 0
58
71
  version: "0"
@@ -61,7 +74,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
74
  requirements:
62
75
  - - ">="
63
76
  - !ruby/object:Gem::Version
64
- hash: 3
65
77
  segments:
66
78
  - 0
67
79
  version: "0"