imagetools 0.4.0 → 0.5.0

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
  SHA256:
3
- metadata.gz: 7217c6d917f940f4d9e9e5b1a3cfe37544dad01f3a6b5896de421da42da063bd
4
- data.tar.gz: 780d16d4e031222447f655f65b1fccf3b6cc7a47fe2f4f52e5c9deab982a8347
3
+ metadata.gz: b53e3efd5ec9c6507d2d197ff9644cc9b7093fca11e1cac4494970e5d81dfced
4
+ data.tar.gz: ff65e49971eb993341f6b8e0972340d8f9dc453ffd9c84bca2cebcaee14d6b58
5
5
  SHA512:
6
- metadata.gz: 8166fedb954f8ad155f8f5128f4a56e79253dbdeac2afc63e482f2fe4dd26bfd6ce3ff54c387e4cf13cd334b22cf553029814fde67dfe00f3104659f0a754e10
7
- data.tar.gz: e4214910ede9c5de20752fb95089f36e85a745e8f3d20ef6af3dac1cadeb83d45d18a1d100c19cd8936331fcb002dfe716eff8a13ccc65d159add8d4165d71ab
6
+ metadata.gz: 056f07697d5d5132452839e8446094888e634b22f7f46f5dcfdfe524d9bed827352066015be8f7a3967b4cfc0c12318e3843fee160cb5dae66c9bfd823ac1389
7
+ data.tar.gz: 3a1b4cfa5c91e435f9398a14630743c9688b80286af1366e32057277f3be42e80fe973513ac6b0670baee7b628e97748bc7e40d0c1d988867939c259f4914e9d
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build imagetools-0.4.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install imagetools-0.4.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install imagetools-0.4.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.4.0 and build and push imagetools-0.4.0.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run tests" fullCmd="test" taksId="test" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding">
4
+ <file url="PROJECT" charset="UTF-8" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
5
+ </profile>
6
+ </component>
data/.idea/misc.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" project-jdk-name="rbenv: 2.5.1" project-jdk-type="RUBY_SDK">
4
+ <output url="file://$PROJECT_DIR$/out" />
5
+ </component>
6
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/imagetools.iml" filepath="$PROJECT_DIR$/imagetools.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,290 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="b197c64f-57f8-4389-ab8d-dc9fe3cb05ba" name="Default" comment="" />
5
+ <ignored path="$PROJECT_DIR$/out/" />
6
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7
+ <option name="TRACKING_ENABLED" value="true" />
8
+ <option name="SHOW_DIALOG" value="false" />
9
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+ <option name="LAST_RESOLUTION" value="IGNORE" />
12
+ </component>
13
+ <component name="CoverageDataManager">
14
+ <SUITE FILE_PATH="coverage/imagetools@iconcreator.rcov" NAME="iconcreator Coverage Results" MODIFIED="1534313786832" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/exe" MODULE_NAME="imagetools" />
15
+ </component>
16
+ <component name="FileEditorManager">
17
+ <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
18
+ <file leaf-file-name="iconcreator" pinned="false" current-in-tab="false">
19
+ <entry file="file://$PROJECT_DIR$/exe/iconcreator">
20
+ <provider selected="true" editor-type-id="text-editor">
21
+ <state relative-caret-position="75">
22
+ <caret line="5" selection-start-line="5" selection-end-line="5" />
23
+ </state>
24
+ </provider>
25
+ </entry>
26
+ </file>
27
+ <file leaf-file-name="imagefilter.rb" pinned="false" current-in-tab="false">
28
+ <entry file="file://$PROJECT_DIR$/lib/imagetools/imagefilter.rb">
29
+ <provider selected="true" editor-type-id="text-editor">
30
+ <state relative-caret-position="218">
31
+ <caret line="21" column="24" selection-start-line="21" selection-start-column="24" selection-end-line="21" selection-end-column="24" />
32
+ </state>
33
+ </provider>
34
+ </entry>
35
+ </file>
36
+ <file leaf-file-name="imageconcat.rb" pinned="false" current-in-tab="false">
37
+ <entry file="file://$PROJECT_DIR$/lib/imagetools/imageconcat.rb">
38
+ <provider selected="true" editor-type-id="text-editor">
39
+ <state relative-caret-position="360">
40
+ <caret line="21" column="33" selection-start-line="21" selection-start-column="33" selection-end-line="21" selection-end-column="33" />
41
+ </state>
42
+ </provider>
43
+ </entry>
44
+ </file>
45
+ <file leaf-file-name="iconextractor.rb" pinned="false" current-in-tab="false">
46
+ <entry file="file://$PROJECT_DIR$/lib/imagetools/iconextractor.rb">
47
+ <provider selected="true" editor-type-id="text-editor" />
48
+ </entry>
49
+ </file>
50
+ <file leaf-file-name="iconcreator.rb" pinned="false" current-in-tab="true">
51
+ <entry file="file://$PROJECT_DIR$/lib/imagetools/iconcreator.rb">
52
+ <provider selected="true" editor-type-id="text-editor">
53
+ <state relative-caret-position="-363" />
54
+ </provider>
55
+ </entry>
56
+ </file>
57
+ <file leaf-file-name="imageresizer.rb" pinned="false" current-in-tab="false">
58
+ <entry file="file://$PROJECT_DIR$/lib/imagetools/imageresizer.rb">
59
+ <provider selected="true" editor-type-id="text-editor">
60
+ <state relative-caret-position="300">
61
+ <caret line="20" column="40" selection-start-line="20" selection-start-column="40" selection-end-line="20" selection-end-column="40" />
62
+ </state>
63
+ </provider>
64
+ </entry>
65
+ </file>
66
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
67
+ <entry file="file://$PROJECT_DIR$/lib/imagetools/version.rb">
68
+ <provider selected="true" editor-type-id="text-editor" />
69
+ </entry>
70
+ </file>
71
+ </leaf>
72
+ </component>
73
+ <component name="FindInProjectRecents">
74
+ <findStrings>
75
+ <find>&quot;-c</find>
76
+ </findStrings>
77
+ </component>
78
+ <component name="Git.Settings">
79
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
80
+ </component>
81
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
82
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
83
+ <component name="JsGulpfileManager">
84
+ <detection-done>true</detection-done>
85
+ <sorting>DEFINITION_ORDER</sorting>
86
+ </component>
87
+ <component name="NodePackageJsonFileManager">
88
+ <packageJsonPaths />
89
+ </component>
90
+ <component name="ProjectFrameBounds">
91
+ <option name="x" value="872" />
92
+ <option name="y" value="321" />
93
+ <option name="width" value="1920" />
94
+ <option name="height" value="1177" />
95
+ </component>
96
+ <component name="ProjectView">
97
+ <navigator proportions="" version="1">
98
+ <foldersAlwaysOnTop value="true" />
99
+ </navigator>
100
+ <panes>
101
+ <pane id="ProjectPane">
102
+ <subPane>
103
+ <expand>
104
+ <path>
105
+ <item name="imagetools" type="b2602c69:ProjectViewProjectNode" />
106
+ <item name="imagetools" type="462c0819:PsiDirectoryNode" />
107
+ </path>
108
+ <path>
109
+ <item name="imagetools" type="b2602c69:ProjectViewProjectNode" />
110
+ <item name="imagetools" type="462c0819:PsiDirectoryNode" />
111
+ <item name="exe" type="462c0819:PsiDirectoryNode" />
112
+ </path>
113
+ <path>
114
+ <item name="imagetools" type="b2602c69:ProjectViewProjectNode" />
115
+ <item name="imagetools" type="462c0819:PsiDirectoryNode" />
116
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
117
+ </path>
118
+ <path>
119
+ <item name="imagetools" type="b2602c69:ProjectViewProjectNode" />
120
+ <item name="imagetools" type="462c0819:PsiDirectoryNode" />
121
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
122
+ <item name="imagetools" type="462c0819:PsiDirectoryNode" />
123
+ </path>
124
+ </expand>
125
+ <select />
126
+ </subPane>
127
+ </pane>
128
+ <pane id="PackagesPane" />
129
+ <pane id="Scope" />
130
+ </panes>
131
+ </component>
132
+ <component name="PropertiesComponent">
133
+ <property name="GoToClass.includeLibraries" value="false" />
134
+ <property name="GoToClass.toSaveIncludeLibraries" value="false" />
135
+ <property name="GoToFile.includeJavaFiles" value="false" />
136
+ <property name="MemberChooser.copyJavadoc" value="false" />
137
+ <property name="MemberChooser.showClasses" value="true" />
138
+ <property name="MemberChooser.sorted" value="false" />
139
+ <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
140
+ <property name="nodejs_npm_path_reset_for_default_project" value="true" />
141
+ <property name="settings.editor.selected.configurable" value="preferences.keymap" />
142
+ </component>
143
+ <component name="RunDashboard">
144
+ <option name="ruleStates">
145
+ <list>
146
+ <RuleState>
147
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
148
+ </RuleState>
149
+ <RuleState>
150
+ <option name="name" value="StatusDashboardGroupingRule" />
151
+ </RuleState>
152
+ </list>
153
+ </option>
154
+ </component>
155
+ <component name="RunManager">
156
+ <configuration default="true" type="Application" factoryName="Application">
157
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
158
+ </configuration>
159
+ <configuration name="iconcreator" type="RubyRunConfigurationType" factoryName="Ruby">
160
+ <module name="imagetools" />
161
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
162
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$PROJECT_DIR$/exe" />
163
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
164
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
165
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
166
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
167
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
168
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov">
169
+ <COVERAGE_PATTERN ENABLED="true">
170
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
171
+ </COVERAGE_PATTERN>
172
+ </EXTENSION>
173
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$PROJECT_DIR$/exe/iconcreator" />
174
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
175
+ </configuration>
176
+ <configuration name="&lt;template&gt;" type="JUnit" default="true" selected="false">
177
+ <option name="MAIN_CLASS_NAME" />
178
+ <option name="VM_PARAMETERS" value="-ea" />
179
+ <option name="PARAMETERS" />
180
+ <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
181
+ </configuration>
182
+ <configuration name="&lt;template&gt;" type="TestNG" default="true" selected="false">
183
+ <option name="MAIN_CLASS_NAME" />
184
+ <option name="VM_PARAMETERS" value="-ea" />
185
+ <option name="PARAMETERS" />
186
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
187
+ </configuration>
188
+ <configuration name="&lt;template&gt;" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" default="true" selected="false">
189
+ <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
190
+ </configuration>
191
+ </component>
192
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
193
+ <component name="SvnConfiguration">
194
+ <configuration />
195
+ </component>
196
+ <component name="ToolWindowManager">
197
+ <frame x="872" y="321" width="1920" height="1177" extended-state="0" />
198
+ <layout>
199
+ <window_info anchor="bottom" id="TODO" order="6" />
200
+ <window_info anchor="right" id="Palette&#9;" order="3" />
201
+ <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
202
+ <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
203
+ <window_info anchor="bottom" id="Version Control" order="7" />
204
+ <window_info anchor="bottom" id="Run" order="2" />
205
+ <window_info id="Designer" order="2" />
206
+ <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.19116081" />
207
+ <window_info anchor="right" id="Database" order="3" />
208
+ <window_info anchor="bottom" id="Find" order="1" />
209
+ <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
210
+ <window_info id="Favorites" order="2" side_tool="true" />
211
+ <window_info anchor="bottom" id="Debug" order="3" weight="0.39924315" />
212
+ <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
213
+ <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
214
+ <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
215
+ <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
216
+ <window_info anchor="bottom" id="Message" order="0" />
217
+ <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
218
+ </layout>
219
+ </component>
220
+ <component name="TypeScriptGeneratedFilesManager">
221
+ <option name="version" value="1" />
222
+ </component>
223
+ <component name="VcsContentAnnotationSettings">
224
+ <option name="myLimit" value="2678400000" />
225
+ </component>
226
+ <component name="editorHistoryManager">
227
+ <entry file="file://$PROJECT_DIR$/exe/iconcreator">
228
+ <provider selected="true" editor-type-id="text-editor">
229
+ <state relative-caret-position="75">
230
+ <caret line="5" lean-forward="true" selection-start-line="5" selection-end-line="5" />
231
+ </state>
232
+ </provider>
233
+ </entry>
234
+ <entry file="file://$PROJECT_DIR$/exe/iconcreator">
235
+ <provider selected="true" editor-type-id="text-editor">
236
+ <state relative-caret-position="75">
237
+ <caret line="5" selection-start-line="5" selection-end-line="5" />
238
+ </state>
239
+ </provider>
240
+ </entry>
241
+ <entry file="file://$PROJECT_DIR$/lib/imagetools/version.rb">
242
+ <provider selected="true" editor-type-id="text-editor" />
243
+ </entry>
244
+ <entry file="file://$PROJECT_DIR$/lib/imagetools/imageresizer.rb">
245
+ <provider selected="true" editor-type-id="text-editor">
246
+ <state relative-caret-position="300">
247
+ <caret line="20" column="40" selection-start-line="20" selection-start-column="40" selection-end-line="20" selection-end-column="40" />
248
+ </state>
249
+ </provider>
250
+ </entry>
251
+ <entry file="file://$PROJECT_DIR$/lib/imagetools/imagefilter.rb">
252
+ <provider selected="true" editor-type-id="text-editor">
253
+ <state relative-caret-position="218">
254
+ <caret line="21" column="24" selection-start-line="21" selection-start-column="24" selection-end-line="21" selection-end-column="24" />
255
+ </state>
256
+ </provider>
257
+ </entry>
258
+ <entry file="file://$PROJECT_DIR$/lib/imagetools/imageconcat.rb">
259
+ <provider selected="true" editor-type-id="text-editor">
260
+ <state relative-caret-position="360">
261
+ <caret line="21" column="33" selection-start-line="21" selection-start-column="33" selection-end-line="21" selection-end-column="33" />
262
+ </state>
263
+ </provider>
264
+ </entry>
265
+ <entry file="file://$PROJECT_DIR$/lib/imagetools/iconextractor.rb">
266
+ <provider selected="true" editor-type-id="text-editor" />
267
+ </entry>
268
+ <entry file="file://$PROJECT_DIR$/lib/imagetools/iconcreator.rb">
269
+ <provider selected="true" editor-type-id="text-editor">
270
+ <state relative-caret-position="-363" />
271
+ </provider>
272
+ </entry>
273
+ </component>
274
+ <component name="masterDetails">
275
+ <states>
276
+ <state key="ProjectJDKs.UI">
277
+ <settings>
278
+ <last-edited>rbenv: 2.4.0</last-edited>
279
+ <splitter-proportions>
280
+ <option name="proportions">
281
+ <list>
282
+ <option value="0.2" />
283
+ </list>
284
+ </option>
285
+ </splitter-proportions>
286
+ </settings>
287
+ </state>
288
+ </states>
289
+ </component>
290
+ </project>
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- imagetools (0.4.0)
4
+ imagetools (0.5.0)
5
5
  rmagick
6
6
 
7
7
  GEM
data/imagetools.iml ADDED
@@ -0,0 +1,82 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="jdk" jdkName="rbenv: 2.5.1" jdkType="RUBY_SDK" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ <orderEntry type="module-library">
9
+ <library name="minitest (vbundled(5.11.3)) [path][gem]" type="ruby">
10
+ <CLASSES>
11
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib" />
12
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/test" />
13
+ </CLASSES>
14
+ <JAVADOC />
15
+ <SOURCES>
16
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib" />
17
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/test" />
18
+ </SOURCES>
19
+ <excluded>
20
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/test" />
21
+ </excluded>
22
+ </library>
23
+ </orderEntry>
24
+ <orderEntry type="module-library">
25
+ <library name="rake (vbundled(10.5.0)) [path][gem]" type="ruby">
26
+ <CLASSES>
27
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/bin" />
28
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc" />
29
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib" />
30
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test" />
31
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/rakelib" />
32
+ </CLASSES>
33
+ <JAVADOC />
34
+ <SOURCES>
35
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/bin" />
36
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc" />
37
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib" />
38
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test" />
39
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/rakelib" />
40
+ </SOURCES>
41
+ <excluded>
42
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/bin" />
43
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc" />
44
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test" />
45
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/rakelib" />
46
+ </excluded>
47
+ </library>
48
+ </orderEntry>
49
+ <orderEntry type="module-library">
50
+ <library name="rmagick (vbundled(2.16.0)) [path][gem]" type="ruby">
51
+ <CLASSES>
52
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/doc" />
53
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/ext" />
54
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/lib" />
55
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/spec" />
56
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/test" />
57
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/examples" />
58
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/deprecated" />
59
+ </CLASSES>
60
+ <JAVADOC />
61
+ <SOURCES>
62
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/doc" />
63
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/ext" />
64
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/lib" />
65
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/spec" />
66
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/test" />
67
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/examples" />
68
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/deprecated" />
69
+ </SOURCES>
70
+ <excluded>
71
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/doc" />
72
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/ext" />
73
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/spec" />
74
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/test" />
75
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/examples" />
76
+ <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/rmagick-2.16.0/deprecated" />
77
+ </excluded>
78
+ </library>
79
+ </orderEntry>
80
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.1, rbenv: 2.5.1) [gem]" level="application" />
81
+ </component>
82
+ </module>
@@ -7,8 +7,7 @@ require "fileutils"
7
7
  module Imagetools
8
8
  class Iconcreator
9
9
 
10
-
11
- ICON_INFOS = [
10
+ IOS_ICON_INFOS = [
12
11
  ##### iPhone icons #####
13
12
  ["20x20", "iphone", "2x"], # iPhone Notification iOS 7-11
14
13
  ["20x20", "iphone", "3x"], #
@@ -29,7 +28,21 @@ module Imagetools
29
28
  ["76x76", "ipad", "2x"], #
30
29
  ["83.5x83.5", "ipad", "2x"], # iPad Pro App iOS 9-11
31
30
  ##### App Store #####
32
- ["1024x1024", "ios-marketing", "1x"] # App Store iOS
31
+ ["1024x1024", "ios-marketing", "1x"], # App Store iOS
32
+ ]
33
+
34
+ MACOS_ICON_INFOS = [
35
+ ##### mac #####
36
+ ["16x16", "mac", "1x"], # Mac 16pt
37
+ ["16x16", "mac", "2x"], #
38
+ ["32x32", "mac", "1x"], # Mac 32pt
39
+ ["32x32", "mac", "2x"], #
40
+ ["128x128", "mac", "1x"], # Mac 128pt
41
+ ["128x128", "mac", "2x"], #
42
+ ["256x256", "mac", "1x"], # Mac 256pt
43
+ ["256x256", "mac", "2x"], #
44
+ ["512x512", "mac", "1x"], # Mac 512pt
45
+ ["512x512", "mac", "2x"], #
33
46
  ]
34
47
 
35
48
  def self.run(argv)
@@ -44,10 +57,13 @@ module Imagetools
44
57
  exit
45
58
  end
46
59
  opt.on('-v', '--verbose', 'Verbose message') {|v| opts[:v] = v}
47
- opt.on('-i INPUTFILE', '--input=INPUTFILE', 'Original icon file') {|v| opts[:i] = v}
48
- opt.on('-o OUTDIR', '--output=OUTDIR', 'Output dir') {|v| opts[:o] = v}
60
+ types = ['ios', 'mac']
61
+ opt.on('-t', '--type', types, types.join("|") + "(default ios)") {|v| opts[:t] = v }
62
+ opt.on('-i INPUTFILE', '--input=INPUTFILE', 'Original icon file(1024x1024 recommended') {|v| opts[:i] = v}
63
+ opt.on('-o OUTDIR', '--output=OUTDIR', 'Output dir(<PROJECT>/Assets.xcassets or any folder)') {|v| opts[:o] = v}
49
64
  opt.parse!(argv)
50
65
  opts[:i] ||= 'icon.png'
66
+ opts[:t] ||= types[0]
51
67
  if !FileTest.file?(opts[:i])
52
68
  puts opt.help
53
69
  exit
@@ -78,7 +94,7 @@ module Imagetools
78
94
  end
79
95
 
80
96
  def run
81
- puts "Create ios app icons"
97
+ puts "Create #{@opts[:t]} app icons"
82
98
 
83
99
  outdir = @opts[:o]
84
100
  inputfile = @opts[:i]
@@ -94,8 +110,10 @@ module Imagetools
94
110
  FileUtils.mkdir(appicondir)
95
111
  end
96
112
 
113
+ icon_infos = @opts[:t] == 'ios' ? IOS_ICON_INFOS : MACOS_ICON_INFOS
114
+
97
115
  filenames = []
98
- ICON_INFOS.each_with_index do |icon_info, index|
116
+ icon_infos.each_with_index do |icon_info, index|
99
117
  point, idiom, scale = icon_info
100
118
  # puts "point=#{point} idiom=#{idiom} scale=#{scale}"
101
119
 
@@ -111,7 +129,7 @@ module Imagetools
111
129
  str = ""
112
130
  str << "{\n"
113
131
  str << " \"images\" : [\n"
114
- ICON_INFOS.each_with_index do |icon_info, index|
132
+ icon_infos.each_with_index do |icon_info, index|
115
133
  point, idiom, scale = icon_info
116
134
  filename = filenames[index]
117
135
  str << " {\n"
@@ -119,7 +137,7 @@ module Imagetools
119
137
  str << " \"idiom\": \"#{idiom}\",\n"
120
138
  str << " \"filename\": \"#{filename}\",\n"
121
139
  str << " \"scale\": \"#{scale}\"\n"
122
- if index < ICON_INFOS.size - 1
140
+ if index < icon_infos.size - 1
123
141
  str << " },\n"
124
142
  else
125
143
  str << " }\n"
@@ -61,8 +61,10 @@ module Imagetools
61
61
  json_str = `plutil -convert json #{info_plist} -o - `
62
62
  json_data = JSON.parse(json_str)
63
63
  icns_base = json_data["CFBundleIconFile"]
64
-
65
- icns_path = File.join(app_path, "Contents/Resources/#{icns_base}.icns")
64
+ if icns_base !~ /\.icns$/i
65
+ icns_base << '.icns'
66
+ end
67
+ icns_path = File.join(app_path, "Contents/Resources/#{icns_base}")
66
68
  icns_path
67
69
 
68
70
  # str = File.read(info_plist)
@@ -1,3 +1,3 @@
1
1
  module Imagetools
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imagetools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - src
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-23 00:00:00.000000000 Z
11
+ date: 2018-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rmagick
@@ -80,6 +80,13 @@ extensions: []
80
80
  extra_rdoc_files: []
81
81
  files:
82
82
  - ".gitignore"
83
+ - ".idea/.rakeTasks"
84
+ - ".idea/encodings.xml"
85
+ - ".idea/inspectionProfiles/Project_Default.xml"
86
+ - ".idea/misc.xml"
87
+ - ".idea/modules.xml"
88
+ - ".idea/vcs.xml"
89
+ - ".idea/workspace.xml"
83
90
  - ".travis.yml"
84
91
  - CODE_OF_CONDUCT.md
85
92
  - Gemfile
@@ -99,6 +106,7 @@ files:
99
106
  - exe/imagetools
100
107
  - hazel_imagefilter_template.sh
101
108
  - imagetools.gemspec
109
+ - imagetools.iml
102
110
  - lib/imagetools.rb
103
111
  - lib/imagetools/iconcreator.rb
104
112
  - lib/imagetools/iconextractor.rb