paperclip-globalize3 4.1.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a312c8a29bb70ad1e5b28debe833930d1351768fc9fd2c8f6aadc4730ecddb0
4
- data.tar.gz: 03ba4da0e929eea496f0531f5d1340bc5b200ce3457d1d41792a8d81f6f5137e
3
+ metadata.gz: cdf7ad505301920e1e094b1a85b3dbf36a29d0f029e2c6afdbc0d732064cf205
4
+ data.tar.gz: 70f446b422aa3b8d468a121ca1e30536f163e189520520d19934eb2524c5970c
5
5
  SHA512:
6
- metadata.gz: db328d726c93834f36bdc636285d3b17b47e6b467bd621686129a0e58d19f43e7178469e08b26895fafb3afc9caadcbbb1629693318015d95fdd5f4a985785b9
7
- data.tar.gz: 0447cf60ca4a80ae1288679cd5d0a7c81109729cc1e893fb177b79b4f892786cb9f2dd5c20bc415de155d91ee7616994b19a6a1bcb18b11e4c0743195b56a1ec
6
+ metadata.gz: 3e31e5bff450b220474df88baf2a23ff5c29977832f63508d5900a3ff1effeead3d369cabff9a80b888b4cbeaaa928a8811e3b56af114a5505e43f114bc07ddc
7
+ data.tar.gz: 63a0a383da787acc13ab4851113f1034e8724eb031f486fd45858b9f9d49eaf0132f4024f893e898823fc5f70960661da3979febb8bc8225157b36cf6433c448
@@ -0,0 +1,54 @@
1
+ # NOTE: when changing this file, please adapt .travis.yml accordingly
2
+
3
+ name: Tests
4
+
5
+ on:
6
+ push:
7
+ branches: [master]
8
+ paths-ignore:
9
+ - '**.md'
10
+
11
+ pull_request:
12
+ branches: [master]
13
+ paths-ignore:
14
+ - '**.md'
15
+
16
+ jobs:
17
+ test:
18
+ runs-on: ubuntu-latest
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ ruby:
23
+ - 2.4.9
24
+ - 2.5.9
25
+ - 2.6.9
26
+ gemfile:
27
+ - rails_4.2_pc_5_3
28
+ - rails_4.2_pc_6_0
29
+ - rails_4.2_pc_6_1
30
+ - rails_5.0_pc_5_3
31
+ - rails_5.0_pc_6_0
32
+ - rails_5.0_pc_6_1
33
+ - rails_5.1_pc_5_3
34
+ - rails_5.1_pc_6_0
35
+ - rails_5.1_pc_6_1
36
+ - rails_5.2_pc_6_1
37
+ - rails_6.0_pc_6_1
38
+ - rails_6.1_pc_6_1
39
+ exclude:
40
+ - ruby: 2.4.9
41
+ gemfile: rails_6.0_pc_6_1
42
+ - ruby: 2.4.9
43
+ gemfile: rails_6.1_pc_6_1
44
+ env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
45
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
46
+ steps:
47
+ - uses: actions/checkout@v2
48
+ - name: Set up Ruby
49
+ uses: ruby/setup-ruby@v1
50
+ with:
51
+ ruby-version: ${{ matrix.ruby }}
52
+ bundler-cache: true
53
+ bundler: 1.17
54
+ - run: bundle exec rake spec
data/.travis.yml CHANGED
@@ -1,8 +1,10 @@
1
+ # NOTE: when changing this file, please adapt .github/workflows/test.yml accordingly
2
+
1
3
  language: ruby
2
4
  rvm:
3
5
  - 2.4.9
4
- - 2.5.7
5
- - 2.6.5
6
+ - 2.5.9
7
+ - 2.6.9
6
8
  before_install:
7
9
  - gem uninstall -v '>= 2.0.1' -i $(rvm gemdir)@global -ax bundler || true
8
10
  - gem install bundler -v '1.16.6'
@@ -20,8 +22,11 @@ gemfile:
20
22
  - gemfiles/rails_5.1_pc_6_1.gemfile
21
23
  - gemfiles/rails_5.2_pc_6_1.gemfile
22
24
  - gemfiles/rails_6.0_pc_6_1.gemfile
25
+ - gemfiles/rails_6.1_pc_6_1.gemfile
23
26
 
24
27
  jobs:
25
28
  exclude:
26
29
  - rvm: 2.4.9
27
30
  gemfile: gemfiles/rails_6.0_pc_6_1.gemfile
31
+ - rvm: 2.4.9
32
+ gemfile: gemfiles/rails_6.1_pc_6_1.gemfile
data/Appraisals CHANGED
@@ -50,3 +50,17 @@ appraise 'rails-5.1-pc-6-1' do
50
50
  gem 'rails', '~> 5.1.0'
51
51
  gem 'paperclip', '~> 6.1.0'
52
52
  end
53
+
54
+ # Rails 6.0
55
+
56
+ appraise 'rails-6.0-pc-6-1' do
57
+ gem 'rails', '~> 6.0.4'
58
+ gem 'paperclip', '~> 6.1.0'
59
+ end
60
+
61
+ # Rails 6.1
62
+
63
+ appraise 'rails-6.1-pc-6-1' do
64
+ gem 'rails', '~> 6.1.4'
65
+ gem 'paperclip', '~> 6.1.0'
66
+ end
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@
5
5
  * Enhancements
6
6
  * (none)
7
7
 
8
+ # 4.2.0 (2021-12-03)
9
+
10
+ * Enhancements
11
+ * Allow rails 6.1 ([#21](https://github.com/emjot/paperclip-globalize3/pull/21))
12
+
8
13
  # 4.1.0 (2019-11-04)
9
14
 
10
15
  * Bugfixes
data/README.md CHANGED
@@ -1,6 +1,4 @@
1
- # Paperclip::Globalize3
2
-
3
- [![Build Status](https://travis-ci.org/emjot/paperclip-globalize3.png?branch=master)](https://travis-ci.org/emjot/paperclip-globalize3)
1
+ # Paperclip::Globalize3 [![Tests](https://github.com/emjot/paperclip-globalize3/actions/workflows/test.yml/badge.svg)](https://github.com/emjot/paperclip-globalize3/actions/workflows/test.yml)
4
2
 
5
3
  Use locale-specific attachments in your Rails app with [paperclip](https://github.com/thoughtbot/paperclip) and
6
4
  [globalize](https://github.com/globalize/globalize).
@@ -12,8 +10,8 @@ Note that this implementation patches some methods in the `Paperclip::Attachment
12
10
  ## Compatibility
13
11
 
14
12
  * paperclip 5.3 - 6.1
15
- * globalize 5.3
16
- * Rails 4.2/5.0/5.1/5.2/6.0
13
+ * globalize 5.3/6.0
14
+ * Rails 4.2/5.0/5.1/5.2/6.0/6.1
17
15
 
18
16
  Rails 5.2 and later are only tested with paperclip 6.1 (see `.travis.yml` for details).
19
17
 
@@ -21,7 +19,7 @@ For support of previous paperclip / globalize / rails versions please refer to t
21
19
 
22
20
  ## Maintainance State of This Gem
23
21
 
24
- Since paperclip itself has been [deprecated](https://thoughtbot.com/blog/closing-the-trombone) and we currently do not use this gem in active projects any more, further development of this gem (e.g. compatibility with Rails 6.1) is unlikely. If anyone wants to submit a PR, we will of course still try to review + merge.
22
+ Since paperclip itself has been [deprecated](https://thoughtbot.com/blog/closing-the-trombone) and we currently do not use this gem in active projects any more, further development of this gem (e.g. compatibility with Rails 7.0) is unlikely. If anyone wants to submit a PR, we will of course still try to review + merge.
25
23
 
26
24
  ## Installation
27
25
 
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file was generated by Appraisal
4
+
5
+ source 'https://rubygems.org'
6
+
7
+ gem 'paperclip', '~> 6.1.0'
8
+ gem 'rails', '~> 6.1.4'
9
+ gem 'sqlite3', '~> 1.4'
10
+
11
+ gemspec path: '../'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Paperclip
4
4
  module Globalize3
5
- VERSION = '4.1.0'
5
+ VERSION = '4.2.0'
6
6
  end
7
7
  end
@@ -22,8 +22,8 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.required_ruby_version = '>= 2.4.6'
24
24
 
25
- spec.add_dependency 'activerecord', ['>= 4.2', '< 6.1']
26
- spec.add_dependency 'globalize', ['>= 5.3.0', '< 5.4.0']
25
+ spec.add_dependency 'activerecord', ['>= 4.2', '< 7.0']
26
+ spec.add_dependency 'globalize', ['>= 5.3.0', '< 6.1']
27
27
  spec.add_dependency 'paperclip', ['>= 5.3', '< 6.2.0']
28
28
 
29
29
  spec.add_development_dependency 'appraisal', '~> 2.2'
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: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maximilian Herold
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-04 00:00:00.000000000 Z
11
+ date: 2021-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '4.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.1'
22
+ version: '7.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '4.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.1'
32
+ version: '7.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: globalize
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 5.3.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: 5.4.0
42
+ version: '6.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: 5.3.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: 5.4.0
52
+ version: '6.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: paperclip
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -223,6 +223,7 @@ executables: []
223
223
  extensions: []
224
224
  extra_rdoc_files: []
225
225
  files:
226
+ - ".github/workflows/test.yml"
226
227
  - ".gitignore"
227
228
  - ".rspec"
228
229
  - ".rubocop.yml"
@@ -246,6 +247,7 @@ files:
246
247
  - gemfiles/rails_5.1_pc_6_1.gemfile
247
248
  - gemfiles/rails_5.2_pc_6_1.gemfile
248
249
  - gemfiles/rails_6.0_pc_6_1.gemfile
250
+ - gemfiles/rails_6.1_pc_6_1.gemfile
249
251
  - lib/paperclip/globalize3.rb
250
252
  - lib/paperclip/globalize3/attachment.rb
251
253
  - lib/paperclip/globalize3/gem_helper.rb
@@ -262,7 +264,7 @@ homepage: https://github.com/emjot/paperclip-globalize3
262
264
  licenses:
263
265
  - MIT
264
266
  metadata: {}
265
- post_install_message:
267
+ post_install_message:
266
268
  rdoc_options: []
267
269
  require_paths:
268
270
  - lib
@@ -277,9 +279,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
277
279
  - !ruby/object:Gem::Version
278
280
  version: '0'
279
281
  requirements: []
280
- rubyforge_project:
281
- rubygems_version: 2.7.10
282
- signing_key:
282
+ rubygems_version: 3.0.9
283
+ signing_key:
283
284
  specification_version: 4
284
285
  summary: locale-specific attachments with paperclip and globalize
285
286
  test_files: