desoto-photoapp 0.3.10 → 0.3.11

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: e1d2de3ef2d54cc1bcb3b3b31f73df345550ed54
4
- data.tar.gz: eddae4d6536b48d9ec5bd44c07c10835134fe04e
3
+ metadata.gz: 542cd2fb8adb14d19d83d8532a7535921c6d3a72
4
+ data.tar.gz: a0a2983bbcafebf2a64d3750baf17be4b76bc9a1
5
5
  SHA512:
6
- metadata.gz: 1498c178b85fba8e06b22f09e289cf37191431c09740d0d566de887d77e53a3eb6ba07f3ff35c9c04794d0c756a46ab6c4d9f561d23b072c4716572fc4310d9a
7
- data.tar.gz: 2448e03c99ad526daaca996d682a8d95bbbb3d28590193331cb368656b8ac63b478eb71e1175cb01dd0b23742d6ed2ee5b7d8e6adf0930c002a483b2d6aabd5c
6
+ metadata.gz: 52492b67c5088bb33cb21d08c27d91879cfa2848bdfa3807e65f57d6d3bb827e510b62cbcf5d30005f9eb0441db731f2efabc55eb4bda5b80a6c3b588d3bb54e
7
+ data.tar.gz: 8532837ccddf3ad8b6566b7110496df452ebb17bf08a757641a4523f5326c399ebfa0be1679c0356da2313b565bfe118ffc3e060e74126209c211bd7327b9ad5
data/lib/photoapp.rb CHANGED
@@ -73,20 +73,21 @@ module Photoapp
73
73
  end
74
74
 
75
75
  def process
76
- photos = []
76
+ photos = load_photos
77
77
  tmp = root('.tmp')
78
78
  import = root('import')
79
79
  FileUtils.mkdir_p tmp
80
80
  FileUtils.mkdir_p import
81
81
 
82
- load_photos.each do |f|
83
- photos << process_image(f, tmp)
82
+ photos.map! do |f|
83
+ p = process_image(f, tmp)
84
+ p.write
85
+ p
84
86
  end
85
87
 
86
88
  photos.each do |p|
87
- p.write
88
- FileUtils.cp p.print_dest, import
89
- Photoapp.print(p.print_dest)
89
+ FileUtils.cp(p.print_dest, import)
90
+ system "lpr #{p.print_dest}"
90
91
  end
91
92
 
92
93
  `automator -i #{import} #{Photoapp.gem_dir("lib/import-photos.workflow")}`
@@ -1,3 +1,3 @@
1
1
  module Photoapp
2
- VERSION = "0.3.10"
2
+ VERSION = "0.3.11"
3
3
  end
data/photoapp.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = %q{A tool for processing cave photos for DeSoto Caverns.}
13
13
  spec.license = "MIT"
14
14
 
15
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|icon)/}) }
15
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|icons)/}) }
16
16
  spec.bindir = "exe"
17
17
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
18
  spec.require_paths = ["lib"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: desoto-photoapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-06-20 00:00:00.000000000 Z
11
+ date: 2015-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rmagick
@@ -194,11 +194,6 @@ files:
194
194
  - bin/console
195
195
  - bin/setup
196
196
  - exe/photoapp
197
- - icons/Reprint.icns
198
- - icons/Update.afdesign
199
- - icons/Update.icns
200
- - icons/Update.png
201
- - icons/reprint.png
202
197
  - lib/adjust-image.workflow/Contents/Info.plist
203
198
  - lib/adjust-image.workflow/Contents/QuickLook/Preview.png
204
199
  - lib/adjust-image.workflow/Contents/document.wflow
data/icons/Reprint.icns DELETED
Binary file
Binary file
data/icons/Update.icns DELETED
Binary file
data/icons/Update.png DELETED
Binary file
data/icons/reprint.png DELETED
Binary file