BBenezech-papermill 0.1.4 → 0.2.0
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/MIT-LICENSE +1 -1
- data/README.rdoc +12 -2
- data/VERSION +1 -1
- data/generators/papermill/papermill_generator.rb +6 -0
- data/install.rb +0 -7
- data/papermill.gemspec +1 -1
- metadata +3 -2
data/MIT-LICENSE
CHANGED
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
|
-
|
|
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
|
+
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
data/papermill.gemspec
CHANGED
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.
|
|
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.
|
|
87
|
+
rubygems_version: 1.3.5
|
|
87
88
|
signing_key:
|
|
88
89
|
specification_version: 3
|
|
89
90
|
summary: Paperclip wrapper
|