refinerycms-resources 3.0.6 → 4.0.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
  SHA1:
3
- metadata.gz: 4b1dc280a4024b6534fade2a96616fb39a39d851
4
- data.tar.gz: 13c4810f61e52e77c3e1055617cf97853e72227a
3
+ metadata.gz: 93de37d6af981444633f51ddf006114b8966b06a
4
+ data.tar.gz: 8a2692ac91cdf01c47c557cc10443170ae592f86
5
5
  SHA512:
6
- metadata.gz: 6ed1592894b4fd412892f3884c6a4dba1bca1ef82b37066c70d0cb3e2a759d2aa7670380419b6b43b81daf23aec7999e8ad9554f6c849c9722f59161b96aafae
7
- data.tar.gz: 884152b96e7efd9883f85e1566099efd07fc089d25017cbd57596763587779f6a26387cfb9b67174859d6c104417e5c973a4ae3cd70f2530fac397cb3418b4cf
6
+ metadata.gz: 799470fe26fc5c8e92a993d465f1e2ca59536c885dfe3623de84b2f1228e13dd273ebe4606a315ea61a9076558fc024f69c97273f4509f160d5fb9cb90251471
7
+ data.tar.gz: 0e4053af58de60e27a8d19a8bc09dbf7c27d4a85d8ef1e0251cb1efcfeeb2ea29ebf7ea3371f4365707ce177dadfde4be6a1a184c6ac86677c3205eef3cee098
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -6,6 +6,8 @@ module Refinery
6
6
 
7
7
  translates :resource_title
8
8
 
9
+ attribute :resource_title
10
+
9
11
  dragonfly_accessor :file, :app => :refinery_resources
10
12
 
11
13
  validates :file, :presence => true
@@ -48,7 +50,7 @@ module Refinery
48
50
 
49
51
  if params.present? and params[:file].is_a?(Array)
50
52
  params[:file].each do |resource|
51
- resources << create({:file => resource}.merge(params.except(:file)))
53
+ resources << create({:file => resource}.merge(params.except(:file).to_h))
52
54
  end
53
55
  else
54
56
  resources << create(params)
@@ -1,4 +1,4 @@
1
- class CreateRefinerycmsResourcesSchema < ActiveRecord::Migration
1
+ class CreateRefinerycmsResourcesSchema < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :refinery_resources do |t|
4
4
  t.string :file_mime_type
@@ -1,4 +1,4 @@
1
- class AddTranslatedTitleToRefineryResources < ActiveRecord::Migration
1
+ class AddTranslatedTitleToRefineryResources < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  Refinery::Resource.create_translation_table!({
4
4
  resource_title: :string
@@ -22,14 +22,6 @@ module Refinery
22
22
  # We have to configure these settings after Rails is available.
23
23
  # But a non-nil custom option can still be provided
24
24
  class << self
25
- def dragonfly_url_format
26
- if config.dragonfly_url_format.include?(':format')
27
- config.dragonfly_url_format.gsub!(':format', ':ext')
28
- Refinery.deprecate(':format option in Refinery::Resources dragonfly_url_format config', when: '3.1', replacement: ':ext option')
29
- end
30
- config.dragonfly_url_format
31
- end
32
-
33
25
  def datastore_root_path
34
26
  config.datastore_root_path || (Rails.root.join('public', 'system', 'refinery', 'resources').to_s if Rails.root)
35
27
  end
@@ -20,8 +20,9 @@ Gem::Specification.new do |s|
20
20
  s.test_files = `git ls-files -- spec/*`.split("\n")
21
21
 
22
22
  s.add_dependency 'acts_as_indexed', '~> 0.8.0'
23
- s.add_dependency 'dragonfly', '~> 1.1.0'
24
- s.add_dependency 'globalize', ['>= 4.0.0', '< 5.2']
23
+ s.add_dependency 'dragonfly', '~> 1.1', '>= 1.1.0'
24
+ s.add_dependency 'globalize', ['>= 5.1.0.beta1', '< 5.2']
25
+ s.add_dependency 'activemodel-serializers-xml', '~> 1.0', '>= 1.0.1'
25
26
  s.add_dependency 'refinerycms-core', version
26
27
 
27
28
  s.required_ruby_version = Refinery::Version.required_ruby_version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.6
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Arndt
@@ -32,7 +32,7 @@ cert_chain:
32
32
  jOQmH9VbgbfUrXYM1YOKdlwW5sPR1f4PKLDlvEE+bppIUgKOgLOIv3i7KwrGvFOq
33
33
  5r7Wz/HY31SM47mkK21saPJG4NvUFEycf0wlpzP657Pl9aVo47aKKbxX
34
34
  -----END CERTIFICATE-----
35
- date: 2017-10-02 00:00:00.000000000 Z
35
+ date: 2017-09-29 00:00:00.000000000 Z
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: acts_as_indexed
@@ -53,6 +53,9 @@ dependencies:
53
53
  requirement: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '1.1'
58
+ - - ">="
56
59
  - !ruby/object:Gem::Version
57
60
  version: 1.1.0
58
61
  type: :runtime
@@ -60,6 +63,9 @@ dependencies:
60
63
  version_requirements: !ruby/object:Gem::Requirement
61
64
  requirements:
62
65
  - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.1'
68
+ - - ">="
63
69
  - !ruby/object:Gem::Version
64
70
  version: 1.1.0
65
71
  - !ruby/object:Gem::Dependency
@@ -68,7 +74,7 @@ dependencies:
68
74
  requirements:
69
75
  - - ">="
70
76
  - !ruby/object:Gem::Version
71
- version: 4.0.0
77
+ version: 5.1.0.beta1
72
78
  - - "<"
73
79
  - !ruby/object:Gem::Version
74
80
  version: '5.2'
@@ -78,24 +84,44 @@ dependencies:
78
84
  requirements:
79
85
  - - ">="
80
86
  - !ruby/object:Gem::Version
81
- version: 4.0.0
87
+ version: 5.1.0.beta1
82
88
  - - "<"
83
89
  - !ruby/object:Gem::Version
84
90
  version: '5.2'
91
+ - !ruby/object:Gem::Dependency
92
+ name: activemodel-serializers-xml
93
+ requirement: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '1.0'
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 1.0.1
101
+ type: :runtime
102
+ prerelease: false
103
+ version_requirements: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - "~>"
106
+ - !ruby/object:Gem::Version
107
+ version: '1.0'
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 1.0.1
85
111
  - !ruby/object:Gem::Dependency
86
112
  name: refinerycms-core
87
113
  requirement: !ruby/object:Gem::Requirement
88
114
  requirements:
89
115
  - - '='
90
116
  - !ruby/object:Gem::Version
91
- version: 3.0.6
117
+ version: 4.0.0
92
118
  type: :runtime
93
119
  prerelease: false
94
120
  version_requirements: !ruby/object:Gem::Requirement
95
121
  requirements:
96
122
  - - '='
97
123
  - !ruby/object:Gem::Version
98
- version: 3.0.6
124
+ version: 4.0.0
99
125
  description: Handles all file upload and processing functionality in Refinery CMS.
100
126
  email: refinerycms@p.arndt.io
101
127
  executables: []
@@ -180,7 +206,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
206
  requirements:
181
207
  - - ">="
182
208
  - !ruby/object:Gem::Version
183
- version: 2.0.0
209
+ version: 2.2.2
184
210
  required_rubygems_version: !ruby/object:Gem::Requirement
185
211
  requirements:
186
212
  - - ">="
metadata.gz.sig CHANGED
Binary file