refinerycms-resources 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- module ::Refinery
1
+ module Refinery
2
2
  module Admin
3
3
  class ResourcesController < ::Refinery::AdminController
4
4
 
@@ -0,0 +1,6 @@
1
+ module Refinery
2
+ module Admin
3
+ module ResourcesHelper
4
+ end
5
+ end
6
+ end
@@ -1,5 +1,9 @@
1
+ require 'dragonfly'
2
+
1
3
  module Refinery
2
4
  class Resource < Refinery::Core::BaseModel
5
+ ::Refinery::Resources::Dragonfly.setup!
6
+
3
7
  include Resources::Validators
4
8
 
5
9
  attr_accessible :id, :file
@@ -8,7 +8,7 @@ module Refinery
8
8
  def setup!
9
9
  app_resources = ::Dragonfly[:refinery_resources]
10
10
 
11
- app_resources.define_macro(::Refinery::Core::BaseModel, :resource_accessor)
11
+ app_resources.define_macro(::Refinery::Resource, :resource_accessor)
12
12
 
13
13
  app_resources.analyser.register(::Dragonfly::Analysis::FileCommandAnalyser)
14
14
  app_resources.content_disposition = :attachment
@@ -8,10 +8,6 @@ module Refinery
8
8
 
9
9
  config.autoload_paths += %W( #{config.root}/lib )
10
10
 
11
- initializer 'setup-refinery-resources-with-dragonfly', :before => :load_config_initializers do
12
- ::Refinery::Resources::Dragonfly.setup!
13
- end
14
-
15
11
  initializer 'attach-refinery-resources-with-dragonfly', :after => :load_config_initializers do |app|
16
12
  ::Refinery::Resources::Dragonfly.configure!
17
13
  ::Refinery::Resources::Dragonfly.attach!(app)
metadata CHANGED
@@ -1,83 +1,75 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-resources
3
- version: !ruby/object:Gem::Version
4
- hash: 11
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.3
5
5
  prerelease:
6
- segments:
7
- - 2
8
- - 0
9
- - 2
10
- version: 2.0.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Philip Arndt
14
- - "U\xC4\xA3is Ozols"
9
+ - Uģis Ozols
15
10
  - David Jones
16
11
  - Steven Heidel
17
12
  autorequire:
18
13
  bindir: bin
19
14
  cert_chain: []
20
-
21
- date: 2011-10-12 00:00:00 Z
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
15
+ date: 2011-10-12 00:00:00.000000000 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: dragonfly
19
+ requirement: !ruby/object:Gem::Requirement
26
20
  none: false
27
- requirements:
21
+ requirements:
28
22
  - - ~>
29
- - !ruby/object:Gem::Version
30
- hash: 43
31
- segments:
32
- - 0
33
- - 9
34
- - 8
23
+ - !ruby/object:Gem::Version
35
24
  version: 0.9.8
36
- version_requirements: *id001
37
- name: dragonfly
38
25
  type: :runtime
39
- - !ruby/object:Gem::Dependency
40
26
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ version_requirements: !ruby/object:Gem::Requirement
42
28
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- hash: 13
47
- segments:
48
- - 0
49
- - 5
50
- - 3
51
- version: 0.5.3
52
- version_requirements: *id002
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 0.9.8
33
+ - !ruby/object:Gem::Dependency
53
34
  name: rack-cache
35
+ requirement: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.5.3
54
41
  type: :runtime
55
- - !ruby/object:Gem::Dependency
56
42
  prerelease: false
57
- requirement: &id003 !ruby/object:Gem::Requirement
43
+ version_requirements: !ruby/object:Gem::Requirement
58
44
  none: false
59
- requirements:
60
- - - "="
61
- - !ruby/object:Gem::Version
62
- hash: 11
63
- segments:
64
- - 2
65
- - 0
66
- - 2
67
- version: 2.0.2
68
- version_requirements: *id003
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: 0.5.3
49
+ - !ruby/object:Gem::Dependency
69
50
  name: refinerycms-core
51
+ requirement: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - '='
55
+ - !ruby/object:Gem::Version
56
+ version: 2.0.3
70
57
  type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - '='
63
+ - !ruby/object:Gem::Version
64
+ version: 2.0.3
71
65
  description: Handles all file upload and processing functionality in Refinery CMS.
72
66
  email: info@refinerycms.com
73
67
  executables: []
74
-
75
68
  extensions: []
76
-
77
69
  extra_rdoc_files: []
78
-
79
- files:
70
+ files:
80
71
  - app/controllers/refinery/admin/resources_controller.rb
72
+ - app/helpers/refinery/admin/resources_helper.rb
81
73
  - app/models/refinery/resource.rb
82
74
  - app/views/refinery/admin/resources/_actions.html.erb
83
75
  - app/views/refinery/admin/resources/_existing_resource.html.erb
@@ -135,39 +127,37 @@ files:
135
127
  - spec/models/refinery/resource_spec.rb
136
128
  - spec/requests/refinery/admin/resources_spec.rb
137
129
  homepage: http://refinerycms.com
138
- licenses:
130
+ licenses:
139
131
  - MIT
140
132
  post_install_message:
141
133
  rdoc_options: []
142
-
143
- require_paths:
134
+ require_paths:
144
135
  - lib
145
- required_ruby_version: !ruby/object:Gem::Requirement
136
+ required_ruby_version: !ruby/object:Gem::Requirement
146
137
  none: false
147
- requirements:
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- hash: 3
151
- segments:
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ segments:
152
143
  - 0
153
- version: "0"
154
- required_rubygems_version: !ruby/object:Gem::Requirement
144
+ hash: -1785307363785727778
145
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
146
  none: false
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- hash: 3
160
- segments:
147
+ requirements:
148
+ - - ! '>='
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ segments:
161
152
  - 0
162
- version: "0"
153
+ hash: -1785307363785727778
163
154
  requirements: []
164
-
165
155
  rubyforge_project: refinerycms
166
- rubygems_version: 1.8.17
156
+ rubygems_version: 1.8.19
167
157
  signing_key:
168
158
  specification_version: 3
169
159
  summary: Resources extension for Refinery CMS
170
- test_files:
160
+ test_files:
171
161
  - spec/factories/resource.rb
172
162
  - spec/fixtures/refinery_is_awesome.txt
173
163
  - spec/fixtures/refinery_is_awesome2.txt