paperclip-globalize3 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -5
- data/Appraisals +7 -7
- data/README.md +6 -6
- data/gemfiles/{rails_4.0_paperclip_4_1.gemfile → rails_4.0_pc_4_1.gemfile} +0 -0
- data/gemfiles/{rails_4.0_paperclip_4_2.gemfile → rails_4.0_pc_4_2.gemfile} +0 -0
- data/gemfiles/{rails_4.1_paperclip_4_1.gemfile → rails_4.2_pc_4_1.gemfile} +1 -1
- data/gemfiles/{rails_4.1_paperclip_4_2.gemfile → rails_4.2_pc_4_2.gemfile} +1 -1
- data/lib/paperclip/globalize3/version.rb +1 -1
- data/paperclip-globalize3.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 238144293e6db9400daa06d2583ae2c422b36e9c
|
4
|
+
data.tar.gz: c31582160082edf3930608226a53a6685a00bbf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c62fef3376a6f4937fe9107ebe179079eee5b6681570b7d5ffea9e1d5c4c54af98ae6388a556c457167a5d951e2097a5ad4cc1a7142628680d92847721f5b31
|
7
|
+
data.tar.gz: 5429e2c7e40044a5f7508bef1f4530276296272cbb1bb53ce28fb228b36c1b89fa3171d73a699b62f797cc6d089a6e2b56e8bb02f06281a796cd68eaa50cfb43
|
data/.travis.yml
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 1.9.3
|
4
3
|
- 2.0.0
|
5
4
|
- 2.1.5
|
5
|
+
- 2.2.0
|
6
|
+
before_install: gem install bundler -v '~> 1.7.13'
|
6
7
|
script: "bundle exec rake spec"
|
7
8
|
gemfile:
|
8
|
-
- gemfiles/rails_4.
|
9
|
-
- gemfiles/rails_4.
|
10
|
-
- gemfiles/rails_4.
|
11
|
-
- gemfiles/rails_4.
|
9
|
+
- gemfiles/rails_4.0_pc_4_1.gemfile
|
10
|
+
- gemfiles/rails_4.0_pc_4_2.gemfile
|
11
|
+
- gemfiles/rails_4.2_pc_4_1.gemfile
|
12
|
+
- gemfiles/rails_4.2_pc_4_2.gemfile
|
data/Appraisals
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
# Rails 4.0
|
2
2
|
|
3
|
-
appraise 'rails-4.0-
|
3
|
+
appraise 'rails-4.0-pc-4-1' do
|
4
4
|
gem 'rails', '~> 4.0.0'
|
5
5
|
gem 'paperclip', '~> 4.1.0'
|
6
6
|
end
|
7
7
|
|
8
|
-
appraise 'rails-4.0-
|
8
|
+
appraise 'rails-4.0-pc-4-2' do
|
9
9
|
gem 'rails', '~> 4.0.0'
|
10
10
|
gem 'paperclip', '~> 4.2.0'
|
11
11
|
end
|
12
12
|
|
13
|
-
# Rails 4.
|
13
|
+
# Rails 4.2
|
14
14
|
|
15
|
-
appraise 'rails-4.
|
16
|
-
gem 'rails', '~> 4.
|
15
|
+
appraise 'rails-4.2-pc-4-1' do
|
16
|
+
gem 'rails', '~> 4.2.0'
|
17
17
|
gem 'paperclip', '~> 4.1.0'
|
18
18
|
end
|
19
19
|
|
20
|
-
appraise 'rails-4.
|
21
|
-
gem 'rails', '~> 4.
|
20
|
+
appraise 'rails-4.2-pc-4-2' do
|
21
|
+
gem 'rails', '~> 4.2.0'
|
22
22
|
gem 'paperclip', '~> 4.2.0'
|
23
23
|
end
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/emjot/paperclip-globalize3.png?branch=master)](https://travis-ci.org/emjot/paperclip-globalize3)
|
4
4
|
|
5
|
-
Use locale-specific attachments in your Rails app with [paperclip](https://github.com/thoughtbot/paperclip) and
|
5
|
+
Use locale-specific attachments in your Rails app with [paperclip](https://github.com/thoughtbot/paperclip) and
|
6
6
|
[globalize](https://github.com/globalize/globalize).
|
7
7
|
|
8
8
|
You can transparently read and write your attachments in context of the current locale. E.g. `my_model.my_attachment` returns a different attachment when your current locale is 'en' compared to when your current locale is 'de'.
|
@@ -11,7 +11,7 @@ Note that this implementation patches some methods in the `Paperclip::Attachment
|
|
11
11
|
|
12
12
|
## Compatibility
|
13
13
|
|
14
|
-
Currently, paperclip 4.1/4.2 and globalize 4.0 are supported.
|
14
|
+
Currently, paperclip 4.1/4.2 and globalize 4.0/5.0 are supported.
|
15
15
|
|
16
16
|
For paperclip 3.x with globalize3 support please use the 1.x versions of this gem.
|
17
17
|
|
@@ -44,7 +44,7 @@ Example:
|
|
44
44
|
class User < ActiveRecord::Base
|
45
45
|
has_attached_file :avatar,
|
46
46
|
:url => "/system/:attachment/:id/:locale/:style-:fingerprint.:extension"
|
47
|
-
validates_attachment_content_type :avatar, :content_type => /\Aimage\/.*\Z/
|
47
|
+
validates_attachment_content_type :avatar, :content_type => /\Aimage\/.*\Z/
|
48
48
|
translates :avatar_file_name, :avatar_file_size, :avatar_created_at, :avatar_updated_at, :avatar_fingerprint
|
49
49
|
end
|
50
50
|
|
@@ -56,10 +56,10 @@ To setup tests, make sure all the ruby versions defined in `.travis.yml` are ins
|
|
56
56
|
|
57
57
|
Run tests via:
|
58
58
|
|
59
|
-
* `rake wwtd` for all combinations of ruby/rails/paperclip versions (NOTE that when using `rake wwtd:parallel` there
|
60
|
-
might be some flickering test failures - needs to be investigated)
|
59
|
+
* `rake wwtd` for all combinations of ruby/rails/paperclip versions (NOTE that when using `rake wwtd:parallel` there
|
60
|
+
might be some flickering test failures - needs to be investigated)
|
61
61
|
* `rake wwtd:local` for all rails/paperclip versions, but only on current ruby
|
62
|
-
* `rake spec` (or e.g. `bundle exec rspec spec --format documentation`) with main Gemfile and only on current ruby
|
62
|
+
* `rake spec` (or e.g. `bundle exec rspec spec --format documentation`) with main Gemfile and only on current ruby
|
63
63
|
|
64
64
|
### Contributing
|
65
65
|
|
File without changes
|
File without changes
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "paperclip", "~> 4.1"
|
22
|
-
spec.add_runtime_dependency "globalize", "
|
22
|
+
spec.add_runtime_dependency "globalize", ">= 4.0.0"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
25
25
|
spec.add_development_dependency "appraisal", "~> 0.5.1"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip-globalize3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maximilian Herold
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paperclip
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: globalize
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 4.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 4.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -143,10 +143,10 @@ files:
|
|
143
143
|
- LICENSE.txt
|
144
144
|
- README.md
|
145
145
|
- Rakefile
|
146
|
-
- gemfiles/rails_4.
|
147
|
-
- gemfiles/rails_4.
|
148
|
-
- gemfiles/rails_4.
|
149
|
-
- gemfiles/rails_4.
|
146
|
+
- gemfiles/rails_4.0_pc_4_1.gemfile
|
147
|
+
- gemfiles/rails_4.0_pc_4_2.gemfile
|
148
|
+
- gemfiles/rails_4.2_pc_4_1.gemfile
|
149
|
+
- gemfiles/rails_4.2_pc_4_2.gemfile
|
150
150
|
- lib/paperclip-globalize3.rb
|
151
151
|
- lib/paperclip/globalize3/attachment.rb
|
152
152
|
- lib/paperclip/globalize3/gem_helper.rb
|