desoto-photoapp 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b4c4798fc1462c6605f5167a10627ca0d2bd5659
4
+ data.tar.gz: 9b6be754362491d2371d5bf3ded19db7f7d10225
5
+ SHA512:
6
+ metadata.gz: 79e41ced07414af37fe965cf72703640e68bdba509829606f6cb6af5fd0480bd65d98b0e954540880bfb5c699f8a9696ccf9f83324eaa044ded9e4a8aeb15a2b
7
+ data.tar.gz: bd2598671df954db6427efcf43dd622246b6a5ff8bca7ae13344fb3d82347a8808ad20ebd23bac7ef4ea7412b3193378da5e4e1e64a478a3718ed6eaa26a473d
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ .DS_Store
11
+ .tmp
12
+ test/print
13
+ test/upload
14
+ test/inbound
15
+ photoapp.yml
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.2
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in photoapp.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Brandon Mathis
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,48 @@
1
+ # Photoapp
2
+
3
+ This is a tool for automating the photo system at DeSoto Caverns.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'desoto-photoapp', github: 'imathis/desoto-photoapp'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Install the [Automator actions](https://photosautomation.com/index.html) for importing photos. Download the [installer here](https://photosautomation.com/installer.zip).
18
+
19
+ ## Setup
20
+
21
+ This app uses CUPS to print. To configure your CUPS defaults:
22
+
23
+ - Visit [The CUPS printers page](http://127.0.0.1:631/printers/)
24
+ - Choose the printer you want to configure
25
+ - Select "Set Default Options" from the Administration drop-down.
26
+ - Change the profile as explained below and save.
27
+
28
+
29
+ ### Default printer settings
30
+
31
+ These are the default settings for an Epson Stylus Photo R280. If using a different printer, use whatever settings are equivalent.
32
+
33
+ ```
34
+ Page Setup: Sheet Feeder - Borderless
35
+ Paper Size: 5x7 in
36
+ Media Type: Ulta Premium Photo Paper Glossy
37
+
38
+ ... further down ...
39
+
40
+ MediaType: Ulta Premium Photo Paper Glossy
41
+ Media Size: 5x7 in (Sheet Feeder - Borderless)
42
+ ```
43
+
44
+ ## Development
45
+
46
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
47
+
48
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
Binary file
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "photoapp"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,39 @@
1
+ #! /usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift(File.expand_path("../lib", File.dirname(__FILE__)))
4
+
5
+ require 'optparse'
6
+ require "desoto-photoapp"
7
+
8
+ options = {}
9
+
10
+ OptionParser.new do |opts|
11
+ opts.on("-c", "--config PATH", String, "Path to config file") do |config|
12
+ options['config'] = config
13
+ end
14
+
15
+ opts.on("-s", "--source PATH", String, "Path to photos directory") do |source|
16
+ options['source'] = source
17
+ end
18
+ end.parse!
19
+
20
+ if ARGV.first == 'setup'
21
+ ARGV.shift
22
+ if `brew list imagemagick` =~ /Error:/
23
+ system "brew install imagemagick"
24
+ end
25
+ system "open #{Photoapp.gem_dir('assets/photos-action-installer.pkg')}"
26
+ else
27
+ p = Photoapp::Session.new(options)
28
+
29
+ if ARGV.first == 'process'
30
+ ARGV.shift
31
+ p.process
32
+ elsif ARGV.first == 'upload'
33
+ ARGV.shift
34
+ p.upload
35
+ elsif ARGV.first == 'print'
36
+ ARGV.shift
37
+ p.print
38
+ end
39
+ end
@@ -0,0 +1,8 @@
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>CFBundleName</key>
6
+ <string>workflow</string>
7
+ </dict>
8
+ </plist>
@@ -0,0 +1,345 @@
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>409.2</string>
7
+ <key>AMApplicationVersion</key>
8
+ <string>2.5</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
+ <false/>
22
+ <key>Types</key>
23
+ <array>
24
+ <string>com.apple.cocoa.path</string>
25
+ </array>
26
+ </dict>
27
+ <key>AMActionVersion</key>
28
+ <string>1.0.2</string>
29
+ <key>AMApplication</key>
30
+ <array>
31
+ <string>Finder</string>
32
+ </array>
33
+ <key>AMParameterProperties</key>
34
+ <dict>
35
+ <key>recurse</key>
36
+ <dict/>
37
+ </dict>
38
+ <key>AMProvides</key>
39
+ <dict>
40
+ <key>Container</key>
41
+ <string>List</string>
42
+ <key>Types</key>
43
+ <array>
44
+ <string>com.apple.cocoa.path</string>
45
+ </array>
46
+ </dict>
47
+ <key>AMRequiredResources</key>
48
+ <array/>
49
+ <key>ActionBundlePath</key>
50
+ <string>/System/Library/Automator/Get Folder Contents.action</string>
51
+ <key>ActionName</key>
52
+ <string>Get Folder Contents</string>
53
+ <key>ActionParameters</key>
54
+ <dict>
55
+ <key>recurse</key>
56
+ <false/>
57
+ </dict>
58
+ <key>BundleIdentifier</key>
59
+ <string>com.apple.Automator.GetFolderContents</string>
60
+ <key>CFBundleVersion</key>
61
+ <string>1.0.2</string>
62
+ <key>CanShowSelectedItemsWhenRun</key>
63
+ <true/>
64
+ <key>CanShowWhenRun</key>
65
+ <true/>
66
+ <key>Category</key>
67
+ <array>
68
+ <string>AMCategoryFilesAndFolders</string>
69
+ </array>
70
+ <key>Class Name</key>
71
+ <string>GetFolderContents</string>
72
+ <key>InputUUID</key>
73
+ <string>7E8728FF-7ACC-42B8-AA00-011832942505</string>
74
+ <key>Keywords</key>
75
+ <array>
76
+ <string>File</string>
77
+ <string>Folder</string>
78
+ </array>
79
+ <key>OutputUUID</key>
80
+ <string>D94B20FF-575A-4968-ADD4-5D8D5F1C3844</string>
81
+ <key>UUID</key>
82
+ <string>E2DBEF57-9022-4A18-8F53-4D7A7B5BAF19</string>
83
+ <key>UnlocalizedApplications</key>
84
+ <array>
85
+ <string>Finder</string>
86
+ </array>
87
+ <key>arguments</key>
88
+ <dict>
89
+ <key>0</key>
90
+ <dict>
91
+ <key>default value</key>
92
+ <false/>
93
+ <key>name</key>
94
+ <string>recurse</string>
95
+ <key>required</key>
96
+ <string>0</string>
97
+ <key>type</key>
98
+ <string>0</string>
99
+ <key>uuid</key>
100
+ <string>0</string>
101
+ </dict>
102
+ </dict>
103
+ <key>isViewVisible</key>
104
+ <true/>
105
+ <key>location</key>
106
+ <string>369.000000:102.000000</string>
107
+ <key>nibPath</key>
108
+ <string>/System/Library/Automator/Get Folder Contents.action/Contents/Resources/Base.lproj/main.nib</string>
109
+ </dict>
110
+ <key>isViewVisible</key>
111
+ <true/>
112
+ </dict>
113
+ <dict>
114
+ <key>action</key>
115
+ <dict>
116
+ <key>AMAccepts</key>
117
+ <dict>
118
+ <key>Container</key>
119
+ <string>List</string>
120
+ <key>Optional</key>
121
+ <false/>
122
+ <key>Types</key>
123
+ <array>
124
+ <string>com.apple.applescript.alias-object.image</string>
125
+ </array>
126
+ </dict>
127
+ <key>AMActionVersion</key>
128
+ <string>8</string>
129
+ <key>AMApplication</key>
130
+ <array/>
131
+ <key>AMParameterProperties</key>
132
+ <dict>
133
+ <key>filterIdentifier</key>
134
+ <dict/>
135
+ <key>filterParameters</key>
136
+ <dict/>
137
+ </dict>
138
+ <key>AMProvides</key>
139
+ <dict>
140
+ <key>Container</key>
141
+ <string>List</string>
142
+ <key>Types</key>
143
+ <array>
144
+ <string>com.apple.applescript.alias-object.image</string>
145
+ </array>
146
+ </dict>
147
+ <key>AMRequiredResources</key>
148
+ <array/>
149
+ <key>ActionBundlePath</key>
150
+ <string>/System/Library/Automator/Apply Quartz Composition Filter to Image Files.action</string>
151
+ <key>ActionName</key>
152
+ <string>Apply Quartz Composition Filter to Image Files</string>
153
+ <key>ActionParameters</key>
154
+ <dict>
155
+ <key>filterIdentifier</key>
156
+ <string>/color controls</string>
157
+ <key>filterParameters</key>
158
+ <dict>
159
+ <key>brightness</key>
160
+ <real>0.0</real>
161
+ <key>contrast</key>
162
+ <real>1.02</real>
163
+ <key>hue</key>
164
+ <real>0.0</real>
165
+ <key>saturation</key>
166
+ <real>1.1477118185863298</real>
167
+ </dict>
168
+ </dict>
169
+ <key>BundleIdentifier</key>
170
+ <string>com.apple.QuartzComposer.automatorActions.imageFilter</string>
171
+ <key>CFBundleVersion</key>
172
+ <string>8</string>
173
+ <key>CanShowSelectedItemsWhenRun</key>
174
+ <false/>
175
+ <key>CanShowWhenRun</key>
176
+ <true/>
177
+ <key>Category</key>
178
+ <array>
179
+ <string>AMCategoryPhotos</string>
180
+ </array>
181
+ <key>Class Name</key>
182
+ <string>QuartzComposerImageFilter</string>
183
+ <key>InputUUID</key>
184
+ <string>C88221E0-145B-4AB4-B31D-4B383E349474</string>
185
+ <key>Keywords</key>
186
+ <array>
187
+ <string>Quartz Composer</string>
188
+ <string>Image</string>
189
+ </array>
190
+ <key>OutputUUID</key>
191
+ <string>BD275A9A-26F5-4986-A5BC-02C3C724F0CA</string>
192
+ <key>UUID</key>
193
+ <string>72C211D3-3FF6-43FE-85F8-098506C0141F</string>
194
+ <key>arguments</key>
195
+ <dict>
196
+ <key>0</key>
197
+ <dict>
198
+ <key>default value</key>
199
+ <string>/sepia</string>
200
+ <key>name</key>
201
+ <string>filterIdentifier</string>
202
+ <key>required</key>
203
+ <string>0</string>
204
+ <key>type</key>
205
+ <string>0</string>
206
+ <key>uuid</key>
207
+ <string>0</string>
208
+ </dict>
209
+ </dict>
210
+ <key>isViewVisible</key>
211
+ <true/>
212
+ <key>location</key>
213
+ <string>369.000000:413.000000</string>
214
+ <key>nibPath</key>
215
+ <string>/System/Library/Automator/Apply Quartz Composition Filter to Image Files.action/Contents/Resources/English.lproj/main.nib</string>
216
+ </dict>
217
+ <key>isViewVisible</key>
218
+ <true/>
219
+ </dict>
220
+ <dict>
221
+ <key>action</key>
222
+ <dict>
223
+ <key>AMAccepts</key>
224
+ <dict>
225
+ <key>Container</key>
226
+ <string>List</string>
227
+ <key>Optional</key>
228
+ <false/>
229
+ <key>Types</key>
230
+ <array>
231
+ <string>com.apple.applescript.alias-object.image</string>
232
+ </array>
233
+ </dict>
234
+ <key>AMActionVersion</key>
235
+ <string>8</string>
236
+ <key>AMApplication</key>
237
+ <array/>
238
+ <key>AMParameterProperties</key>
239
+ <dict>
240
+ <key>filterIdentifier</key>
241
+ <dict/>
242
+ <key>filterParameters</key>
243
+ <dict/>
244
+ </dict>
245
+ <key>AMProvides</key>
246
+ <dict>
247
+ <key>Container</key>
248
+ <string>List</string>
249
+ <key>Types</key>
250
+ <array>
251
+ <string>com.apple.applescript.alias-object.image</string>
252
+ </array>
253
+ </dict>
254
+ <key>AMRequiredResources</key>
255
+ <array/>
256
+ <key>ActionBundlePath</key>
257
+ <string>/System/Library/Automator/Apply Quartz Composition Filter to Image Files.action</string>
258
+ <key>ActionName</key>
259
+ <string>Apply Quartz Composition Filter to Image Files</string>
260
+ <key>ActionParameters</key>
261
+ <dict>
262
+ <key>filterIdentifier</key>
263
+ <string>/sharpen</string>
264
+ <key>filterParameters</key>
265
+ <dict>
266
+ <key>amount</key>
267
+ <real>0.059999999999999998</real>
268
+ </dict>
269
+ </dict>
270
+ <key>BundleIdentifier</key>
271
+ <string>com.apple.QuartzComposer.automatorActions.imageFilter</string>
272
+ <key>CFBundleVersion</key>
273
+ <string>8</string>
274
+ <key>CanShowSelectedItemsWhenRun</key>
275
+ <false/>
276
+ <key>CanShowWhenRun</key>
277
+ <true/>
278
+ <key>Category</key>
279
+ <array>
280
+ <string>AMCategoryPhotos</string>
281
+ </array>
282
+ <key>Class Name</key>
283
+ <string>QuartzComposerImageFilter</string>
284
+ <key>InputUUID</key>
285
+ <string>23954409-13D4-47BF-A14B-2B4812D957CE</string>
286
+ <key>Keywords</key>
287
+ <array>
288
+ <string>Quartz Composer</string>
289
+ <string>Image</string>
290
+ </array>
291
+ <key>OutputUUID</key>
292
+ <string>9FAA26D0-490B-4E62-8A84-0263D47EBC99</string>
293
+ <key>UUID</key>
294
+ <string>8864A504-6BCC-4A02-A1B6-57A1ED94B1D9</string>
295
+ <key>arguments</key>
296
+ <dict>
297
+ <key>0</key>
298
+ <dict>
299
+ <key>default value</key>
300
+ <string>/sepia</string>
301
+ <key>name</key>
302
+ <string>filterIdentifier</string>
303
+ <key>required</key>
304
+ <string>0</string>
305
+ <key>type</key>
306
+ <string>0</string>
307
+ <key>uuid</key>
308
+ <string>0</string>
309
+ </dict>
310
+ </dict>
311
+ <key>isViewVisible</key>
312
+ <true/>
313
+ <key>location</key>
314
+ <string>369.000000:724.000000</string>
315
+ <key>nibPath</key>
316
+ <string>/System/Library/Automator/Apply Quartz Composition Filter to Image Files.action/Contents/Resources/English.lproj/main.nib</string>
317
+ </dict>
318
+ <key>isViewVisible</key>
319
+ <true/>
320
+ </dict>
321
+ </array>
322
+ <key>connectors</key>
323
+ <dict>
324
+ <key>3E4725D0-76D1-4075-B5FD-A60FD84DCB43</key>
325
+ <dict>
326
+ <key>from</key>
327
+ <string>72C211D3-3FF6-43FE-85F8-098506C0141F - 72C211D3-3FF6-43FE-85F8-098506C0141F</string>
328
+ <key>to</key>
329
+ <string>8864A504-6BCC-4A02-A1B6-57A1ED94B1D9 - 8864A504-6BCC-4A02-A1B6-57A1ED94B1D9</string>
330
+ </dict>
331
+ <key>FA681B5B-3A8C-455A-A5BC-AA87FA5A5C73</key>
332
+ <dict>
333
+ <key>from</key>
334
+ <string>E2DBEF57-9022-4A18-8F53-4D7A7B5BAF19 - E2DBEF57-9022-4A18-8F53-4D7A7B5BAF19</string>
335
+ <key>to</key>
336
+ <string>72C211D3-3FF6-43FE-85F8-098506C0141F - 72C211D3-3FF6-43FE-85F8-098506C0141F</string>
337
+ </dict>
338
+ </dict>
339
+ <key>workflowMetaData</key>
340
+ <dict>
341
+ <key>workflowTypeIdentifier</key>
342
+ <string>com.apple.Automator.workflow</string>
343
+ </dict>
344
+ </dict>
345
+ </plist>