papermill 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,4 +1,4 @@
1
- = Papermill
1
+ = Papermill
2
2
 
3
3
  Asset management made easy.
4
4
 
@@ -12,7 +12,7 @@ Asset management made easy.
12
12
  $ rails -m http://github.com/bbenezech/papermill/raw/master/installation-template.txt papermill-example
13
13
  $ cd papermill-example
14
14
  $ ./script/server
15
- $ GoTo localhost:3000 and try to create an article with assets but without title
15
+ Open localhost:3000 in your browser and try to create an article with assets but without title
16
16
 
17
17
  == Papermill comes in 2 flavors:
18
18
 
@@ -94,7 +94,7 @@ See papermill_module.rb for the complete list of options.
94
94
  @assetable.papermill_assets(:my_assets).each{ |asset| asset.url }
95
95
  @assetable.papermill_assets(:my_other_asset).first.url
96
96
 
97
- Also see http://gist.github.com/177714.txt for more precises installation steps.
97
+ Also see http://github.com/bbenezech/papermill/raw/master/installation-template.txt for more precises installation steps.
98
98
  Have a look at the API here http://rdoc.info/projects/BBenezech/papermill
99
99
 
100
100
  === Translations:
@@ -110,4 +110,7 @@ This is xNIX only (system("rm ...")).
110
110
  Rails 2.3
111
111
 
112
112
 
113
- Copyright (c) 2009 Benoit Bénézech, released under the MIT license
113
+ Copyright (c) 2009 Benoit Bénézech, released under the MIT license
114
+
115
+
116
+ http://rubyonrails.org/images/rails.png
data/Rakefile CHANGED
@@ -34,7 +34,7 @@ begin
34
34
  gemspec.add_dependency('paperclip', '>= 2.1.2')
35
35
  gemspec.add_dependency('mime-types', '>= 1.16')
36
36
  gemspec.add_dependency('stringex', '>= 1.0.0')
37
- gemspec.add_dependency('acts-as-list', '>= 0.1.2')
37
+ gemspec.add_dependency('acts_as_list', '>= 0.1.2')
38
38
  end
39
39
  rescue LoadError
40
40
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -75,7 +75,7 @@ class ActionView::Helpers::FormBuilder
75
75
  }
76
76
  @template.content_for :papermill_inline_js do
77
77
  %{
78
- #{%{$("##{id}").sortable({update:function(){jQuery.ajax({async:true, data:jQuery(this).sortable('serialize'), dataType:'script', type:'post', url:'#{@template.controller.send("sort_papermill_url")}'})}})} if options[:gallery]}
78
+ #{%{(jQuery("##{id}")).sortable({update:function(){jQuery.ajax({async:true, data:jQuery(this).sortable('serialize'), dataType:'script', type:'post', url:'#{@template.controller.send("sort_papermill_path")}'})}})} if options[:gallery]}
79
79
  new SWFUpload({
80
80
  upload_id: "#{id}",
81
81
  upload_url: "#{@template.escape_javascript create_url}",
@@ -10,19 +10,16 @@ module PapermillHelper
10
10
  html = []
11
11
  root_folder = options[:path] || "javascripts"
12
12
  if options[:with_jquery] || options[:with_jqueryui]
13
- html << %{<script src="http://www.google.com/jsapi"></script>}
14
- html << %{<script type="text/javascript">}
15
- html << %{google.load("jquery", "1");} if options[:with_jquery]
16
- html << %{google.load("jqueryui", "1");} if options[:with_jquery] || options[:with_jqueryui_only]
17
- html << %{jQuery.noConflict();} if options[:with_jquery] == "no_conflict"
18
- html << %{</script>}
13
+ html << %{<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"</script>} if options[:with_jquery]
14
+ html << %{<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"</script>} if options[:with_jquery] || options[:with_jqueryui_only]
15
+ html << %{<script type="text/javascript">jQuery.noConflict();</script>} if options[:with_jquery] == "no_conflict"
19
16
  end
20
17
  html << %{<script src="http://swfupload.googlecode.com/svn/swfupload/tags/swfupload_v2.2.0_core/swfupload.js"></script>}
21
- html << %{<script type="text/javascript">\n//<![CDATA[}
18
+ html << %{<script type="text/javascript">}
22
19
  ["SWFUPLOAD_PENDING", "SWFUPLOAD_LOADING", "SWFUPLOAD_ERROR"].each do |js_constant|
23
20
  html << %{var #{js_constant} = "#{I18n.t(js_constant, :scope => "papermill")}";}
24
21
  end
25
- html << %{//]]>\n</script>}
22
+ html << %{</script>}
26
23
  html << javascript_include_tag("/#{root_folder}/papermill", :cache => "swfupload-papermill")
27
24
  unless @content_for_papermill_inline_js.blank?
28
25
  html << '<script type="text/javascript">jQuery(document).ready(function() {'
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.6.0"
8
+ s.version = "0.6.1"
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-14}
12
+ s.date = %q{2009-09-16}
13
13
  s.description = %q{Paperclip Swfupload UploadHelper wrapper}
14
14
  s.email = %q{benoit.benezech@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -77,17 +77,17 @@ Gem::Specification.new do |s|
77
77
  s.add_runtime_dependency(%q<paperclip>, [">= 2.1.2"])
78
78
  s.add_runtime_dependency(%q<mime-types>, [">= 1.16"])
79
79
  s.add_runtime_dependency(%q<stringex>, [">= 1.0.0"])
80
- s.add_runtime_dependency(%q<acts-as-list>, [">= 0.1.2"])
80
+ s.add_runtime_dependency(%q<acts_as_list>, [">= 0.1.2"])
81
81
  else
82
82
  s.add_dependency(%q<paperclip>, [">= 2.1.2"])
83
83
  s.add_dependency(%q<mime-types>, [">= 1.16"])
84
84
  s.add_dependency(%q<stringex>, [">= 1.0.0"])
85
- s.add_dependency(%q<acts-as-list>, [">= 0.1.2"])
85
+ s.add_dependency(%q<acts_as_list>, [">= 0.1.2"])
86
86
  end
87
87
  else
88
88
  s.add_dependency(%q<paperclip>, [">= 2.1.2"])
89
89
  s.add_dependency(%q<mime-types>, [">= 1.16"])
90
90
  s.add_dependency(%q<stringex>, [">= 1.0.0"])
91
- s.add_dependency(%q<acts-as-list>, [">= 0.1.2"])
91
+ s.add_dependency(%q<acts_as_list>, [">= 0.1.2"])
92
92
  end
93
93
  end
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.6.0
4
+ version: 0.6.1
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-14 00:00:00 +02:00
12
+ date: 2009-09-16 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 1.0.0
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
- name: acts-as-list
46
+ name: acts_as_list
47
47
  type: :runtime
48
48
  version_requirement:
49
49
  version_requirements: !ruby/object:Gem::Requirement