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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea99e0e7a854447ea40826cc723b9ae4b55c449e
4
- data.tar.gz: 94a39c25dbc567193d6ab3562ee0cae2bc4c2c3d
3
+ metadata.gz: adeac71675a578bacd3f774193af88bc3656afac
4
+ data.tar.gz: 93153bec0a5e9896a49efb88d17ddb637b98f97e
5
5
  SHA512:
6
- metadata.gz: 0e769539b7679abaff62036cb569419dec57154756d19753d409c2068f30b26a9f1e669346775dc4d7284e42a0d9857e82070660f9d70743bd56c715de59b654
7
- data.tar.gz: 9a0afd6a55561aca3e4129881a07d13c07a8452064c843bc3e76a3ac59bd71281e1a0e5578a7ac1041be7cf160ab4b14cbc7c39ff421907c320a7a660fe32449
6
+ metadata.gz: faccc9d2eec676636f08676730e96d49a29b097c43981092d2d98f081f150596d721e43d044350a60a408193b322750798df8476446489c1a030bb6fdf2154f8
7
+ data.tar.gz: e8e89f66c66ea19d924f87468f18f67f4e2f0a783f185a043980b64a60dca8de42449e149219b6749927cc7fe4a24d08387abc7cb9872221582f233ee6f53ded
data/.rubocop.yml ADDED
@@ -0,0 +1,17 @@
1
+ AllCops:
2
+ RunRailsCops: true
3
+
4
+ Documentation:
5
+ Enabled: false
6
+
7
+ Metrics/LineLength:
8
+ Max: 120
9
+
10
+ Metrics/ClassLength:
11
+ Max: 300
12
+
13
+ Metrics/MethodLength:
14
+ Max: 25
15
+
16
+ Style/StringLiterals:
17
+ EnforcedStyle: double_quotes
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 0.9.3 - 2015-02-11
4
+ Features
5
+ - Internationalization support
6
+
3
7
  ### 0.9.2 - 2015-02-05
4
8
  Features
5
9
  - Refile version 0.5.3
@@ -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("span").html("Undestroy file");
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("span").html("Destroy file");
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
  });
@@ -6,4 +6,8 @@
6
6
  .godmin-upload-file-field {
7
7
  display: none;
8
8
  }
9
+
10
+ .godmin-upload-undo-destroy-label {
11
+ display: none;
12
+ }
9
13
  }
@@ -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>Upload file</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>Download file</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>Destroy file</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">
@@ -0,0 +1,7 @@
1
+ en:
2
+ godmin:
3
+ uploads:
4
+ upload_file: Upload
5
+ download_file: Download
6
+ destroy_file: Remove
7
+ undo_destroy_file: Undo remove
@@ -0,0 +1,7 @@
1
+ sv:
2
+ godmin:
3
+ uploads:
4
+ upload_file: Ladda upp
5
+ download_file: Ladda ner
6
+ destroy_file: Ta bort
7
+ undo_destroy_file: Ångra borttagning
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Godmin
2
2
  module Uploads
3
- VERSION = "0.9.2"
3
+ VERSION = "0.9.3"
4
4
  end
5
5
  end
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.2
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-05 00:00:00.000000000 Z
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.4.1
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: