photoarchiver 0.1.1 → 0.1.3
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.
- checksums.yaml +4 -4
- data/.idea/.rakeTasks +1 -1
- data/.idea/photoarchiver.iml +18 -16
- data/.idea/runConfigurations/Rakefile.xml +24 -0
- data/.idea/runConfigurations/install.xml +2 -2
- data/.idea/workspace.xml +57 -72
- data/lib/photoarchiver.rb +7 -4
- data/lib/photoarchiver/version.rb +1 -1
- metadata +26 -25
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef3d1f86390f9182fca92bb6fbb7239276c29065
|
|
4
|
+
data.tar.gz: d3a323150a7c2b2bdb40701bcff5c435c0dbb607
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 776151e8e426f7ef4f591c9d0741c4e4456c06ba5f5c8cd4fa3ba2d7f437dfe7b5425fc8e432cd88eabd26db6eda359053dfa858791d97ec31e94f1e8986937a
|
|
7
|
+
data.tar.gz: d0ed85ba51cef4c8c3b7af6aa5ee4e3c5052e95eba42244ad474990930766c4f80067deb485fe665d6574f7a2c955177c0d5db445a95cd9348aaa640bf8cf071
|
data/.idea/.rakeTasks
CHANGED
|
@@ -4,4 +4,4 @@ You are allowed to:
|
|
|
4
4
|
1. Remove rake task
|
|
5
5
|
2. Add existing rake tasks
|
|
6
6
|
To add existing rake tasks automatically delete this file and reload the project.
|
|
7
|
-
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build photoarchiver-0.1.
|
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build photoarchiver-0.1.3.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install photoarchiver-0.1.3.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.1.3 and build and push photoarchiver-0.1.3.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
|
data/.idea/photoarchiver.iml
CHANGED
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
29
29
|
<COMMAND_CONFIG_SETTINGS_ID NAME="GEM_NAME" VALUE="bundler" />
|
|
30
30
|
<COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_NAME" VALUE="gem" />
|
|
31
|
-
<COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_ARGS" VALUE="install ./photoarchiver-0.1.
|
|
32
|
-
<COMMAND_CONFIG_SETTINGS_ID NAME="WORKING_DIR" VALUE="install ./photoarchiver-0.1.
|
|
31
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_ARGS" VALUE="install ./photoarchiver-0.1.3.gem" />
|
|
32
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="WORKING_DIR" VALUE="install ./photoarchiver-0.1.3.gem" />
|
|
33
33
|
<RunnerSettings RunnerId="RubyRunner" />
|
|
34
34
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
35
35
|
<method />
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
61
61
|
<method />
|
|
62
62
|
</configuration>
|
|
63
|
-
<configuration default="false" name="
|
|
63
|
+
<configuration default="false" name="Rakefile" type="RubyRunConfigurationType" factoryName="Ruby">
|
|
64
64
|
<module name="photoarchiver" />
|
|
65
65
|
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
66
|
-
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR
|
|
66
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
|
67
67
|
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
68
|
-
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="
|
|
68
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
69
69
|
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
70
70
|
<envs />
|
|
71
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
|
71
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
72
72
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
73
73
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
74
74
|
<COVERAGE_PATTERN ENABLED="true">
|
|
@@ -76,21 +76,21 @@
|
|
|
76
76
|
</COVERAGE_PATTERN>
|
|
77
77
|
</EXTENSION>
|
|
78
78
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
79
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/
|
|
80
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="
|
|
79
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/Rakefile" />
|
|
80
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
81
81
|
<RunnerSettings RunnerId="RubyRunner" />
|
|
82
82
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
83
83
|
<method />
|
|
84
84
|
</configuration>
|
|
85
|
-
<configuration default="false" name="
|
|
85
|
+
<configuration default="false" name="test" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
|
86
86
|
<module name="photoarchiver" />
|
|
87
87
|
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
88
|
-
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR
|
|
88
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib" />
|
|
89
89
|
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
90
90
|
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
91
91
|
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
92
92
|
<envs />
|
|
93
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
|
93
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
94
94
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
95
95
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
96
96
|
<COVERAGE_PATTERN ENABLED="true">
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
</COVERAGE_PATTERN>
|
|
99
99
|
</EXTENSION>
|
|
100
100
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
101
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/
|
|
101
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/test.rb" />
|
|
102
102
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
103
103
|
<RunnerSettings RunnerId="RubyRunner" />
|
|
104
104
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
@@ -107,11 +107,13 @@
|
|
|
107
107
|
</component>
|
|
108
108
|
<component name="NewModuleRootManager">
|
|
109
109
|
<content url="file://$MODULE_DIR$" />
|
|
110
|
-
<orderEntry type="jdk" jdkName="RVM: ruby-2.0.0-p353
|
|
110
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-2.0.0-p353" jdkType="RUBY_SDK" />
|
|
111
111
|
<orderEntry type="sourceFolder" forTests="false" />
|
|
112
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.
|
|
113
|
-
<orderEntry type="library" scope="PROVIDED" name="exifr (v1.1.3, RVM: ruby-2.0.0-p353
|
|
114
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
|
112
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.5.1, RVM: ruby-2.0.0-p353) [gem]" level="application" />
|
|
113
|
+
<orderEntry type="library" scope="PROVIDED" name="exifr (v1.1.3, RVM: ruby-2.0.0-p353) [gem]" level="application" />
|
|
114
|
+
<orderEntry type="library" scope="PROVIDED" name="fileutils (v0.7, RVM: ruby-2.0.0-p353) [gem]" level="application" />
|
|
115
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.1.1, RVM: ruby-2.0.0-p353) [gem]" level="application" />
|
|
116
|
+
<orderEntry type="library" scope="PROVIDED" name="rmagick (v2.13.2, RVM: ruby-2.0.0-p353) [gem]" level="application" />
|
|
115
117
|
</component>
|
|
116
118
|
</module>
|
|
117
119
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<component name="ProjectRunConfigurationManager">
|
|
2
|
+
<configuration default="false" name="Rakefile" type="RubyRunConfigurationType" factoryName="Ruby">
|
|
3
|
+
<module name="photoarchiver" />
|
|
4
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
5
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
|
6
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
7
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
8
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
9
|
+
<envs />
|
|
10
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
11
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
12
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
13
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
14
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
15
|
+
</COVERAGE_PATTERN>
|
|
16
|
+
</EXTENSION>
|
|
17
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
18
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/Rakefile" />
|
|
19
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
20
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
21
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
22
|
+
<method />
|
|
23
|
+
</configuration>
|
|
24
|
+
</component>
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
18
18
|
<COMMAND_CONFIG_SETTINGS_ID NAME="GEM_NAME" VALUE="bundler" />
|
|
19
19
|
<COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_NAME" VALUE="gem" />
|
|
20
|
-
<COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_ARGS" VALUE="install ./photoarchiver-0.1.
|
|
21
|
-
<COMMAND_CONFIG_SETTINGS_ID NAME="WORKING_DIR" VALUE="install ./photoarchiver-0.1.
|
|
20
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_ARGS" VALUE="install ./photoarchiver-0.1.3.gem" />
|
|
21
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="WORKING_DIR" VALUE="install ./photoarchiver-0.1.3.gem" />
|
|
22
22
|
<RunnerSettings RunnerId="RubyRunner" />
|
|
23
23
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
24
24
|
<method />
|
data/.idea/workspace.xml
CHANGED
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
|
14
14
|
<component name="CoverageDataManager">
|
|
15
15
|
<SUITE FILE_PATH="coverage/photoarchiver@build__photoarchiver.coverage" NAME="build: photoarchiver Coverage Results" MODIFIED="1387765515193" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="photoarchiver" />
|
|
16
|
+
<SUITE FILE_PATH="coverage/photoarchiver@test.coverage" NAME="test Coverage Results" MODIFIED="1388278105251" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib" MODULE_NAME="photoarchiver" />
|
|
16
17
|
<SUITE FILE_PATH="coverage/photoarchiver@Rakefile.coverage" NAME="Rakefile Coverage Results" MODIFIED="1387752918497" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="photoarchiver" />
|
|
17
|
-
<SUITE FILE_PATH="coverage/photoarchiver@install.coverage" NAME="install Coverage Results" MODIFIED="
|
|
18
|
+
<SUITE FILE_PATH="coverage/photoarchiver@install.coverage" NAME="install Coverage Results" MODIFIED="1388278367924" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="photoarchiver" />
|
|
18
19
|
<SUITE FILE_PATH="coverage/photoarchiver@photoarchiver.coverage" NAME="photoarchiver Coverage Results" MODIFIED="1387765799946" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib" MODULE_NAME="photoarchiver" />
|
|
19
20
|
</component>
|
|
20
21
|
<component name="CreatePatchCommitExecutor">
|
|
@@ -28,26 +29,7 @@
|
|
|
28
29
|
<favorites_list name="photoarchiver" />
|
|
29
30
|
</component>
|
|
30
31
|
<component name="FileEditorManager">
|
|
31
|
-
<leaf
|
|
32
|
-
<file leaf-file-name="photoarchiver.rb" pinned="false" current="true" current-in-tab="true">
|
|
33
|
-
<entry file="file://$PROJECT_DIR$/lib/photoarchiver.rb">
|
|
34
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
35
|
-
<state line="5" column="0" selection-start="90" selection-end="90" vertical-scroll-proportion="0.16778524" vertical-offset="0" max-vertical-offset="615">
|
|
36
|
-
<folding />
|
|
37
|
-
</state>
|
|
38
|
-
</provider>
|
|
39
|
-
</entry>
|
|
40
|
-
</file>
|
|
41
|
-
<file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
|
|
42
|
-
<entry file="file://$PROJECT_DIR$/lib/photoarchiver/version.rb">
|
|
43
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
44
|
-
<state line="1" column="18" selection-start="39" selection-end="39" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="135">
|
|
45
|
-
<folding />
|
|
46
|
-
</state>
|
|
47
|
-
</provider>
|
|
48
|
-
</entry>
|
|
49
|
-
</file>
|
|
50
|
-
</leaf>
|
|
32
|
+
<leaf />
|
|
51
33
|
</component>
|
|
52
34
|
<component name="FindManager">
|
|
53
35
|
<FindUsagesManager>
|
|
@@ -58,9 +40,10 @@
|
|
|
58
40
|
<option name="changedFiles">
|
|
59
41
|
<list>
|
|
60
42
|
<option value="$PROJECT_DIR$/photoarchiver.gemspec" />
|
|
61
|
-
<option value="$PROJECT_DIR$/lib/photoarchiver/version.rb" />
|
|
62
43
|
<option value="$PROJECT_DIR$/README.md" />
|
|
44
|
+
<option value="$PROJECT_DIR$/lib/test.rb" />
|
|
63
45
|
<option value="$PROJECT_DIR$/lib/photoarchiver.rb" />
|
|
46
|
+
<option value="$PROJECT_DIR$/lib/photoarchiver/version.rb" />
|
|
64
47
|
</list>
|
|
65
48
|
</option>
|
|
66
49
|
</component>
|
|
@@ -95,7 +78,6 @@
|
|
|
95
78
|
<sortByType />
|
|
96
79
|
</navigator>
|
|
97
80
|
<panes>
|
|
98
|
-
<pane id="Scope" />
|
|
99
81
|
<pane id="ProjectPane">
|
|
100
82
|
<subPane>
|
|
101
83
|
<PATH>
|
|
@@ -162,6 +144,7 @@
|
|
|
162
144
|
</PATH>
|
|
163
145
|
</subPane>
|
|
164
146
|
</pane>
|
|
147
|
+
<pane id="Scope" />
|
|
165
148
|
</panes>
|
|
166
149
|
</component>
|
|
167
150
|
<component name="PropertiesComponent">
|
|
@@ -175,7 +158,29 @@
|
|
|
175
158
|
<property name="options.splitter.details.proportions" value="0.2" />
|
|
176
159
|
<property name="options.searchVisible" value="true" />
|
|
177
160
|
</component>
|
|
178
|
-
<component name="RunManager" selected="
|
|
161
|
+
<component name="RunManager" selected="Gem Command.install">
|
|
162
|
+
<configuration default="false" name="test" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
|
163
|
+
<module name="photoarchiver" />
|
|
164
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
165
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib" />
|
|
166
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
167
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
168
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
169
|
+
<envs />
|
|
170
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
171
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
172
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
173
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
174
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
175
|
+
</COVERAGE_PATTERN>
|
|
176
|
+
</EXTENSION>
|
|
177
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
178
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/test.rb" />
|
|
179
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
180
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
181
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
182
|
+
<method />
|
|
183
|
+
</configuration>
|
|
179
184
|
<configuration default="true" type="CommandRunConfigurationType" factoryName="Gem Command">
|
|
180
185
|
<module name="" />
|
|
181
186
|
<COMMAND_RUN_CONFIGURATION NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -406,34 +411,17 @@
|
|
|
406
411
|
<SPORK_RUN_CONFIG NAME="SPORK_RUN_CONFIG" VALUE="RSPEC" />
|
|
407
412
|
<method />
|
|
408
413
|
</configuration>
|
|
409
|
-
<configuration default="false" name="photoarchiver" type="RubyRunConfigurationType" factoryName="Ruby">
|
|
410
|
-
<module name="photoarchiver" />
|
|
411
|
-
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
412
|
-
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib" />
|
|
413
|
-
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
414
|
-
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="RVM: ruby-2.0.0-p353 [global]" />
|
|
415
|
-
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
416
|
-
<envs />
|
|
417
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
418
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
419
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
420
|
-
<COVERAGE_PATTERN ENABLED="true">
|
|
421
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
422
|
-
</COVERAGE_PATTERN>
|
|
423
|
-
</EXTENSION>
|
|
424
|
-
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
425
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/photoarchiver.rb" />
|
|
426
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="$USER_HOME$/Desktop/pics/picsource $USER_HOME$/Desktop/pics/picdest" />
|
|
427
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
|
428
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
429
|
-
<method />
|
|
430
|
-
</configuration>
|
|
431
414
|
<list size="4">
|
|
432
415
|
<item index="0" class="java.lang.String" itemvalue="Gem Command.install" />
|
|
433
416
|
<item index="1" class="java.lang.String" itemvalue="Rake.build: photoarchiver" />
|
|
434
|
-
<item index="2" class="java.lang.String" itemvalue="Ruby.
|
|
435
|
-
<item index="3" class="java.lang.String" itemvalue="Ruby.
|
|
417
|
+
<item index="2" class="java.lang.String" itemvalue="Ruby.Rakefile" />
|
|
418
|
+
<item index="3" class="java.lang.String" itemvalue="Ruby.test" />
|
|
436
419
|
</list>
|
|
420
|
+
<recent_temporary>
|
|
421
|
+
<list size="1">
|
|
422
|
+
<item index="0" class="java.lang.String" itemvalue="Ruby.test" />
|
|
423
|
+
</list>
|
|
424
|
+
</recent_temporary>
|
|
437
425
|
</component>
|
|
438
426
|
<component name="ShelveChangesManager" show_recycled="false" />
|
|
439
427
|
<component name="SvnConfiguration" maxAnnotateRevisions="500" myUseAcceleration="nothing" myAutoUpdateAfterCommit="false" cleanupOnStartRun="false" SSL_PROTOCOLS="sslv3">
|
|
@@ -483,18 +471,18 @@
|
|
|
483
471
|
</component>
|
|
484
472
|
<component name="ToolWindowManager">
|
|
485
473
|
<frame x="0" y="22" width="1440" height="790" extended-state="6" />
|
|
486
|
-
<editor active="
|
|
474
|
+
<editor active="false" />
|
|
487
475
|
<layout>
|
|
488
476
|
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
489
477
|
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3292011" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
490
478
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32872927" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
491
479
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
492
480
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24964234" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
493
|
-
<window_info id="Project" active="
|
|
481
|
+
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25894135" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
|
494
482
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
495
483
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
|
496
|
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32596686" sideWeight="0.
|
|
497
|
-
<window_info id="Run" active="
|
|
484
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32596686" sideWeight="0.50429183" order="7" side_tool="true" content_ui="tabs" />
|
|
485
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.42403314" sideWeight="0.49570817" order="2" side_tool="false" content_ui="tabs" />
|
|
498
486
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
499
487
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
500
488
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
@@ -524,23 +512,17 @@
|
|
|
524
512
|
<component name="editorHistoryManager">
|
|
525
513
|
<entry file="file://$PROJECT_DIR$/lib/photoarchiver.rb">
|
|
526
514
|
<provider selected="true" editor-type-id="text-editor">
|
|
527
|
-
<state line="18" column="43" selection-start="610" selection-end="610" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="600"
|
|
528
|
-
<folding />
|
|
529
|
-
</state>
|
|
515
|
+
<state line="18" column="43" selection-start="610" selection-end="610" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="600" />
|
|
530
516
|
</provider>
|
|
531
517
|
</entry>
|
|
532
518
|
<entry file="file://$PROJECT_DIR$/lib/photoarchiver/version.rb">
|
|
533
519
|
<provider selected="true" editor-type-id="text-editor">
|
|
534
|
-
<state line="1" column="16" selection-start="37" selection-end="37" vertical-scroll-proportion="0.0" vertical-offset="15" max-vertical-offset="135"
|
|
535
|
-
<folding />
|
|
536
|
-
</state>
|
|
520
|
+
<state line="1" column="16" selection-start="37" selection-end="37" vertical-scroll-proportion="0.0" vertical-offset="15" max-vertical-offset="135" />
|
|
537
521
|
</provider>
|
|
538
522
|
</entry>
|
|
539
523
|
<entry file="file://$PROJECT_DIR$/lib/photoarchiver.rb">
|
|
540
524
|
<provider selected="true" editor-type-id="text-editor">
|
|
541
|
-
<state line="24" column="78" selection-start="897" selection-end="897" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="615"
|
|
542
|
-
<folding />
|
|
543
|
-
</state>
|
|
525
|
+
<state line="24" column="78" selection-start="897" selection-end="897" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="615" />
|
|
544
526
|
</provider>
|
|
545
527
|
</entry>
|
|
546
528
|
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
@@ -552,9 +534,7 @@
|
|
|
552
534
|
</entry>
|
|
553
535
|
<entry file="file://$PROJECT_DIR$/lib/photoarchiver.rb">
|
|
554
536
|
<provider selected="true" editor-type-id="text-editor">
|
|
555
|
-
<state line="18" column="45" selection-start="621" selection-end="621" vertical-scroll-proportion="0.0" vertical-offset="270" max-vertical-offset="585"
|
|
556
|
-
<folding />
|
|
557
|
-
</state>
|
|
537
|
+
<state line="18" column="45" selection-start="621" selection-end="621" vertical-scroll-proportion="0.0" vertical-offset="270" max-vertical-offset="585" />
|
|
558
538
|
</provider>
|
|
559
539
|
</entry>
|
|
560
540
|
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
@@ -580,12 +560,12 @@
|
|
|
580
560
|
</provider>
|
|
581
561
|
</entry>
|
|
582
562
|
<entry file="file://$PROJECT_DIR$/LICENSE.txt">
|
|
583
|
-
<provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
|
|
584
|
-
<state />
|
|
585
|
-
</provider>
|
|
586
563
|
<provider selected="true" editor-type-id="text-editor">
|
|
587
564
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="446" />
|
|
588
565
|
</provider>
|
|
566
|
+
<provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
|
|
567
|
+
<state />
|
|
568
|
+
</provider>
|
|
589
569
|
</entry>
|
|
590
570
|
<entry file="file://$PROJECT_DIR$/Rakefile">
|
|
591
571
|
<provider selected="true" editor-type-id="text-editor">
|
|
@@ -601,9 +581,7 @@
|
|
|
601
581
|
</entry>
|
|
602
582
|
<entry file="file://$PROJECT_DIR$/photoarchiver.gemspec">
|
|
603
583
|
<provider selected="true" editor-type-id="text-editor">
|
|
604
|
-
<state line="23" column="45" selection-start="1110" selection-end="1110" vertical-scroll-proportion="0.75" vertical-offset="0" max-vertical-offset="465"
|
|
605
|
-
<folding />
|
|
606
|
-
</state>
|
|
584
|
+
<state line="23" column="45" selection-start="1110" selection-end="1110" vertical-scroll-proportion="0.75" vertical-offset="0" max-vertical-offset="465" />
|
|
607
585
|
</provider>
|
|
608
586
|
</entry>
|
|
609
587
|
<entry file="file://$PROJECT_DIR$/README.md">
|
|
@@ -615,14 +593,21 @@
|
|
|
615
593
|
</entry>
|
|
616
594
|
<entry file="file://$PROJECT_DIR$/lib/photoarchiver/version.rb">
|
|
617
595
|
<provider selected="true" editor-type-id="text-editor">
|
|
618
|
-
<state line="1" column="18" selection-start="39" selection-end="39" vertical-scroll-proportion="0.
|
|
596
|
+
<state line="1" column="18" selection-start="39" selection-end="39" vertical-scroll-proportion="0.038560413" vertical-offset="0" max-vertical-offset="389">
|
|
619
597
|
<folding />
|
|
620
598
|
</state>
|
|
621
599
|
</provider>
|
|
622
600
|
</entry>
|
|
623
601
|
<entry file="file://$PROJECT_DIR$/lib/photoarchiver.rb">
|
|
624
602
|
<provider selected="true" editor-type-id="text-editor">
|
|
625
|
-
<state line="
|
|
603
|
+
<state line="28" column="0" selection-start="952" selection-end="952" vertical-scroll-proportion="1.1170213" vertical-offset="0" max-vertical-offset="660">
|
|
604
|
+
<folding />
|
|
605
|
+
</state>
|
|
606
|
+
</provider>
|
|
607
|
+
</entry>
|
|
608
|
+
<entry file="file://$PROJECT_DIR$/lib/test.rb">
|
|
609
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
610
|
+
<state line="9" column="62" selection-start="145" selection-end="239" vertical-scroll-proportion="0.3470437" vertical-offset="0" max-vertical-offset="540">
|
|
626
611
|
<folding />
|
|
627
612
|
</state>
|
|
628
613
|
</provider>
|
data/lib/photoarchiver.rb
CHANGED
|
@@ -19,15 +19,18 @@ module Photoarchiver
|
|
|
19
19
|
puts "Source Directory: #{dir_src}"
|
|
20
20
|
puts "Target Directory: #{dir_target}"
|
|
21
21
|
|
|
22
|
+
|
|
22
23
|
# Gather up all the potential photo files
|
|
23
|
-
|
|
24
|
+
files = Dir.glob(File.join(dir_src, '**', '*')).reject { |temp| File.directory? temp }
|
|
25
|
+
photos = files.grep(/\.JPG/i)
|
|
24
26
|
|
|
25
27
|
# Loop through the photos, not currently using index but may in the future
|
|
26
28
|
photos.each_with_index {|val, index|
|
|
27
|
-
exif_data = EXIFR::JPEG.new(val).date_time_original
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
date_created = EXIFR::JPEG.new(val).exif.date_time_original || File.stat(val).ctime
|
|
31
|
+
|
|
32
|
+
FileUtils::mkdir_p File.join(dir_target, date_created.strftime('%Y'), date_created.strftime('%Y-%m-%d'))
|
|
33
|
+
target_file = File.join(dir_target, date_created.strftime('%Y'), date_created.strftime('%Y-%m-%d'), date_created.strftime('%Y%m%d-%H%M%S')) + '.jpg'
|
|
31
34
|
puts "Moving #{val} to #{target_file}"
|
|
32
35
|
File.rename(val, target_file)
|
|
33
36
|
}
|
metadata
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: photoarchiver
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jason Stortz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-12-
|
|
11
|
+
date: 2013-12-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - ~>
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '1.3'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - ~>
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.3'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: exifr
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
52
|
+
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: fileutils
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
description: This gem organizes photos into a series of directories. See the README.md
|
|
@@ -74,19 +74,20 @@ executables: []
|
|
|
74
74
|
extensions: []
|
|
75
75
|
extra_rdoc_files: []
|
|
76
76
|
files:
|
|
77
|
-
- .gitignore
|
|
78
|
-
- .idea/.name
|
|
79
|
-
- .idea/.rakeTasks
|
|
80
|
-
- .idea/dictionaries/jstortz.xml
|
|
81
|
-
- .idea/encodings.xml
|
|
82
|
-
- .idea/misc.xml
|
|
83
|
-
- .idea/modules.xml
|
|
84
|
-
- .idea/photoarchiver.iml
|
|
85
|
-
- .idea/runConfigurations/
|
|
86
|
-
- .idea/runConfigurations/
|
|
87
|
-
- .idea/
|
|
88
|
-
- .idea/
|
|
89
|
-
- .idea/
|
|
77
|
+
- ".gitignore"
|
|
78
|
+
- ".idea/.name"
|
|
79
|
+
- ".idea/.rakeTasks"
|
|
80
|
+
- ".idea/dictionaries/jstortz.xml"
|
|
81
|
+
- ".idea/encodings.xml"
|
|
82
|
+
- ".idea/misc.xml"
|
|
83
|
+
- ".idea/modules.xml"
|
|
84
|
+
- ".idea/photoarchiver.iml"
|
|
85
|
+
- ".idea/runConfigurations/Rakefile.xml"
|
|
86
|
+
- ".idea/runConfigurations/build__photoarchiver.xml"
|
|
87
|
+
- ".idea/runConfigurations/install.xml"
|
|
88
|
+
- ".idea/scopes/scope_settings.xml"
|
|
89
|
+
- ".idea/vcs.xml"
|
|
90
|
+
- ".idea/workspace.xml"
|
|
90
91
|
- Gemfile
|
|
91
92
|
- LICENSE.txt
|
|
92
93
|
- README.md
|
|
@@ -104,12 +105,12 @@ require_paths:
|
|
|
104
105
|
- lib
|
|
105
106
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
107
|
requirements:
|
|
107
|
-
- -
|
|
108
|
+
- - ">="
|
|
108
109
|
- !ruby/object:Gem::Version
|
|
109
110
|
version: '0'
|
|
110
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
112
|
requirements:
|
|
112
|
-
- -
|
|
113
|
+
- - ">="
|
|
113
114
|
- !ruby/object:Gem::Version
|
|
114
115
|
version: '0'
|
|
115
116
|
requirements: []
|