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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2dc8a2b3c5b3f58c71bfce23744f376ac4627b5
4
- data.tar.gz: e46d12fe4411b1469347ce40d50d1ce636fd338f
3
+ metadata.gz: 73cff308c0fd761f6d8000b476821df5fe3f58a1
4
+ data.tar.gz: 941b9a9f69f3de50cbb426a4b8f056d9d412d5c9
5
5
  SHA512:
6
- metadata.gz: b71aff0c6bdcf3c1a5fc23333d85ffbf81875225c7672d9a53d872a52cc2aa7e3ad6412c6ff0e30d15c87c84ab9556388c11574e9fa92f96ca18e74d3f96fd76
7
- data.tar.gz: 069b472f1087c59ad351eac865a09a2c5d9883d243f6bfd515f0090d9fe0558fa379c5391d82c4ae4063cb1a934a687c5e6d3a835e3668a8b6b76984d5d1d349
6
+ metadata.gz: 65c1529d67bd0bd5375eb914f1499c2b913c869fdf9704fe9156a7d60f3b8f7cc6ae540d685e01d45fb96da1ba6b552eea9b669732fd77f11cde63888a2392c4
7
+ data.tar.gz: 8f56e7c2ec668357c452c36ec5474a0ada7a960a09d8b71537db522d54bba5453e743eaf0272fb1d663379cbccbd2357b20d7f09ea2f78f15a4a77a9b02be79f
data/.gitignore CHANGED
@@ -15,5 +15,5 @@
15
15
  /.idea/modules.xml
16
16
  /.idea/vcs.xml
17
17
  /.idea/workspace.xml
18
- /kickin_ristretto-0.1.0.gem
18
+ /kickin_ristretto-*.gem
19
19
  /.idea
data/README.md CHANGED
@@ -21,7 +21,7 @@ Or install it yourself as:
21
21
 
22
22
  ## Usage
23
23
 
24
- $ rake kickin_ristretto:analyze
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
+
@@ -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 Is this what you want to happen? [Y/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
- # puts image
51
- # text image
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
 
@@ -1,3 +1,3 @@
1
1
  module KickinRistretto
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -1,19 +1,18 @@
1
1
  require 'kickin_ristretto'
2
2
  include KickinRistretto
3
3
  namespace :kickin_ristretto do
4
- desc "Perform Used Analysis "
5
- task :analyze do
6
- puts "do the analysis"
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.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-12 00:00:00.000000000 Z
11
+ date: 2018-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler