import_remotecontrol 0.4.3 → 0.4.4
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 +8 -8
- data/.gitignore +18 -0
- data/.idea/.name +1 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/import.iml +18 -0
- data/.idea/misc.xml +5 -0
- data/.idea/modules.xml +9 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +8 -0
- data/.idea/workspace.xml +685 -0
- data/.import.gemspec +12 -0
- data/.import.gemspec~ +12 -0
- data/README.md +4 -0
- data/lib/automation_code_list.rb +62 -0
- data/lib/debug.rb +16 -0
- data/lib/get_code_list.rb +12 -0
- data/lib/get_code_list.rb~ +136 -0
- data/lib/import_code.rb +3 -44
- data/projectFilesBackup/.idea/import.iml +9 -0
- metadata +20 -4
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NTgxZTg2MjM3NTZlZTQxYjdiODU0Mjc3ZWNmOWU2ZWJhNzdhODFkZg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZDU4ZGQ0ODg4OWUyZWU4MzUzNjY4NGQ1MjE4M2YyNTE4ODRhOTRlZQ==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YWFkOWU3NTYxYTBmZDMxZTI2YzA2MjI3NTVlNTRjMjE2ZTc3NzM3ODZjODgw
|
|
10
|
+
MDE5NzJhNjI2NWU2Zjk1YmZhY2MxMmIxNTZmOTI5ZDk5OGE4ZDEyYzRmZTA5
|
|
11
|
+
NzFjMzJjOGNjNjdkZmIwZDQ1YTlmY2I5MTk3MTliMjdmMzFkYzI=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NWE3MTM0ZDgxM2U1MTkxNjI5YTRhOTE2NTZhODE5NGFkY2ExOGU5YjcwMDI4
|
|
14
|
+
MTNiMzY0Mzc5ZjVkYmQyMDRiNzQzNTg2NGIxYTM0ZjVjNDlmNzFhYTI3YjA2
|
|
15
|
+
ZThlYzQzNjY5MjRhYjJiYjEwZjM0YzEyOWUwY2FhNmFiNWVkNzg=
|
data/.gitignore
ADDED
data/.idea/.name
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import
|
data/.idea/encodings.xml
ADDED
data/.idea/import.iml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
|
3
|
+
<component name="FacetManager">
|
|
4
|
+
<facet type="gem" name="Gem">
|
|
5
|
+
<configuration>
|
|
6
|
+
<option name="GEM_APP_ROOT_PATH" value="" />
|
|
7
|
+
<option name="GEM_APP_TEST_PATH" value="" />
|
|
8
|
+
<option name="GEM_APP_LIB_PATH" value="" />
|
|
9
|
+
</configuration>
|
|
10
|
+
</facet>
|
|
11
|
+
</component>
|
|
12
|
+
<component name="NewModuleRootManager">
|
|
13
|
+
<content url="file://$MODULE_DIR$" />
|
|
14
|
+
<orderEntry type="inheritedJdk" />
|
|
15
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
16
|
+
</component>
|
|
17
|
+
</module>
|
|
18
|
+
|
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
|
@@ -0,0 +1,685 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ChangeListManager">
|
|
4
|
+
<list default="true" id="f130eb23-3f81-442d-a76f-17ce5478d4da" name="Default" comment="">
|
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/automation_code_list.rb" />
|
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.import.gemspec" afterPath="$PROJECT_DIR$/.import.gemspec" />
|
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/debug.rb" afterPath="$PROJECT_DIR$/lib/debug.rb" />
|
|
8
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/get_code_list.rb" afterPath="$PROJECT_DIR$/lib/get_code_list.rb" />
|
|
9
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/import_code.rb" afterPath="$PROJECT_DIR$/lib/import_code.rb" />
|
|
10
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
11
|
+
</list>
|
|
12
|
+
<ignored path="import.iws" />
|
|
13
|
+
<ignored path=".idea/workspace.xml" />
|
|
14
|
+
<file path="/Dummy.txt" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369013582489" ignored="false" />
|
|
15
|
+
<file path="/import_remotecontrol.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366266592784" ignored="false" />
|
|
16
|
+
<file path="/temp.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1368159453576" ignored="false" />
|
|
17
|
+
<file path="$USER_HOME$/New/smart_remote/Gemfile" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366353872625" ignored="false" />
|
|
18
|
+
<file path="$USER_HOME$/New/smart_remote/app/models/protocol.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366271015996" ignored="false" />
|
|
19
|
+
<file path="/protocol.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366271012110" ignored="false" />
|
|
20
|
+
<file path="$USER_HOME$/New/smart_remote/lib/tasks/import_code.rake" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366352865126" ignored="false" />
|
|
21
|
+
<file path="/import_code.rake" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1368075936933" ignored="false" />
|
|
22
|
+
<file path="/import_code.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369023572641" ignored="false" />
|
|
23
|
+
<file path="/.import.gemspec" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369031591129" ignored="false" />
|
|
24
|
+
<file path="$USER_HOME$/New/smart_remote/config/mongoid.yml" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366193090726" ignored="false" />
|
|
25
|
+
<file path="/Gemfile" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366193004558" ignored="false" />
|
|
26
|
+
<file path="$USER_HOME$/New/smart_remote/app/models/device_brand.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366276577971" ignored="false" />
|
|
27
|
+
<file path="/device_brand.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366276570503" ignored="false" />
|
|
28
|
+
<file path="/get_code_list.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369014675810" ignored="false" />
|
|
29
|
+
<file path="$USER_HOME$/New/smart_remote/app/controllers/api/protocol_codes_controller.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366354617243" ignored="false" />
|
|
30
|
+
<file path="/protocol_codes_controller.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1368439857442" ignored="false" />
|
|
31
|
+
<file path="/remote_code_release_controller.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366267498982" ignored="false" />
|
|
32
|
+
<file path="$USER_HOME$/New/smart_remote/app/controllers/admin/remote_code_release_controller.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366267504056" ignored="false" />
|
|
33
|
+
<file path="/Ruby Console" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366625738156" ignored="false" />
|
|
34
|
+
<file path="/debug.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369021495015" ignored="false" />
|
|
35
|
+
<file path="$USER_HOME$/spidr_epg_gem/lib/spidr_epg.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366355005339" ignored="false" />
|
|
36
|
+
<file path="$PROJECT_DIR$/../gem/grabepg/lib/debug.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1366857203923" ignored="false" />
|
|
37
|
+
<file path="$PROJECT_DIR$/../gem/grabepg/lib/grabepg.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369019353284" ignored="false" />
|
|
38
|
+
<file path="/grabepg.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369019324325" ignored="false" />
|
|
39
|
+
<file path="$PROJECT_DIR$/../New/smart_remote/lib/tasks/import_code.rake" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369030244057" ignored="false" />
|
|
40
|
+
<file path="$PROJECT_DIR$/../New/smart_remote/app/models/remote_num.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369030329909" ignored="false" />
|
|
41
|
+
<file path="/remote_num.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369030329048" ignored="false" />
|
|
42
|
+
<file path="$PROJECT_DIR$/../New/smart_remote/config/routes.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369031013549" ignored="false" />
|
|
43
|
+
<file path="$PROJECT_DIR$/../New/smart_remote/app/controllers/admin/remot_nums_controller_controller.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1368088390264" ignored="false" />
|
|
44
|
+
<file path="$PROJECT_DIR$/../New/smart_remote/app/controllers/api/protocol_codes_controller.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1368439878117" ignored="false" />
|
|
45
|
+
<file path="/automation_code_list.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369020659854" ignored="false" />
|
|
46
|
+
<file path="$PROJECT_DIR$/../New/smart_remote/lib/tasks/grab_epg.rake" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369021486016" ignored="false" />
|
|
47
|
+
<file path="$PROJECT_DIR$/../New/smart_remote/app/models/remote_protocol_dispose.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369031239459" ignored="false" />
|
|
48
|
+
<file path="/remote_protocol_dispose.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369031239459" ignored="false" />
|
|
49
|
+
<file path="$PROJECT_DIR$/../New/smart_remote/app/controllers/admin/remote_protocol_dispose_controller.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369031362194" ignored="false" />
|
|
50
|
+
<file path="/remote_protocol_dispose_controller.rb" changelist="f130eb23-3f81-442d-a76f-17ce5478d4da" time="1369031361398" ignored="false" />
|
|
51
|
+
<option name="TRACKING_ENABLED" value="true" />
|
|
52
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
53
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
54
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
55
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
56
|
+
</component>
|
|
57
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
|
58
|
+
<component name="CreatePatchCommitExecutor">
|
|
59
|
+
<option name="PATCH_PATH" value="" />
|
|
60
|
+
</component>
|
|
61
|
+
<component name="DaemonCodeAnalyzer">
|
|
62
|
+
<disable_hints />
|
|
63
|
+
</component>
|
|
64
|
+
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
|
65
|
+
<component name="FavoritesManager">
|
|
66
|
+
<favorites_list name="import" />
|
|
67
|
+
</component>
|
|
68
|
+
<component name="FileEditorManager">
|
|
69
|
+
<leaf>
|
|
70
|
+
<file leaf-file-name="get_code_list.rb" pinned="false" current="false" current-in-tab="false">
|
|
71
|
+
<entry file="file://$PROJECT_DIR$/lib/get_code_list.rb">
|
|
72
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
73
|
+
<state line="162" column="30" selection-start="3830" selection-end="3832" vertical-scroll-proportion="0.0">
|
|
74
|
+
<folding />
|
|
75
|
+
</state>
|
|
76
|
+
</provider>
|
|
77
|
+
</entry>
|
|
78
|
+
</file>
|
|
79
|
+
<file leaf-file-name="debug.rb" pinned="false" current="false" current-in-tab="false">
|
|
80
|
+
<entry file="file://$PROJECT_DIR$/lib/debug.rb">
|
|
81
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
82
|
+
<state line="11" column="24" selection-start="1990" selection-end="2000" vertical-scroll-proportion="0.0">
|
|
83
|
+
<folding />
|
|
84
|
+
</state>
|
|
85
|
+
</provider>
|
|
86
|
+
</entry>
|
|
87
|
+
</file>
|
|
88
|
+
<file leaf-file-name="import_code.rb" pinned="false" current="false" current-in-tab="false">
|
|
89
|
+
<entry file="file://$PROJECT_DIR$/lib/import_code.rb">
|
|
90
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
91
|
+
<state line="161" column="23" selection-start="4779" selection-end="4779" vertical-scroll-proportion="0.0">
|
|
92
|
+
<folding />
|
|
93
|
+
</state>
|
|
94
|
+
</provider>
|
|
95
|
+
</entry>
|
|
96
|
+
</file>
|
|
97
|
+
<file leaf-file-name="automation_code_list.rb" pinned="false" current="false" current-in-tab="false">
|
|
98
|
+
<entry file="file://$PROJECT_DIR$/lib/automation_code_list.rb">
|
|
99
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
100
|
+
<state line="54" column="37" selection-start="1531" selection-end="1531" vertical-scroll-proportion="0.0">
|
|
101
|
+
<folding />
|
|
102
|
+
</state>
|
|
103
|
+
</provider>
|
|
104
|
+
</entry>
|
|
105
|
+
</file>
|
|
106
|
+
<file leaf-file-name=".import.gemspec" pinned="false" current="true" current-in-tab="true">
|
|
107
|
+
<entry file="file://$PROJECT_DIR$/.import.gemspec">
|
|
108
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
109
|
+
<state line="3" column="29" selection-start="130" selection-end="130" vertical-scroll-proportion="0.10368664">
|
|
110
|
+
<folding />
|
|
111
|
+
</state>
|
|
112
|
+
</provider>
|
|
113
|
+
</entry>
|
|
114
|
+
</file>
|
|
115
|
+
</leaf>
|
|
116
|
+
</component>
|
|
117
|
+
<component name="FindManager">
|
|
118
|
+
<FindUsagesManager>
|
|
119
|
+
<setting name="OPEN_NEW_TAB" value="false" />
|
|
120
|
+
</FindUsagesManager>
|
|
121
|
+
</component>
|
|
122
|
+
<component name="Git.Settings">
|
|
123
|
+
<option name="PREVIOUS_COMMIT_AUTHORS">
|
|
124
|
+
<list>
|
|
125
|
+
<option value="fix some bug" />
|
|
126
|
+
</list>
|
|
127
|
+
</option>
|
|
128
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
129
|
+
</component>
|
|
130
|
+
<component name="GitLogSettings">
|
|
131
|
+
<option name="myDateState">
|
|
132
|
+
<MyDateState />
|
|
133
|
+
</option>
|
|
134
|
+
</component>
|
|
135
|
+
<component name="IdeDocumentHistory">
|
|
136
|
+
<option name="changedFiles">
|
|
137
|
+
<list>
|
|
138
|
+
<option value="$PROJECT_DIR$/lib/import_remotecontrol.rb" />
|
|
139
|
+
<option value="$USER_HOME$/.rvm/gems/ruby-1.9.3-p194/gems/import_remotecontrol-0.2.6/lib/get_code_list.rb" />
|
|
140
|
+
<option value="$USER_HOME$/.rvm/gems/ruby-1.9.3-p194@global/gems/import_remotecontrol-0.2.6/lib/get_code_list.rb" />
|
|
141
|
+
<option value="$PROJECT_DIR$/debug.rb" />
|
|
142
|
+
<option value="$PROJECT_DIR$/lib/get_code_list.rb" />
|
|
143
|
+
<option value="$PROJECT_DIR$/lib/automation_code_list.rb" />
|
|
144
|
+
<option value="$PROJECT_DIR$/lib/debug.rb" />
|
|
145
|
+
<option value="$PROJECT_DIR$/lib/import_code.rb" />
|
|
146
|
+
<option value="$PROJECT_DIR$/.import.gemspec" />
|
|
147
|
+
</list>
|
|
148
|
+
</option>
|
|
149
|
+
</component>
|
|
150
|
+
<component name="ProjectFrameBounds">
|
|
151
|
+
<option name="x" value="65" />
|
|
152
|
+
<option name="y" value="24" />
|
|
153
|
+
<option name="width" value="1301" />
|
|
154
|
+
<option name="height" value="744" />
|
|
155
|
+
</component>
|
|
156
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
|
|
157
|
+
<OptionsSetting value="true" id="Add" />
|
|
158
|
+
<OptionsSetting value="true" id="Remove" />
|
|
159
|
+
<OptionsSetting value="true" id="Checkout" />
|
|
160
|
+
<OptionsSetting value="true" id="Update" />
|
|
161
|
+
<OptionsSetting value="true" id="Status" />
|
|
162
|
+
<OptionsSetting value="true" id="Edit" />
|
|
163
|
+
<ConfirmationsSetting value="0" id="Add" />
|
|
164
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
|
165
|
+
</component>
|
|
166
|
+
<component name="ProjectReloadState">
|
|
167
|
+
<option name="STATE" value="0" />
|
|
168
|
+
</component>
|
|
169
|
+
<component name="ProjectView">
|
|
170
|
+
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
|
|
171
|
+
<flattenPackages />
|
|
172
|
+
<showMembers />
|
|
173
|
+
<showModules />
|
|
174
|
+
<showLibraryContents />
|
|
175
|
+
<hideEmptyPackages />
|
|
176
|
+
<abbreviatePackageNames />
|
|
177
|
+
<autoscrollToSource />
|
|
178
|
+
<autoscrollFromSource />
|
|
179
|
+
<sortByType />
|
|
180
|
+
</navigator>
|
|
181
|
+
<panes>
|
|
182
|
+
<pane id="ProjectPane">
|
|
183
|
+
<subPane>
|
|
184
|
+
<PATH>
|
|
185
|
+
<PATH_ELEMENT>
|
|
186
|
+
<option name="myItemId" value="import" />
|
|
187
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
188
|
+
</PATH_ELEMENT>
|
|
189
|
+
<PATH_ELEMENT>
|
|
190
|
+
<option name="myItemId" value="External Libraries" />
|
|
191
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
|
|
192
|
+
</PATH_ELEMENT>
|
|
193
|
+
</PATH>
|
|
194
|
+
<PATH>
|
|
195
|
+
<PATH_ELEMENT>
|
|
196
|
+
<option name="myItemId" value="import" />
|
|
197
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
198
|
+
</PATH_ELEMENT>
|
|
199
|
+
<PATH_ELEMENT>
|
|
200
|
+
<option name="myItemId" value="import" />
|
|
201
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
202
|
+
</PATH_ELEMENT>
|
|
203
|
+
</PATH>
|
|
204
|
+
<PATH>
|
|
205
|
+
<PATH_ELEMENT>
|
|
206
|
+
<option name="myItemId" value="import" />
|
|
207
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
208
|
+
</PATH_ELEMENT>
|
|
209
|
+
<PATH_ELEMENT>
|
|
210
|
+
<option name="myItemId" value="import" />
|
|
211
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
212
|
+
</PATH_ELEMENT>
|
|
213
|
+
<PATH_ELEMENT>
|
|
214
|
+
<option name="myItemId" value="lib" />
|
|
215
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
216
|
+
</PATH_ELEMENT>
|
|
217
|
+
</PATH>
|
|
218
|
+
</subPane>
|
|
219
|
+
</pane>
|
|
220
|
+
<pane id="Scope" />
|
|
221
|
+
</panes>
|
|
222
|
+
</component>
|
|
223
|
+
<component name="PropertiesComponent">
|
|
224
|
+
<property name="options.splitter.main.proportions" value="0.30416667" />
|
|
225
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
226
|
+
<property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyIdeSdkConfigurable" />
|
|
227
|
+
<property name="recentsLimit" value="5" />
|
|
228
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$/../gem/grabepg" />
|
|
229
|
+
<property name="restartRequiresConfirmation" value="true" />
|
|
230
|
+
<property name="options.searchVisible" value="true" />
|
|
231
|
+
<property name="options.splitter.details.proportions" value="0.2" />
|
|
232
|
+
</component>
|
|
233
|
+
<component name="RecentsManager">
|
|
234
|
+
<key name="MoveFile.RECENT_KEYS">
|
|
235
|
+
<recent name="$PROJECT_DIR$/lib" />
|
|
236
|
+
<recent name="$PROJECT_DIR$" />
|
|
237
|
+
</key>
|
|
238
|
+
</component>
|
|
239
|
+
<component name="RunManager" selected="IRB console.Unnamed">
|
|
240
|
+
<configuration default="true" type="RailsRunConfigurationType" factoryName="Rails">
|
|
241
|
+
<predefined_log_file id="RUBY_RAILS_SERVER" enabled="true" />
|
|
242
|
+
<module name="" />
|
|
243
|
+
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
244
|
+
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
245
|
+
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
246
|
+
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
247
|
+
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
248
|
+
<envs />
|
|
249
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
250
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
|
251
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
252
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
253
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
254
|
+
</COVERAGE_PATTERN>
|
|
255
|
+
</EXTENSION>
|
|
256
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
257
|
+
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SCRIPT_ARGS" VALUE="" />
|
|
258
|
+
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="PORT" VALUE="3000" />
|
|
259
|
+
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="IP" VALUE="0.0.0.0" />
|
|
260
|
+
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="DUMMY_APP" VALUE="test/dummy" />
|
|
261
|
+
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RAILS_SERVER_TYPE" VALUE="Default" />
|
|
262
|
+
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ENVIRONMENT_TYPE" VALUE="development" />
|
|
263
|
+
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="LAUNCH_JS" VALUE="false" />
|
|
264
|
+
<method />
|
|
265
|
+
</configuration>
|
|
266
|
+
<configuration default="true" type="CapistranoRunConfigurationType" factoryName="Capistrano">
|
|
267
|
+
<module name="" />
|
|
268
|
+
<CAPISTRANO_RUN_CONFIGURATION NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
269
|
+
<CAPISTRANO_RUN_CONFIGURATION NAME="WORK DIR" VALUE="" />
|
|
270
|
+
<CAPISTRANO_RUN_CONFIGURATION NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
271
|
+
<CAPISTRANO_RUN_CONFIGURATION NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
272
|
+
<CAPISTRANO_RUN_CONFIGURATION NAME="myPassParentEnvs" VALUE="true" />
|
|
273
|
+
<envs />
|
|
274
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
275
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
|
276
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
277
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
278
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
279
|
+
</COVERAGE_PATTERN>
|
|
280
|
+
</EXTENSION>
|
|
281
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
282
|
+
<CAPISTRANO_RUN_CONFIG_SETTINGS_ID NAME="CAPISTRANO_TASK_NAME" VALUE="" />
|
|
283
|
+
<CAPISTRANO_RUN_CONFIG_SETTINGS_ID NAME="CAPISTRANO_TASK_ARGS" VALUE="" />
|
|
284
|
+
<CAPISTRANO_RUN_CONFIG_SETTINGS_ID NAME="CAPISTRANO_STAGE" VALUE="" />
|
|
285
|
+
<method />
|
|
286
|
+
</configuration>
|
|
287
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
|
288
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
289
|
+
<module name="" />
|
|
290
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
291
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
292
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
293
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
294
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
295
|
+
<envs />
|
|
296
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
297
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
|
298
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
299
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
300
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
301
|
+
</COVERAGE_PATTERN>
|
|
302
|
+
</EXTENSION>
|
|
303
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
304
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
305
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
306
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
307
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
308
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
309
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
310
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
311
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
312
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
313
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
314
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
315
|
+
<method />
|
|
316
|
+
</configuration>
|
|
317
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
|
318
|
+
<module name="" />
|
|
319
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
320
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
|
321
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
322
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
323
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
324
|
+
<envs />
|
|
325
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
326
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
|
327
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
328
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
329
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
330
|
+
</COVERAGE_PATTERN>
|
|
331
|
+
</EXTENSION>
|
|
332
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
333
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
|
334
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
335
|
+
<method />
|
|
336
|
+
</configuration>
|
|
337
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
|
338
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
|
339
|
+
<module name="" />
|
|
340
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
341
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
342
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
343
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
344
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
345
|
+
<envs />
|
|
346
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
347
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
|
348
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
349
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
350
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
351
|
+
</COVERAGE_PATTERN>
|
|
352
|
+
</EXTENSION>
|
|
353
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
354
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
355
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
356
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
|
357
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
|
358
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
359
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
360
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
|
361
|
+
<method />
|
|
362
|
+
</configuration>
|
|
363
|
+
<configuration default="true" type="IrbRunConfigurationType" factoryName="IRB console">
|
|
364
|
+
<module name="" />
|
|
365
|
+
<IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
366
|
+
<IRB_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
|
367
|
+
<IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
368
|
+
<IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
369
|
+
<IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
370
|
+
<envs />
|
|
371
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
372
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
|
373
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
374
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
375
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
376
|
+
</COVERAGE_PATTERN>
|
|
377
|
+
</EXTENSION>
|
|
378
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
379
|
+
<IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
|
380
|
+
<IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
381
|
+
<IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
|
|
382
|
+
<method />
|
|
383
|
+
</configuration>
|
|
384
|
+
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
|
385
|
+
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
|
386
|
+
<module name="" />
|
|
387
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
388
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
389
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
390
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
391
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
392
|
+
<envs>
|
|
393
|
+
<env name="ANSICON" value="" />
|
|
394
|
+
</envs>
|
|
395
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
396
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
|
397
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
398
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
399
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
400
|
+
</COVERAGE_PATTERN>
|
|
401
|
+
</EXTENSION>
|
|
402
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
403
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
|
404
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
405
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
406
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
407
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
|
|
408
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
|
|
409
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
|
|
410
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
411
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
412
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
|
|
413
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
414
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
|
|
415
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
|
|
416
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
|
417
|
+
<method />
|
|
418
|
+
</configuration>
|
|
419
|
+
<configuration default="false" name="Unnamed" type="IrbRunConfigurationType" factoryName="IRB console">
|
|
420
|
+
<module name="import" />
|
|
421
|
+
<IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
422
|
+
<IRB_RUN_CONFIG NAME="WORK DIR" VALUE="$PROJECT_DIR$/test" />
|
|
423
|
+
<IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
424
|
+
<IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
425
|
+
<IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
426
|
+
<envs />
|
|
427
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
428
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
|
429
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
430
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
431
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
432
|
+
</COVERAGE_PATTERN>
|
|
433
|
+
</EXTENSION>
|
|
434
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
435
|
+
<IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$PROJECT_DIR$/lib/debug.rb" />
|
|
436
|
+
<IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
437
|
+
<IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
|
|
438
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
439
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
440
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
441
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
442
|
+
<method />
|
|
443
|
+
</configuration>
|
|
444
|
+
<list size="1">
|
|
445
|
+
<item index="0" class="java.lang.String" itemvalue="IRB console.Unnamed" />
|
|
446
|
+
</list>
|
|
447
|
+
</component>
|
|
448
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
|
449
|
+
<component name="SvnConfiguration" maxAnnotateRevisions="500" myUseAcceleration="nothing" myAutoUpdateAfterCommit="false" cleanupOnStartRun="false" SSL_PROTOCOLS="all">
|
|
450
|
+
<option name="USER" value="" />
|
|
451
|
+
<option name="PASSWORD" value="" />
|
|
452
|
+
<option name="mySSHConnectionTimeout" value="30000" />
|
|
453
|
+
<option name="mySSHReadTimeout" value="30000" />
|
|
454
|
+
<option name="LAST_MERGED_REVISION" />
|
|
455
|
+
<option name="MERGE_DRY_RUN" value="false" />
|
|
456
|
+
<option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
|
|
457
|
+
<option name="UPDATE_LOCK_ON_DEMAND" value="false" />
|
|
458
|
+
<option name="IGNORE_SPACES_IN_MERGE" value="false" />
|
|
459
|
+
<option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
|
|
460
|
+
<option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
|
|
461
|
+
<option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
|
|
462
|
+
<option name="FORCE_UPDATE" value="false" />
|
|
463
|
+
<option name="IGNORE_EXTERNALS" value="false" />
|
|
464
|
+
<myIsUseDefaultProxy>false</myIsUseDefaultProxy>
|
|
465
|
+
</component>
|
|
466
|
+
<component name="TaskManager">
|
|
467
|
+
<task active="true" id="Default" summary="Default task">
|
|
468
|
+
<changelist id="f130eb23-3f81-442d-a76f-17ce5478d4da" name="Default" comment="" />
|
|
469
|
+
<created>1366092651754</created>
|
|
470
|
+
<updated>1366092651754</updated>
|
|
471
|
+
</task>
|
|
472
|
+
<task id="LOCAL-00001" summary="fix some bug">
|
|
473
|
+
<created>1366354456230</created>
|
|
474
|
+
<updated>1366354456230</updated>
|
|
475
|
+
</task>
|
|
476
|
+
<option name="localTasksCounter" value="2" />
|
|
477
|
+
<servers />
|
|
478
|
+
</component>
|
|
479
|
+
<component name="TodoView" selected-index="0">
|
|
480
|
+
<todo-panel id="selected-file">
|
|
481
|
+
<are-packages-shown value="false" />
|
|
482
|
+
<are-modules-shown value="false" />
|
|
483
|
+
<flatten-packages value="false" />
|
|
484
|
+
<is-autoscroll-to-source value="false" />
|
|
485
|
+
</todo-panel>
|
|
486
|
+
<todo-panel id="all">
|
|
487
|
+
<are-packages-shown value="false" />
|
|
488
|
+
<are-modules-shown value="false" />
|
|
489
|
+
<flatten-packages value="false" />
|
|
490
|
+
<is-autoscroll-to-source value="false" />
|
|
491
|
+
</todo-panel>
|
|
492
|
+
<todo-panel id="default-changelist">
|
|
493
|
+
<are-packages-shown value="false" />
|
|
494
|
+
<are-modules-shown value="false" />
|
|
495
|
+
<flatten-packages value="false" />
|
|
496
|
+
<is-autoscroll-to-source value="false" />
|
|
497
|
+
</todo-panel>
|
|
498
|
+
</component>
|
|
499
|
+
<component name="ToolWindowManager">
|
|
500
|
+
<frame x="65" y="24" width="1301" height="744" extended-state="6" />
|
|
501
|
+
<editor active="true" />
|
|
502
|
+
<layout>
|
|
503
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.47685185" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
504
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3287037" sideWeight="0.49960032" order="6" side_tool="false" content_ui="tabs" />
|
|
505
|
+
<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" />
|
|
506
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3157474" sideWeight="0.42746913" order="1" side_tool="true" content_ui="tabs" />
|
|
507
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2470024" sideWeight="0.71450615" order="0" side_tool="false" content_ui="combo" />
|
|
508
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.28549382" sideWeight="0.9984013" order="3" side_tool="false" content_ui="tabs" />
|
|
509
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3157474" sideWeight="0.42746913" order="2" side_tool="true" content_ui="tabs" />
|
|
510
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3287037" sideWeight="0.5003997" order="7" side_tool="true" content_ui="tabs" />
|
|
511
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3888889" sideWeight="0.9984013" order="2" side_tool="false" content_ui="tabs" />
|
|
512
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3287037" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
513
|
+
<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" />
|
|
514
|
+
<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" />
|
|
515
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
516
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3287037" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
517
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3287037" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
518
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
519
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
|
520
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
521
|
+
</layout>
|
|
522
|
+
</component>
|
|
523
|
+
<component name="VcsContentAnnotationSettings">
|
|
524
|
+
<option name="myLimit" value="2678400000" />
|
|
525
|
+
</component>
|
|
526
|
+
<component name="VcsManagerConfiguration">
|
|
527
|
+
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
|
|
528
|
+
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
|
|
529
|
+
<option name="CHECK_NEW_TODO" value="true" />
|
|
530
|
+
<option name="myTodoPanelSettings">
|
|
531
|
+
<value>
|
|
532
|
+
<are-packages-shown value="false" />
|
|
533
|
+
<are-modules-shown value="false" />
|
|
534
|
+
<flatten-packages value="false" />
|
|
535
|
+
<is-autoscroll-to-source value="false" />
|
|
536
|
+
</value>
|
|
537
|
+
</option>
|
|
538
|
+
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
|
|
539
|
+
<option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
|
|
540
|
+
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
|
|
541
|
+
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
|
|
542
|
+
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
|
|
543
|
+
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
|
|
544
|
+
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
|
|
545
|
+
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
|
|
546
|
+
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
|
|
547
|
+
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
|
|
548
|
+
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
|
|
549
|
+
<option name="SHORT_DIFF_HORIZONTALLY" value="true" />
|
|
550
|
+
<option name="SHORT_DIFF_EXTRA_LINES" value="2" />
|
|
551
|
+
<option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
|
|
552
|
+
<option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
|
|
553
|
+
<option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
|
|
554
|
+
<option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
|
|
555
|
+
<option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
|
|
556
|
+
<option name="SHOW_DIRTY_RECURSIVELY" value="false" />
|
|
557
|
+
<option name="LIMIT_HISTORY" value="true" />
|
|
558
|
+
<option name="MAXIMUM_HISTORY_ROWS" value="1000" />
|
|
559
|
+
<option name="UPDATE_FILTER_SCOPE_NAME" />
|
|
560
|
+
<option name="USE_COMMIT_MESSAGE_MARGIN" value="false" />
|
|
561
|
+
<option name="COMMIT_MESSAGE_MARGIN_SIZE" value="72" />
|
|
562
|
+
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />
|
|
563
|
+
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
|
564
|
+
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
|
|
565
|
+
<option name="LAST_COMMIT_MESSAGE" value="fix some bug" />
|
|
566
|
+
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
|
|
567
|
+
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
568
|
+
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
|
569
|
+
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
|
570
|
+
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
|
571
|
+
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
|
572
|
+
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
|
573
|
+
<option name="ACTIVE_VCS_NAME" />
|
|
574
|
+
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
|
575
|
+
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
|
|
576
|
+
<option name="UPDATE_FILTER_BY_SCOPE" value="false" />
|
|
577
|
+
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
|
578
|
+
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
|
579
|
+
<MESSAGE value="fix some bug" />
|
|
580
|
+
</component>
|
|
581
|
+
<component name="XDebuggerManager">
|
|
582
|
+
<breakpoint-manager>
|
|
583
|
+
<option name="time" value="8" />
|
|
584
|
+
</breakpoint-manager>
|
|
585
|
+
</component>
|
|
586
|
+
<component name="editorHistoryManager">
|
|
587
|
+
<entry file="file://$PROJECT_DIR$/lib/get_code_list.rb">
|
|
588
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
589
|
+
<state line="90" column="17" selection-start="2025" selection-end="2130" vertical-scroll-proportion="0.0">
|
|
590
|
+
<folding />
|
|
591
|
+
</state>
|
|
592
|
+
</provider>
|
|
593
|
+
</entry>
|
|
594
|
+
<entry file="file://$PROJECT_DIR$/.import.gemspec">
|
|
595
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
596
|
+
<state line="2" column="24" selection-start="99" selection-end="99" vertical-scroll-proportion="0.0">
|
|
597
|
+
<folding />
|
|
598
|
+
</state>
|
|
599
|
+
</provider>
|
|
600
|
+
</entry>
|
|
601
|
+
<entry file="file://$PROJECT_DIR$/lib/import_remotecontrol.rb">
|
|
602
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
603
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
|
604
|
+
</provider>
|
|
605
|
+
</entry>
|
|
606
|
+
<entry file="file://$PROJECT_DIR$/.import.gemspec">
|
|
607
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
608
|
+
<state line="2" column="24" selection-start="99" selection-end="99" vertical-scroll-proportion="0.0">
|
|
609
|
+
<folding />
|
|
610
|
+
</state>
|
|
611
|
+
</provider>
|
|
612
|
+
</entry>
|
|
613
|
+
<entry file="file://$PROJECT_DIR$/lib/import_code.rb">
|
|
614
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
615
|
+
<state line="92" column="44" selection-start="2659" selection-end="2659" vertical-scroll-proportion="0.0" />
|
|
616
|
+
</provider>
|
|
617
|
+
</entry>
|
|
618
|
+
<entry file="file://$PROJECT_DIR$/lib/import_remotecontrol.rb">
|
|
619
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
620
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
|
621
|
+
</provider>
|
|
622
|
+
</entry>
|
|
623
|
+
<entry file="file://$PROJECT_DIR$/lib/import_remotecontrol.rb">
|
|
624
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
625
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
|
626
|
+
</provider>
|
|
627
|
+
</entry>
|
|
628
|
+
<entry file="file://$PROJECT_DIR$/lib/import_remotecontrol.rb">
|
|
629
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
630
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
|
631
|
+
</provider>
|
|
632
|
+
</entry>
|
|
633
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs193/hash.rb">
|
|
634
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
635
|
+
<state line="607" column="8" selection-start="22657" selection-end="22657" vertical-scroll-proportion="0.33279485" />
|
|
636
|
+
</provider>
|
|
637
|
+
</entry>
|
|
638
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs193/runtime_error.rb">
|
|
639
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
640
|
+
<state line="24" column="44" selection-start="593" selection-end="593" vertical-scroll-proportion="0.60504204" />
|
|
641
|
+
</provider>
|
|
642
|
+
</entry>
|
|
643
|
+
<entry file="file://$PROJECT_DIR$/lib/import_remotecontrol.rb">
|
|
644
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
645
|
+
<state line="2" column="12" selection-start="43" selection-end="43" vertical-scroll-proportion="0.0" />
|
|
646
|
+
</provider>
|
|
647
|
+
</entry>
|
|
648
|
+
<entry file="file://$PROJECT_DIR$/lib/get_code_list.rb">
|
|
649
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
650
|
+
<state line="162" column="30" selection-start="3830" selection-end="3832" vertical-scroll-proportion="0.0">
|
|
651
|
+
<folding />
|
|
652
|
+
</state>
|
|
653
|
+
</provider>
|
|
654
|
+
</entry>
|
|
655
|
+
<entry file="file://$PROJECT_DIR$/lib/import_code.rb">
|
|
656
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
657
|
+
<state line="161" column="23" selection-start="4779" selection-end="4779" vertical-scroll-proportion="0.0">
|
|
658
|
+
<folding />
|
|
659
|
+
</state>
|
|
660
|
+
</provider>
|
|
661
|
+
</entry>
|
|
662
|
+
<entry file="file://$PROJECT_DIR$/lib/debug.rb">
|
|
663
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
664
|
+
<state line="11" column="24" selection-start="1990" selection-end="2000" vertical-scroll-proportion="0.0">
|
|
665
|
+
<folding />
|
|
666
|
+
</state>
|
|
667
|
+
</provider>
|
|
668
|
+
</entry>
|
|
669
|
+
<entry file="file://$PROJECT_DIR$/lib/automation_code_list.rb">
|
|
670
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
671
|
+
<state line="54" column="37" selection-start="1531" selection-end="1531" vertical-scroll-proportion="0.0">
|
|
672
|
+
<folding />
|
|
673
|
+
</state>
|
|
674
|
+
</provider>
|
|
675
|
+
</entry>
|
|
676
|
+
<entry file="file://$PROJECT_DIR$/.import.gemspec">
|
|
677
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
678
|
+
<state line="3" column="29" selection-start="130" selection-end="130" vertical-scroll-proportion="0.10368664">
|
|
679
|
+
<folding />
|
|
680
|
+
</state>
|
|
681
|
+
</provider>
|
|
682
|
+
</entry>
|
|
683
|
+
</component>
|
|
684
|
+
</project>
|
|
685
|
+
|
data/.import.gemspec
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Gem::Specification.new do |s|
|
|
2
|
+
s.name = 'import_remotecontrol'
|
|
3
|
+
s.version = '0.4.4'
|
|
4
|
+
s.date = '2013-05-20'
|
|
5
|
+
s.summary = "only use import remote control code"
|
|
6
|
+
s.description = "only use import remote control code"
|
|
7
|
+
s.authors = ["zql"]
|
|
8
|
+
s.email = 'hahazhouqunli@gmail.com'
|
|
9
|
+
s.files = `git ls-files`.split($\)
|
|
10
|
+
s.homepage =
|
|
11
|
+
'http://rubygems.org/gems/import_remotecontrol'
|
|
12
|
+
end
|
data/.import.gemspec~
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Gem::Specification.new do |s|
|
|
2
|
+
s.name = 'import_remotecontrol'
|
|
3
|
+
s.version = '0.0.0'
|
|
4
|
+
s.date = '2013-04-16'
|
|
5
|
+
s.summary = "only use import remote control code"
|
|
6
|
+
s.description = "only use import remote control code"
|
|
7
|
+
s.authors = ["zql"]
|
|
8
|
+
s.email = 'hahazhouqunli@gmail.com'
|
|
9
|
+
s.files = ["lib/import_remotecontrol.rb"]
|
|
10
|
+
s.homepage =
|
|
11
|
+
'http://rubygems.org/gems/import_remotecontrol'
|
|
12
|
+
end
|
data/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
#encoding:utf-8
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
module AutomationCodeList
|
|
5
|
+
|
|
6
|
+
#反码处理
|
|
7
|
+
#code 待处理的编码
|
|
8
|
+
#num 处理后几位作为反码
|
|
9
|
+
def self._inverse(code,code_length,num)
|
|
10
|
+
begin
|
|
11
|
+
length = code.length
|
|
12
|
+
_num = code_length/4 - length
|
|
13
|
+
_num.times.each do |i|
|
|
14
|
+
code = "0"+code
|
|
15
|
+
end
|
|
16
|
+
inverse_num = ""
|
|
17
|
+
num.times.each do |i|
|
|
18
|
+
inverse_num +="1"
|
|
19
|
+
end
|
|
20
|
+
inverse_num = "0b" + inverse_num
|
|
21
|
+
ret = ""
|
|
22
|
+
eval("ret=((~((code).to_i(16)))&Integer(#{inverse_num})).to_s(16)")
|
|
23
|
+
(code_length/4 - ret.length).times.each do |i|
|
|
24
|
+
ret = "0" + ret
|
|
25
|
+
end
|
|
26
|
+
return ret
|
|
27
|
+
rescue => err
|
|
28
|
+
raise RuntimeError, get_error_msg("get radix-minus-one complement Error, Error msg : #{err.to_s}",{METHOD_NAME => "inverse"})
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def self.inverse(code,num)
|
|
33
|
+
_inverse(code,@code_length,num)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def self.dispose(protocol,code)
|
|
38
|
+
protocol_array = protocol.split("#")
|
|
39
|
+
ret = ""
|
|
40
|
+
header = true
|
|
41
|
+
protocol_array.length.times.each do |i|
|
|
42
|
+
if protocol_array[i][0]=="V"
|
|
43
|
+
_dispose_code = protocol_array[i].split(":")
|
|
44
|
+
@code_length = _dispose_code[2].to_i
|
|
45
|
+
_dispose_code[1]=eval("#{_dispose_code[1]}")
|
|
46
|
+
(_dispose_code[2].to_i/4-_dispose_code[1].length).times.each do |i|
|
|
47
|
+
_dispose_code[1] = "0"+_dispose_code[1]
|
|
48
|
+
end
|
|
49
|
+
_dispose_code[1] = "0x"+_dispose_code[1]
|
|
50
|
+
protocol_array[i]=_dispose_code[0]+":"+_dispose_code[1]+":"+_dispose_code[2]
|
|
51
|
+
end
|
|
52
|
+
unless header
|
|
53
|
+
ret += "#"+protocol_array[i]
|
|
54
|
+
else
|
|
55
|
+
ret +=protocol_array[i]
|
|
56
|
+
header = false
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
return ret
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|
data/lib/debug.rb
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#encoding:utf-8
|
|
2
|
+
#require './get_code_list.rb'
|
|
3
|
+
require File.expand_path("../get_code_list.rb", __FILE__)
|
|
4
|
+
require File.expand_path("../import_code.rb", __FILE__)
|
|
5
|
+
require File.expand_path("../automation_code_list.rb", __FILE__)
|
|
6
|
+
class Debug
|
|
7
|
+
# To change this template use File | Settings | File Templates.
|
|
8
|
+
#GetCodeList.getlist({"brand"=>"创维", "codes"=>{"statistics"=>nil, "power"=>{"protocol_name"=>"", "code"=>"6:80:10:26:C"}, "voice_quiet"=>{"protocol_name"=>"", "code"=>"6:80:10:26:D"}, "menu"=>{"protocol_name"=>"", "code"=>"6:80:10:26:54"}, "后退"=>{"protocol_name"=>"", "code"=>"6:80:10:26:A"}, "up"=>{"protocol_name"=>"", "code"=>"6:80:10:26:58"}, "down"=>{"protocol_name"=>"", "code"=>"6:80:10:26:59"}, "left"=>{"protocol_name"=>"", "code"=>"6:80:10:26:5A"}, "right"=>{"protocol_name"=>"", "code"=>"6:80:10:26:5B"}, "确认"=>{"protocol_name"=>"", "code"=>"6:80:10:26:5C"}, "channel_up"=>{"protocol_name"=>"", "code"=>"6:80:10:26:20"}, "channel_down"=>{"protocol_name"=>"", "code"=>"6:80:10:26:21"}, "切换/回看"=>{"protocol_name"=>"", "code"=>"6:80:10:26:83"}, "voice_up"=>{"protocol_name"=>"", "code"=>"6:80:10:26:10"}, "voice_down"=>{"protocol_name"=>"", "code"=>"6:80:10:26:11"}, "1"=>{"protocol_name"=>"", "code"=>"6:80:10:26:0"}, "2"=>{"protocol_name"=>"", "code"=>"6:80:10:26:0"}, "3"=>{"protocol_name"=>"", "code"=>"6:80:10:26:0"}, "4"=>{"protocol_name"=>"", "code"=>"6:80:10:26:0"}, "5"=>{"protocol_name"=>"", "code"=>"6:80:10:26:0"}, "6"=>{"protocol_name"=>"", "code"=>"6:80:10:26:0"}, "7"=>{"protocol_name"=>"", "code"=>"6:80:10:26:0"}, "8"=>{"protocol_name"=>"", "code"=>"6:80:10:26:0"}, "9"=>{"protocol_name"=>"", "code"=>"6:80:10:26:0"}, "0"=>{"protocol_name"=>"", "code"=>"6:80:10:26:0"}, "province"=>"四川"}, "model"=>"创维HC8800", :city=>"北京", :operator=>"歌华有线"})
|
|
9
|
+
#p AutomationCodeList.dispose("S:9024#Z:4512#V:code[0]:16#V:code[1]:16#V:inverse(code[0],16):16#V:inverse(code[1],8):16#S:564#Z:39756#S:9024#Z:2256#S:564#Z:500",["1F","F"])
|
|
10
|
+
|
|
11
|
+
path ="/home/zql/remote"
|
|
12
|
+
codeArray = ImportCode.getRemoteCodeArray(path)
|
|
13
|
+
codeArray.each do |remoteCode|
|
|
14
|
+
p remoteCode
|
|
15
|
+
end
|
|
16
|
+
end
|
data/lib/get_code_list.rb
CHANGED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
#encoding:utf-8
|
|
2
|
+
module GetCodeList
|
|
3
|
+
# To change this template use File | Settings | File Templates.
|
|
4
|
+
|
|
5
|
+
BRAND = "brand"
|
|
6
|
+
PROTOCOLNAME="protocol_name"
|
|
7
|
+
CODE = "code"
|
|
8
|
+
METHOD_NAME = "method_name"
|
|
9
|
+
DEFAULT_PROTOCOL = {"EXT_NEC"=>"1","CUT_NEC"=>"41"}
|
|
10
|
+
|
|
11
|
+
#获取错误信息用于抛出错误
|
|
12
|
+
def self.get_error_msg(error,options={})
|
|
13
|
+
ret = ""
|
|
14
|
+
ret = ret + "ClassName: import_remotecontrol gem "
|
|
15
|
+
if options["method_name"]
|
|
16
|
+
ret = ret + "MethodName: #{options["method_name"]} "
|
|
17
|
+
end
|
|
18
|
+
if error
|
|
19
|
+
ret = ret + "Error Msg: #{error.to_s}"
|
|
20
|
+
end
|
|
21
|
+
ret
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
NEC=0x01
|
|
25
|
+
RC5=0x02
|
|
26
|
+
SIRC=0x03
|
|
27
|
+
JVC=0x04
|
|
28
|
+
NRC17=0x05
|
|
29
|
+
RCA=0x06
|
|
30
|
+
SHARP=0x07
|
|
31
|
+
X_SET=0x08
|
|
32
|
+
NEC_MINI=0x41
|
|
33
|
+
SX=0x09
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def self.getlist(data)
|
|
38
|
+
codes = data["codes"]
|
|
39
|
+
_codes = {}
|
|
40
|
+
case data[BRAND]
|
|
41
|
+
when "长虹"
|
|
42
|
+
codes.each do |key,value|
|
|
43
|
+
_codes.merge!({key=>changHong(value)})
|
|
44
|
+
end
|
|
45
|
+
_codes.merge!({default:false})
|
|
46
|
+
when "创维"
|
|
47
|
+
codes.each do |key,value|
|
|
48
|
+
_codes.merge!({key=>chuangWei(value)})
|
|
49
|
+
end
|
|
50
|
+
_codes.merge!({default:false})
|
|
51
|
+
else
|
|
52
|
+
codes.each do |key,value|
|
|
53
|
+
get = default(value)
|
|
54
|
+
if(default(value)!={}&&default(value))
|
|
55
|
+
_codes.merge!({key=>default(value)})
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
_codes.merge!({default:true})
|
|
59
|
+
end
|
|
60
|
+
data["codes"] = _codes
|
|
61
|
+
data
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def self.default(code)
|
|
65
|
+
ret = {}
|
|
66
|
+
begin
|
|
67
|
+
case code[PROTOCOLNAME]
|
|
68
|
+
when "CUT_NEC"
|
|
69
|
+
ret = chuangWeiCutNec(DEFAULT_PROTOCOL[code[PROTOCOLNAME]],code[CODE])
|
|
70
|
+
when "EXT_NEC"
|
|
71
|
+
ret = changHongExtNec(DEFAULT_PROTOCOL[code[PROTOCOLNAME]],code[CODE])
|
|
72
|
+
end
|
|
73
|
+
rescue => err
|
|
74
|
+
ret = {}
|
|
75
|
+
end
|
|
76
|
+
ret
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
def self.changHong(code)
|
|
80
|
+
ret = ""
|
|
81
|
+
case code[PROTOCOLNAME]
|
|
82
|
+
when "EXT_NEC"
|
|
83
|
+
ret = changHongExtNec(DEFAULT_PROTOCOL[code[PROTOCOLNAME]],code[CODE])
|
|
84
|
+
end
|
|
85
|
+
ret
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def self.chuangWei(code)
|
|
89
|
+
ret = ""
|
|
90
|
+
case code[PROTOCOLNAME]
|
|
91
|
+
when "CUT_NEC"
|
|
92
|
+
ret = chuangWeiCutNec(DEFAULT_PROTOCOL[code[PROTOCOLNAME]],code[CODE])
|
|
93
|
+
end
|
|
94
|
+
ret
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
def self.radix_minus_one_complement(code)
|
|
98
|
+
begin
|
|
99
|
+
code = "0" + code if code.size==1
|
|
100
|
+
ret = ""
|
|
101
|
+
2.times.each do |i|
|
|
102
|
+
ret = ret + ((~((code[i]).to_i(16)))&Integer(0b1111)).to_s(16)
|
|
103
|
+
end
|
|
104
|
+
rescue
|
|
105
|
+
raise RuntimeError, get_error_msg("get radix-minus-one complement Error, Error msg : #{err.to_s}",{METHOD_NAME => "radix_minus_one_complement"})
|
|
106
|
+
end
|
|
107
|
+
ret
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
#对长虹的扩展NEC编码类型的编码数组进行处理
|
|
113
|
+
def self.changHongExtNec(prtotoname,code)
|
|
114
|
+
begin
|
|
115
|
+
codes = code.split(":")
|
|
116
|
+
ret = "#{prtotoname}:#{codes[0]}:#{codes[1]}:#{codes[2]}:"
|
|
117
|
+
ret = ret +radix_minus_one_complement(codes[2].to_s)
|
|
118
|
+
rescue => err
|
|
119
|
+
raise RuntimeError, get_error_msg("Protocol Error, Error msg : #{err.to_s}",{METHOD_NAME => "changHongExtNec"})
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
#对创维的精简NEC编码类型的编码数组进行处理
|
|
124
|
+
def self.chuangWeiCutNec(prtotoname,code)
|
|
125
|
+
begin
|
|
126
|
+
codes = code.split(":")
|
|
127
|
+
ret = "#{prtotoname}:#{codes[0]}:#{codes[0]}:#{codes[1]}:"
|
|
128
|
+
ret = ret +radix_minus_one_complement(codes[1].to_s)
|
|
129
|
+
rescue => err
|
|
130
|
+
raise RuntimeError, get_error_msg("Protocol Error, Error msg : #{err.to_s}",{METHOD_NAME => "chuangWeiCutNec"})
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
|
data/lib/import_code.rb
CHANGED
|
@@ -124,6 +124,7 @@ module ImportCode
|
|
|
124
124
|
ret = {}
|
|
125
125
|
brand = ""
|
|
126
126
|
remote_code_line = File.read(file_path)
|
|
127
|
+
ret.merge!("code"=>{})
|
|
127
128
|
remote_code_line.split("\r\n").each do |code|
|
|
128
129
|
i = code.split("=")
|
|
129
130
|
if i.count>=2
|
|
@@ -145,8 +146,8 @@ module ImportCode
|
|
|
145
146
|
unless isProcolCode?(key)
|
|
146
147
|
ret.merge!({key => i[1]}) unless DEFAULT_NOIMPORT.include?(key)
|
|
147
148
|
else
|
|
148
|
-
codehash = disposeProtocolCode(i[1],brand)
|
|
149
|
-
ret.merge!({key=>
|
|
149
|
+
#codehash = disposeProtocolCode(i[1],brand)
|
|
150
|
+
ret["code"].merge!({key=>i[1]}) unless DEFAULT_NOIMPORT.include?(key)
|
|
150
151
|
end
|
|
151
152
|
else
|
|
152
153
|
ret.merge!({key=>i[1]}) unless DEFAULT_NOIMPORT.include?(key)
|
|
@@ -170,24 +171,6 @@ module ImportCode
|
|
|
170
171
|
ret
|
|
171
172
|
end
|
|
172
173
|
|
|
173
|
-
#将协议名从不同的协议编码转为了数据库对应的字符串(按品牌进行的处理)
|
|
174
|
-
#def self.getProtocolList(file_path)
|
|
175
|
-
# @protocol_hash = {}
|
|
176
|
-
# protocol_lines = File.read(file_path)
|
|
177
|
-
# protocol_lines.split("\n").each do |protocol_line|
|
|
178
|
-
# protocol = protocol_line.split(":")
|
|
179
|
-
# if(@protocol_hash.has_key?(protocol[0]))
|
|
180
|
-
# @protocol_hash["#{protocol[0]}"].merge!({protocol[1]=>protocol[2]}) if protocol[2]!=nil&&protocol[2]!=""
|
|
181
|
-
# else
|
|
182
|
-
# @protocol_hash["#{protocol[0]}"] = {protocol[1]=>protocol[2]} if protocol[2]!=nil&&protocol[2]!=""
|
|
183
|
-
# end
|
|
184
|
-
# end
|
|
185
|
-
# @protocol_hash
|
|
186
|
-
#end
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
174
|
|
|
192
175
|
#获取协议码对应协议(忽视品牌直接按协议码进行的处理)
|
|
193
176
|
def self.getProtocolList(file_path)
|
|
@@ -214,30 +197,6 @@ module ImportCode
|
|
|
214
197
|
@protocol_hash
|
|
215
198
|
end
|
|
216
199
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
#对按键的编码进行了处理(按品牌进行的处理)
|
|
221
|
-
#def self.disposeProtocolCode(codes,brand)
|
|
222
|
-
# protocol = ""
|
|
223
|
-
# codelist = codes.split(" ")
|
|
224
|
-
# protocol_name = codelist[0]
|
|
225
|
-
# if @protocol_hash[brand]
|
|
226
|
-
# protocol = @protocol_hash[brand][protocol_name] if @protocol_hash[brand][protocol_name]
|
|
227
|
-
# else
|
|
228
|
-
# end
|
|
229
|
-
# #protocol_user_code = codelist[1]
|
|
230
|
-
# #other_code = ""
|
|
231
|
-
# code = ""
|
|
232
|
-
# p codelist
|
|
233
|
-
# 1.upto(codelist.size-1).each do |index|
|
|
234
|
-
# code =code + codelist[index]
|
|
235
|
-
# code =code + ":" unless index == codelist.size-1
|
|
236
|
-
# end
|
|
237
|
-
# p code
|
|
238
|
-
# {protocol_name:protocol,code:code}
|
|
239
|
-
#end
|
|
240
|
-
|
|
241
200
|
#对按键的编码进行了处理(按协议码进行的处理)
|
|
242
201
|
def self.disposeProtocolCode(codes,brand)
|
|
243
202
|
protocol = ""
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$" />
|
|
5
|
+
<orderEntry type="inheritedJdk" />
|
|
6
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
+
</component>
|
|
8
|
+
</module>
|
|
9
|
+
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: import_remotecontrol
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- zql
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: only use import remote control code
|
|
14
14
|
email: hahazhouqunli@gmail.com
|
|
@@ -16,9 +16,25 @@ executables: []
|
|
|
16
16
|
extensions: []
|
|
17
17
|
extra_rdoc_files: []
|
|
18
18
|
files:
|
|
19
|
-
-
|
|
20
|
-
-
|
|
19
|
+
- .gitignore
|
|
20
|
+
- .idea/.name
|
|
21
|
+
- .idea/encodings.xml
|
|
22
|
+
- .idea/import.iml
|
|
23
|
+
- .idea/misc.xml
|
|
24
|
+
- .idea/modules.xml
|
|
25
|
+
- .idea/scopes/scope_settings.xml
|
|
26
|
+
- .idea/vcs.xml
|
|
27
|
+
- .idea/workspace.xml
|
|
28
|
+
- .import.gemspec
|
|
29
|
+
- .import.gemspec~
|
|
30
|
+
- README.md
|
|
31
|
+
- lib/automation_code_list.rb
|
|
32
|
+
- lib/debug.rb
|
|
21
33
|
- lib/get_code_list.rb
|
|
34
|
+
- lib/get_code_list.rb~
|
|
35
|
+
- lib/import_code.rb
|
|
36
|
+
- lib/import_remotecontrol.rb
|
|
37
|
+
- projectFilesBackup/.idea/import.iml
|
|
22
38
|
homepage: http://rubygems.org/gems/import_remotecontrol
|
|
23
39
|
licenses: []
|
|
24
40
|
metadata: {}
|