acts_as_assets 0.3.8 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,25 +54,16 @@ RSpec.configure do |config|
54
54
  t.boolean :displayable, :default => false, :null => false
55
55
  t.string :tipo_pannello_name
56
56
  end
57
+
57
58
  Rails.application.routes.draw do
58
- scope "books/:fk_name/assets/" do
59
- get 'get/:asset_id/(:style)/:filename.:extension' => 'books/assets#get', :as => 'book_get_asset'
60
- get '*type' => 'books/assets#index', :as => 'book_assets'
61
- post '*type' => 'books/assets#create', :as => 'book_create_asset'
62
- delete ':asset_id' => 'books/assets#destroy', :as => 'book_destroy_asset'
63
- end
64
- scope "chapters/:fk_name/assets/", :chapter_name => /.*/ do
65
- get 'get/:asset_id/(:style)/:filename.:extension' => 'chapters/assets#get', :as => 'chapter_get_asset'
66
- get '*type' => 'chapters/assets#index', :as => 'chapter_assets'
67
- post '*type' => 'chapters/assets#create', :as => 'chapter_create_asset'
68
- delete ':asset_id' => 'chapters/assets#destroy', :as => 'chapter_destroy_asset'
69
- end
70
- scope "tipi_pannello/:fk_name/assets/" do
71
- get 'get/:asset_id/(:style)/:filename.:extension' => 'tipi_pannello/assets#get', :as => 'tipo_pannello_get_asset'
72
- get '*type' => 'tipi_pannello/assets#index', :as => 'tipo_pannello_assets'
73
- post '*type' => 'tipi_pannello/assets#create', :as => 'tipo_pannello_create_asset'
74
- delete ':asset_id' => 'tipi_pannello/assets#destroy', :as => 'tipo_pannello_destroy_asset'
75
- end
59
+ assets_routes_for [:books, :tipi_pannello]
60
+
61
+ #scope "tipi_pannello/:fk_name/assets/" do
62
+ # get 'get/:asset_id/(:style)/:filename.:extension' => 'tipi_pannello/assets#get', :as => 'tipo_pannello_get_asset'
63
+ # get '*type' => 'tipi_pannello/assets#index', :as => 'tipo_pannello_assets'
64
+ # post '*type' => 'tipi_pannello/assets#create', :as => 'tipo_pannello_create_asset'
65
+ # delete ':asset_id' => 'tipi_pannello/assets#destroy', :as => 'tipo_pannello_destroy_asset'
66
+ #end
76
67
  end
77
68
  end
78
69
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-06 00:00:00.000000000 Z
13
+ date: 2012-11-19 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: !ruby/object:Gem::Requirement
17
+ requirement: &2158638140 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,15 +22,10 @@ dependencies:
22
22
  version: 3.2.1
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ~>
29
- - !ruby/object:Gem::Version
30
- version: 3.2.1
25
+ version_requirements: *2158638140
31
26
  - !ruby/object:Gem::Dependency
32
27
  name: paperclip
33
- requirement: !ruby/object:Gem::Requirement
28
+ requirement: &2158635020 !ruby/object:Gem::Requirement
34
29
  none: false
35
30
  requirements:
36
31
  - - ! '>='
@@ -38,15 +33,10 @@ dependencies:
38
33
  version: '0'
39
34
  type: :runtime
40
35
  prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
36
+ version_requirements: *2158635020
47
37
  - !ruby/object:Gem::Dependency
48
38
  name: h5_uploader
49
- requirement: !ruby/object:Gem::Requirement
39
+ requirement: &2158633660 !ruby/object:Gem::Requirement
50
40
  none: false
51
41
  requirements:
52
42
  - - ! '>='
@@ -54,15 +44,10 @@ dependencies:
54
44
  version: '0'
55
45
  type: :runtime
56
46
  prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ! '>='
61
- - !ruby/object:Gem::Version
62
- version: '0'
47
+ version_requirements: *2158633660
63
48
  - !ruby/object:Gem::Dependency
64
49
  name: ci_reporter
65
- requirement: !ruby/object:Gem::Requirement
50
+ requirement: &2158630960 !ruby/object:Gem::Requirement
66
51
  none: false
67
52
  requirements:
68
53
  - - ! '>='
@@ -70,15 +55,10 @@ dependencies:
70
55
  version: '0'
71
56
  type: :development
72
57
  prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ! '>='
77
- - !ruby/object:Gem::Version
78
- version: '0'
58
+ version_requirements: *2158630960
79
59
  - !ruby/object:Gem::Dependency
80
60
  name: sqlite3
81
- requirement: !ruby/object:Gem::Requirement
61
+ requirement: &2158623440 !ruby/object:Gem::Requirement
82
62
  none: false
83
63
  requirements:
84
64
  - - ! '>='
@@ -86,15 +66,10 @@ dependencies:
86
66
  version: '0'
87
67
  type: :development
88
68
  prerelease: false
89
- version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
- requirements:
92
- - - ! '>='
93
- - !ruby/object:Gem::Version
94
- version: '0'
69
+ version_requirements: *2158623440
95
70
  - !ruby/object:Gem::Dependency
96
71
  name: rspec-rails
97
- requirement: !ruby/object:Gem::Requirement
72
+ requirement: &2158621240 !ruby/object:Gem::Requirement
98
73
  none: false
99
74
  requirements:
100
75
  - - ! '>='
@@ -102,15 +77,10 @@ dependencies:
102
77
  version: '0'
103
78
  type: :development
104
79
  prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
80
+ version_requirements: *2158621240
111
81
  - !ruby/object:Gem::Dependency
112
82
  name: paperclip
113
- requirement: !ruby/object:Gem::Requirement
83
+ requirement: &2158618140 !ruby/object:Gem::Requirement
114
84
  none: false
115
85
  requirements:
116
86
  - - ! '>='
@@ -118,15 +88,10 @@ dependencies:
118
88
  version: '0'
119
89
  type: :development
120
90
  prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
- requirements:
124
- - - ! '>='
125
- - !ruby/object:Gem::Version
126
- version: '0'
91
+ version_requirements: *2158618140
127
92
  - !ruby/object:Gem::Dependency
128
93
  name: shoulda-matchers
129
- requirement: !ruby/object:Gem::Requirement
94
+ requirement: &2158617380 !ruby/object:Gem::Requirement
130
95
  none: false
131
96
  requirements:
132
97
  - - ! '>='
@@ -134,12 +99,7 @@ dependencies:
134
99
  version: '0'
135
100
  type: :development
136
101
  prerelease: false
137
- version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
- requirements:
140
- - - ! '>='
141
- - !ruby/object:Gem::Version
142
- version: '0'
102
+ version_requirements: *2158617380
143
103
  description: Manage multiple assets related to a specific model
144
104
  email:
145
105
  - acampolonghi@gmail.com
@@ -165,6 +125,7 @@ files:
165
125
  - lib/acts_as_assets/form_helper.rb
166
126
  - lib/acts_as_assets/matchers/rspec.rb
167
127
  - lib/acts_as_assets/paperclip/interpolations.rb
128
+ - lib/acts_as_assets/routes.rb
168
129
  - lib/acts_as_assets/unique_asset.rb
169
130
  - lib/acts_as_assets/version.rb
170
131
  - lib/acts_as_assets.rb
@@ -194,10 +155,8 @@ files:
194
155
  - spec/dummy/config/locales/en.yml
195
156
  - spec/dummy/config/routes.rb
196
157
  - spec/dummy/config.ru
197
- - spec/dummy/db/development.sqlite3
198
158
  - spec/dummy/db/schema.rb
199
159
  - spec/dummy/db/test.sqlite3
200
- - spec/dummy/log/development.log
201
160
  - spec/dummy/log/test.log
202
161
  - spec/dummy/public/404.html
203
162
  - spec/dummy/public/422.html
@@ -231,7 +190,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
190
  version: '0'
232
191
  segments:
233
192
  - 0
234
- hash: 1210599779646501755
193
+ hash: -2669011953054169980
235
194
  required_rubygems_version: !ruby/object:Gem::Requirement
236
195
  none: false
237
196
  requirements:
@@ -240,10 +199,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
199
  version: '0'
241
200
  segments:
242
201
  - 0
243
- hash: 1210599779646501755
202
+ hash: -2669011953054169980
244
203
  requirements: []
245
204
  rubyforge_project:
246
- rubygems_version: 1.8.24
205
+ rubygems_version: 1.8.11
247
206
  signing_key:
248
207
  specification_version: 3
249
208
  summary: Assets management
@@ -271,10 +230,8 @@ test_files:
271
230
  - spec/dummy/config/locales/en.yml
272
231
  - spec/dummy/config/routes.rb
273
232
  - spec/dummy/config.ru
274
- - spec/dummy/db/development.sqlite3
275
233
  - spec/dummy/db/schema.rb
276
234
  - spec/dummy/db/test.sqlite3
277
- - spec/dummy/log/development.log
278
235
  - spec/dummy/log/test.log
279
236
  - spec/dummy/public/404.html
280
237
  - spec/dummy/public/422.html
File without changes
@@ -1,2 +0,0 @@
1
- Connecting to database specified by database.yml
2
- Connecting to database specified by database.yml