sequel_paperclip 0.5.5 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in sequel_paperclip.gemspec
4
+ gemspec
data/Rakefile CHANGED
@@ -1,46 +1 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = 'sequel_paperclip'
8
- gem.authors = ['Corin Langosch']
9
- gem.date = Date.today.to_s
10
- gem.email = 'info@netskin.com'
11
- gem.homepage = 'http://github.com/gucki/sequel_paperclip'
12
- gem.summary = 'Easy file attachment management for Sequel'
13
- gem.description = 'Sequel plugin which provides Paperclip (attachments, thumbnail resizing, etc.) functionality for model.'
14
- gem.add_development_dependency "rspec", ">= 1.2.9"
15
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
- end
17
- Jeweler::GemcutterTasks.new
18
- rescue LoadError
19
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
20
- end
21
-
22
- require 'spec/rake/spectask'
23
- Spec::Rake::SpecTask.new(:spec) do |spec|
24
- spec.libs << 'lib' << 'spec'
25
- spec.spec_files = FileList['spec/**/*_spec.rb']
26
- end
27
-
28
- Spec::Rake::SpecTask.new(:rcov) do |spec|
29
- spec.libs << 'lib' << 'spec'
30
- spec.pattern = 'spec/**/*_spec.rb'
31
- spec.rcov = true
32
- end
33
-
34
- task :spec => :check_dependencies
35
-
36
- task :default => :spec
37
-
38
- require 'rake/rdoctask'
39
- Rake::RDocTask.new do |rdoc|
40
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
41
-
42
- rdoc.rdoc_dir = 'rdoc'
43
- rdoc.title = "sequel_paperclip #{version}"
44
- rdoc.rdoc_files.include('README*')
45
- rdoc.rdoc_files.include('lib/**/*.rb')
46
- end
1
+ require "bundler/gem_tasks"
@@ -109,6 +109,7 @@ module Sequel
109
109
  Sequel::Plugins::Paperclip.logger.debug("saving #{update[:dst_path]} (#{update[:src_file].size} bytes)")
110
110
  FileUtils.mkdir_p(File.dirname(update[:dst_path]))
111
111
  FileUtils.cp(update[:src_file].path, update[:dst_path])
112
+ FileUtils.chmod(0664, update[:dst_path])
112
113
  update[:src_file].close!
113
114
  when STORAGE_UPDATE_DELETE
114
115
  Sequel::Plugins::Paperclip.logger.debug("deleting #{update[:path]}")
@@ -0,0 +1,3 @@
1
+ module SequelPaperclip
2
+ VERSION = "0.5.6"
3
+ end
@@ -1,57 +1,24 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "sequel_paperclip/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{sequel_paperclip}
8
- s.version = "0.5.5"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Corin Langosch"]
12
- s.date = %q{2010-12-09}
6
+ s.name = "sequel_paperclip"
7
+ s.version = SequelPaperclip::VERSION
8
+ s.authors = ["Corin Langosch"]
9
+ s.email = ["info@corinlangosch.com"]
10
+ s.homepage = %q{http://github.com/gucki/sequel_paperclip}
11
+ s.summary = %q{Easy file attachment management for Sequel}
13
12
  s.description = %q{Sequel plugin which provides Paperclip (attachments, thumbnail resizing, etc.) functionality for model.}
14
- s.email = %q{info@netskin.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- ".document",
21
- "LICENSE",
22
- "README.rdoc",
23
- "Rakefile",
24
- "VERSION",
25
- "lib/sequel_paperclip.rb",
26
- "lib/sequel_paperclip/attachment.rb",
27
- "lib/sequel_paperclip/interpolations.rb",
28
- "lib/sequel_paperclip/processors/dummy.rb",
29
- "lib/sequel_paperclip/processors/image.rb",
30
- "sequel_paperclip.gemspec",
31
- "spec/sequel_paperclip_spec.rb",
32
- "spec/spec.opts",
33
- "spec/spec_helper.rb"
34
- ]
35
- s.homepage = %q{http://github.com/gucki/sequel_paperclip}
36
- s.require_paths = ["lib"]
37
- s.rubygems_version = %q{1.3.7}
38
- s.summary = %q{Easy file attachment management for Sequel}
39
- s.test_files = [
40
- "spec/sequel_paperclip_spec.rb",
41
- "spec/spec_helper.rb"
42
- ]
43
13
 
44
- if s.respond_to? :specification_version then
45
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
- s.specification_version = 3
14
+ s.rubyforge_project = "sequel_paperclip"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
47
20
 
48
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
50
- else
51
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
52
- end
53
- else
54
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
55
- end
21
+ # specify any dependencies here; for example:
22
+ s.add_development_dependency "rspec"
56
23
  end
57
24
 
metadata CHANGED
@@ -1,93 +1,72 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sequel_paperclip
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 5
8
- - 5
9
- version: 0.5.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.6
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Corin Langosch
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-12-09 00:00:00 +00:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-12-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rspec
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &9136740 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 1
30
- - 2
31
- - 9
32
- version: 1.2.9
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :development
34
- version_requirements: *id001
35
- description: Sequel plugin which provides Paperclip (attachments, thumbnail resizing, etc.) functionality for model.
36
- email: info@netskin.com
23
+ prerelease: false
24
+ version_requirements: *9136740
25
+ description: Sequel plugin which provides Paperclip (attachments, thumbnail resizing,
26
+ etc.) functionality for model.
27
+ email:
28
+ - info@corinlangosch.com
37
29
  executables: []
38
-
39
30
  extensions: []
40
-
41
- extra_rdoc_files:
42
- - LICENSE
43
- - README.rdoc
44
- files:
45
- - .document
31
+ extra_rdoc_files: []
32
+ files:
33
+ - .gitignore
34
+ - Gemfile
46
35
  - LICENSE
47
36
  - README.rdoc
48
37
  - Rakefile
49
- - VERSION
50
38
  - lib/sequel_paperclip.rb
51
39
  - lib/sequel_paperclip/attachment.rb
52
40
  - lib/sequel_paperclip/interpolations.rb
53
41
  - lib/sequel_paperclip/processors/dummy.rb
54
42
  - lib/sequel_paperclip/processors/image.rb
43
+ - lib/sequel_paperclip/version.rb
55
44
  - sequel_paperclip.gemspec
56
45
  - spec/sequel_paperclip_spec.rb
57
46
  - spec/spec.opts
58
47
  - spec/spec_helper.rb
59
- has_rdoc: true
60
48
  homepage: http://github.com/gucki/sequel_paperclip
61
49
  licenses: []
62
-
63
50
  post_install_message:
64
51
  rdoc_options: []
65
-
66
- require_paths:
52
+ require_paths:
67
53
  - lib
68
- required_ruby_version: !ruby/object:Gem::Requirement
54
+ required_ruby_version: !ruby/object:Gem::Requirement
69
55
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- segments:
74
- - 0
75
- version: "0"
76
- required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
61
  none: false
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- segments:
82
- - 0
83
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
84
66
  requirements: []
85
-
86
- rubyforge_project:
87
- rubygems_version: 1.3.7
67
+ rubyforge_project: sequel_paperclip
68
+ rubygems_version: 1.8.10
88
69
  signing_key:
89
70
  specification_version: 3
90
71
  summary: Easy file attachment management for Sequel
91
- test_files:
92
- - spec/sequel_paperclip_spec.rb
93
- - spec/spec_helper.rb
72
+ test_files: []
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.5.5