papermill 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -3,9 +3,9 @@
3
3
  Asset management made easy.
4
4
 
5
5
  == Install the gem!
6
-
7
- $ gem sources -a http://gems.github.com
8
- $ sudo gem install BBenezech-papermill
6
+
7
+ $ gem sources -a http://gems.github.com # only once (needed for gem dependencies)
8
+ $ sudo gem install papermill
9
9
 
10
10
  == Try the demo!
11
11
 
@@ -43,6 +43,26 @@ See papermill_module.rb for the complete list of options.
43
43
  # copy static assets and generate a migration
44
44
  $ ./script/generate papermill PapermillMigration
45
45
  $ rake db:migrate
46
+
47
+ === Then in environment.rb:
48
+
49
+ config.gem papermill
50
+
51
+ === You can also modify a couple of default options that will be available application-wide :
52
+
53
+ Papermill::OPTIONS = {
54
+ :thumbnail => {
55
+ :width => 150,
56
+ :height => 100
57
+ },
58
+ :aliases => {
59
+ :big => "500x500>"
60
+ :small => "100x100>"
61
+ },
62
+ :public_root => ":rails_root/public", # already a default
63
+ :papermill_prefix => "system/papermill" # already a default
64
+ }
65
+ # see lib/papermill/papermill_module.rb for more options.
46
66
 
47
67
  === In your assetable model:
48
68
 
data/Rakefile CHANGED
@@ -35,35 +35,7 @@ begin
35
35
  gemspec.add_dependency('mime-types', '>= 1.16')
36
36
  gemspec.add_dependency('rsl-stringex', '>= 1.0.0')
37
37
  gemspec.add_dependency('ryanb-acts-as-list', '>= 0.1.2')
38
- gemspec.rubyforge_project = 'papermill' # This line would be new
39
38
  end
40
39
  rescue LoadError
41
40
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
42
- end
43
-
44
- # These are new tasks
45
- begin
46
- require 'rake/contrib/sshpublisher'
47
- namespace :rubyforge do
48
-
49
- desc "Release gem and RDoc documentation to RubyForge"
50
- task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
51
-
52
- namespace :release do
53
- desc "Publish RDoc to RubyForge."
54
- task :docs => [:rdoc] do
55
- config = YAML.load(
56
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
57
- )
58
-
59
- host = "#{config['username']}@rubyforge.org"
60
- remote_dir = "/var/www/gforge-projects/the-perfect-gem/"
61
- local_dir = 'rdoc'
62
-
63
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
64
- end
65
- end
66
- end
67
- rescue LoadError
68
- puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
69
- end
41
+ end
data/TODO.txt ADDED
@@ -0,0 +1,4 @@
1
+ * check necessity for escaped_filename
2
+ * check necessity for Mime::Type
3
+ * assets without assetable
4
+ * non-regression tests
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.7
1
+ 0.5.8
@@ -1,3 +1,3 @@
1
- script/generate papermill MyTableName
1
+ script/generate papermill MyMigrationName
2
2
 
3
3
  This will create the migration table.
@@ -1,4 +1,4 @@
1
- gem 'BBenezech-papermill', :lib => 'papermill'
1
+ gem 'papermill'
2
2
 
3
3
  generate :papermill, "PapermillMigration"
4
4
  generate :scaffold, "article title:string"
data/lib/papermill.rb CHANGED
@@ -0,0 +1,13 @@
1
+ require 'core_extensions'
2
+ Object.send :include, ObjectExtensions
3
+ Hash.send :include, HashExtensions
4
+ String.send :include, StringExtensions
5
+
6
+ I18n.load_path = [File.join(File.dirname(__FILE__), "../config/locales/papermill.yml")] + I18n.load_path
7
+
8
+ require 'papermill/papermill_module'
9
+ require 'papermill/papermill_asset'
10
+ require 'papermill/form_builder'
11
+ require 'papermill/papermill_helper'
12
+ ActionView::Base.send :include, PapermillHelper
13
+ ActiveRecord::Base.send :include, Papermill
data/papermill.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{papermill}
8
- s.version = "0.5.7"
8
+ s.version = "0.5.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Benoit B\303\251n\303\251zech"]
12
- s.date = %q{2009-09-08}
12
+ s.date = %q{2009-09-09}
13
13
  s.description = %q{Paperclip Swfupload UploadHelper wrapper}
14
14
  s.email = %q{benoit.benezech@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
  "MIT-LICENSE",
21
21
  "README.rdoc",
22
22
  "Rakefile",
23
+ "TODO.txt",
23
24
  "VERSION",
24
25
  "app/controllers/papermill_controller.rb",
25
26
  "app/views/papermill/_asset.html.erb",
@@ -61,8 +62,7 @@ Gem::Specification.new do |s|
61
62
  s.homepage = %q{http://github.com/BBenezech/papermill}
62
63
  s.rdoc_options = ["--charset=UTF-8"]
63
64
  s.require_paths = ["lib"]
64
- s.rubyforge_project = %q{papermill}
65
- s.rubygems_version = %q{1.3.5}
65
+ s.rubygems_version = %q{1.3.4}
66
66
  s.summary = %q{Paperclip Swfupload UploadHelper wrapper}
67
67
  s.test_files = [
68
68
  "test/papermill_test.rb",
data/rails/init.rb CHANGED
@@ -1,13 +1 @@
1
- require 'core_extensions'
2
- Object.send :include, ObjectExtensions
3
- Hash.send :include, HashExtensions
4
- String.send :include, StringExtensions
5
-
6
- I18n.load_path = [File.join(File.dirname(__FILE__), "../config/locales/papermill.yml")] + I18n.load_path
7
-
8
- require 'papermill/papermill_module'
9
- require 'papermill/papermill_asset'
10
- require 'papermill/form_builder'
11
- require 'papermill/papermill_helper'
12
- ActionView::Base.send :include, PapermillHelper
13
- ActiveRecord::Base.send :include, Papermill
1
+ require 'papermill'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: papermill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Benoit B\xC3\xA9n\xC3\xA9zech"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-08 00:00:00 +02:00
12
+ date: 2009-09-09 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -65,6 +65,7 @@ files:
65
65
  - MIT-LICENSE
66
66
  - README.rdoc
67
67
  - Rakefile
68
+ - TODO.txt
68
69
  - VERSION
69
70
  - app/controllers/papermill_controller.rb
70
71
  - app/views/papermill/_asset.html.erb
@@ -125,8 +126,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
126
  version:
126
127
  requirements: []
127
128
 
128
- rubyforge_project: papermill
129
- rubygems_version: 1.3.5
129
+ rubyforge_project:
130
+ rubygems_version: 1.3.4
130
131
  signing_key:
131
132
  specification_version: 3
132
133
  summary: Paperclip Swfupload UploadHelper wrapper