radiant-clipped-extension 1.0.16 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/app/models/asset_type.rb +1 -1
- data/app/views/admin/configuration/_clipped_edit.html.haml +1 -1
- data/lib/radiant-clipped-extension.rb +1 -1
- data/radiant-clipped-extension.gemspec +2 -2
- data/spec/ci/before_script +23 -0
- data/spec/ci/script +2 -0
- metadata +19 -13
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Radiant Clipped Extension
|
2
2
|
|
3
|
+
[![Build Status](https://secure.travis-ci.org/radiant/radiant-clipped-extension.png)](http://travis-ci.org/radiant/radiant-clipped-extension)
|
4
|
+
|
3
5
|
Asset management for Radiant CMS.
|
4
6
|
|
5
7
|
The Clipped extension comes bundled with the Radiant gem but may be updated separately. Only Radiant versions 1.0 or newer are supported.
|
data/app/models/asset_type.rb
CHANGED
@@ -147,7 +147,7 @@ class AssetType
|
|
147
147
|
@configured_styles ||= if style_definitions = Radiant.config["assets.thumbnails.#{name}"]
|
148
148
|
style_definitions.split('|').each_with_object({}) do |definition, styles|
|
149
149
|
name, rule = definition.split(':')
|
150
|
-
styles[name.strip.to_sym] = rule.strip
|
150
|
+
styles[name.strip.to_sym] = rule.to_s.strip
|
151
151
|
end
|
152
152
|
else
|
153
153
|
{}
|
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = RadiantClippedExtension::SUMMARY
|
13
13
|
s.description = RadiantClippedExtension::DESCRIPTION
|
14
14
|
|
15
|
-
s.add_dependency "acts_as_list", "
|
16
|
-
s.add_dependency "paperclip", "~> 2.
|
15
|
+
s.add_dependency "acts_as_list", "0.1.4"
|
16
|
+
s.add_dependency "paperclip", "~> 2.5.0"
|
17
17
|
s.add_dependency "uuidtools", "~> 2.1.2"
|
18
18
|
|
19
19
|
ignores = if File.exist?('.gitignore')
|
@@ -0,0 +1,23 @@
|
|
1
|
+
cd ~
|
2
|
+
git clone git://github.com/radiant/radiant.git
|
3
|
+
cd ~/radiant
|
4
|
+
if [[ $RADIANT_VERSION != "master" ]]
|
5
|
+
then
|
6
|
+
git checkout -b $RADIANT_VERSION $RADIANT_VERSION
|
7
|
+
fi
|
8
|
+
cp -r ~/builds/*/radiant-clipped-extension vendor/extensions/clipped
|
9
|
+
gem install bundler --pre
|
10
|
+
echo 'gem "radiant-clipped-extension", :path => "vendor/extensions/clipped"' >> Gemfile
|
11
|
+
bundle install
|
12
|
+
|
13
|
+
case $DB in
|
14
|
+
"mysql" )
|
15
|
+
mysql -e 'create database radiant_test;'
|
16
|
+
cp spec/ci/database.mysql.yml config/database.yml;;
|
17
|
+
"postgres" )
|
18
|
+
psql -c 'create database radiant_test;' -U postgres
|
19
|
+
cp spec/ci/database.postgresql.yml config/database.yml;;
|
20
|
+
esac
|
21
|
+
|
22
|
+
bundle exec rake db:migrate
|
23
|
+
bundle exec rake db:migrate:extensions
|
data/spec/ci/script
ADDED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-clipped-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 53
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 17
|
10
|
+
version: 1.0.17
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Keith Bingman
|
@@ -19,7 +19,8 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2012-
|
22
|
+
date: 2012-03-06 00:00:00 -06:00
|
23
|
+
default_executable:
|
23
24
|
dependencies:
|
24
25
|
- !ruby/object:Gem::Dependency
|
25
26
|
name: acts_as_list
|
@@ -27,14 +28,14 @@ dependencies:
|
|
27
28
|
requirement: &id001 !ruby/object:Gem::Requirement
|
28
29
|
none: false
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - "="
|
31
32
|
- !ruby/object:Gem::Version
|
32
|
-
hash:
|
33
|
+
hash: 19
|
33
34
|
segments:
|
34
35
|
- 0
|
35
36
|
- 1
|
36
|
-
-
|
37
|
-
version: 0.1.
|
37
|
+
- 4
|
38
|
+
version: 0.1.4
|
38
39
|
type: :runtime
|
39
40
|
version_requirements: *id001
|
40
41
|
- !ruby/object:Gem::Dependency
|
@@ -45,12 +46,12 @@ dependencies:
|
|
45
46
|
requirements:
|
46
47
|
- - ~>
|
47
48
|
- !ruby/object:Gem::Version
|
48
|
-
hash:
|
49
|
+
hash: 27
|
49
50
|
segments:
|
50
51
|
- 2
|
51
|
-
-
|
52
|
-
-
|
53
|
-
version: 2.
|
52
|
+
- 5
|
53
|
+
- 0
|
54
|
+
version: 2.5.0
|
54
55
|
type: :runtime
|
55
56
|
version_requirements: *id002
|
56
57
|
- !ruby/object:Gem::Dependency
|
@@ -184,6 +185,8 @@ files:
|
|
184
185
|
- radiant-clipped-extension.gemspec
|
185
186
|
- Rakefile
|
186
187
|
- README.md
|
188
|
+
- spec/ci/before_script
|
189
|
+
- spec/ci/script
|
187
190
|
- spec/controllers/admin/assets_controller_spec.rb
|
188
191
|
- spec/controllers/admin/page_attachments_controller_spec.rb
|
189
192
|
- spec/datasets/assets_dataset.rb
|
@@ -205,6 +208,7 @@ files:
|
|
205
208
|
- wireframes/edit-page-assets.png
|
206
209
|
- wireframes/edit-page.bmml
|
207
210
|
- wireframes/edit-page.png
|
211
|
+
has_rdoc: true
|
208
212
|
homepage: http://radiantcms.org
|
209
213
|
licenses: []
|
210
214
|
|
@@ -234,11 +238,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
238
|
requirements: []
|
235
239
|
|
236
240
|
rubyforge_project:
|
237
|
-
rubygems_version: 1.
|
241
|
+
rubygems_version: 1.3.9.3
|
238
242
|
signing_key:
|
239
243
|
specification_version: 3
|
240
244
|
summary: Assets for Radiant CMS
|
241
245
|
test_files:
|
246
|
+
- spec/ci/before_script
|
247
|
+
- spec/ci/script
|
242
248
|
- spec/controllers/admin/assets_controller_spec.rb
|
243
249
|
- spec/controllers/admin/page_attachments_controller_spec.rb
|
244
250
|
- spec/datasets/assets_dataset.rb
|