kickin_ristretto 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/README.md +2 -1
- data/lib/kickin_ristretto.rb +9 -11
- data/lib/kickin_ristretto/version.rb +1 -1
- data/lib/tasks/ristretto.rake +5 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73cff308c0fd761f6d8000b476821df5fe3f58a1
|
4
|
+
data.tar.gz: 941b9a9f69f3de50cbb426a4b8f056d9d412d5c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65c1529d67bd0bd5375eb914f1499c2b913c869fdf9704fe9156a7d60f3b8f7cc6ae540d685e01d45fb96da1ba6b552eea9b669732fd77f11cde63888a2392c4
|
7
|
+
data.tar.gz: 8f56e7c2ec668357c452c36ec5474a0ada7a960a09d8b71537db522d54bba5453e743eaf0272fb1d663379cbccbd2357b20d7f09ea2f78f15a4a77a9b02be79f
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -21,7 +21,7 @@ Or install it yourself as:
|
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
|
24
|
-
$ rake kickin_ristretto:
|
24
|
+
$ rake kickin_ristretto:search_images
|
25
25
|
|
26
26
|
$ rake kickin_ristretto:image_audit_report
|
27
27
|
|
@@ -51,3 +51,4 @@ This project is sponsored by [KickinEspresso](https://kickinespresso.com/?utm_so
|
|
51
51
|
## Build
|
52
52
|
|
53
53
|
gem build kickin_ristretto.gemspec
|
54
|
+
|
data/lib/kickin_ristretto.rb
CHANGED
@@ -24,7 +24,7 @@ module KickinRistretto
|
|
24
24
|
def clean_non_referenced_images(image_directory = 'app/assets/images')
|
25
25
|
images = search_directory(image_directory)
|
26
26
|
legacy_images = collect_none_referenced_images(images)
|
27
|
-
puts "\n
|
27
|
+
puts "\n Delete Non Referenced Images? [Y/N]"
|
28
28
|
answer = STDIN.gets.chomp
|
29
29
|
if answer == 'Y'
|
30
30
|
delete_files(legacy_images)
|
@@ -45,19 +45,17 @@ module KickinRistretto
|
|
45
45
|
Prawn::Document.generate("image_audit_report.pdf") do
|
46
46
|
text "Image Audit Report"
|
47
47
|
|
48
|
-
data = [["File Path", "Image"]]
|
48
|
+
# data = [["File Path", "Image"]]
|
49
|
+
# filtered_images.each do |image|
|
50
|
+
# data += [[image, {image: image, :fit => [400, 400]}]]
|
51
|
+
# end
|
52
|
+
# table(data, :header => true)
|
53
|
+
|
49
54
|
filtered_images.each do |image|
|
50
|
-
|
51
|
-
|
52
|
-
# image image
|
53
|
-
data += [[image, {image: image, :fit => [400, 400]}]]
|
55
|
+
text image
|
56
|
+
image image, fit: [400, 400]
|
54
57
|
end
|
55
58
|
|
56
|
-
|
57
|
-
#data += [["..."]] * 30
|
58
|
-
table(data, :header => true)
|
59
|
-
|
60
|
-
#image "#{Prawn::DATADIR}/images/pigs.jpg"
|
61
59
|
end
|
62
60
|
end
|
63
61
|
|
data/lib/tasks/ristretto.rake
CHANGED
@@ -1,19 +1,18 @@
|
|
1
1
|
require 'kickin_ristretto'
|
2
2
|
include KickinRistretto
|
3
3
|
namespace :kickin_ristretto do
|
4
|
-
desc "
|
5
|
-
task :
|
6
|
-
puts "
|
4
|
+
desc "Search for non-referenced images in the project"
|
5
|
+
task :search_images do
|
6
|
+
puts "Performing Search"
|
7
7
|
KickinRistretto.clean_non_referenced_images
|
8
|
+
puts "Completed Search"
|
8
9
|
end
|
9
10
|
|
10
|
-
|
11
|
-
desc "Image Audit Report"
|
11
|
+
desc "Generate Image Audit Report"
|
12
12
|
task :image_audit_report do
|
13
13
|
puts "Performing Image Audit Report"
|
14
14
|
KickinRistretto.image_audit_report
|
15
15
|
puts "Completed Image Audit Report"
|
16
16
|
end
|
17
17
|
|
18
|
-
#image "#{Prawn::DATADIR}/images/pigs.jpg"
|
19
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kickin_ristretto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KickinEspresso
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|