smcutil 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 165680ad2d5588af70e496f3f6b7a7d4a56a4314
4
+ data.tar.gz: 4d6c65c58123b7c21ae7be1daa1a8697e8f1ed25
5
+ SHA512:
6
+ metadata.gz: 6727b4a69f724a5b814b60f455a560b3b477cfb47dfaa9777064960a9488a4abff82428be826c75f50949e5a9e60d6f32c4de861f060bb8f73e9c672f610ec16
7
+ data.tar.gz: e58bac82ff91fc468d389c56d1a86773a2c0a4c0b3ac2d052069bff4464146bbd7356e306131688db3c90c1b8cd3e86227bd20624689769dfe6e80021fd8f8b0
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 2.4.2" project-jdk-type="RUBY_SDK" />
4
+ </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$/.idea/smcutil.iml" filepath="$PROJECT_DIR$/.idea/smcutil.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/smcutil.iml ADDED
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$" />
8
+ <orderEntry type="inheritedJdk" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.15.4, rbenv: 2.4.2) [gem]" level="application" />
11
+ </component>
12
+ </module>
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="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,345 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="79f8e064-6b6b-45b7-a43f-11c6b4aaa82e" name="Default" comment="">
5
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.gitignore" />
6
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
7
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
8
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/smcutil.iml" />
9
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
10
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
11
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.rspec" />
12
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.travis.yml" />
13
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/CODE_OF_CONDUCT.md" />
14
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Gemfile" />
15
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/LICENSE.txt" />
16
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/README.md" />
17
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Rakefile" />
18
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/console" />
19
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/setup" />
20
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/exe/smcutil" />
21
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/smcutil.rb" />
22
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/smcutil/file_validator.rb" />
23
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/smcutil/version.rb" />
24
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/smcutil.gemspec" />
25
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/fixtures/flasher_base.smc" />
26
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/smcutil/file_validator_spec.rb" />
27
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/smcutil_spec.rb" />
28
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/spec_helper.rb" />
29
+ </list>
30
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
31
+ <option name="TRACKING_ENABLED" value="true" />
32
+ <option name="SHOW_DIALOG" value="false" />
33
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
34
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
35
+ <option name="LAST_RESOLUTION" value="IGNORE" />
36
+ </component>
37
+ <component name="FileEditorManager">
38
+ <leaf>
39
+ <file leaf-file-name="smcutil.rb" pinned="false" current-in-tab="false">
40
+ <entry file="file://$PROJECT_DIR$/lib/smcutil.rb">
41
+ <provider selected="true" editor-type-id="text-editor">
42
+ <state relative-caret-position="45">
43
+ <caret line="3" column="26" lean-forward="true" selection-start-line="3" selection-start-column="26" selection-end-line="3" selection-end-column="26" />
44
+ <folding />
45
+ </state>
46
+ </provider>
47
+ </entry>
48
+ </file>
49
+ <file leaf-file-name="smcutil.gemspec" pinned="false" current-in-tab="true">
50
+ <entry file="file://$PROJECT_DIR$/smcutil.gemspec">
51
+ <provider selected="true" editor-type-id="text-editor">
52
+ <state relative-caret-position="283">
53
+ <caret line="19" column="62" lean-forward="false" selection-start-line="19" selection-start-column="62" selection-end-line="19" selection-end-column="62" />
54
+ <folding />
55
+ </state>
56
+ </provider>
57
+ </entry>
58
+ </file>
59
+ <file leaf-file-name="spec_helper.rb" pinned="false" current-in-tab="false">
60
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
61
+ <provider selected="true" editor-type-id="text-editor">
62
+ <state relative-caret-position="0">
63
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
64
+ <folding />
65
+ </state>
66
+ </provider>
67
+ </entry>
68
+ </file>
69
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
70
+ <entry file="file://$PROJECT_DIR$/lib/smcutil/version.rb">
71
+ <provider selected="true" editor-type-id="text-editor">
72
+ <state relative-caret-position="45">
73
+ <caret line="3" column="0" lean-forward="false" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
74
+ <folding />
75
+ </state>
76
+ </provider>
77
+ </entry>
78
+ </file>
79
+ <file leaf-file-name="file_validator.rb" pinned="false" current-in-tab="false">
80
+ <entry file="file://$PROJECT_DIR$/lib/smcutil/file_validator.rb">
81
+ <provider selected="true" editor-type-id="text-editor">
82
+ <state relative-caret-position="60">
83
+ <caret line="4" column="0" lean-forward="false" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
84
+ <folding />
85
+ </state>
86
+ </provider>
87
+ </entry>
88
+ </file>
89
+ <file leaf-file-name="file_validator_spec.rb" pinned="false" current-in-tab="false">
90
+ <entry file="file://$PROJECT_DIR$/spec/smcutil/file_validator_spec.rb">
91
+ <provider selected="true" editor-type-id="text-editor">
92
+ <state relative-caret-position="135">
93
+ <caret line="9" column="3" lean-forward="true" selection-start-line="9" selection-start-column="3" selection-end-line="9" selection-end-column="3" />
94
+ <folding />
95
+ </state>
96
+ </provider>
97
+ </entry>
98
+ </file>
99
+ <file leaf-file-name="flasher_base.smc" pinned="false" current-in-tab="false">
100
+ <entry file="file://$PROJECT_DIR$/spec/fixtures/flasher_base.smc">
101
+ <provider selected="true" editor-type-id="text-editor">
102
+ <state relative-caret-position="0">
103
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
104
+ <folding />
105
+ </state>
106
+ </provider>
107
+ </entry>
108
+ </file>
109
+ </leaf>
110
+ </component>
111
+ <component name="Git.Settings">
112
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
113
+ </component>
114
+ <component name="IdeDocumentHistory">
115
+ <option name="CHANGED_PATHS">
116
+ <list>
117
+ <option value="$PROJECT_DIR$/lib/smcutil.rb" />
118
+ <option value="$PROJECT_DIR$/lib/smcutil/version.rb" />
119
+ <option value="$PROJECT_DIR$/spec/smcutil/file_validator_spec.rb" />
120
+ <option value="$PROJECT_DIR$/lib/smcutil/file_validator.rb" />
121
+ <option value="$PROJECT_DIR$/exe/smcutil" />
122
+ <option value="$PROJECT_DIR$/smcutil.gemspec" />
123
+ </list>
124
+ </option>
125
+ </component>
126
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
127
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
128
+ <component name="JsGulpfileManager">
129
+ <detection-done>true</detection-done>
130
+ <sorting>DEFINITION_ORDER</sorting>
131
+ </component>
132
+ <component name="ProjectFrameBounds">
133
+ <option name="y" value="23" />
134
+ <option name="width" value="1680" />
135
+ <option name="height" value="986" />
136
+ </component>
137
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
138
+ <component name="ProjectView">
139
+ <navigator currentView="ProjectPane" proportions="" version="1">
140
+ <flattenPackages />
141
+ <showMembers />
142
+ <showModules />
143
+ <showLibraryContents />
144
+ <hideEmptyPackages />
145
+ <abbreviatePackageNames />
146
+ <autoscrollToSource />
147
+ <autoscrollFromSource />
148
+ <sortByType />
149
+ <manualOrder />
150
+ <foldersAlwaysOnTop value="true" />
151
+ </navigator>
152
+ <panes>
153
+ <pane id="Scope" />
154
+ <pane id="ProjectPane">
155
+ <subPane>
156
+ <expand>
157
+ <path>
158
+ <item name="smcutil" type="b2602c69:ProjectViewProjectNode" />
159
+ <item name="smcutil" type="462c0819:PsiDirectoryNode" />
160
+ </path>
161
+ <path>
162
+ <item name="smcutil" type="b2602c69:ProjectViewProjectNode" />
163
+ <item name="smcutil" type="462c0819:PsiDirectoryNode" />
164
+ <item name="bin" type="462c0819:PsiDirectoryNode" />
165
+ </path>
166
+ <path>
167
+ <item name="smcutil" type="b2602c69:ProjectViewProjectNode" />
168
+ <item name="smcutil" type="462c0819:PsiDirectoryNode" />
169
+ <item name="exe" type="462c0819:PsiDirectoryNode" />
170
+ </path>
171
+ <path>
172
+ <item name="smcutil" type="b2602c69:ProjectViewProjectNode" />
173
+ <item name="smcutil" type="462c0819:PsiDirectoryNode" />
174
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
175
+ </path>
176
+ <path>
177
+ <item name="smcutil" type="b2602c69:ProjectViewProjectNode" />
178
+ <item name="smcutil" type="462c0819:PsiDirectoryNode" />
179
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
180
+ <item name="smcutil" type="462c0819:PsiDirectoryNode" />
181
+ </path>
182
+ <path>
183
+ <item name="smcutil" type="b2602c69:ProjectViewProjectNode" />
184
+ <item name="smcutil" type="462c0819:PsiDirectoryNode" />
185
+ <item name="spec" type="462c0819:PsiDirectoryNode" />
186
+ </path>
187
+ <path>
188
+ <item name="smcutil" type="b2602c69:ProjectViewProjectNode" />
189
+ <item name="smcutil" type="462c0819:PsiDirectoryNode" />
190
+ <item name="spec" type="462c0819:PsiDirectoryNode" />
191
+ <item name="fixtures" type="462c0819:PsiDirectoryNode" />
192
+ </path>
193
+ </expand>
194
+ <select />
195
+ </subPane>
196
+ </pane>
197
+ <pane id="Scratches" />
198
+ </panes>
199
+ </component>
200
+ <component name="PropertiesComponent">
201
+ <property name="WebServerToolWindowFactoryState" value="false" />
202
+ </component>
203
+ <component name="RecentsManager">
204
+ <key name="CopyFile.RECENT_KEYS">
205
+ <recent name="$PROJECT_DIR$/spec/fixtures" />
206
+ </key>
207
+ </component>
208
+ <component name="RunDashboard">
209
+ <option name="ruleStates">
210
+ <list>
211
+ <RuleState>
212
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
213
+ </RuleState>
214
+ <RuleState>
215
+ <option name="name" value="StatusDashboardGroupingRule" />
216
+ </RuleState>
217
+ </list>
218
+ </option>
219
+ </component>
220
+ <component name="ShelveChangesManager" show_recycled="false">
221
+ <option name="remove_strategy" value="false" />
222
+ </component>
223
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
224
+ <component name="TaskManager">
225
+ <task active="true" id="Default" summary="Default task">
226
+ <changelist id="79f8e064-6b6b-45b7-a43f-11c6b4aaa82e" name="Default" comment="" />
227
+ <created>1507637323942</created>
228
+ <option name="number" value="Default" />
229
+ <option name="presentableId" value="Default" />
230
+ <updated>1507637323942</updated>
231
+ <workItem from="1507637325399" duration="1046000" />
232
+ </task>
233
+ <servers />
234
+ </component>
235
+ <component name="TimeTrackingManager">
236
+ <option name="totallyTimeSpent" value="1046000" />
237
+ </component>
238
+ <component name="ToolWindowManager">
239
+ <frame x="0" y="23" width="1680" height="986" extended-state="0" />
240
+ <editor active="true" />
241
+ <layout>
242
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24969475" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
243
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
244
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
245
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
246
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.33043477" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
247
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
248
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
249
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
250
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
251
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
252
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
253
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
254
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
255
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
256
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
257
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
258
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
259
+ </layout>
260
+ </component>
261
+ <component name="TypeScriptGeneratedFilesManager">
262
+ <option name="version" value="1" />
263
+ </component>
264
+ <component name="VcsContentAnnotationSettings">
265
+ <option name="myLimit" value="2678400000" />
266
+ </component>
267
+ <component name="XDebuggerManager">
268
+ <breakpoint-manager />
269
+ <watches-manager />
270
+ </component>
271
+ <component name="editorHistoryManager">
272
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
273
+ <provider selected="true" editor-type-id="text-editor">
274
+ <state relative-caret-position="0">
275
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
276
+ <folding />
277
+ </state>
278
+ </provider>
279
+ </entry>
280
+ <entry file="file://$PROJECT_DIR$/lib/smcutil/version.rb">
281
+ <provider selected="true" editor-type-id="text-editor">
282
+ <state relative-caret-position="45">
283
+ <caret line="3" column="0" lean-forward="false" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
284
+ <folding />
285
+ </state>
286
+ </provider>
287
+ </entry>
288
+ <entry file="file://$PROJECT_DIR$/spec/fixtures/flasher_base.smc">
289
+ <provider selected="true" editor-type-id="text-editor">
290
+ <state relative-caret-position="0">
291
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
292
+ <folding />
293
+ </state>
294
+ </provider>
295
+ </entry>
296
+ <entry file="file://$PROJECT_DIR$/spec/smcutil/file_validator_spec.rb">
297
+ <provider selected="true" editor-type-id="text-editor">
298
+ <state relative-caret-position="135">
299
+ <caret line="9" column="3" lean-forward="true" selection-start-line="9" selection-start-column="3" selection-end-line="9" selection-end-column="3" />
300
+ <folding />
301
+ </state>
302
+ </provider>
303
+ </entry>
304
+ <entry file="file://$PROJECT_DIR$/lib/smcutil/file_validator.rb">
305
+ <provider selected="true" editor-type-id="text-editor">
306
+ <state relative-caret-position="60">
307
+ <caret line="4" column="0" lean-forward="false" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
308
+ <folding />
309
+ </state>
310
+ </provider>
311
+ </entry>
312
+ <entry file="file://$PROJECT_DIR$/exe/smcutil">
313
+ <provider selected="true" editor-type-id="text-editor">
314
+ <state relative-caret-position="375">
315
+ <caret line="25" column="3" lean-forward="true" selection-start-line="25" selection-start-column="3" selection-end-line="25" selection-end-column="3" />
316
+ <folding />
317
+ </state>
318
+ </provider>
319
+ </entry>
320
+ <entry file="file://$PROJECT_DIR$/Gemfile">
321
+ <provider selected="true" editor-type-id="text-editor">
322
+ <state relative-caret-position="90">
323
+ <caret line="6" column="0" lean-forward="false" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
324
+ <folding />
325
+ </state>
326
+ </provider>
327
+ </entry>
328
+ <entry file="file://$PROJECT_DIR$/lib/smcutil.rb">
329
+ <provider selected="true" editor-type-id="text-editor">
330
+ <state relative-caret-position="45">
331
+ <caret line="3" column="26" lean-forward="true" selection-start-line="3" selection-start-column="26" selection-end-line="3" selection-end-column="26" />
332
+ <folding />
333
+ </state>
334
+ </provider>
335
+ </entry>
336
+ <entry file="file://$PROJECT_DIR$/smcutil.gemspec">
337
+ <provider selected="true" editor-type-id="text-editor">
338
+ <state relative-caret-position="283">
339
+ <caret line="19" column="62" lean-forward="false" selection-start-line="19" selection-start-column="62" selection-end-line="19" selection-end-column="62" />
340
+ <folding />
341
+ </state>
342
+ </provider>
343
+ </entry>
344
+ </component>
345
+ </project>
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.2
5
+ before_install: gem install bundler -v 1.15.4
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at rickmark@outlook.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in smcutil.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Rick Mark
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.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Smcutil
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/smcutil`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'smcutil'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install smcutil
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ 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`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/smcutil. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Smcutil project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/smcutil/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "smcutil"
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(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/exe/smcutil ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "smcutil"
4
+ require 'optparse'
5
+
6
+
7
+ options = {}
8
+ OptParse.new do |opts|
9
+ opts.banner = <<-BANNER
10
+ Usage: smcutil {command} [PARAMS]
11
+
12
+ Command is one of:
13
+
14
+ validate {file.smc}:
15
+ Causes smcutil to parse the Apple SMC file and validate correctness.
16
+
17
+ info {file.smc}:
18
+ Prints information about the SMC update file.
19
+
20
+ decode {file.smc} {output.bin}:
21
+ Pretends to execute an update of the SMC flash as though the output.bin file is the SMC flash ROM.
22
+
23
+ save {output.bin}:
24
+ Has magical cow powers. Assuming I can make this work: GOLDEN TICKET
25
+ BANNER
26
+ end
@@ -0,0 +1,7 @@
1
+
2
+
3
+ module SmcFlasher
4
+ class FileValidator
5
+
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module SmcUtil
2
+ VERSION = "0.1.0"
3
+ end
data/lib/smcutil.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "smcutil/version"
2
+
3
+ module SmcUtil
4
+ # Your code goes here...
5
+ end
data/smcutil.gemspec ADDED
@@ -0,0 +1,36 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "smcutil/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "smcutil"
8
+ spec.version = SmcUtil::VERSION
9
+ spec.authors = ["Rick Mark"]
10
+ spec.email = ["rickmark@outlook.com"]
11
+
12
+ spec.summary = %q{smcutil is a collection of useful commands for Apple SMC}
13
+ spec.description = %q{The Apple SMC contains security critical code. This is a utility designed for the iteraction with the System Management Controller and it's updates.}
14
+ spec.homepage = "https://github.com/rickmark/smcutil"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.15"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ end
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: smcutil
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Rick Mark
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-10-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: The Apple SMC contains security critical code. This is a utility designed
56
+ for the iteraction with the System Management Controller and it's updates.
57
+ email:
58
+ - rickmark@outlook.com
59
+ executables:
60
+ - smcutil
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - ".gitignore"
65
+ - ".idea/misc.xml"
66
+ - ".idea/modules.xml"
67
+ - ".idea/smcutil.iml"
68
+ - ".idea/vcs.xml"
69
+ - ".idea/workspace.xml"
70
+ - ".rspec"
71
+ - ".travis.yml"
72
+ - CODE_OF_CONDUCT.md
73
+ - Gemfile
74
+ - LICENSE.txt
75
+ - README.md
76
+ - Rakefile
77
+ - bin/console
78
+ - bin/setup
79
+ - exe/smcutil
80
+ - lib/smcutil.rb
81
+ - lib/smcutil/file_validator.rb
82
+ - lib/smcutil/version.rb
83
+ - smcutil.gemspec
84
+ homepage: https://github.com/rickmark/smcutil
85
+ licenses:
86
+ - MIT
87
+ metadata:
88
+ allowed_push_host: https://rubygems.org
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubyforge_project:
105
+ rubygems_version: 2.6.13
106
+ signing_key:
107
+ specification_version: 4
108
+ summary: smcutil is a collection of useful commands for Apple SMC
109
+ test_files: []