papermill 0.13.0 → 0.13.1

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/README.rdoc CHANGED
@@ -2,16 +2,14 @@
2
2
 
3
3
  Asset management made easy.
4
4
 
5
- == Install the gem!
5
+ == Install the gem
6
6
 
7
- # Add github as a source for latest release of thoughtbot-paperclip gem who will be installed as a dependency and remove rubyforge's paperclip if needed (old 2.1.0 version)
8
- $ sudo gem source -a http://gems.github.com
9
- $ sudo gem uninstall paperclip
7
+ $ gem source -a http://gemcutter.org # Needed for paperclip (installed as a dependency) : Rubyforge's version is too old..
10
8
  $ sudo gem install papermill
11
-
12
- == Try the demo!
9
+
10
+ == Try the demo
13
11
 
14
- $ sudo gem install sqlite3-ruby # unless you did it already
12
+ $ sudo gem install sqlite3-ruby
15
13
  $ rails -m http://github.com/bbenezech/papermill/raw/master/installation-template.txt papermill-example
16
14
  $ cd papermill-example
17
15
  $ ./script/server
@@ -111,13 +109,14 @@ See papermill_module.rb for the complete list of options.
111
109
  # also equivalent to:
112
110
  @assetable.assets(:conditions => {:assetable_key => 'my_gallery_assets'}).each{ |image| image_tag image.url("100x100") }
113
111
 
114
-
115
112
  @assetable.assets(:my_assets).each{ |asset| asset.url }
116
113
  # if your association name is singularizable, you can do smtg like :
117
114
  @assetable.asset(:my_other_asset).try(:url)
118
115
  # equivalent to:
119
116
  @assetable.assets(:my_other_asset).first.try(:url)
120
117
 
118
+ # You can change assets/asset with :base_association_name in Papermill::OPTIONS (choose a plural word and you'll get singular association for free)
119
+
121
120
  Also see http://github.com/bbenezech/papermill/raw/master/installation-template.txt
122
121
  Have a look at the API here http://rdoc.info/projects/bbenezech/papermill
123
122
 
@@ -126,14 +125,6 @@ Have a look at the API here http://rdoc.info/projects/bbenezech/papermill
126
125
  Papermill is fully I18n-able.
127
126
  Copy config/locales/papermill.yml to your root config/locale folder to modify any wording in a any locale.
128
127
 
129
-
130
- == Word of caution:
131
-
132
- Beta. Wait for gem 1.0.0 for the production ready thing. But since gem 0.12.2, things should go smoothly.
133
- Rails 2.3
134
-
135
-
136
128
  Copyright (c) 2009 Benoit Bénézech, released under the MIT license
137
129
 
138
-
139
130
  http://rubyonrails.org/images/rails.png
data/Rakefile CHANGED
@@ -31,7 +31,7 @@ begin
31
31
  gemspec.email = "benoit.benezech@gmail.com"
32
32
  gemspec.homepage = "http://github.com/bbenezech/papermill"
33
33
  gemspec.authors = ["Benoit Bénézech"]
34
- gemspec.add_dependency('thoughtbot-paperclip', '>= 2.3.1')
34
+ gemspec.add_dependency('paperclip', '>= 2.3.1.1')
35
35
  end
36
36
  rescue LoadError
37
37
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.13.0
1
+ 0.13.1
@@ -3,7 +3,7 @@ class PapermillAssetsGenerator < Rails::Generator::Base
3
3
  end
4
4
 
5
5
  def manifest
6
- puts "Moving papermill assets to your public directory..."
6
+ puts "Copying papermill assets to your public directory..."
7
7
  FileUtils.rm_rf("#{File.join(RAILS_ROOT)}/public/papermill/")
8
8
  FileUtils.cp_r(
9
9
  Dir[File.join(File.dirname(__FILE__), '../../public')],
@@ -8,7 +8,7 @@ rake "db:migrate"
8
8
  file "app/models/article.rb", <<-END
9
9
  class Article < ActiveRecord::Base
10
10
  validates_presence_of :title
11
- papermill :thumbnail => {:width => 100, :height => 75} # catch-all for non-specified associations, will create assets/asset methods. You can change it: :base_association_name, with Papermill::OPTIONS in your environment.rb
11
+ papermill :thumbnail => {:width => 100, :height => 75} # catch-all for non-specified associations, will create assets/asset methods.
12
12
  papermill :image_gallery, :class_name => ImageAsset, :images_only => true, :thumbnail => {:width => 75, :height => 100}
13
13
  # image_gallery association (set with define_method)
14
14
  end
@@ -31,7 +31,7 @@
31
31
  .papermill-asset-container { border:1px solid #EEE; padding:3px; }
32
32
  .papermill-asset-container li { display:block; height:22px; }
33
33
  .papermill-asset-container .swfupload .name { margin-left:21px; }
34
- .papermill-asset-container .name { float:left; margin-top:5px; }
34
+ .papermill-asset-container .name { float:left; }
35
35
  .papermill-asset-container .status { margin-left:5px; float:left; }
36
36
  .papermill-asset-container .progress { float:left; margin-top:6px; margin-left:5px; width:100px; }
37
37
  .papermill-asset-container .delete { float:left; margin-top:2px; margin-right:5px; }
@@ -1,5 +1,5 @@
1
1
  popup = function(title1, title) {
2
- window.open (title1, title, config='height=700, width=600, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no')
2
+ window.open (title1, title, config='height=650, width=950, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no')
3
3
  }
4
4
 
5
5
 
@@ -24,8 +24,8 @@ popup = function(url) {
24
24
  Shadowbox.open({
25
25
  content: url,
26
26
  player: "iframe",
27
- width: 1280,
28
- height: 768
27
+ width: 950,
28
+ height: 650
29
29
  });
30
30
  }
31
31
  return false;
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.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Benoit B\xC3\xA9n\xC3\xA9zech"
@@ -13,14 +13,14 @@ date: 2009-10-16 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: thoughtbot-paperclip
16
+ name: paperclip
17
17
  type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.3.1
23
+ version: 2.3.1.1
24
24
  version:
25
25
  description: Paperclip Swfupload UploadHelper wrapper
26
26
  email: benoit.benezech@gmail.com