desoto-photoapp 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/assets/Reprint.app/Contents/Resources/AutomatorApplet.icns +0 -0
  3. data/assets/Update.app/Contents/Info.plist +14 -10
  4. data/assets/Update.app/Contents/MacOS/Application Stub +0 -0
  5. data/assets/Update.app/Contents/Resources/AutomatorApplet.icns +0 -0
  6. data/assets/Update.app/Contents/document.wflow +3 -3
  7. data/assets/Update.app/Icon/r +0 -0
  8. data/assets/Upload.app/Contents/Info.plist +90 -0
  9. data/assets/Upload.app/Contents/MacOS/Application Stub +0 -0
  10. data/assets/Upload.app/Contents/Resources/AutomatorApplet.icns +0 -0
  11. data/assets/Upload.app/Contents/document.wflow +193 -0
  12. data/assets/Upload.app/Icon/r +0 -0
  13. data/lib/photoapp.rb +31 -16
  14. data/lib/photoapp/photo.rb +13 -2
  15. data/lib/photoapp/s3.rb +3 -3
  16. data/lib/photoapp/version.rb +1 -1
  17. metadata +9 -37
  18. data/assets/Update.app/Contents/Resources/Dutch.lproj/ApplicationStub.nib +0 -0
  19. data/assets/Update.app/Contents/Resources/English.lproj/ApplicationStub.nib +0 -0
  20. data/assets/Update.app/Contents/Resources/French.lproj/ApplicationStub.nib +0 -0
  21. data/assets/Update.app/Contents/Resources/German.lproj/ApplicationStub.nib +0 -0
  22. data/assets/Update.app/Contents/Resources/Italian.lproj/ApplicationStub.nib +0 -0
  23. data/assets/Update.app/Contents/Resources/Japanese.lproj/ApplicationStub.nib +0 -0
  24. data/assets/Update.app/Contents/Resources/Spanish.lproj/ApplicationStub.nib +0 -0
  25. data/assets/Update.app/Contents/Resources/ar.lproj/ApplicationStub.nib +0 -0
  26. data/assets/Update.app/Contents/Resources/ca.lproj/ApplicationStub.nib +0 -0
  27. data/assets/Update.app/Contents/Resources/cs.lproj/ApplicationStub.nib +0 -0
  28. data/assets/Update.app/Contents/Resources/da.lproj/ApplicationStub.nib +0 -0
  29. data/assets/Update.app/Contents/Resources/el.lproj/ApplicationStub.nib +0 -0
  30. data/assets/Update.app/Contents/Resources/es_MX.lproj/ApplicationStub.nib +0 -0
  31. data/assets/Update.app/Contents/Resources/fi.lproj/ApplicationStub.nib +0 -0
  32. data/assets/Update.app/Contents/Resources/he.lproj/ApplicationStub.nib +0 -0
  33. data/assets/Update.app/Contents/Resources/hr.lproj/ApplicationStub.nib +0 -0
  34. data/assets/Update.app/Contents/Resources/hu.lproj/ApplicationStub.nib +0 -0
  35. data/assets/Update.app/Contents/Resources/id.lproj/ApplicationStub.nib +0 -0
  36. data/assets/Update.app/Contents/Resources/ko.lproj/ApplicationStub.nib +0 -0
  37. data/assets/Update.app/Contents/Resources/ms.lproj/ApplicationStub.nib +0 -0
  38. data/assets/Update.app/Contents/Resources/no.lproj/ApplicationStub.nib +0 -0
  39. data/assets/Update.app/Contents/Resources/pl.lproj/ApplicationStub.nib +0 -0
  40. data/assets/Update.app/Contents/Resources/pt.lproj/ApplicationStub.nib +0 -0
  41. data/assets/Update.app/Contents/Resources/pt_PT.lproj/ApplicationStub.nib +0 -0
  42. data/assets/Update.app/Contents/Resources/ro.lproj/ApplicationStub.nib +0 -0
  43. data/assets/Update.app/Contents/Resources/ru.lproj/ApplicationStub.nib +0 -0
  44. data/assets/Update.app/Contents/Resources/sk.lproj/ApplicationStub.nib +0 -0
  45. data/assets/Update.app/Contents/Resources/sv.lproj/ApplicationStub.nib +0 -0
  46. data/assets/Update.app/Contents/Resources/th.lproj/ApplicationStub.nib +0 -0
  47. data/assets/Update.app/Contents/Resources/tr.lproj/ApplicationStub.nib +0 -0
  48. data/assets/Update.app/Contents/Resources/uk.lproj/ApplicationStub.nib +0 -0
  49. data/assets/Update.app/Contents/Resources/vi.lproj/ApplicationStub.nib +0 -0
  50. data/assets/Update.app/Contents/Resources/zh_CN.lproj/ApplicationStub.nib +0 -0
  51. data/assets/Update.app/Contents/Resources/zh_TW.lproj/ApplicationStub.nib +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea864eef77503bf442e8bd98f1f39c747160f7d7
4
- data.tar.gz: f229d1c688ad987b5cf927f49f8517154f63979f
3
+ metadata.gz: b1b0bdce6fc0d6e202abe911c3feac6cc4631114
4
+ data.tar.gz: e20cb715c15c457f66ce747f2d97cfb153bcc932
5
5
  SHA512:
6
- metadata.gz: 1df805b211d6b8467777906c46c47c570004dadc3176679519c5d909d4f860b40dcc4f6e5e300c0c9cb5f1c9b7e6ef2a3aa3d509ee63386e65817c1fe3b67e4f
7
- data.tar.gz: 20062e3f73ce322f442c00955940ad2bbcee4904b741cc8cc6fba050290ae03feadca50a55f2ac30e15dd22dbdefc3862cd3aba1e0a26e0ca5bd9f1815e19d94
6
+ metadata.gz: 9024adee824beda68814252095335f19cfb57bbe301763a75885576c577ae2eeeb4563cb5ad960a2a8ba3a58df35a26e69a29eadbb45aa09e93ab580fdd4e5de
7
+ data.tar.gz: ca59ea931d384ebcd92b27f670694fe47b6f1fc3c72d70282be49f32e2c909889b03b5f5bdcc7578ebbbff86820e17a4d4541e81b4a370d601421e1ab0f1922c
@@ -7,7 +7,9 @@
7
7
  <key>AMStayOpen</key>
8
8
  <false/>
9
9
  <key>BuildMachineOSBuild</key>
10
- <string>14D49</string>
10
+ <string>16B2657</string>
11
+ <key>CFBundleAllowMixedLocalizations</key>
12
+ <true/>
11
13
  <key>CFBundleDevelopmentRegion</key>
12
14
  <string>English</string>
13
15
  <key>CFBundleDocumentTypes</key>
@@ -40,27 +42,31 @@
40
42
  <key>CFBundlePackageType</key>
41
43
  <string>APPL</string>
42
44
  <key>CFBundleShortVersionString</key>
43
- <string>1.2</string>
45
+ <string>1.3</string>
44
46
  <key>CFBundleSignature</key>
45
47
  <string>????</string>
48
+ <key>CFBundleSupportedPlatforms</key>
49
+ <array>
50
+ <string>MacOSX</string>
51
+ </array>
46
52
  <key>CFBundleURLTypes</key>
47
53
  <array/>
48
54
  <key>CFBundleVersion</key>
49
- <string>409.2</string>
55
+ <string>444.4</string>
50
56
  <key>DTCompiler</key>
51
57
  <string>com.apple.compilers.llvm.clang.1_0</string>
52
58
  <key>DTPlatformBuild</key>
53
- <string>6D97u</string>
59
+ <string>9A229</string>
54
60
  <key>DTPlatformVersion</key>
55
61
  <string>GM</string>
56
62
  <key>DTSDKBuild</key>
57
- <string>14D42</string>
63
+ <string>17C53</string>
58
64
  <key>DTSDKName</key>
59
- <string>macosx10.10internal</string>
65
+ <string>macosx10.13internal</string>
60
66
  <key>DTXcode</key>
61
- <string>0630</string>
67
+ <string>0900</string>
62
68
  <key>DTXcodeBuild</key>
63
- <string>6D97u</string>
69
+ <string>9A229</string>
64
70
  <key>LSMinimumSystemVersion</key>
65
71
  <string>10.5</string>
66
72
  <key>LSMinimumSystemVersionByArchitecture</key>
@@ -72,8 +78,6 @@
72
78
  <true/>
73
79
  <key>NSAppleScriptEnabled</key>
74
80
  <string>YES</string>
75
- <key>NSMainNibFile</key>
76
- <string>ApplicationStub</string>
77
81
  <key>NSPrincipalClass</key>
78
82
  <string>NSApplication</string>
79
83
  <key>NSServices</key>
@@ -3,9 +3,9 @@
3
3
  <plist version="1.0">
4
4
  <dict>
5
5
  <key>AMApplicationBuild</key>
6
- <string>409.2</string>
6
+ <string>444.4</string>
7
7
  <key>AMApplicationVersion</key>
8
- <string>2.5</string>
8
+ <string>2.8</string>
9
9
  <key>AMDocumentVersion</key>
10
10
  <string>2</string>
11
11
  <key>actions</key>
@@ -177,7 +177,7 @@ photoapp -v | say</string>
177
177
  <key>isViewVisible</key>
178
178
  <true/>
179
179
  <key>location</key>
180
- <string>369.000000:253.000000</string>
180
+ <string>313.500000:253.000000</string>
181
181
  <key>nibPath</key>
182
182
  <string>/System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib</string>
183
183
  </dict>
File without changes
@@ -0,0 +1,90 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AMIsApplet</key>
6
+ <true/>
7
+ <key>AMStayOpen</key>
8
+ <false/>
9
+ <key>BuildMachineOSBuild</key>
10
+ <string>16B2657</string>
11
+ <key>CFBundleAllowMixedLocalizations</key>
12
+ <true/>
13
+ <key>CFBundleDevelopmentRegion</key>
14
+ <string>English</string>
15
+ <key>CFBundleDocumentTypes</key>
16
+ <array>
17
+ <dict>
18
+ <key>CFBundleTypeExtensions</key>
19
+ <array>
20
+ <string>*</string>
21
+ </array>
22
+ <key>CFBundleTypeName</key>
23
+ <string>Automator workflow file</string>
24
+ <key>CFBundleTypeOSTypes</key>
25
+ <array>
26
+ <string>****</string>
27
+ </array>
28
+ <key>CFBundleTypeRole</key>
29
+ <string>Viewer</string>
30
+ </dict>
31
+ </array>
32
+ <key>CFBundleExecutable</key>
33
+ <string>Application Stub</string>
34
+ <key>CFBundleIconFile</key>
35
+ <string>AutomatorApplet</string>
36
+ <key>CFBundleIdentifier</key>
37
+ <string>com.apple.automator.Upload</string>
38
+ <key>CFBundleInfoDictionaryVersion</key>
39
+ <string>6.0</string>
40
+ <key>CFBundleName</key>
41
+ <string>Upload</string>
42
+ <key>CFBundlePackageType</key>
43
+ <string>APPL</string>
44
+ <key>CFBundleShortVersionString</key>
45
+ <string>1.3</string>
46
+ <key>CFBundleSignature</key>
47
+ <string>????</string>
48
+ <key>CFBundleSupportedPlatforms</key>
49
+ <array>
50
+ <string>MacOSX</string>
51
+ </array>
52
+ <key>CFBundleURLTypes</key>
53
+ <array/>
54
+ <key>CFBundleVersion</key>
55
+ <string>444.4</string>
56
+ <key>DTCompiler</key>
57
+ <string>com.apple.compilers.llvm.clang.1_0</string>
58
+ <key>DTPlatformBuild</key>
59
+ <string>9A229</string>
60
+ <key>DTPlatformVersion</key>
61
+ <string>GM</string>
62
+ <key>DTSDKBuild</key>
63
+ <string>17C53</string>
64
+ <key>DTSDKName</key>
65
+ <string>macosx10.13internal</string>
66
+ <key>DTXcode</key>
67
+ <string>0900</string>
68
+ <key>DTXcodeBuild</key>
69
+ <string>9A229</string>
70
+ <key>LSMinimumSystemVersion</key>
71
+ <string>10.5</string>
72
+ <key>LSMinimumSystemVersionByArchitecture</key>
73
+ <dict>
74
+ <key>x86_64</key>
75
+ <string>10.6</string>
76
+ </dict>
77
+ <key>LSUIElement</key>
78
+ <true/>
79
+ <key>NSAppleScriptEnabled</key>
80
+ <string>YES</string>
81
+ <key>NSPrincipalClass</key>
82
+ <string>NSApplication</string>
83
+ <key>NSServices</key>
84
+ <array/>
85
+ <key>UTExportedTypeDeclarations</key>
86
+ <array/>
87
+ <key>UTImportedTypeDeclarations</key>
88
+ <array/>
89
+ </dict>
90
+ </plist>
@@ -0,0 +1,193 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AMApplicationBuild</key>
6
+ <string>444.4</string>
7
+ <key>AMApplicationVersion</key>
8
+ <string>2.8</string>
9
+ <key>AMDocumentVersion</key>
10
+ <string>2</string>
11
+ <key>actions</key>
12
+ <array>
13
+ <dict>
14
+ <key>action</key>
15
+ <dict>
16
+ <key>AMAccepts</key>
17
+ <dict>
18
+ <key>Container</key>
19
+ <string>List</string>
20
+ <key>Optional</key>
21
+ <true/>
22
+ <key>Types</key>
23
+ <array>
24
+ <string>com.apple.cocoa.string</string>
25
+ </array>
26
+ </dict>
27
+ <key>AMActionVersion</key>
28
+ <string>2.0.3</string>
29
+ <key>AMApplication</key>
30
+ <array>
31
+ <string>Automator</string>
32
+ </array>
33
+ <key>AMParameterProperties</key>
34
+ <dict>
35
+ <key>COMMAND_STRING</key>
36
+ <dict/>
37
+ <key>CheckedForUserDefaultShell</key>
38
+ <dict/>
39
+ <key>inputMethod</key>
40
+ <dict/>
41
+ <key>shell</key>
42
+ <dict/>
43
+ <key>source</key>
44
+ <dict/>
45
+ </dict>
46
+ <key>AMProvides</key>
47
+ <dict>
48
+ <key>Container</key>
49
+ <string>List</string>
50
+ <key>Types</key>
51
+ <array>
52
+ <string>com.apple.cocoa.string</string>
53
+ </array>
54
+ </dict>
55
+ <key>ActionBundlePath</key>
56
+ <string>/System/Library/Automator/Run Shell Script.action</string>
57
+ <key>ActionName</key>
58
+ <string>Run Shell Script</string>
59
+ <key>ActionParameters</key>
60
+ <dict>
61
+ <key>COMMAND_STRING</key>
62
+ <string>source ~/.bash_profile
63
+ puts "Uploading photos"
64
+ photoapp upload | say</string>
65
+ <key>CheckedForUserDefaultShell</key>
66
+ <true/>
67
+ <key>inputMethod</key>
68
+ <integer>0</integer>
69
+ <key>shell</key>
70
+ <string>/bin/bash</string>
71
+ <key>source</key>
72
+ <string></string>
73
+ </dict>
74
+ <key>BundleIdentifier</key>
75
+ <string>com.apple.RunShellScript</string>
76
+ <key>CFBundleVersion</key>
77
+ <string>2.0.3</string>
78
+ <key>CanShowSelectedItemsWhenRun</key>
79
+ <false/>
80
+ <key>CanShowWhenRun</key>
81
+ <true/>
82
+ <key>Category</key>
83
+ <array>
84
+ <string>AMCategoryUtilities</string>
85
+ </array>
86
+ <key>Class Name</key>
87
+ <string>RunShellScriptAction</string>
88
+ <key>InputUUID</key>
89
+ <string>779A74B5-DAD3-4231-9018-06560E903822</string>
90
+ <key>Keywords</key>
91
+ <array>
92
+ <string>Shell</string>
93
+ <string>Script</string>
94
+ <string>Command</string>
95
+ <string>Run</string>
96
+ <string>Unix</string>
97
+ </array>
98
+ <key>OutputUUID</key>
99
+ <string>7FB77A99-8295-4395-AC00-6B106BDB61C7</string>
100
+ <key>UUID</key>
101
+ <string>A2174CF7-1CEC-4585-9615-32D9D53A0CD7</string>
102
+ <key>UnlocalizedApplications</key>
103
+ <array>
104
+ <string>Automator</string>
105
+ </array>
106
+ <key>arguments</key>
107
+ <dict>
108
+ <key>0</key>
109
+ <dict>
110
+ <key>default value</key>
111
+ <integer>0</integer>
112
+ <key>name</key>
113
+ <string>inputMethod</string>
114
+ <key>required</key>
115
+ <string>0</string>
116
+ <key>type</key>
117
+ <string>0</string>
118
+ <key>uuid</key>
119
+ <string>0</string>
120
+ </dict>
121
+ <key>1</key>
122
+ <dict>
123
+ <key>default value</key>
124
+ <string></string>
125
+ <key>name</key>
126
+ <string>source</string>
127
+ <key>required</key>
128
+ <string>0</string>
129
+ <key>type</key>
130
+ <string>0</string>
131
+ <key>uuid</key>
132
+ <string>1</string>
133
+ </dict>
134
+ <key>2</key>
135
+ <dict>
136
+ <key>default value</key>
137
+ <false/>
138
+ <key>name</key>
139
+ <string>CheckedForUserDefaultShell</string>
140
+ <key>required</key>
141
+ <string>0</string>
142
+ <key>type</key>
143
+ <string>0</string>
144
+ <key>uuid</key>
145
+ <string>2</string>
146
+ </dict>
147
+ <key>3</key>
148
+ <dict>
149
+ <key>default value</key>
150
+ <string></string>
151
+ <key>name</key>
152
+ <string>COMMAND_STRING</string>
153
+ <key>required</key>
154
+ <string>0</string>
155
+ <key>type</key>
156
+ <string>0</string>
157
+ <key>uuid</key>
158
+ <string>3</string>
159
+ </dict>
160
+ <key>4</key>
161
+ <dict>
162
+ <key>default value</key>
163
+ <string>/bin/sh</string>
164
+ <key>name</key>
165
+ <string>shell</string>
166
+ <key>required</key>
167
+ <string>0</string>
168
+ <key>type</key>
169
+ <string>0</string>
170
+ <key>uuid</key>
171
+ <string>4</string>
172
+ </dict>
173
+ </dict>
174
+ <key>isViewVisible</key>
175
+ <true/>
176
+ <key>location</key>
177
+ <string>529.000000:253.000000</string>
178
+ <key>nibPath</key>
179
+ <string>/System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib</string>
180
+ </dict>
181
+ <key>isViewVisible</key>
182
+ <true/>
183
+ </dict>
184
+ </array>
185
+ <key>connectors</key>
186
+ <dict/>
187
+ <key>workflowMetaData</key>
188
+ <dict>
189
+ <key>workflowTypeIdentifier</key>
190
+ <string>com.apple.Automator.application</string>
191
+ </dict>
192
+ </dict>
193
+ </plist>
File without changes
@@ -49,6 +49,7 @@ module Photoapp
49
49
  'config' => 'photoapp.yml',
50
50
  'upload' => 'upload',
51
51
  'print' => 'print',
52
+ 'import' => 'import',
52
53
  'reprint' => 'reprint'
53
54
  }
54
55
 
@@ -60,8 +61,9 @@ module Photoapp
60
61
  config.merge!(YAML.load(File.read(config_file)) || {})
61
62
  end
62
63
 
63
- config['upload'] = root(config['upload'])
64
- config['print'] = root(config['print'])
64
+ config['upload'] = root(config['upload'])
65
+ config['print'] = root(config['print'])
66
+ config['import'] = root(config['import'])
65
67
  config['reprint'] = root(config['reprint'])
66
68
 
67
69
  config
@@ -76,9 +78,7 @@ module Photoapp
76
78
  def process
77
79
  photos = load_photos
78
80
  tmp = root('.tmp')
79
- import = root('temp_import')
80
81
  FileUtils.mkdir_p tmp
81
- FileUtils.mkdir_p import
82
82
 
83
83
  photos.map! do |f|
84
84
  p = process_image(f, tmp)
@@ -86,17 +86,21 @@ module Photoapp
86
86
  p
87
87
  end
88
88
 
89
- photos.each do |p|
90
- FileUtils.cp(p.print_dest, import)
91
- system "lpr #{p.print_dest}"
92
- end
89
+ import
90
+ print
93
91
 
94
- `automator -i #{import} #{Photoapp.gem_dir("lib/import-photos.workflow")}`
92
+ FileUtils.rm_rf tmp
93
+ end
95
94
 
96
- upload
95
+ def import
96
+ `automator -i #{config['import']} #{Photoapp.gem_dir("lib/import-photos.workflow")}`
97
+ FileUtils.rm_rf config['import']
98
+ end
97
99
 
98
- FileUtils.rm_rf tmp
99
- FileUtils.rm_rf import
100
+ def print
101
+ load_photos(config['print']).each do |p|
102
+ system "lpr #{p}"
103
+ end
100
104
  FileUtils.rm_rf config['print']
101
105
  end
102
106
 
@@ -108,12 +112,15 @@ module Photoapp
108
112
  end
109
113
 
110
114
 
111
- def load_photos
112
- files = ['*.jpg', '*.JPG', '*.JPEG', '*.jpeg'].map! { |f| File.join(config['source'], f) }
115
+ # grab all photos from config source
116
+ def load_photos(path)
117
+ path ||= config['source']
118
+ files = ['*.jpg', '*.JPG', '*.JPEG', '*.jpeg'].map! { |f| File.join(path, f) }
113
119
 
114
120
  Dir[*files].uniq
115
121
  end
116
122
 
123
+ # Check to see if the print queue is empty
117
124
  def empty_print_queue?
118
125
  if printer = `lpstat -d`
119
126
  if printer = printer.scan(/:\s*(.+)/).flatten.first
@@ -123,8 +130,16 @@ module Photoapp
123
130
  end
124
131
 
125
132
  def upload
126
- S3.new(@config).push
127
- FileUtils.rm_rf config['upload']
133
+ photos = load_photos(config['upload'])
134
+
135
+ if photos.size > 0
136
+ status = S3.new(@config).push
137
+ FileUtils.rm photos
138
+ many = photos.size != 1 ? "photos" : "photo"
139
+ puts "Uploaded #{photos.size} #{many}."
140
+ else
141
+ puts "There are no photos to upload."
142
+ end
128
143
  end
129
144
 
130
145
  def reprint
@@ -82,12 +82,19 @@ module Photoapp
82
82
  with_url.write path
83
83
  cleanup
84
84
  else
85
- puts "writing #{upload_dest}"
86
- puts "writing #{print_dest}"
87
85
  FileUtils.mkdir_p(File.dirname(upload_dest))
88
86
  FileUtils.mkdir_p(File.dirname(print_dest))
87
+ FileUtils.mkdir_p(File.dirname(import_dest))
88
+
89
+ puts "writing #{upload_dest}"
89
90
  watermark.write upload_dest
91
+
92
+ puts "writing #{print_dest}"
90
93
  with_url.write print_dest
94
+
95
+ puts "writing #{import_dest}"
96
+ with_url.write import_dest
97
+
91
98
  cleanup
92
99
  end
93
100
  end
@@ -105,6 +112,10 @@ module Photoapp
105
112
  File.join(config['print'], short + '.jpg')
106
113
  end
107
114
 
115
+ def import_dest
116
+ File.join(config['import'], short + '.jpg')
117
+ end
118
+
108
119
  def short
109
120
  @short ||= begin
110
121
  now = Time.now
@@ -33,10 +33,10 @@ module Photoapp
33
33
  if !@bucket.exists?
34
34
  abort "Bucket not found: '#{@bucket_name}'. Check your configuration or create a bucket using: `octopress deploy add-bucket`"
35
35
  else
36
- puts "Syncing #{@local} files to #{@bucket_name} on S3."
36
+ puts "Syncing #{@local} files to #{@bucket_name} on S3." if @verbose
37
37
  write_files
38
38
  delete_files if delete_files?
39
- status_message
39
+ status_message if @verbose
40
40
  end
41
41
  end
42
42
 
@@ -247,7 +247,7 @@ module Photoapp
247
247
 
248
248
  # Print consecutive characters
249
249
  def progress(str)
250
- print str
250
+ print str if @verbose
251
251
  $stdout.flush
252
252
  end
253
253
 
@@ -1,3 +1,3 @@
1
1
  module Photoapp
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
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.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-30 00:00:00.000000000 Z
11
+ date: 2018-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rmagick
@@ -151,41 +151,13 @@ files:
151
151
  - assets/Update.app/Contents/Info.plist
152
152
  - assets/Update.app/Contents/MacOS/Application Stub
153
153
  - assets/Update.app/Contents/Resources/AutomatorApplet.icns
154
- - assets/Update.app/Contents/Resources/Dutch.lproj/ApplicationStub.nib
155
- - assets/Update.app/Contents/Resources/English.lproj/ApplicationStub.nib
156
- - assets/Update.app/Contents/Resources/French.lproj/ApplicationStub.nib
157
- - assets/Update.app/Contents/Resources/German.lproj/ApplicationStub.nib
158
- - assets/Update.app/Contents/Resources/Italian.lproj/ApplicationStub.nib
159
- - assets/Update.app/Contents/Resources/Japanese.lproj/ApplicationStub.nib
160
- - assets/Update.app/Contents/Resources/Spanish.lproj/ApplicationStub.nib
161
- - assets/Update.app/Contents/Resources/ar.lproj/ApplicationStub.nib
162
- - assets/Update.app/Contents/Resources/ca.lproj/ApplicationStub.nib
163
- - assets/Update.app/Contents/Resources/cs.lproj/ApplicationStub.nib
164
- - assets/Update.app/Contents/Resources/da.lproj/ApplicationStub.nib
165
- - assets/Update.app/Contents/Resources/el.lproj/ApplicationStub.nib
166
- - assets/Update.app/Contents/Resources/es_MX.lproj/ApplicationStub.nib
167
- - assets/Update.app/Contents/Resources/fi.lproj/ApplicationStub.nib
168
- - assets/Update.app/Contents/Resources/he.lproj/ApplicationStub.nib
169
- - assets/Update.app/Contents/Resources/hr.lproj/ApplicationStub.nib
170
- - assets/Update.app/Contents/Resources/hu.lproj/ApplicationStub.nib
171
- - assets/Update.app/Contents/Resources/id.lproj/ApplicationStub.nib
172
- - assets/Update.app/Contents/Resources/ko.lproj/ApplicationStub.nib
173
- - assets/Update.app/Contents/Resources/ms.lproj/ApplicationStub.nib
174
- - assets/Update.app/Contents/Resources/no.lproj/ApplicationStub.nib
175
- - assets/Update.app/Contents/Resources/pl.lproj/ApplicationStub.nib
176
- - assets/Update.app/Contents/Resources/pt.lproj/ApplicationStub.nib
177
- - assets/Update.app/Contents/Resources/pt_PT.lproj/ApplicationStub.nib
178
- - assets/Update.app/Contents/Resources/ro.lproj/ApplicationStub.nib
179
- - assets/Update.app/Contents/Resources/ru.lproj/ApplicationStub.nib
180
- - assets/Update.app/Contents/Resources/sk.lproj/ApplicationStub.nib
181
- - assets/Update.app/Contents/Resources/sv.lproj/ApplicationStub.nib
182
- - assets/Update.app/Contents/Resources/th.lproj/ApplicationStub.nib
183
- - assets/Update.app/Contents/Resources/tr.lproj/ApplicationStub.nib
184
- - assets/Update.app/Contents/Resources/uk.lproj/ApplicationStub.nib
185
- - assets/Update.app/Contents/Resources/vi.lproj/ApplicationStub.nib
186
- - assets/Update.app/Contents/Resources/zh_CN.lproj/ApplicationStub.nib
187
- - assets/Update.app/Contents/Resources/zh_TW.lproj/ApplicationStub.nib
188
154
  - assets/Update.app/Contents/document.wflow
155
+ - "assets/Update.app/Icon\r"
156
+ - assets/Upload.app/Contents/Info.plist
157
+ - assets/Upload.app/Contents/MacOS/Application Stub
158
+ - assets/Upload.app/Contents/Resources/AutomatorApplet.icns
159
+ - assets/Upload.app/Contents/document.wflow
160
+ - "assets/Upload.app/Icon\r"
189
161
  - assets/logo-source.afdesign
190
162
  - assets/photoapp-process.workflow/Contents/Info.plist
191
163
  - assets/photoapp-process.workflow/Contents/QuickLook/Thumbnail.png
@@ -226,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
198
  version: '0'
227
199
  requirements: []
228
200
  rubyforge_project:
229
- rubygems_version: 2.4.5.1
201
+ rubygems_version: 2.6.11
230
202
  signing_key:
231
203
  specification_version: 4
232
204
  summary: A tool for processing cave photos for DeSoto Caverns.