BBenezech-papermill 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 [name of plugin creator]
1
+ Copyright (c) 2009 [Benoit Bénézech]
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.rdoc CHANGED
@@ -7,6 +7,7 @@ See papermill_module.rb for a complete list of available options.
7
7
  These options can be application wide, for a class, or set at the last moment for the helper.
8
8
 
9
9
  You'll need something like this in your environment.rb
10
+
10
11
  config.gem 'rsl-stringex', :lib => 'stringex', :source => 'http://gems.github.com'
11
12
  config.gem 'paperclip'
12
13
  config.gem 'authlogic'
@@ -14,7 +15,15 @@ You'll need something like this in your environment.rb
14
15
  config.gem 'ryanb-acts-as-list', :lib => 'acts_as_list', :source => 'http://gems.github.com'
15
16
  config.gem 'BBenezech-papermill', :lib => 'papermill', :source => 'http://gems.github.com'
16
17
 
17
- In your model:
18
+ Then install the whole thing:
19
+
20
+ sudo gem install ryanb-acts-as-list -s http://gems.github.com
21
+ sudo gem install paperclip
22
+ sudo rake gems:install # will install the others gem. You need to install paperclip & acts_as_list first, because of a dependency mayhem.
23
+ ./script/generate papermill PapermillMigration # will also copy a couple of static assets
24
+ rake db:migrate
25
+
26
+ In your assetable model:
18
27
 
19
28
  papermill :assets
20
29
 
@@ -22,7 +31,8 @@ In your layout:
22
31
 
23
32
  <%= papermill_stylesheet_tag %>
24
33
  <%= papermill_javascript_tag :with_jquery => true %>
25
-
34
+ # you don't need :with_jquery if it is already loaded, obviously.
35
+
26
36
  In your edit form:
27
37
 
28
38
  f.images_upload(:my_image_gallery)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.2.0
@@ -8,6 +8,12 @@ class PapermillGenerator < Rails::Generator::NamedBase
8
8
 
9
9
  def manifest
10
10
  @migration_name = file_name.camelize
11
+ FileUtils.cp_r(
12
+ Dir[File.join(File.dirname(__FILE__), '../../public')],
13
+ File.join(RAILS_ROOT),
14
+ :verbose => true
15
+ )
16
+
11
17
  record do |m|
12
18
  # Migration creation
13
19
  m.migration_template "migrate/papermill_migration.rb.erb", "db/migrate", :migration_file_name => migration_name.underscore
data/install.rb CHANGED
@@ -1,7 +0,0 @@
1
- require "fileutils"
2
-
3
- FileUtils.cp_r(
4
- Dir[File.join(File.dirname(__FILE__), 'public')],
5
- File.join(RAILS_ROOT),
6
- :verbose => true
7
- )
data/papermill.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{papermill}
8
- s.version = "0.1.4"
8
+ s.version = "0.2.0"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: BBenezech-papermill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Benoit B\xC3\xA9n\xC3\xA9zech"
@@ -63,6 +63,7 @@ files:
63
63
  - uninstall.rb
64
64
  has_rdoc: false
65
65
  homepage: http://github.com/BBenezech/papermill
66
+ licenses:
66
67
  post_install_message:
67
68
  rdoc_options:
68
69
  - --charset=UTF-8
@@ -83,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
84
  requirements: []
84
85
 
85
86
  rubyforge_project:
86
- rubygems_version: 1.2.0
87
+ rubygems_version: 1.3.5
87
88
  signing_key:
88
89
  specification_version: 3
89
90
  summary: Paperclip wrapper