baozhao_gem 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.idea/.name ADDED
@@ -0,0 +1 @@
1
+ baozhao_gem
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build baozhao_gem-0.0.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install baozhao_gem-0.0.1.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.0.1 and build and push baozhao_gem-0.0.1.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
@@ -0,0 +1,20 @@
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="$MODULE_DIR$" />
7
+ <option name="GEM_APP_TEST_PATH" value="" />
8
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
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
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.4, ruby-1.9.3-p392) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.0.4, ruby-1.9.3-p392) [gem]" level="application" />
18
+ </component>
19
+ </module>
20
+
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
5
+
data/.idea/misc.xml ADDED
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="ruby-1.9.3-p392" project-jdk-type="RUBY_SDK" />
4
+ </project>
5
+
data/.idea/modules.xml ADDED
@@ -0,0 +1,9 @@
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/baozhao_gem.iml" filepath="$PROJECT_DIR$/.idea/baozhao_gem.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
9
+
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="" />
5
+ </component>
6
+ </project>
7
+
@@ -0,0 +1,266 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="883c23cf-983d-4ecc-bd5f-1e6b6be0c2d6" name="Default" comment="" />
5
+ <ignored path="baozhao_gem.iws" />
6
+ <ignored path=".idea/workspace.xml" />
7
+ <file path="/baozhao_gem.rb" changelist="883c23cf-983d-4ecc-bd5f-1e6b6be0c2d6" time="1370662722813" ignored="false" />
8
+ <file path="$PROJECT_DIR$/../baozhao/app/models/post.rb" changelist="883c23cf-983d-4ecc-bd5f-1e6b6be0c2d6" time="1370662882718" ignored="false" />
9
+ <file path="$PROJECT_DIR$/../baozhao/Gemfile" changelist="883c23cf-983d-4ecc-bd5f-1e6b6be0c2d6" time="1370663066995" ignored="false" />
10
+ <file path="/Gemfile" changelist="883c23cf-983d-4ecc-bd5f-1e6b6be0c2d6" time="1370663000741" ignored="false" />
11
+ <file path="/Ruby Console" changelist="883c23cf-983d-4ecc-bd5f-1e6b6be0c2d6" time="1370663086087" ignored="false" />
12
+ <option name="TRACKING_ENABLED" value="true" />
13
+ <option name="SHOW_DIALOG" value="false" />
14
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
15
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
16
+ <option name="LAST_RESOLUTION" value="IGNORE" />
17
+ </component>
18
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
19
+ <component name="CreatePatchCommitExecutor">
20
+ <option name="PATCH_PATH" value="" />
21
+ </component>
22
+ <component name="DaemonCodeAnalyzer">
23
+ <disable_hints />
24
+ </component>
25
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
26
+ <component name="FavoritesManager">
27
+ <favorites_list name="baozhao_gem" />
28
+ </component>
29
+ <component name="FileEditorManager">
30
+ <leaf>
31
+ <file leaf-file-name="baozhao_gem.rb" pinned="false" current="false" current-in-tab="false">
32
+ <entry file="file://$PROJECT_DIR$/lib/baozhao_gem.rb">
33
+ <provider selected="true" editor-type-id="text-editor">
34
+ <state line="19" column="44" selection-start="337" selection-end="337" vertical-scroll-proportion="0.0">
35
+ <folding />
36
+ </state>
37
+ </provider>
38
+ </entry>
39
+ </file>
40
+ <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
41
+ <entry file="file://$PROJECT_DIR$/lib/baozhao_gem/version.rb">
42
+ <provider selected="true" editor-type-id="text-editor">
43
+ <state line="1" column="18" selection-start="36" selection-end="36" vertical-scroll-proportion="0.021324355">
44
+ <folding />
45
+ </state>
46
+ </provider>
47
+ </entry>
48
+ </file>
49
+ </leaf>
50
+ </component>
51
+ <component name="FindManager">
52
+ <FindUsagesManager>
53
+ <setting name="OPEN_NEW_TAB" value="false" />
54
+ </FindUsagesManager>
55
+ </component>
56
+ <component name="IdeDocumentHistory">
57
+ <option name="changedFiles">
58
+ <list>
59
+ <option value="$PROJECT_DIR$/lib/baozhao_gem.rb" />
60
+ <option value="$PROJECT_DIR$/lib/baozhao_gem/version.rb" />
61
+ </list>
62
+ </option>
63
+ </component>
64
+ <component name="ProjectFrameBounds">
65
+ <option name="x" value="-8" />
66
+ <option name="y" value="-8" />
67
+ <option name="width" value="1936" />
68
+ <option name="height" value="1056" />
69
+ </component>
70
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
71
+ <OptionsSetting value="true" id="Add" />
72
+ <OptionsSetting value="true" id="Remove" />
73
+ <OptionsSetting value="true" id="Checkout" />
74
+ <OptionsSetting value="true" id="Update" />
75
+ <OptionsSetting value="true" id="Status" />
76
+ <OptionsSetting value="true" id="Edit" />
77
+ <ConfirmationsSetting value="0" id="Add" />
78
+ <ConfirmationsSetting value="0" id="Remove" />
79
+ </component>
80
+ <component name="ProjectReloadState">
81
+ <option name="STATE" value="0" />
82
+ </component>
83
+ <component name="ProjectView">
84
+ <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
85
+ <flattenPackages />
86
+ <showMembers />
87
+ <showModules />
88
+ <showLibraryContents />
89
+ <hideEmptyPackages />
90
+ <abbreviatePackageNames />
91
+ <autoscrollToSource />
92
+ <autoscrollFromSource />
93
+ <sortByType />
94
+ </navigator>
95
+ <panes>
96
+ <pane id="ProjectPane">
97
+ <subPane>
98
+ <PATH>
99
+ <PATH_ELEMENT>
100
+ <option name="myItemId" value="baozhao_gem" />
101
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
102
+ </PATH_ELEMENT>
103
+ </PATH>
104
+ <PATH>
105
+ <PATH_ELEMENT>
106
+ <option name="myItemId" value="baozhao_gem" />
107
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
108
+ </PATH_ELEMENT>
109
+ <PATH_ELEMENT>
110
+ <option name="myItemId" value="baozhao_gem" />
111
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
112
+ </PATH_ELEMENT>
113
+ </PATH>
114
+ <PATH>
115
+ <PATH_ELEMENT>
116
+ <option name="myItemId" value="baozhao_gem" />
117
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
118
+ </PATH_ELEMENT>
119
+ <PATH_ELEMENT>
120
+ <option name="myItemId" value="baozhao_gem" />
121
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
122
+ </PATH_ELEMENT>
123
+ <PATH_ELEMENT>
124
+ <option name="myItemId" value="lib" />
125
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
126
+ </PATH_ELEMENT>
127
+ </PATH>
128
+ <PATH>
129
+ <PATH_ELEMENT>
130
+ <option name="myItemId" value="baozhao_gem" />
131
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
132
+ </PATH_ELEMENT>
133
+ <PATH_ELEMENT>
134
+ <option name="myItemId" value="baozhao_gem" />
135
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
136
+ </PATH_ELEMENT>
137
+ <PATH_ELEMENT>
138
+ <option name="myItemId" value="lib" />
139
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
140
+ </PATH_ELEMENT>
141
+ <PATH_ELEMENT>
142
+ <option name="myItemId" value="baozhao_gem" />
143
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
144
+ </PATH_ELEMENT>
145
+ </PATH>
146
+ </subPane>
147
+ </pane>
148
+ <pane id="Scope" />
149
+ </panes>
150
+ </component>
151
+ <component name="PropertiesComponent">
152
+ <property name="WebServerToolWindowFactoryState" value="false" />
153
+ </component>
154
+ <component name="RunManager">
155
+ <list size="0" />
156
+ </component>
157
+ <component name="ShelveChangesManager" show_recycled="false" />
158
+ <component name="TaskManager">
159
+ <task active="true" id="Default" summary="Default task">
160
+ <changelist id="883c23cf-983d-4ecc-bd5f-1e6b6be0c2d6" name="Default" comment="" />
161
+ <created>1370662694759</created>
162
+ <updated>1370662694759</updated>
163
+ </task>
164
+ <servers />
165
+ </component>
166
+ <component name="ToolWindowManager">
167
+ <frame x="-8" y="-8" width="1936" height="1056" extended-state="0" />
168
+ <editor active="true" />
169
+ <layout>
170
+ <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="-1" side_tool="false" content_ui="tabs" />
171
+ <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" />
172
+ <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="-1" side_tool="false" content_ui="tabs" />
173
+ <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" />
174
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2497332" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
175
+ <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" />
176
+ <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="-1" side_tool="true" content_ui="tabs" />
177
+ <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="-1" side_tool="true" content_ui="tabs" />
178
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
179
+ <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="-1" side_tool="false" content_ui="tabs" />
180
+ <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" />
181
+ <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" />
182
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
183
+ <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" />
184
+ <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" />
185
+ <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" />
186
+ <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" />
187
+ </layout>
188
+ </component>
189
+ <component name="VcsContentAnnotationSettings">
190
+ <option name="myLimit" value="2678400000" />
191
+ </component>
192
+ <component name="VcsManagerConfiguration">
193
+ <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
194
+ <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
195
+ <option name="CHECK_NEW_TODO" value="true" />
196
+ <option name="myTodoPanelSettings">
197
+ <value>
198
+ <are-packages-shown value="false" />
199
+ <are-modules-shown value="false" />
200
+ <flatten-packages value="false" />
201
+ <is-autoscroll-to-source value="false" />
202
+ </value>
203
+ </option>
204
+ <option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
205
+ <option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
206
+ <option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
207
+ <option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
208
+ <option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
209
+ <option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
210
+ <option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
211
+ <option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
212
+ <option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
213
+ <option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
214
+ <option name="DEFAULT_PATCH_EXTENSION" value="patch" />
215
+ <option name="SHORT_DIFF_HORIZONTALLY" value="true" />
216
+ <option name="SHORT_DIFF_EXTRA_LINES" value="2" />
217
+ <option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
218
+ <option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
219
+ <option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
220
+ <option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
221
+ <option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
222
+ <option name="SHOW_DIRTY_RECURSIVELY" value="false" />
223
+ <option name="LIMIT_HISTORY" value="true" />
224
+ <option name="MAXIMUM_HISTORY_ROWS" value="1000" />
225
+ <option name="UPDATE_FILTER_SCOPE_NAME" />
226
+ <option name="USE_COMMIT_MESSAGE_MARGIN" value="false" />
227
+ <option name="COMMIT_MESSAGE_MARGIN_SIZE" value="72" />
228
+ <option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />
229
+ <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
230
+ <option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
231
+ <option name="LAST_COMMIT_MESSAGE" />
232
+ <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
233
+ <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
234
+ <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
235
+ <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
236
+ <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
237
+ <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
238
+ <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
239
+ <option name="ACTIVE_VCS_NAME" />
240
+ <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
241
+ <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
242
+ <option name="UPDATE_FILTER_BY_SCOPE" value="false" />
243
+ <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
244
+ <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
245
+ </component>
246
+ <component name="XDebuggerManager">
247
+ <breakpoint-manager />
248
+ </component>
249
+ <component name="editorHistoryManager">
250
+ <entry file="file://$PROJECT_DIR$/lib/baozhao_gem.rb">
251
+ <provider selected="true" editor-type-id="text-editor">
252
+ <state line="19" column="44" selection-start="337" selection-end="337" vertical-scroll-proportion="0.0">
253
+ <folding />
254
+ </state>
255
+ </provider>
256
+ </entry>
257
+ <entry file="file://$PROJECT_DIR$/lib/baozhao_gem/version.rb">
258
+ <provider selected="true" editor-type-id="text-editor">
259
+ <state line="1" column="18" selection-start="36" selection-end="36" vertical-scroll-proportion="0.021324355">
260
+ <folding />
261
+ </state>
262
+ </provider>
263
+ </entry>
264
+ </component>
265
+ </project>
266
+
@@ -1,3 +1,3 @@
1
1
  module BaozhaoGem
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/baozhao_gem.rb CHANGED
@@ -17,3 +17,4 @@ module BaozhaoGem
17
17
  end
18
18
  end
19
19
  end
20
+ ActiveRecord::Base.send(:include, BaozhaoGem)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baozhao_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -51,6 +51,15 @@ extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
53
  - .gitignore
54
+ - .idea/.name
55
+ - .idea/.rakeTasks
56
+ - .idea/baozhao_gem.iml
57
+ - .idea/encodings.xml
58
+ - .idea/misc.xml
59
+ - .idea/modules.xml
60
+ - .idea/scopes/scope_settings.xml
61
+ - .idea/vcs.xml
62
+ - .idea/workspace.xml
54
63
  - Gemfile
55
64
  - LICENSE.txt
56
65
  - README.md