refinerycms-resources 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,9 @@
47
47
  <% content_for :javascripts do %>
48
48
  <script>
49
49
  $(document).ready(function(){
50
+ <% unless user_can_modify_resources %>
50
51
  link_dialog.init();
52
+ <% end %>
51
53
  resource_picker.init(<%= @callback.present? ? "self.parent.#{@callback}" : "null" %>);
52
54
  });
53
55
  </script>
data/lib/gemspec.rb CHANGED
@@ -1,8 +1,10 @@
1
+ # Encoding: UTF-8
1
2
  require 'pathname'
2
3
  gempath = Pathname.new(File.expand_path('../../', __FILE__))
3
4
  require gempath.join('..', 'base', 'lib', 'base', 'refinery')
4
5
 
5
6
  gemspec = <<EOF
7
+ # Encoding: UTF-8
6
8
  # DO NOT EDIT THIS FILE DIRECTLY! Instead, use lib/gemspec.rb to generate it.
7
9
 
8
10
  Gem::Specification.new do |s|
@@ -14,7 +16,7 @@ Gem::Specification.new do |s|
14
16
  s.email = %q{info@refinerycms.com}
15
17
  s.homepage = %q{http://refinerycms.com}
16
18
  s.rubyforge_project = %q{refinerycms}
17
- s.authors = ['Resolve Digital', 'Philip Arndt', 'David Jones', 'Steven Heidel']
19
+ s.authors = ['Resolve Digital', 'Philip Arndt', 'David Jones', 'Steven Heidel', 'Uģis Ozols']
18
20
  s.license = %q{MIT}
19
21
  s.require_paths = %w(lib)
20
22
  s.executables = %w(#{Pathname.glob(gempath.join('bin/*')).map{|d| d.relative_path_from(gempath)}.sort.join(" ")})
@@ -58,6 +58,7 @@ module Refinery
58
58
 
59
59
  config.after_initialize do
60
60
  ::Refinery::Plugin.register do |plugin|
61
+ plugin.pathname = root
61
62
  plugin.name = 'refinery_files'
62
63
  plugin.url = {:controller => '/admin/resources', :action => 'index'}
63
64
  plugin.menu_match = /(refinery|admin)\/(refinery_)?(files|resources)$/
@@ -1,15 +1,16 @@
1
+ # Encoding: UTF-8
1
2
  # DO NOT EDIT THIS FILE DIRECTLY! Instead, use lib/gemspec.rb to generate it.
2
3
 
3
4
  Gem::Specification.new do |s|
4
5
  s.name = %q{refinerycms-resources}
5
- s.version = %q{1.0.0}
6
+ s.version = %q{1.0.1}
6
7
  s.summary = %q{Resources engine for Refinery CMS}
7
8
  s.description = %q{Handles all file upload and processing functionality in Refinery CMS.}
8
- s.date = %q{2011-05-28}
9
+ s.date = %q{2011-06-21}
9
10
  s.email = %q{info@refinerycms.com}
10
11
  s.homepage = %q{http://refinerycms.com}
11
12
  s.rubyforge_project = %q{refinerycms}
12
- s.authors = ['Resolve Digital', 'Philip Arndt', 'David Jones', 'Steven Heidel']
13
+ s.authors = ['Resolve Digital', 'Philip Arndt', 'David Jones', 'Steven Heidel', 'Uģis Ozols']
13
14
  s.license = %q{MIT}
14
15
  s.require_paths = %w(lib)
15
16
  s.executables = %w()
@@ -88,7 +89,7 @@ Gem::Specification.new do |s|
88
89
  'spec/uploads/refinery_is_awesome.txt'
89
90
  ]
90
91
 
91
- s.add_dependency 'refinerycms-core', '= 1.0.0'
92
+ s.add_dependency 'refinerycms-core', '= 1.0.1'
92
93
  s.add_dependency 'dragonfly', '~> 0.9.0'
93
94
  s.add_dependency 'rack-cache', '>= 0.5.3'
94
95
  end
metadata CHANGED
@@ -1,20 +1,25 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-resources
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 21
4
5
  prerelease:
5
- version: 1.0.0
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 1
10
+ version: 1.0.1
6
11
  platform: ruby
7
12
  authors:
8
13
  - Resolve Digital
9
14
  - Philip Arndt
10
15
  - David Jones
11
16
  - Steven Heidel
17
+ - "U\xC4\xA3is Ozols"
12
18
  autorequire:
13
19
  bindir: bin
14
20
  cert_chain: []
15
21
 
16
- date: 2011-05-28 00:00:00 +12:00
17
- default_executable:
22
+ date: 2011-06-21 00:00:00 Z
18
23
  dependencies:
19
24
  - !ruby/object:Gem::Dependency
20
25
  name: refinerycms-core
@@ -24,7 +29,12 @@ dependencies:
24
29
  requirements:
25
30
  - - "="
26
31
  - !ruby/object:Gem::Version
27
- version: 1.0.0
32
+ hash: 21
33
+ segments:
34
+ - 1
35
+ - 0
36
+ - 1
37
+ version: 1.0.1
28
38
  type: :runtime
29
39
  version_requirements: *id001
30
40
  - !ruby/object:Gem::Dependency
@@ -35,6 +45,11 @@ dependencies:
35
45
  requirements:
36
46
  - - ~>
37
47
  - !ruby/object:Gem::Version
48
+ hash: 59
49
+ segments:
50
+ - 0
51
+ - 9
52
+ - 0
38
53
  version: 0.9.0
39
54
  type: :runtime
40
55
  version_requirements: *id002
@@ -46,6 +61,11 @@ dependencies:
46
61
  requirements:
47
62
  - - ">="
48
63
  - !ruby/object:Gem::Version
64
+ hash: 13
65
+ segments:
66
+ - 0
67
+ - 5
68
+ - 3
49
69
  version: 0.5.3
50
70
  type: :runtime
51
71
  version_requirements: *id003
@@ -109,7 +129,6 @@ files:
109
129
  - refinerycms-resources.gemspec
110
130
  - spec/models/resource_spec.rb
111
131
  - spec/uploads/refinery_is_awesome.txt
112
- has_rdoc: true
113
132
  homepage: http://refinerycms.com
114
133
  licenses:
115
134
  - MIT
@@ -123,17 +142,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
142
  requirements:
124
143
  - - ">="
125
144
  - !ruby/object:Gem::Version
145
+ hash: 3
146
+ segments:
147
+ - 0
126
148
  version: "0"
127
149
  required_rubygems_version: !ruby/object:Gem::Requirement
128
150
  none: false
129
151
  requirements:
130
152
  - - ">="
131
153
  - !ruby/object:Gem::Version
154
+ hash: 3
155
+ segments:
156
+ - 0
132
157
  version: "0"
133
158
  requirements: []
134
159
 
135
160
  rubyforge_project: refinerycms
136
- rubygems_version: 1.6.2
161
+ rubygems_version: 1.8.5
137
162
  signing_key:
138
163
  specification_version: 3
139
164
  summary: Resources engine for Refinery CMS