godmin-uploads 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +17 -0
- data/CHANGELOG.md +4 -0
- data/app/assets/javascripts/godmin-uploads/index.js +4 -2
- data/app/assets/stylesheets/godmin-uploads.css.scss +4 -0
- data/app/views/godmin/uploads/_uploader.html.erb +4 -3
- data/config/locales/en.yml +7 -0
- data/config/locales/sv.yml +7 -0
- data/godmin-uploads.gemspec +1 -1
- data/lib/godmin/uploads/version.rb +1 -1
- metadata +26 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adeac71675a578bacd3f774193af88bc3656afac
|
4
|
+
data.tar.gz: 93153bec0a5e9896a49efb88d17ddb637b98f97e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faccc9d2eec676636f08676730e96d49a29b097c43981092d2d98f081f150596d721e43d044350a60a408193b322750798df8476446489c1a030bb6fdf2154f8
|
7
|
+
data.tar.gz: e8e89f66c66ea19d924f87468f18f67f4e2f0a783f185a043980b64a60dca8de42449e149219b6749927cc7fe4a24d08387abc7cb9872221582f233ee6f53ded
|
data/.rubocop.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -34,10 +34,12 @@
|
|
34
34
|
var $destroyField = $(this).parents(".godmin-upload").find(".godmin-upload-destroy-field");
|
35
35
|
|
36
36
|
if ($destroyField.val() === "") {
|
37
|
-
$(this).find("
|
37
|
+
$(this).find(".godmin-upload-destroy-label").hide();
|
38
|
+
$(this).find(".godmin-upload-undo-destroy-label").show();
|
38
39
|
$destroyField.val("true");
|
39
40
|
} else {
|
40
|
-
$(this).find("
|
41
|
+
$(this).find(".godmin-upload-destroy-label").show();
|
42
|
+
$(this).find(".godmin-upload-undo-destroy-label").hide();
|
41
43
|
$destroyField.val("");
|
42
44
|
}
|
43
45
|
});
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<%= f.label attachment do %>
|
11
11
|
<span class="btn btn-default godmin-upload-upload-link">
|
12
12
|
<i class="glyphicon glyphicon-arrow-up"></i>
|
13
|
-
<span
|
13
|
+
<span><%= t("godmin.uploads.upload_file") %></span>
|
14
14
|
</span>
|
15
15
|
<% end %>
|
16
16
|
<%= f.attachment_field attachment, direct: true, class: "godmin-upload-file-field" %>
|
@@ -18,11 +18,12 @@
|
|
18
18
|
<span class="godmin-upload-buttons <%= "hidden" unless f.object.send(attachment) %>">
|
19
19
|
<%= link_to attachment_url(f.object, attachment), class: "btn btn-default godmin-upload-download-link" do %>
|
20
20
|
<i class="glyphicon glyphicon-arrow-down"></i>
|
21
|
-
<span
|
21
|
+
<span><%= t("godmin.uploads.download_file") %></span>
|
22
22
|
<% end %>
|
23
23
|
<%= link_to "#", class: "btn btn-danger godmin-upload-destroy-link" do %>
|
24
24
|
<i class="glyphicon glyphicon-remove"></i>
|
25
|
-
<span
|
25
|
+
<span class="godmin-upload-destroy-label"><%= t("godmin.uploads.destroy_file") %></span>
|
26
|
+
<span class="godmin-upload-undo-destroy-label"><%= t("godmin.uploads.undo_destroy_file") %></span>
|
26
27
|
<% end %>
|
27
28
|
</span>
|
28
29
|
<div class="godmin-upload-progress progress">
|
data/godmin-uploads.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
20
20
|
gem.require_paths = ["lib"]
|
21
21
|
|
22
|
-
gem.add_dependency "godmin", "~> 0.9.7"
|
22
|
+
gem.add_dependency "godmin", "~> 0.9", ">= 0.9.7"
|
23
23
|
gem.add_dependency "refile", "~> 0.5.3"
|
24
24
|
gem.add_dependency "mini_magick", "~> 4.0.1"
|
25
25
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: godmin-uploads
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Ljungblad
|
@@ -9,76 +9,82 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
12
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: godmin
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0.9'
|
21
|
+
- - ">="
|
19
22
|
- !ruby/object:Gem::Version
|
20
23
|
version: 0.9.7
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- - ~>
|
28
|
+
- - "~>"
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0.9'
|
31
|
+
- - ">="
|
26
32
|
- !ruby/object:Gem::Version
|
27
33
|
version: 0.9.7
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: refile
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
31
37
|
requirements:
|
32
|
-
- - ~>
|
38
|
+
- - "~>"
|
33
39
|
- !ruby/object:Gem::Version
|
34
40
|
version: 0.5.3
|
35
41
|
type: :runtime
|
36
42
|
prerelease: false
|
37
43
|
version_requirements: !ruby/object:Gem::Requirement
|
38
44
|
requirements:
|
39
|
-
- - ~>
|
45
|
+
- - "~>"
|
40
46
|
- !ruby/object:Gem::Version
|
41
47
|
version: 0.5.3
|
42
48
|
- !ruby/object:Gem::Dependency
|
43
49
|
name: mini_magick
|
44
50
|
requirement: !ruby/object:Gem::Requirement
|
45
51
|
requirements:
|
46
|
-
- - ~>
|
52
|
+
- - "~>"
|
47
53
|
- !ruby/object:Gem::Version
|
48
54
|
version: 4.0.1
|
49
55
|
type: :runtime
|
50
56
|
prerelease: false
|
51
57
|
version_requirements: !ruby/object:Gem::Requirement
|
52
58
|
requirements:
|
53
|
-
- - ~>
|
59
|
+
- - "~>"
|
54
60
|
- !ruby/object:Gem::Version
|
55
61
|
version: 4.0.1
|
56
62
|
- !ruby/object:Gem::Dependency
|
57
63
|
name: bundler
|
58
64
|
requirement: !ruby/object:Gem::Requirement
|
59
65
|
requirements:
|
60
|
-
- - ~>
|
66
|
+
- - "~>"
|
61
67
|
- !ruby/object:Gem::Version
|
62
68
|
version: '1.7'
|
63
69
|
type: :development
|
64
70
|
prerelease: false
|
65
71
|
version_requirements: !ruby/object:Gem::Requirement
|
66
72
|
requirements:
|
67
|
-
- - ~>
|
73
|
+
- - "~>"
|
68
74
|
- !ruby/object:Gem::Version
|
69
75
|
version: '1.7'
|
70
76
|
- !ruby/object:Gem::Dependency
|
71
77
|
name: rake
|
72
78
|
requirement: !ruby/object:Gem::Requirement
|
73
79
|
requirements:
|
74
|
-
- - ~>
|
80
|
+
- - "~>"
|
75
81
|
- !ruby/object:Gem::Version
|
76
82
|
version: '10.0'
|
77
83
|
type: :development
|
78
84
|
prerelease: false
|
79
85
|
version_requirements: !ruby/object:Gem::Requirement
|
80
86
|
requirements:
|
81
|
-
- - ~>
|
87
|
+
- - "~>"
|
82
88
|
- !ruby/object:Gem::Version
|
83
89
|
version: '10.0'
|
84
90
|
description: File uploads for the Godmin admin engine for Rails 4+
|
@@ -88,7 +94,8 @@ executables: []
|
|
88
94
|
extensions: []
|
89
95
|
extra_rdoc_files: []
|
90
96
|
files:
|
91
|
-
- .gitignore
|
97
|
+
- ".gitignore"
|
98
|
+
- ".rubocop.yml"
|
92
99
|
- CHANGELOG.md
|
93
100
|
- Gemfile
|
94
101
|
- MIT-LICENSE
|
@@ -97,6 +104,8 @@ files:
|
|
97
104
|
- app/assets/javascripts/godmin-uploads/index.js
|
98
105
|
- app/assets/stylesheets/godmin-uploads.css.scss
|
99
106
|
- app/views/godmin/uploads/_uploader.html.erb
|
107
|
+
- config/locales/en.yml
|
108
|
+
- config/locales/sv.yml
|
100
109
|
- godmin-uploads.gemspec
|
101
110
|
- lib/godmin/uploads.rb
|
102
111
|
- lib/godmin/uploads/engine.rb
|
@@ -152,17 +161,17 @@ require_paths:
|
|
152
161
|
- lib
|
153
162
|
required_ruby_version: !ruby/object:Gem::Requirement
|
154
163
|
requirements:
|
155
|
-
- -
|
164
|
+
- - ">="
|
156
165
|
- !ruby/object:Gem::Version
|
157
166
|
version: '0'
|
158
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
168
|
requirements:
|
160
|
-
- -
|
169
|
+
- - ">="
|
161
170
|
- !ruby/object:Gem::Version
|
162
171
|
version: '0'
|
163
172
|
requirements: []
|
164
173
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.
|
174
|
+
rubygems_version: 2.2.2
|
166
175
|
signing_key:
|
167
176
|
specification_version: 4
|
168
177
|
summary: File uploads for the Godmin admin engine for Rails 4+
|
@@ -207,3 +216,4 @@ test_files:
|
|
207
216
|
- test/dummy/public/500.html
|
208
217
|
- test/dummy/public/favicon.ico
|
209
218
|
- test/test_helper.rb
|
219
|
+
has_rdoc:
|