eric_weixin 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2cc4fdba11b0381021e63e25db58747bb079394
4
- data.tar.gz: b00c7e1e99f38510897772a382d69758afbcd01d
3
+ metadata.gz: edd8f9ab314fe25f8a18eaaf41ecd03f987e3bfe
4
+ data.tar.gz: cb42319995a05c4c4cf3599fb9bfee7eb8fd8d88
5
5
  SHA512:
6
- metadata.gz: 1532e6ba27c53dface1d5bc892f6e39598f621d17c7039d28f8eb80d8a6976a755a3d4bfdc18f112021ea7cf91c2a3451c405af7d0afe072b14114b34f3efa6f
7
- data.tar.gz: ae086bc19f5c0ca49ed9b49ccc015f359aa6f90ee997b3a41ff5c27f1c34e4aafbd377d35c991dd9b093dd09a0fb5b18d6620a1c8710abb3dea6466fc7d3138f
6
+ metadata.gz: 7477e5a165cc6f6351f19869c9730376d280d41ced2fec567a1890bf3f9b5ed3f10b81e0fefc6f1d052a450a217a3d49df5cbbcaa1825b81fcc045eef3ff7d4f
7
+ data.tar.gz: d5bc7dfef7a84d5629cf5f526302e1041774fa5849587889b515e36298094db7550e4c449bad5a56705fa35e8632a23045837680c1174e1feb6257b66580798b
data/.idea/workspace.xml CHANGED
@@ -2,6 +2,9 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="825e533a-b0a1-462f-abd1-eefea8ff703f" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/eric_weixin/app/model/reply_message_rule.rb" afterPath="$PROJECT_DIR$/lib/eric_weixin/app/model/reply_message_rule.rb" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/eric_weixin/version.rb" afterPath="$PROJECT_DIR$/lib/eric_weixin/version.rb" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/eric_weixin/app/model/weixin_user.rb" afterPath="$PROJECT_DIR$/lib/eric_weixin/app/model/weixin_user.rb" />
5
8
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
9
  </list>
7
10
  <ignored path="eric_weixin.iws" />
@@ -24,7 +27,68 @@
24
27
  <favorites_list name="eric_weixin" />
25
28
  </component>
26
29
  <component name="FileEditorManager">
27
- <leaf />
30
+ <leaf>
31
+ <file leaf-file-name="reply_message_rule.rb" pinned="false" current="false" current-in-tab="false">
32
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/reply_message_rule.rb">
33
+ <provider selected="true" editor-type-id="text-editor">
34
+ <state vertical-scroll-proportion="0.0" vertical-offset="1415" max-vertical-offset="2052">
35
+ <caret line="105" column="15" selection-start-line="105" selection-start-column="15" selection-end-line="105" selection-end-column="15" />
36
+ <folding />
37
+ </state>
38
+ </provider>
39
+ </entry>
40
+ </file>
41
+ <file leaf-file-name="eric_weixin.gemspec" pinned="false" current="false" current-in-tab="false">
42
+ <entry file="file://$PROJECT_DIR$/eric_weixin.gemspec">
43
+ <provider selected="true" editor-type-id="text-editor">
44
+ <state vertical-scroll-proportion="0.0" vertical-offset="299" max-vertical-offset="702">
45
+ <caret line="28" column="45" selection-start-line="28" selection-start-column="45" selection-end-line="28" selection-end-column="45" />
46
+ <folding />
47
+ </state>
48
+ </provider>
49
+ </entry>
50
+ </file>
51
+ <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
52
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/version.rb">
53
+ <provider selected="true" editor-type-id="text-editor">
54
+ <state vertical-scroll-proportion="0.04522613" vertical-offset="0" max-vertical-offset="398">
55
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
56
+ <folding />
57
+ </state>
58
+ </provider>
59
+ </entry>
60
+ </file>
61
+ <file leaf-file-name="access_token.rb" pinned="false" current="false" current-in-tab="false">
62
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/access_token.rb">
63
+ <provider selected="true" editor-type-id="text-editor">
64
+ <state vertical-scroll-proportion="0.0" vertical-offset="172" max-vertical-offset="918">
65
+ <caret line="20" column="0" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
66
+ <folding />
67
+ </state>
68
+ </provider>
69
+ </entry>
70
+ </file>
71
+ <file leaf-file-name="weixin_controller.rb" pinned="false" current="false" current-in-tab="false">
72
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/controllers/weixin/weixin_controller.rb">
73
+ <provider selected="true" editor-type-id="text-editor">
74
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="576">
75
+ <caret line="10" column="53" selection-start-line="10" selection-start-column="40" selection-end-line="10" selection-end-column="53" />
76
+ <folding />
77
+ </state>
78
+ </provider>
79
+ </entry>
80
+ </file>
81
+ <file leaf-file-name="weixin_user.rb" pinned="false" current="false" current-in-tab="false">
82
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/weixin_user.rb">
83
+ <provider selected="true" editor-type-id="text-editor">
84
+ <state vertical-scroll-proportion="0.0" vertical-offset="412" max-vertical-offset="1710">
85
+ <caret line="31" column="12" selection-start-line="31" selection-start-column="12" selection-end-line="31" selection-end-column="12" />
86
+ <folding />
87
+ </state>
88
+ </provider>
89
+ </entry>
90
+ </file>
91
+ </leaf>
28
92
  </component>
29
93
  <component name="FindManager">
30
94
  <FindUsagesManager>
@@ -42,28 +106,28 @@
42
106
  <option value="$PROJECT_DIR$/lib/eric_weixin/model/public_account.rb" />
43
107
  <option value="$PROJECT_DIR$/lib/eric_weixin/public_account.rb" />
44
108
  <option value="$PROJECT_DIR$/lib/eric_weixin/reply_message.rb" />
45
- <option value="$PROJECT_DIR$/lib/eric_weixin/app/model/weixin_user.rb" />
46
109
  <option value="$PROJECT_DIR$/lib/eric_weixin/app/model/public_account.rb" />
47
110
  <option value="$PROJECT_DIR$/lib/eric_weixin/app/model/access_token.rb" />
48
111
  <option value="$PROJECT_DIR$/lib/eric_weixin/app/model/news.rb" />
49
112
  <option value="$PROJECT_DIR$/lib/eric_weixin/app/model/article.rb" />
50
113
  <option value="$PROJECT_DIR$/lib/eric_weixin/app/model/article_news.rb" />
51
- <option value="$PROJECT_DIR$/lib/eric_weixin/app/model/reply_message_rule.rb" />
52
114
  <option value="$PROJECT_DIR$/lib/eric_weixin/app/controllers/weixin/base_controller.rb" />
53
115
  <option value="$PROJECT_DIR$/lib/eric_weixin/app/views/weixin/aa.erb" />
54
116
  <option value="$PROJECT_DIR$/eric_weixin.gemspec" />
55
117
  <option value="$PROJECT_DIR$/lib/eric_weixin/app/controllers/big_application_controller.rb" />
56
118
  <option value="$PROJECT_DIR$/lib/eric_weixin/app/controllers/weixin/weixin_controller.rb" />
57
119
  <option value="$PROJECT_DIR$/lib/eric_weixin.rb" />
120
+ <option value="$PROJECT_DIR$/lib/eric_weixin/app/model/weixin_user.rb" />
121
+ <option value="$PROJECT_DIR$/lib/eric_weixin/app/model/reply_message_rule.rb" />
58
122
  <option value="$PROJECT_DIR$/lib/eric_weixin/version.rb" />
59
123
  </list>
60
124
  </option>
61
125
  </component>
62
126
  <component name="ProjectFrameBounds">
63
- <option name="x" value="1440" />
64
- <option name="y" value="-72" />
65
- <option name="width" value="1920" />
66
- <option name="height" value="1057" />
127
+ <option name="x" value="1665" />
128
+ <option name="y" value="23" />
129
+ <option name="width" value="1440" />
130
+ <option name="height" value="830" />
67
131
  </component>
68
132
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
69
133
  <OptionsSetting value="true" id="Add" />
@@ -91,6 +155,7 @@
91
155
  <sortByType />
92
156
  </navigator>
93
157
  <panes>
158
+ <pane id="Scope" />
94
159
  <pane id="ProjectPane">
95
160
  <subPane>
96
161
  <PATH>
@@ -141,61 +206,8 @@
141
206
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
142
207
  </PATH_ELEMENT>
143
208
  </PATH>
144
- <PATH>
145
- <PATH_ELEMENT>
146
- <option name="myItemId" value="eric_weixin" />
147
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
148
- </PATH_ELEMENT>
149
- <PATH_ELEMENT>
150
- <option name="myItemId" value="eric_weixin" />
151
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
152
- </PATH_ELEMENT>
153
- <PATH_ELEMENT>
154
- <option name="myItemId" value="lib" />
155
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
156
- </PATH_ELEMENT>
157
- <PATH_ELEMENT>
158
- <option name="myItemId" value="eric_weixin" />
159
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
160
- </PATH_ELEMENT>
161
- <PATH_ELEMENT>
162
- <option name="myItemId" value="app" />
163
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
164
- </PATH_ELEMENT>
165
- </PATH>
166
- <PATH>
167
- <PATH_ELEMENT>
168
- <option name="myItemId" value="eric_weixin" />
169
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
170
- </PATH_ELEMENT>
171
- <PATH_ELEMENT>
172
- <option name="myItemId" value="eric_weixin" />
173
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
174
- </PATH_ELEMENT>
175
- <PATH_ELEMENT>
176
- <option name="myItemId" value="lib" />
177
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
178
- </PATH_ELEMENT>
179
- <PATH_ELEMENT>
180
- <option name="myItemId" value="eric_weixin" />
181
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
182
- </PATH_ELEMENT>
183
- <PATH_ELEMENT>
184
- <option name="myItemId" value="app" />
185
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
186
- </PATH_ELEMENT>
187
- <PATH_ELEMENT>
188
- <option name="myItemId" value="controllers" />
189
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
190
- </PATH_ELEMENT>
191
- <PATH_ELEMENT>
192
- <option name="myItemId" value="weixin" />
193
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
194
- </PATH_ELEMENT>
195
- </PATH>
196
209
  </subPane>
197
210
  </pane>
198
- <pane id="Scope" />
199
211
  </panes>
200
212
  </component>
201
213
  <component name="PropertiesComponent">
@@ -317,15 +329,16 @@
317
329
  <servers />
318
330
  </component>
319
331
  <component name="ToolWindowManager">
320
- <frame x="1440" y="-72" width="1920" height="1057" extended-state="6" />
321
- <editor active="false" />
332
+ <frame x="1665" y="23" width="1440" height="830" extended-state="6" />
333
+ <editor active="true" />
322
334
  <layout>
323
335
  <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
324
336
  <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
325
337
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
338
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.42040816" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
326
339
  <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" />
327
340
  <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
328
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.19009584" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
341
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24606581" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
329
342
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
330
343
  <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
331
344
  <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
@@ -333,11 +346,10 @@
333
346
  <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
334
347
  <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" />
335
348
  <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" />
336
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.11320755" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
337
349
  <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" />
338
350
  <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
339
- <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" />
340
351
  <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" />
352
+ <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" />
341
353
  </layout>
342
354
  </component>
343
355
  <component name="Vcs.Log.UiProperties">
@@ -360,6 +372,22 @@
360
372
  <breakpoint-manager />
361
373
  </component>
362
374
  <component name="editorHistoryManager">
375
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/reply_message_rule.rb">
376
+ <provider selected="true" editor-type-id="text-editor">
377
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2070">
378
+ <caret line="73" column="66" selection-start-line="73" selection-start-column="53" selection-end-line="73" selection-end-column="66" />
379
+ <folding />
380
+ </state>
381
+ </provider>
382
+ </entry>
383
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/access_token.rb">
384
+ <provider selected="true" editor-type-id="text-editor">
385
+ <state vertical-scroll-proportion="0.0" vertical-offset="172" max-vertical-offset="918">
386
+ <caret line="20" column="0" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
387
+ <folding />
388
+ </state>
389
+ </provider>
390
+ </entry>
363
391
  <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/public_account.rb">
364
392
  <provider selected="true" editor-type-id="text-editor">
365
393
  <state vertical-scroll-proportion="0.0" vertical-offset="36" max-vertical-offset="3438">
@@ -467,14 +495,14 @@
467
495
  </provider>
468
496
  </entry>
469
497
  <entry file="file://$PROJECT_DIR$/LICENSE.txt">
498
+ <provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
499
+ <state />
500
+ </provider>
470
501
  <provider selected="true" editor-type-id="text-editor">
471
502
  <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="680">
472
503
  <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
473
504
  </state>
474
505
  </provider>
475
- <provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
476
- <state />
477
- </provider>
478
506
  </entry>
479
507
  <entry file="file://$PROJECT_DIR$/Rakefile">
480
508
  <provider selected="true" editor-type-id="text-editor">
@@ -504,13 +532,6 @@
504
532
  </state>
505
533
  </provider>
506
534
  </entry>
507
- <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/weixin_user.rb">
508
- <provider selected="true" editor-type-id="text-editor">
509
- <state vertical-scroll-proportion="0.0" vertical-offset="1167" max-vertical-offset="1710">
510
- <caret line="84" column="19" selection-start-line="84" selection-start-column="19" selection-end-line="84" selection-end-column="19" />
511
- </state>
512
- </provider>
513
- </entry>
514
535
  <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/views/eric_weixin/weixin/aa.erb">
515
536
  <provider selected="true" editor-type-id="text-editor">
516
537
  <state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="108">
@@ -525,59 +546,72 @@
525
546
  </state>
526
547
  </provider>
527
548
  </entry>
528
- <entry file="file://$PROJECT_DIR$/lib/eric_weixin/version.rb">
549
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/public_account.rb">
529
550
  <provider selected="true" editor-type-id="text-editor">
530
- <state vertical-scroll-proportion="0.055158325" vertical-offset="0" max-vertical-offset="979">
531
- <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
551
+ <state vertical-scroll-proportion="0.018386109" vertical-offset="36" max-vertical-offset="3438">
552
+ <caret line="3" column="4" selection-start-line="3" selection-start-column="4" selection-end-line="3" selection-end-column="46" />
532
553
  </state>
533
554
  </provider>
534
555
  </entry>
535
- <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/controllers/weixin/weixin_controller.rb">
556
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/reply_message.rb">
557
+ <provider selected="true" editor-type-id="text-editor">
558
+ <state vertical-scroll-proportion="0.5955056" vertical-offset="677" max-vertical-offset="1656">
559
+ <caret line="70" column="27" selection-start-line="70" selection-start-column="27" selection-end-line="70" selection-end-column="27" />
560
+ </state>
561
+ </provider>
562
+ </entry>
563
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/article_news.rb">
536
564
  <provider selected="true" editor-type-id="text-editor">
537
- <state vertical-scroll-proportion="0.47803882" vertical-offset="0" max-vertical-offset="979">
538
- <caret line="26" column="0" selection-start-line="26" selection-start-column="0" selection-end-line="26" selection-end-column="0" />
565
+ <state vertical-scroll-proportion="0.11031665" vertical-offset="0" max-vertical-offset="979">
566
+ <caret line="6" column="0" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
539
567
  </state>
540
568
  </provider>
541
569
  </entry>
542
570
  <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/access_token.rb">
543
571
  <provider selected="true" editor-type-id="text-editor">
544
- <state vertical-scroll-proportion="0.111801244" vertical-offset="0" max-vertical-offset="966">
545
- <caret line="6" column="16" selection-start-line="6" selection-start-column="16" selection-end-line="6" selection-end-column="16" />
572
+ <state vertical-scroll-proportion="0.0" vertical-offset="172" max-vertical-offset="918">
573
+ <caret line="20" column="0" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
574
+ <folding />
546
575
  </state>
547
576
  </provider>
548
577
  </entry>
549
- <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/reply_message_rule.rb">
578
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/controllers/weixin/weixin_controller.rb">
550
579
  <provider selected="true" editor-type-id="text-editor">
551
- <state vertical-scroll-proportion="0.41164455" vertical-offset="1091" max-vertical-offset="2070">
552
- <caret line="83" column="7" selection-start-line="83" selection-start-column="7" selection-end-line="83" selection-end-column="7" />
580
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="576">
581
+ <caret line="10" column="53" selection-start-line="10" selection-start-column="40" selection-end-line="10" selection-end-column="53" />
582
+ <folding />
553
583
  </state>
554
584
  </provider>
555
585
  </entry>
556
- <entry file="file://$PROJECT_DIR$/eric_weixin.gemspec">
586
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/weixin_user.rb">
557
587
  <provider selected="true" editor-type-id="text-editor">
558
- <state vertical-scroll-proportion="0.51481104" vertical-offset="0" max-vertical-offset="979">
559
- <caret line="28" column="45" selection-start-line="28" selection-start-column="45" selection-end-line="28" selection-end-column="45" />
588
+ <state vertical-scroll-proportion="0.0" vertical-offset="412" max-vertical-offset="1710">
589
+ <caret line="31" column="12" selection-start-line="31" selection-start-column="12" selection-end-line="31" selection-end-column="12" />
590
+ <folding />
560
591
  </state>
561
592
  </provider>
562
593
  </entry>
563
- <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/public_account.rb">
594
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/reply_message_rule.rb">
564
595
  <provider selected="true" editor-type-id="text-editor">
565
- <state vertical-scroll-proportion="0.018386109" vertical-offset="36" max-vertical-offset="3438">
566
- <caret line="3" column="4" selection-start-line="3" selection-start-column="4" selection-end-line="3" selection-end-column="46" />
596
+ <state vertical-scroll-proportion="0.0" vertical-offset="1415" max-vertical-offset="2052">
597
+ <caret line="105" column="15" selection-start-line="105" selection-start-column="15" selection-end-line="105" selection-end-column="15" />
598
+ <folding />
567
599
  </state>
568
600
  </provider>
569
601
  </entry>
570
- <entry file="file://$PROJECT_DIR$/lib/eric_weixin/reply_message.rb">
602
+ <entry file="file://$PROJECT_DIR$/eric_weixin.gemspec">
571
603
  <provider selected="true" editor-type-id="text-editor">
572
- <state vertical-scroll-proportion="0.5955056" vertical-offset="677" max-vertical-offset="1656">
573
- <caret line="70" column="27" selection-start-line="70" selection-start-column="27" selection-end-line="70" selection-end-column="27" />
604
+ <state vertical-scroll-proportion="0.0" vertical-offset="299" max-vertical-offset="702">
605
+ <caret line="28" column="45" selection-start-line="28" selection-start-column="45" selection-end-line="28" selection-end-column="45" />
606
+ <folding />
574
607
  </state>
575
608
  </provider>
576
609
  </entry>
577
- <entry file="file://$PROJECT_DIR$/lib/eric_weixin/app/model/article_news.rb">
610
+ <entry file="file://$PROJECT_DIR$/lib/eric_weixin/version.rb">
578
611
  <provider selected="true" editor-type-id="text-editor">
579
- <state vertical-scroll-proportion="0.11031665" vertical-offset="0" max-vertical-offset="979">
580
- <caret line="6" column="0" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
612
+ <state vertical-scroll-proportion="0.04522613" vertical-offset="0" max-vertical-offset="398">
613
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
614
+ <folding />
581
615
  </state>
582
616
  </provider>
583
617
  </entry>
@@ -106,4 +106,4 @@ class EricWeixin::ReplyMessageRule < ActiveRecord::Base
106
106
  reply_msg
107
107
  end
108
108
  end
109
- end
109
+ end
@@ -28,8 +28,8 @@ class EricWeixin::WeixinUser < ActiveRecord::Base
28
28
  # ====返回
29
29
  # 正常情况下返回当前微信用户 <tt>::EricWeixin::WeixinUser</tt>,抛出异常时错误查看异常信息。
30
30
  def create_weixin_user(secret_key, openid)
31
- public_account = ::Weixin::PublicAccount.find_by_weixin_secret_key(secret_key)
32
- ::Weixin::ReplyMessageRule.transaction do
31
+ public_account = ::EricWeixin::PublicAccount.find_by_weixin_secret_key(secret_key)
32
+ ::EricWeixin::ReplyMessageRule.transaction do
33
33
  weixin_user = ::EricWeixin::WeixinUser.where(openid: openid, weixin_secret_key: secret_key).first
34
34
  if weixin_user.blank?
35
35
  weixin_user = ::EricWeixin::WeixinUser.new openid: openid,
@@ -1,3 +1,3 @@
1
1
  module EricWeixin
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eric_weixin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - 刘晓琦
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-06 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler