pading 0.1.1 → 0.1.2
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 +4 -4
- data/.idea/.rakeTasks +1 -1
- data/.idea/workspace.xml +323 -108
- data/app/views/pading/_first_page.html.erb +11 -0
- data/app/views/pading/_gap.html.erb +8 -0
- data/app/views/pading/_last_page.html.erb +11 -0
- data/app/views/pading/_next_page.html.erb +11 -0
- data/app/views/pading/_page.html.erb +12 -0
- data/app/views/pading/_paginator.html.erb +19 -0
- data/app/views/pading/_prev_page.html.erb +11 -0
- data/lib/generators/pading/views_generator.rb +35 -0
- data/lib/pading/actionview.rb +3 -0
- data/lib/pading/actionview/helper_menthods.rb +19 -0
- data/lib/pading/actionview/paginator.rb +84 -0
- data/lib/pading/actionview/tags.rb +94 -0
- data/lib/pading/activerecord.rb +1 -0
- data/lib/pading/activerecord/active_record_model_extension.rb +9 -1
- data/lib/pading/activerecord/page_scope_menthods.rb +44 -4
- data/lib/pading/config.rb +1 -0
- data/lib/pading/version.rb +1 -1
- data/pading-0.1.1.gem +0 -0
- metadata +14 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 931182b600baa4340478b7606c6ff840647be877fbffdc285fe2a7a81faf60ee
|
|
4
|
+
data.tar.gz: 15d930a08a1fa3d577c88e90f2dbc2fc620a4f0568bd58567af468c1a113c028
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb921a803126011bf7936b654f8c5a9fafca4c8b5ca581f7e95c66ed90570858940692e52f9b5dc3b2c03f68605e0809f1f2a31bd131faa68d844da7fd4bd1ea
|
|
7
|
+
data.tar.gz: 17332f8e5e141f26cb81f422dc6bdba0e069a087aecdc2c8f2b7e9a5f42f1574e400a4d327c8b7274f1bc898d3169f2f695c0360b9cd44ee45b869d854e6f907
|
data/.idea/.rakeTasks
CHANGED
|
@@ -4,4 +4,4 @@ You are allowed to:
|
|
|
4
4
|
1. Remove rake task
|
|
5
5
|
2. Add existing rake tasks
|
|
6
6
|
To add existing rake tasks automatically delete this file and reload the project.
|
|
7
|
-
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build pading-0.1.
|
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build pading-0.1.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install pading-0.1.1.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install pading-0.1.1.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.1 and build and push pading-0.1.1.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|
data/.idea/workspace.xml
CHANGED
|
@@ -2,8 +2,16 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
4
|
<list default="true" id="fb0f6f3c-7fa5-4dbf-94f4-a2e16c806fef" name="Default" comment="">
|
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/generators/pading/views_generator.rb" />
|
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/.rakeTasks" afterPath="$PROJECT_DIR$/.idea/.rakeTasks" />
|
|
5
7
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
6
8
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/pading.rb" afterPath="$PROJECT_DIR$/lib/pading.rb" />
|
|
9
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/pading/actionview.rb" afterPath="$PROJECT_DIR$/lib/pading/actionview.rb" />
|
|
10
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/pading/activerecord.rb" afterPath="$PROJECT_DIR$/lib/pading/activerecord.rb" />
|
|
11
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/pading/activerecord/active_record_model_extension.rb" afterPath="$PROJECT_DIR$/lib/pading/activerecord/active_record_model_extension.rb" />
|
|
12
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/pading/activerecord/page_scope_menthods.rb" afterPath="$PROJECT_DIR$/lib/pading/activerecord/page_scope_menthods.rb" />
|
|
13
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/pading/config.rb" afterPath="$PROJECT_DIR$/lib/pading/config.rb" />
|
|
14
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/pading/version.rb" afterPath="$PROJECT_DIR$/lib/pading/version.rb" />
|
|
7
15
|
</list>
|
|
8
16
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
|
9
17
|
<option name="TRACKING_ENABLED" value="true" />
|
|
@@ -13,12 +21,12 @@
|
|
|
13
21
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
14
22
|
</component>
|
|
15
23
|
<component name="FileEditorManager">
|
|
16
|
-
<leaf>
|
|
17
|
-
<file leaf-file-name="
|
|
18
|
-
<entry file="file://$PROJECT_DIR$/lib/pading/
|
|
24
|
+
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
|
25
|
+
<file leaf-file-name="tags.rb" pinned="false" current-in-tab="false">
|
|
26
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/actionview/tags.rb">
|
|
19
27
|
<provider selected="true" editor-type-id="text-editor">
|
|
20
|
-
<state relative-caret-position="
|
|
21
|
-
<caret line="
|
|
28
|
+
<state relative-caret-position="345">
|
|
29
|
+
<caret line="66" column="20" lean-forward="false" selection-start-line="66" selection-start-column="20" selection-end-line="66" selection-end-column="20" />
|
|
22
30
|
<folding />
|
|
23
31
|
</state>
|
|
24
32
|
</provider>
|
|
@@ -28,17 +36,7 @@
|
|
|
28
36
|
<entry file="file://$PROJECT_DIR$/lib/pading/version.rb">
|
|
29
37
|
<provider selected="true" editor-type-id="text-editor">
|
|
30
38
|
<state relative-caret-position="69">
|
|
31
|
-
<caret line="3" column="0" lean-forward="
|
|
32
|
-
<folding />
|
|
33
|
-
</state>
|
|
34
|
-
</provider>
|
|
35
|
-
</entry>
|
|
36
|
-
</file>
|
|
37
|
-
<file leaf-file-name="pading.gemspec" pinned="false" current-in-tab="false">
|
|
38
|
-
<entry file="file://$PROJECT_DIR$/pading.gemspec">
|
|
39
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
40
|
-
<state relative-caret-position="132">
|
|
41
|
-
<caret line="10" column="44" lean-forward="false" selection-start-line="10" selection-start-column="44" selection-end-line="10" selection-end-column="44" />
|
|
39
|
+
<caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
|
|
42
40
|
<folding />
|
|
43
41
|
</state>
|
|
44
42
|
</provider>
|
|
@@ -47,28 +45,8 @@
|
|
|
47
45
|
<file leaf-file-name="pading.rb" pinned="false" current-in-tab="true">
|
|
48
46
|
<entry file="file://$PROJECT_DIR$/lib/pading.rb">
|
|
49
47
|
<provider selected="true" editor-type-id="text-editor">
|
|
50
|
-
<state relative-caret-position="
|
|
51
|
-
<caret line="
|
|
52
|
-
<folding />
|
|
53
|
-
</state>
|
|
54
|
-
</provider>
|
|
55
|
-
</entry>
|
|
56
|
-
</file>
|
|
57
|
-
<file leaf-file-name="actionview.rb" pinned="false" current-in-tab="false">
|
|
58
|
-
<entry file="file://$PROJECT_DIR$/lib/pading/actionview.rb">
|
|
59
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
60
|
-
<state relative-caret-position="69">
|
|
61
|
-
<caret line="3" column="7" lean-forward="false" selection-start-line="3" selection-start-column="7" selection-end-line="3" selection-end-column="7" />
|
|
62
|
-
<folding />
|
|
63
|
-
</state>
|
|
64
|
-
</provider>
|
|
65
|
-
</entry>
|
|
66
|
-
</file>
|
|
67
|
-
<file leaf-file-name="activerecord.rb" pinned="false" current-in-tab="false">
|
|
68
|
-
<entry file="file://$PROJECT_DIR$/lib/pading/activerecord.rb">
|
|
69
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
70
|
-
<state relative-caret-position="184">
|
|
71
|
-
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
|
|
48
|
+
<state relative-caret-position="207">
|
|
49
|
+
<caret line="9" column="16" lean-forward="true" selection-start-line="9" selection-start-column="16" selection-end-line="9" selection-end-column="16" />
|
|
72
50
|
<folding />
|
|
73
51
|
</state>
|
|
74
52
|
</provider>
|
|
@@ -85,19 +63,39 @@
|
|
|
85
63
|
</component>
|
|
86
64
|
<component name="FindInProjectRecents">
|
|
87
65
|
<findStrings>
|
|
88
|
-
<find>TODO</find>
|
|
89
|
-
<find>confiure</find>
|
|
90
|
-
<find>:page</find>
|
|
91
|
-
<find>activerecord/active_record_model_extension</find>
|
|
92
|
-
<find>activerecord/active_record_extension</find>
|
|
93
66
|
<find>active_record_model_extension</find>
|
|
94
67
|
<find>ctiveSupport</find>
|
|
95
68
|
<find>kami</find>
|
|
96
69
|
<find>Pading::ActiveRecordExtension</find>
|
|
97
70
|
<find>Delete this and the text above, and describe your gem</find>
|
|
98
71
|
<find>authors</find>
|
|
72
|
+
<find>test_page</find>
|
|
73
|
+
<find>PageScopeMethods</find>
|
|
74
|
+
<find>ActiveRecord</find>
|
|
75
|
+
<find>ActiveRecordModelExtension</find>
|
|
76
|
+
<find>Pading::Actionview</find>
|
|
77
|
+
<find>Helpers</find>
|
|
78
|
+
<find>Pading::Tag</find>
|
|
79
|
+
<find>Pading::Actionview::Tag</find>
|
|
80
|
+
<find>merge</find>
|
|
81
|
+
<find>locals</find>
|
|
82
|
+
<find>param_name</find>
|
|
83
|
+
<find>PageProxy</find>
|
|
84
|
+
<find>relevant_pages</find>
|
|
85
|
+
<find>first_page</find>
|
|
86
|
+
<find>def render</find>
|
|
87
|
+
<find>FirstPage</find>
|
|
88
|
+
<find>paginator</find>
|
|
89
|
+
<find>eval</find>
|
|
90
|
+
<find>-</find>
|
|
91
|
+
<find>current</find>
|
|
92
|
+
<find>relevant</find>
|
|
93
|
+
<find>@windo</find>
|
|
94
|
+
<find>display_tag</find>
|
|
95
|
+
<find>partial_path</find>
|
|
99
96
|
</findStrings>
|
|
100
97
|
<dirStrings>
|
|
98
|
+
<dir>E:\lym_project\gem\pading\lib\pading\actionview</dir>
|
|
101
99
|
<dir>E:\lym_project\gem\pading</dir>
|
|
102
100
|
</dirStrings>
|
|
103
101
|
</component>
|
|
@@ -113,15 +111,27 @@
|
|
|
113
111
|
<option value="$PROJECT_DIR$/lib/pading/activerecord/config.rb" />
|
|
114
112
|
<option value="$PROJECT_DIR$/lib/generators/pading/templates/pading_config.rb" />
|
|
115
113
|
<option value="$PROJECT_DIR$/lib/generators/pading/config_generator.rb" />
|
|
116
|
-
<option value="$PROJECT_DIR$/lib/pading/config.rb" />
|
|
117
114
|
<option value="$PROJECT_DIR$/lib/pading/activerecord/active_record_extension.rb" />
|
|
118
|
-
<option value="$PROJECT_DIR$/
|
|
115
|
+
<option value="$PROJECT_DIR$/pading.gemspec" />
|
|
116
|
+
<option value="$PROJECT_DIR$/lib/pading.rb" />
|
|
117
|
+
<option value="$PROJECT_DIR$/lib/generators/pading/view_generator.rb" />
|
|
118
|
+
<option value="$PROJECT_DIR$/app/views/pading/_first_page.html.erb" />
|
|
119
|
+
<option value="$PROJECT_DIR$/app/views/pading/_last_page.html.erb" />
|
|
120
|
+
<option value="$PROJECT_DIR$/app/views/pading/_next_page.html.erb" />
|
|
121
|
+
<option value="$PROJECT_DIR$/app/views/pading/_prev_page.html.erb" />
|
|
122
|
+
<option value="$PROJECT_DIR$/app/views/pading/_gap.html.erb" />
|
|
123
|
+
<option value="$PROJECT_DIR$/lib/generators/pading/views_generator.rb" />
|
|
119
124
|
<option value="$PROJECT_DIR$/lib/pading/activerecord/active_record_model_extension.rb" />
|
|
125
|
+
<option value="$PROJECT_DIR$/lib/pading/activerecord.rb" />
|
|
120
126
|
<option value="$PROJECT_DIR$/lib/pading/activerecord/page_scope_menthods.rb" />
|
|
127
|
+
<option value="$PROJECT_DIR$/lib/pading/helpers/paginator.rb" />
|
|
121
128
|
<option value="$PROJECT_DIR$/lib/pading/actionview.rb" />
|
|
122
|
-
<option value="$PROJECT_DIR$/pading.
|
|
129
|
+
<option value="$PROJECT_DIR$/lib/pading/config.rb" />
|
|
130
|
+
<option value="$PROJECT_DIR$/lib/pading/actionview/paginator.rb" />
|
|
131
|
+
<option value="$PROJECT_DIR$/lib/pading/actionview/tags.rb" />
|
|
132
|
+
<option value="$PROJECT_DIR$/lib/pading/actionview/helper_menthods.rb" />
|
|
133
|
+
<option value="$PROJECT_DIR$/app/views/pading/_paginator.html.erb" />
|
|
123
134
|
<option value="$PROJECT_DIR$/lib/pading/version.rb" />
|
|
124
|
-
<option value="$PROJECT_DIR$/lib/pading.rb" />
|
|
125
135
|
</list>
|
|
126
136
|
</option>
|
|
127
137
|
</component>
|
|
@@ -161,6 +171,24 @@
|
|
|
161
171
|
<item name="pading" type="b2602c69:ProjectViewProjectNode" />
|
|
162
172
|
<item name="pading" type="462c0819:PsiDirectoryNode" />
|
|
163
173
|
</path>
|
|
174
|
+
<path>
|
|
175
|
+
<item name="pading" type="b2602c69:ProjectViewProjectNode" />
|
|
176
|
+
<item name="pading" type="462c0819:PsiDirectoryNode" />
|
|
177
|
+
<item name="app" type="462c0819:PsiDirectoryNode" />
|
|
178
|
+
</path>
|
|
179
|
+
<path>
|
|
180
|
+
<item name="pading" type="b2602c69:ProjectViewProjectNode" />
|
|
181
|
+
<item name="pading" type="462c0819:PsiDirectoryNode" />
|
|
182
|
+
<item name="app" type="462c0819:PsiDirectoryNode" />
|
|
183
|
+
<item name="views" type="462c0819:PsiDirectoryNode" />
|
|
184
|
+
</path>
|
|
185
|
+
<path>
|
|
186
|
+
<item name="pading" type="b2602c69:ProjectViewProjectNode" />
|
|
187
|
+
<item name="pading" type="462c0819:PsiDirectoryNode" />
|
|
188
|
+
<item name="app" type="462c0819:PsiDirectoryNode" />
|
|
189
|
+
<item name="views" type="462c0819:PsiDirectoryNode" />
|
|
190
|
+
<item name="pading" type="462c0819:PsiDirectoryNode" />
|
|
191
|
+
</path>
|
|
164
192
|
<path>
|
|
165
193
|
<item name="pading" type="b2602c69:ProjectViewProjectNode" />
|
|
166
194
|
<item name="pading" type="462c0819:PsiDirectoryNode" />
|
|
@@ -172,6 +200,13 @@
|
|
|
172
200
|
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
|
173
201
|
<item name="pading" type="462c0819:PsiDirectoryNode" />
|
|
174
202
|
</path>
|
|
203
|
+
<path>
|
|
204
|
+
<item name="pading" type="b2602c69:ProjectViewProjectNode" />
|
|
205
|
+
<item name="pading" type="462c0819:PsiDirectoryNode" />
|
|
206
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
|
207
|
+
<item name="pading" type="462c0819:PsiDirectoryNode" />
|
|
208
|
+
<item name="actionview" type="462c0819:PsiDirectoryNode" />
|
|
209
|
+
</path>
|
|
175
210
|
</expand>
|
|
176
211
|
<select />
|
|
177
212
|
</subPane>
|
|
@@ -181,19 +216,20 @@
|
|
|
181
216
|
<component name="PropertiesComponent">
|
|
182
217
|
<property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
|
|
183
218
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
184
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR
|
|
219
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$/../../k" />
|
|
185
220
|
</component>
|
|
186
221
|
<component name="RecentsManager">
|
|
187
|
-
<key name="CopyFile.RECENT_KEYS">
|
|
188
|
-
<recent name="E:\lym_project\gem\pading\lib\pading" />
|
|
189
|
-
<recent name="E:\lym_project\gem\pading\lib\pading\activerecord" />
|
|
190
|
-
<recent name="E:\lym_project\gem\pading\lib\generators\pading\templates" />
|
|
191
|
-
<recent name="E:\lym_project\gem\pading\lib" />
|
|
192
|
-
</key>
|
|
193
222
|
<key name="MoveFile.RECENT_KEYS">
|
|
194
223
|
<recent name="E:\lym_project\gem\pading\lib\pading\activerecord" />
|
|
195
224
|
<recent name="E:\lym_project\gem\pading\lib\pading" />
|
|
196
225
|
</key>
|
|
226
|
+
<key name="CopyFile.RECENT_KEYS">
|
|
227
|
+
<recent name="E:\lym_project\gem\pading\lib\pading\helpers" />
|
|
228
|
+
<recent name="E:\lym_project\gem\pading\app\views\pading" />
|
|
229
|
+
<recent name="E:\lym_project\gem\pading\app\views" />
|
|
230
|
+
<recent name="E:\lym_project\gem\pading\lib\generators\pading" />
|
|
231
|
+
<recent name="E:\lym_project\gem\pading\lib\pading" />
|
|
232
|
+
</key>
|
|
197
233
|
</component>
|
|
198
234
|
<component name="RunDashboard">
|
|
199
235
|
<option name="ruleStates">
|
|
@@ -218,32 +254,34 @@
|
|
|
218
254
|
<option name="number" value="Default" />
|
|
219
255
|
<option name="presentableId" value="Default" />
|
|
220
256
|
<updated>1599697704909</updated>
|
|
221
|
-
<workItem from="1599697706302" duration="
|
|
257
|
+
<workItem from="1599697706302" duration="24349000" />
|
|
258
|
+
<workItem from="1599782125726" duration="21959000" />
|
|
222
259
|
</task>
|
|
223
260
|
<servers />
|
|
224
261
|
</component>
|
|
225
262
|
<component name="TimeTrackingManager">
|
|
226
|
-
<option name="totallyTimeSpent" value="
|
|
263
|
+
<option name="totallyTimeSpent" value="46308000" />
|
|
227
264
|
</component>
|
|
228
265
|
<component name="ToolWindowManager">
|
|
229
266
|
<frame x="1912" y="-8" width="1936" height="1056" extended-state="6" />
|
|
267
|
+
<editor active="true" />
|
|
230
268
|
<layout>
|
|
231
|
-
<window_info id="Project" active="
|
|
269
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25266525" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
|
232
270
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
233
|
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="
|
|
234
|
-
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="
|
|
271
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
|
272
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
235
273
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
274
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
236
275
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
237
|
-
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
|
238
276
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
239
|
-
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
|
277
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3297062" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
278
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
|
240
279
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
241
|
-
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
|
242
280
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
243
|
-
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
|
244
281
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
245
282
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
246
283
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
284
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
|
247
285
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
248
286
|
</layout>
|
|
249
287
|
</component>
|
|
@@ -260,23 +298,79 @@
|
|
|
260
298
|
<watches-manager />
|
|
261
299
|
</component>
|
|
262
300
|
<component name="editorHistoryManager">
|
|
263
|
-
<entry file="file://$PROJECT_DIR$/
|
|
301
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/config.rb">
|
|
264
302
|
<provider selected="true" editor-type-id="text-editor">
|
|
265
|
-
<state relative-caret-position="
|
|
266
|
-
<caret line="
|
|
303
|
+
<state relative-caret-position="230">
|
|
304
|
+
<caret line="10" column="7" lean-forward="false" selection-start-line="10" selection-start-column="7" selection-end-line="10" selection-end-column="7" />
|
|
267
305
|
<folding />
|
|
268
306
|
</state>
|
|
269
307
|
</provider>
|
|
270
308
|
</entry>
|
|
271
|
-
<entry file="file://$PROJECT_DIR$/
|
|
309
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/version.rb">
|
|
272
310
|
<provider selected="true" editor-type-id="text-editor">
|
|
273
|
-
<state relative-caret-position="
|
|
274
|
-
<caret line="
|
|
311
|
+
<state relative-caret-position="69">
|
|
312
|
+
<caret line="3" column="0" lean-forward="false" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
|
|
275
313
|
<folding />
|
|
276
314
|
</state>
|
|
277
315
|
</provider>
|
|
278
316
|
</entry>
|
|
279
|
-
<entry file="file://$PROJECT_DIR$/
|
|
317
|
+
<entry file="file://$PROJECT_DIR$/pading.gemspec">
|
|
318
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
319
|
+
<state relative-caret-position="230">
|
|
320
|
+
<caret line="10" column="44" lean-forward="false" selection-start-line="10" selection-start-column="44" selection-end-line="10" selection-end-column="44" />
|
|
321
|
+
<folding />
|
|
322
|
+
</state>
|
|
323
|
+
</provider>
|
|
324
|
+
</entry>
|
|
325
|
+
<entry file="file://$PROJECT_DIR$/lib/pading.rb">
|
|
326
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
327
|
+
<state relative-caret-position="276">
|
|
328
|
+
<caret line="12" column="27" lean-forward="false" selection-start-line="12" selection-start-column="27" selection-end-line="12" selection-end-column="27" />
|
|
329
|
+
<folding />
|
|
330
|
+
</state>
|
|
331
|
+
</provider>
|
|
332
|
+
</entry>
|
|
333
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/activerecord.rb">
|
|
334
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
335
|
+
<state relative-caret-position="184">
|
|
336
|
+
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
|
|
337
|
+
<folding />
|
|
338
|
+
</state>
|
|
339
|
+
</provider>
|
|
340
|
+
</entry>
|
|
341
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/activerecord/active_record_model_extension.rb">
|
|
342
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
343
|
+
<state relative-caret-position="414">
|
|
344
|
+
<caret line="18" column="14" lean-forward="false" selection-start-line="18" selection-start-column="14" selection-end-line="18" selection-end-column="14" />
|
|
345
|
+
<folding />
|
|
346
|
+
</state>
|
|
347
|
+
</provider>
|
|
348
|
+
</entry>
|
|
349
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/activerecord/active_record_extension.rb">
|
|
350
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
351
|
+
<state relative-caret-position="483">
|
|
352
|
+
<caret line="21" column="7" lean-forward="false" selection-start-line="21" selection-start-column="7" selection-end-line="21" selection-end-column="7" />
|
|
353
|
+
<folding />
|
|
354
|
+
</state>
|
|
355
|
+
</provider>
|
|
356
|
+
</entry>
|
|
357
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/activerecord/page_scope_menthods.rb">
|
|
358
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
359
|
+
<state relative-caret-position="345">
|
|
360
|
+
<caret line="15" column="5" lean-forward="false" selection-start-line="15" selection-start-column="5" selection-end-line="15" selection-end-column="5" />
|
|
361
|
+
<folding />
|
|
362
|
+
</state>
|
|
363
|
+
</provider>
|
|
364
|
+
</entry>
|
|
365
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/actionview.rb">
|
|
366
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
367
|
+
<state relative-caret-position="115">
|
|
368
|
+
<caret line="5" column="0" lean-forward="false" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
|
|
369
|
+
<folding />
|
|
370
|
+
</state>
|
|
371
|
+
</provider>
|
|
372
|
+
</entry>
|
|
373
|
+
<entry file="file://$PROJECT_DIR$/LICENSE.txt">
|
|
280
374
|
<provider selected="true" editor-type-id="text-editor">
|
|
281
375
|
<state relative-caret-position="0">
|
|
282
376
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
@@ -284,15 +378,15 @@
|
|
|
284
378
|
</state>
|
|
285
379
|
</provider>
|
|
286
380
|
</entry>
|
|
287
|
-
<entry file="file://$PROJECT_DIR$/
|
|
381
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
|
288
382
|
<provider selected="true" editor-type-id="text-editor">
|
|
289
383
|
<state relative-caret-position="0">
|
|
290
|
-
<caret line="0" column="
|
|
384
|
+
<caret line="0" column="19" lean-forward="false" selection-start-line="0" selection-start-column="19" selection-end-line="0" selection-end-column="19" />
|
|
291
385
|
<folding />
|
|
292
386
|
</state>
|
|
293
387
|
</provider>
|
|
294
388
|
</entry>
|
|
295
|
-
<entry file="file://$PROJECT_DIR$/
|
|
389
|
+
<entry file="file://$PROJECT_DIR$/bin/console">
|
|
296
390
|
<provider selected="true" editor-type-id="text-editor">
|
|
297
391
|
<state relative-caret-position="0">
|
|
298
392
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
@@ -300,19 +394,20 @@
|
|
|
300
394
|
</state>
|
|
301
395
|
</provider>
|
|
302
396
|
</entry>
|
|
303
|
-
<entry file="file://$PROJECT_DIR$/
|
|
397
|
+
<entry file="file://$PROJECT_DIR$/bin/setup">
|
|
304
398
|
<provider selected="true" editor-type-id="text-editor">
|
|
305
|
-
<state relative-caret-position="
|
|
306
|
-
<caret line="
|
|
399
|
+
<state relative-caret-position="0">
|
|
400
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
307
401
|
<folding />
|
|
308
402
|
</state>
|
|
309
403
|
</provider>
|
|
310
404
|
</entry>
|
|
405
|
+
<entry file="file://$PROJECT_DIR$/lib/generators/pading/USAGE" />
|
|
406
|
+
<entry file="file://$PROJECT_DIR$/lib/generators/pading/pading_generator.rb" />
|
|
311
407
|
<entry file="file://D:/utils/ruby/ruby/Ruby23-x64/lib/ruby/site_ruby/2.3.0/bundler.rb">
|
|
312
408
|
<provider selected="true" editor-type-id="text-editor">
|
|
313
409
|
<state relative-caret-position="196">
|
|
314
410
|
<caret line="79" column="8" lean-forward="false" selection-start-line="79" selection-start-column="8" selection-end-line="79" selection-end-column="8" />
|
|
315
|
-
<folding />
|
|
316
411
|
</state>
|
|
317
412
|
</provider>
|
|
318
413
|
</entry>
|
|
@@ -320,7 +415,6 @@
|
|
|
320
415
|
<provider selected="true" editor-type-id="text-editor">
|
|
321
416
|
<state relative-caret-position="196">
|
|
322
417
|
<caret line="79" column="8" lean-forward="false" selection-start-line="79" selection-start-column="8" selection-end-line="79" selection-end-column="8" />
|
|
323
|
-
<folding />
|
|
324
418
|
</state>
|
|
325
419
|
</provider>
|
|
326
420
|
</entry>
|
|
@@ -332,98 +426,219 @@
|
|
|
332
426
|
</state>
|
|
333
427
|
</provider>
|
|
334
428
|
</entry>
|
|
429
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/drawing.rb" />
|
|
430
|
+
<entry file="file://$PROJECT_DIR$/pading-0.1.0.gem">
|
|
431
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
432
|
+
<state relative-caret-position="253">
|
|
433
|
+
<caret line="5" column="126" lean-forward="true" selection-start-line="5" selection-start-column="126" selection-end-line="5" selection-end-column="126" />
|
|
434
|
+
<folding />
|
|
435
|
+
</state>
|
|
436
|
+
</provider>
|
|
437
|
+
</entry>
|
|
438
|
+
<entry file="file://$PROJECT_DIR$/pading.gemspec">
|
|
439
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
440
|
+
<state relative-caret-position="230">
|
|
441
|
+
<caret line="10" column="44" lean-forward="false" selection-start-line="10" selection-start-column="44" selection-end-line="10" selection-end-column="44" />
|
|
442
|
+
<folding />
|
|
443
|
+
</state>
|
|
444
|
+
</provider>
|
|
445
|
+
</entry>
|
|
446
|
+
<entry file="file://$PROJECT_DIR$/lib/generators/pading/view_generator.rb">
|
|
447
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
448
|
+
<state relative-caret-position="115">
|
|
449
|
+
<caret line="5" column="13" lean-forward="false" selection-start-line="5" selection-start-column="13" selection-end-line="5" selection-end-column="13" />
|
|
450
|
+
<folding />
|
|
451
|
+
</state>
|
|
452
|
+
</provider>
|
|
453
|
+
</entry>
|
|
454
|
+
<entry file="file://$PROJECT_DIR$/app/views/pading/_first_page.html.erb">
|
|
455
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
456
|
+
<state relative-caret-position="46">
|
|
457
|
+
<caret line="9" column="45" lean-forward="false" selection-start-line="9" selection-start-column="45" selection-end-line="9" selection-end-column="45" />
|
|
458
|
+
<folding />
|
|
459
|
+
</state>
|
|
460
|
+
</provider>
|
|
461
|
+
</entry>
|
|
462
|
+
<entry file="file://$PROJECT_DIR$/app/views/pading/_last_page.html.erb">
|
|
463
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
464
|
+
<state relative-caret-position="46">
|
|
465
|
+
<caret line="9" column="44" lean-forward="false" selection-start-line="9" selection-start-column="44" selection-end-line="9" selection-end-column="44" />
|
|
466
|
+
<folding />
|
|
467
|
+
</state>
|
|
468
|
+
</provider>
|
|
469
|
+
</entry>
|
|
470
|
+
<entry file="file://$PROJECT_DIR$/app/views/pading/_next_page.html.erb">
|
|
471
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
472
|
+
<state relative-caret-position="46">
|
|
473
|
+
<caret line="9" column="45" lean-forward="false" selection-start-line="9" selection-start-column="45" selection-end-line="9" selection-end-column="45" />
|
|
474
|
+
<folding />
|
|
475
|
+
</state>
|
|
476
|
+
</provider>
|
|
477
|
+
</entry>
|
|
478
|
+
<entry file="file://$PROJECT_DIR$/app/views/pading/_prev_page.html.erb">
|
|
479
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
480
|
+
<state relative-caret-position="46">
|
|
481
|
+
<caret line="9" column="46" lean-forward="false" selection-start-line="9" selection-start-column="46" selection-end-line="9" selection-end-column="46" />
|
|
482
|
+
<folding />
|
|
483
|
+
</state>
|
|
484
|
+
</provider>
|
|
485
|
+
</entry>
|
|
486
|
+
<entry file="file://D:/utils/ruby/ruby/Ruby23-x64/lib/ruby/site_ruby/2.3.0/bundler/vendor/thor/lib/thor/actions.rb">
|
|
487
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
488
|
+
<state relative-caret-position="196">
|
|
489
|
+
<caret line="26" column="10" lean-forward="false" selection-start-line="26" selection-start-column="10" selection-end-line="26" selection-end-column="10" />
|
|
490
|
+
<folding />
|
|
491
|
+
</state>
|
|
492
|
+
</provider>
|
|
493
|
+
</entry>
|
|
335
494
|
<entry file="file://$PROJECT_DIR$/lib/generators/pading/config_generator.rb">
|
|
495
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
496
|
+
<state relative-caret-position="69">
|
|
497
|
+
<caret line="3" column="19" lean-forward="true" selection-start-line="3" selection-start-column="19" selection-end-line="3" selection-end-column="19" />
|
|
498
|
+
<folding />
|
|
499
|
+
</state>
|
|
500
|
+
</provider>
|
|
501
|
+
</entry>
|
|
502
|
+
<entry file="file://$PROJECT_DIR$/lib/generators/pading/views_generator.rb">
|
|
503
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
504
|
+
<state relative-caret-position="437">
|
|
505
|
+
<caret line="19" column="11" lean-forward="true" selection-start-line="19" selection-start-column="11" selection-end-line="19" selection-end-column="11" />
|
|
506
|
+
<folding />
|
|
507
|
+
</state>
|
|
508
|
+
</provider>
|
|
509
|
+
</entry>
|
|
510
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/activerecord/page_scope_menthods.rb">
|
|
511
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
512
|
+
<state relative-caret-position="414">
|
|
513
|
+
<caret line="18" column="7" lean-forward="true" selection-start-line="18" selection-start-column="7" selection-end-line="18" selection-end-column="7" />
|
|
514
|
+
<folding />
|
|
515
|
+
</state>
|
|
516
|
+
</provider>
|
|
517
|
+
</entry>
|
|
518
|
+
<entry file="file://D:/utils/ruby/ruby/Ruby23-x64/lib/ruby/site_ruby/2.3.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb">
|
|
336
519
|
<provider selected="true" editor-type-id="text-editor">
|
|
337
520
|
<state relative-caret-position="161">
|
|
338
|
-
<caret line="7" column="
|
|
521
|
+
<caret line="7" column="10" lean-forward="false" selection-start-line="7" selection-start-column="10" selection-end-line="7" selection-end-column="10" />
|
|
339
522
|
<folding />
|
|
340
523
|
</state>
|
|
341
524
|
</provider>
|
|
342
525
|
</entry>
|
|
343
|
-
<entry file="file://$PROJECT_DIR$/lib/pading/
|
|
526
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/helpers/paginator.rb">
|
|
344
527
|
<provider selected="true" editor-type-id="text-editor">
|
|
345
|
-
<state relative-caret-position="
|
|
346
|
-
<caret line="
|
|
528
|
+
<state relative-caret-position="23">
|
|
529
|
+
<caret line="1" column="0" lean-forward="true" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
|
|
347
530
|
<folding />
|
|
348
531
|
</state>
|
|
349
532
|
</provider>
|
|
350
533
|
</entry>
|
|
351
|
-
<entry file="file://$
|
|
534
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs23/object.rb">
|
|
535
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
536
|
+
<state relative-caret-position="297">
|
|
537
|
+
<caret line="526" column="8" lean-forward="false" selection-start-line="526" selection-start-column="8" selection-end-line="526" selection-end-column="8" />
|
|
538
|
+
<folding />
|
|
539
|
+
</state>
|
|
540
|
+
</provider>
|
|
541
|
+
</entry>
|
|
542
|
+
<entry file="file://$PROJECT_DIR$/app/views/pading/_gap.html.erb">
|
|
543
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
544
|
+
<state relative-caret-position="46">
|
|
545
|
+
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
|
|
546
|
+
<folding />
|
|
547
|
+
</state>
|
|
548
|
+
</provider>
|
|
549
|
+
</entry>
|
|
550
|
+
<entry file="file://$PROJECT_DIR$/app/views/pading/_page.html.erb">
|
|
352
551
|
<provider selected="true" editor-type-id="text-editor">
|
|
353
552
|
<state relative-caret-position="92">
|
|
354
|
-
<caret line="
|
|
553
|
+
<caret line="12" column="0" lean-forward="false" selection-start-line="12" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
|
|
355
554
|
<folding />
|
|
356
555
|
</state>
|
|
357
556
|
</provider>
|
|
358
557
|
</entry>
|
|
359
|
-
<entry file="file://$PROJECT_DIR$/lib/pading/activerecord/
|
|
558
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/activerecord/active_record_extension.rb">
|
|
360
559
|
<provider selected="true" editor-type-id="text-editor">
|
|
361
|
-
<state relative-caret-position="
|
|
362
|
-
<caret line="
|
|
560
|
+
<state relative-caret-position="23">
|
|
561
|
+
<caret line="1" column="39" lean-forward="true" selection-start-line="1" selection-start-column="39" selection-end-line="1" selection-end-column="39" />
|
|
363
562
|
<folding />
|
|
364
563
|
</state>
|
|
365
564
|
</provider>
|
|
366
565
|
</entry>
|
|
367
|
-
<entry file="file://$PROJECT_DIR$/lib/pading/activerecord/
|
|
566
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/activerecord/active_record_model_extension.rb">
|
|
368
567
|
<provider selected="true" editor-type-id="text-editor">
|
|
369
|
-
<state relative-caret-position="
|
|
370
|
-
<caret line="
|
|
568
|
+
<state relative-caret-position="161">
|
|
569
|
+
<caret line="7" column="30" lean-forward="true" selection-start-line="7" selection-start-column="30" selection-end-line="7" selection-end-column="30" />
|
|
371
570
|
<folding />
|
|
372
571
|
</state>
|
|
373
572
|
</provider>
|
|
374
573
|
</entry>
|
|
375
|
-
<entry file="file://$PROJECT_DIR$/lib/pading/
|
|
574
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/activerecord.rb">
|
|
376
575
|
<provider selected="true" editor-type-id="text-editor">
|
|
377
576
|
<state relative-caret-position="69">
|
|
378
|
-
<caret line="3" column="
|
|
577
|
+
<caret line="3" column="44" lean-forward="false" selection-start-line="3" selection-start-column="44" selection-end-line="3" selection-end-column="44" />
|
|
379
578
|
<folding />
|
|
380
579
|
</state>
|
|
381
580
|
</provider>
|
|
382
581
|
</entry>
|
|
383
|
-
<entry file="file://$PROJECT_DIR$/lib/pading/
|
|
582
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/actionview.rb">
|
|
384
583
|
<provider selected="true" editor-type-id="text-editor">
|
|
385
|
-
<state relative-caret-position="
|
|
386
|
-
<caret line="
|
|
584
|
+
<state relative-caret-position="92">
|
|
585
|
+
<caret line="4" column="37" lean-forward="false" selection-start-line="4" selection-start-column="37" selection-end-line="4" selection-end-column="37" />
|
|
387
586
|
<folding />
|
|
388
587
|
</state>
|
|
389
588
|
</provider>
|
|
390
589
|
</entry>
|
|
391
590
|
<entry file="file://$PROJECT_DIR$/lib/pading/config.rb">
|
|
392
591
|
<provider selected="true" editor-type-id="text-editor">
|
|
393
|
-
<state relative-caret-position="
|
|
394
|
-
<caret line="
|
|
592
|
+
<state relative-caret-position="501">
|
|
593
|
+
<caret line="22" column="30" lean-forward="false" selection-start-line="22" selection-start-column="20" selection-end-line="22" selection-end-column="30" />
|
|
395
594
|
<folding />
|
|
396
595
|
</state>
|
|
397
596
|
</provider>
|
|
398
597
|
</entry>
|
|
399
|
-
<entry file="file://$PROJECT_DIR$/pading
|
|
598
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/actionview/helper_menthods.rb">
|
|
400
599
|
<provider selected="true" editor-type-id="text-editor">
|
|
401
|
-
<state relative-caret-position="
|
|
402
|
-
<caret line="
|
|
600
|
+
<state relative-caret-position="69">
|
|
601
|
+
<caret line="3" column="22" lean-forward="false" selection-start-line="3" selection-start-column="22" selection-end-line="3" selection-end-column="22" />
|
|
403
602
|
<folding />
|
|
404
603
|
</state>
|
|
405
604
|
</provider>
|
|
406
605
|
</entry>
|
|
407
|
-
<entry file="file://$PROJECT_DIR$/lib/pading/
|
|
606
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/actionview/paginator.rb">
|
|
408
607
|
<provider selected="true" editor-type-id="text-editor">
|
|
409
|
-
<state relative-caret-position="
|
|
410
|
-
<caret line="
|
|
608
|
+
<state relative-caret-position="-795">
|
|
609
|
+
<caret line="19" column="7" lean-forward="false" selection-start-line="19" selection-start-column="7" selection-end-line="19" selection-end-column="7" />
|
|
411
610
|
<folding />
|
|
412
611
|
</state>
|
|
413
612
|
</provider>
|
|
414
613
|
</entry>
|
|
415
|
-
<entry file="file://$PROJECT_DIR$/pading.
|
|
614
|
+
<entry file="file://$PROJECT_DIR$/app/views/pading/_paginator.html.erb">
|
|
416
615
|
<provider selected="true" editor-type-id="text-editor">
|
|
417
|
-
<state relative-caret-position="
|
|
418
|
-
<caret line="
|
|
616
|
+
<state relative-caret-position="161">
|
|
617
|
+
<caret line="14" column="4" lean-forward="false" selection-start-line="14" selection-start-column="4" selection-end-line="14" selection-end-column="4" />
|
|
618
|
+
<folding />
|
|
619
|
+
</state>
|
|
620
|
+
</provider>
|
|
621
|
+
</entry>
|
|
622
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/actionview/tags.rb">
|
|
623
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
624
|
+
<state relative-caret-position="345">
|
|
625
|
+
<caret line="66" column="20" lean-forward="false" selection-start-line="66" selection-start-column="20" selection-end-line="66" selection-end-column="20" />
|
|
626
|
+
<folding />
|
|
627
|
+
</state>
|
|
628
|
+
</provider>
|
|
629
|
+
</entry>
|
|
630
|
+
<entry file="file://$PROJECT_DIR$/lib/pading/version.rb">
|
|
631
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
632
|
+
<state relative-caret-position="69">
|
|
633
|
+
<caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
|
|
419
634
|
<folding />
|
|
420
635
|
</state>
|
|
421
636
|
</provider>
|
|
422
637
|
</entry>
|
|
423
638
|
<entry file="file://$PROJECT_DIR$/lib/pading.rb">
|
|
424
639
|
<provider selected="true" editor-type-id="text-editor">
|
|
425
|
-
<state relative-caret-position="
|
|
426
|
-
<caret line="
|
|
640
|
+
<state relative-caret-position="207">
|
|
641
|
+
<caret line="9" column="16" lean-forward="true" selection-start-line="9" selection-start-column="16" selection-end-line="9" selection-end-column="16" />
|
|
427
642
|
<folding />
|
|
428
643
|
</state>
|
|
429
644
|
</provider>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<%# Link to the "First" page
|
|
2
|
+
- available local variables
|
|
3
|
+
url: url to the first page
|
|
4
|
+
current_page: a page object for the currently displayed page
|
|
5
|
+
total_pages: total number of pages
|
|
6
|
+
per_page: number of items to fetch per page
|
|
7
|
+
remote: data-remote
|
|
8
|
+
-%>
|
|
9
|
+
<span class="first">
|
|
10
|
+
<%= link_to_unless current_page.first?, "首页", url, remote: remote %>
|
|
11
|
+
</span>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<%# Non-link tag that stands for skipped pages...
|
|
2
|
+
- available local variables
|
|
3
|
+
current_page: a page object for the currently displayed page
|
|
4
|
+
total_pages: total number of pages
|
|
5
|
+
per_page: number of items to fetch per page
|
|
6
|
+
remote: data-remote
|
|
7
|
+
-%>
|
|
8
|
+
<span class="page gap">...</span>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<%# Link to the "Last" page
|
|
2
|
+
- available local variables
|
|
3
|
+
url: url to the last page
|
|
4
|
+
current_page: a page object for the currently displayed page
|
|
5
|
+
total_pages: total number of pages
|
|
6
|
+
per_page: number of items to fetch per page
|
|
7
|
+
remote: data-remote
|
|
8
|
+
-%>
|
|
9
|
+
<span class="last">
|
|
10
|
+
<%= link_to_unless current_page.last?, "尾页", url, remote: remote %>
|
|
11
|
+
</span>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<%# Link to the "Next" page
|
|
2
|
+
- available local variables
|
|
3
|
+
url: url to the next page
|
|
4
|
+
current_page: a page object for the currently displayed page
|
|
5
|
+
total_pages: total number of pages
|
|
6
|
+
per_page: number of items to fetch per page
|
|
7
|
+
remote: data-remote
|
|
8
|
+
-%>
|
|
9
|
+
<span class="next">
|
|
10
|
+
<%= link_to_unless current_page.last?, "下一页", url, rel: 'next', remote: remote %>
|
|
11
|
+
</span>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<%# Link showing page number
|
|
2
|
+
- available local variables
|
|
3
|
+
page: a page object for "this" page
|
|
4
|
+
url: url to this page
|
|
5
|
+
current_page: a page object for the currently displayed page
|
|
6
|
+
total_pages: total number of pages
|
|
7
|
+
per_page: number of items to fetch per page
|
|
8
|
+
remote: data-remote
|
|
9
|
+
-%>
|
|
10
|
+
<span class="page<%= ' current' if page.current? %>">
|
|
11
|
+
<%= link_to_unless page.current?, page, url, {remote: remote, rel: page.rel} %>
|
|
12
|
+
</span>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<%# The container tag
|
|
2
|
+
- available local variables
|
|
3
|
+
current_page: a page object for the currently displayed page
|
|
4
|
+
total_pages: total number of pages
|
|
5
|
+
per_page: number of items to fetch per page
|
|
6
|
+
remote: data-remote
|
|
7
|
+
paginator: the paginator that renders the pagination tags inside
|
|
8
|
+
-%>
|
|
9
|
+
<% pp paginator %>
|
|
10
|
+
<%= paginator.render do -%>
|
|
11
|
+
<nav class="pagination" role="navigation" aria-label="pager">
|
|
12
|
+
<%= first_page_tag unless current_page.first? %>
|
|
13
|
+
<%= prev_page_tag unless current_page.first? %>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<%= next_page_tag unless current_page.last? %>
|
|
17
|
+
<%= last_page_tag unless current_page.last? %>
|
|
18
|
+
</nav>
|
|
19
|
+
<% end -%>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<%# Link to the "Previous" page
|
|
2
|
+
- available local variables
|
|
3
|
+
url: url to the previous page
|
|
4
|
+
current_page: a page object for the currently displayed page
|
|
5
|
+
total_pages: total number of pages
|
|
6
|
+
per_page: number of items to fetch per page
|
|
7
|
+
remote: data-remote
|
|
8
|
+
-%>
|
|
9
|
+
<span class="prev">
|
|
10
|
+
<%= link_to_unless current_page.first?, "上一页", url, rel: 'prev', remote: remote %>
|
|
11
|
+
</span>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
require 'pp'
|
|
3
|
+
module Pading
|
|
4
|
+
module Generators
|
|
5
|
+
class ViewsGenerator < Rails::Generators::NamedBase
|
|
6
|
+
source_root File.expand_path('../../../../app/views/pading', __FILE__)
|
|
7
|
+
|
|
8
|
+
def copy_or_fetch
|
|
9
|
+
return copy_default_views if file_name == 'default'
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
private
|
|
13
|
+
def copy_default_views
|
|
14
|
+
# self.class.source_root 它将返回其路径名 -> E:/lym_project/gem/pading/app/views/pading/*.html.erb"
|
|
15
|
+
file = File.join self.class.source_root, "*.html.erb"
|
|
16
|
+
|
|
17
|
+
# 遍历目录下的全部文件 取出name. 拷贝
|
|
18
|
+
Dir.glob(file).map{|f| File.basename f}.each do |f|
|
|
19
|
+
copy_file f, view_path_for(f)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# 拷贝到的文件路径
|
|
25
|
+
def view_path_for file
|
|
26
|
+
['app','views',views_prefix,'pading', File.basename(file)].compact.join("/")
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def views_prefix
|
|
30
|
+
options[:views_prefix].try(:to_s)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
data/lib/pading/actionview.rb
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
require 'active_support/inflector'
|
|
2
|
+
require 'pading/actionview/paginator'
|
|
3
|
+
module Pading
|
|
4
|
+
module HelperMethods
|
|
5
|
+
|
|
6
|
+
def test_paginate(scope, paginator_class: Pading::Actionview::Paginator, template: nil, **options)
|
|
7
|
+
# scope.class -> User::ActiveRecord_Relation
|
|
8
|
+
# 所以能调用 PageScopeMenthods 下面的方法
|
|
9
|
+
|
|
10
|
+
options[:total_pages] ||= scope.total_pages
|
|
11
|
+
options.reverse_merge! current_page: scope.current_page, per_page: scope.limit_value, remote: false
|
|
12
|
+
|
|
13
|
+
# 最后返回的 其实是一个渲染好的模板。
|
|
14
|
+
paginator = paginator_class.new (template || self), options
|
|
15
|
+
paginator.to_s
|
|
16
|
+
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
require 'active_support/inflector'
|
|
2
|
+
require 'pading/actionview/tags'
|
|
3
|
+
|
|
4
|
+
module Pading
|
|
5
|
+
module Actionview
|
|
6
|
+
class Paginator < Tag
|
|
7
|
+
|
|
8
|
+
def initialize(template, **options)
|
|
9
|
+
@template = template
|
|
10
|
+
@options = options
|
|
11
|
+
@options[:current_page] = PageProxy.new(@options, options[:current_page_num])
|
|
12
|
+
|
|
13
|
+
@output_buffer = if defined?(::ActionView::OutputBuffer)
|
|
14
|
+
::ActionView::OutputBuffer.new
|
|
15
|
+
elsif template.instance_variable_get(:@output_buffer)
|
|
16
|
+
template.instance_variable_get(:@output_buffer).class.new
|
|
17
|
+
else
|
|
18
|
+
ActiveSupport::SafeBuffer.new
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def to_s(locals = {})
|
|
24
|
+
super @options.merge paginator: self
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def render(&block)
|
|
29
|
+
# total_pages 总页数 大于 1 就渲染从出来
|
|
30
|
+
# instance_eval 将您的块作为一个块传递给instance_eval
|
|
31
|
+
instance_eval(&block) if @options[:total_pages] > 1
|
|
32
|
+
@output_buffer
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
%w[first_page prev_page next_page last_page gap].each do |tag|
|
|
37
|
+
eval <<-RUBY, nil, __FILE__, __LINE__ + 1
|
|
38
|
+
def #{tag}_tag
|
|
39
|
+
pp "#{tag.classify}"
|
|
40
|
+
@last = #{tag.classify}.new @template, @options
|
|
41
|
+
end
|
|
42
|
+
RUBY
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def each_page
|
|
47
|
+
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def page_tag(page)
|
|
52
|
+
@last = Page.new @template, @options.merge(page: page)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class PageProxy
|
|
56
|
+
include Comparable
|
|
57
|
+
|
|
58
|
+
def initialize(options, page)
|
|
59
|
+
@options, @page = options, page
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def first?
|
|
63
|
+
@page == 1
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def last?
|
|
67
|
+
@page == @options[:total_pages]
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def prev?
|
|
71
|
+
@page == @options[:current_page] - 1
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def next?
|
|
75
|
+
@page == @options[:current_page] + 1
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
module Pading
|
|
2
|
+
module Actionview
|
|
3
|
+
PARAM_KEY_BLACKLIST = [:authenticity_token, :commit, :utf8, :_method, :script_name].freeze
|
|
4
|
+
class Tag
|
|
5
|
+
|
|
6
|
+
def initialize(template, params: {}, theme: nil, views_prefix: nil, **options)
|
|
7
|
+
@template, @theme, @views_prefix, @options = template, theme, views_prefix, options
|
|
8
|
+
@params = template.params
|
|
9
|
+
# @params in Rails 5 no longer inherits from Hash
|
|
10
|
+
@params = @params.to_unsafe_h if @params.respond_to?(:to_unsafe_h)
|
|
11
|
+
@params = @params.with_indifferent_access
|
|
12
|
+
@params.except!(*PARAM_KEY_BLACKLIST)
|
|
13
|
+
@params.merge! params
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def page_url_for(page)
|
|
18
|
+
@template.url_for @params.update(:test_page => page)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def to_s(locals = {})
|
|
22
|
+
@template.render partial: partial_path, locals: @options.merge(locals), formats: [:html]
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def partial_path
|
|
26
|
+
[
|
|
27
|
+
@views_prefix,
|
|
28
|
+
"pading",
|
|
29
|
+
@theme,
|
|
30
|
+
self.class.name.demodulize.underscore
|
|
31
|
+
].compact.join("/")
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
module Link
|
|
35
|
+
def page
|
|
36
|
+
raise '用实际页面值覆盖页面以将其替换为页面。'
|
|
37
|
+
end
|
|
38
|
+
def url
|
|
39
|
+
page_url_for page
|
|
40
|
+
end
|
|
41
|
+
def to_s(locals = {}) #:nodoc:
|
|
42
|
+
locals[:url] = url
|
|
43
|
+
super locals
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
class Page < Tag
|
|
48
|
+
include Link
|
|
49
|
+
def page
|
|
50
|
+
@options[:page]
|
|
51
|
+
end
|
|
52
|
+
def to_s(locals = {}) #:nodoc:
|
|
53
|
+
locals[:page] = page
|
|
54
|
+
super locals
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
class FirstPage < Tag
|
|
58
|
+
include Link
|
|
59
|
+
def page
|
|
60
|
+
1
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
class LastPage < Tag
|
|
65
|
+
include Link
|
|
66
|
+
def page
|
|
67
|
+
1
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
class PrevPage < Tag
|
|
72
|
+
include Link
|
|
73
|
+
def page
|
|
74
|
+
1
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
class NextPage < Tag
|
|
79
|
+
include Link
|
|
80
|
+
def page
|
|
81
|
+
1
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class Gap < Tag
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
|
data/lib/pading/activerecord.rb
CHANGED
|
@@ -4,13 +4,21 @@ module Pading
|
|
|
4
4
|
module ActiveRecordModelExtension
|
|
5
5
|
extend ActiveSupport::Concern
|
|
6
6
|
|
|
7
|
+
# 解释器使用目标类或模块作为参数调用此方法
|
|
8
|
+
# include Foo -> 执行 do 里面的
|
|
7
9
|
included do
|
|
8
10
|
|
|
11
|
+
# eval -> 来为类生成实例方法 可以传把一段 Ruby 代码写在一个字符串中传过去
|
|
12
|
+
# __FILE__, __LINE__ 为了更好的debug, 能看到方法在那里定义的
|
|
9
13
|
eval <<-RUBY, nil, __FILE__, __LINE__ + 1
|
|
10
14
|
def self.#{Pading.config.page_method_name}(num=nil)
|
|
11
15
|
per_page = Pading.config.default_per_page
|
|
12
16
|
num = (num.to_i - 1) < 0 ? 0 : num - 1
|
|
13
|
-
|
|
17
|
+
# extending 给一个 scope 增加方法,返回的仍然是 scope.
|
|
18
|
+
# 如果传递的是 block, 则可以直接调用 block 里面的方法, 如
|
|
19
|
+
# 果传递的是 module, 则可以调用 module 里面的方法。
|
|
20
|
+
# 不推荐直接使用,这会大大提高复杂度,但扩展时可以使
|
|
21
|
+
# 用。
|
|
14
22
|
limit(per_page).offset(per_page * num).extending do
|
|
15
23
|
include Pading::PageScopeMethods
|
|
16
24
|
end
|
|
@@ -2,17 +2,57 @@ module Pading
|
|
|
2
2
|
module PageScopeMethods
|
|
3
3
|
|
|
4
4
|
def per(num, max_per_page: nil)
|
|
5
|
-
|
|
5
|
+
# offset_value limit_value 元编程自动生成的查询
|
|
6
6
|
if (n = num.to_i ) < 0 || !(/^\d/ =~ num.to_s)
|
|
7
7
|
self
|
|
8
8
|
elsif n.zero? # zero 是否为0
|
|
9
9
|
limit(n)
|
|
10
10
|
else
|
|
11
|
-
|
|
12
|
-
limit(n).offset(per_page * (n - 1))
|
|
11
|
+
limit(n).offset(offset_value / limit_value * n)
|
|
13
12
|
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# 获取当前page
|
|
17
|
+
def current_page
|
|
18
|
+
(offset_value / limit_value) + 1
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def total_count(column_name = :all, _options = nil)
|
|
23
|
+
return @total_count if defined?(@total_count) && @total_count
|
|
24
|
+
c = except(:offset, :limit, :order)
|
|
25
|
+
c = c.except(:includes) unless references_eager_loaded_tables?
|
|
26
|
+
c = c.count(column_name)
|
|
27
|
+
@total_count = if c.is_a?(Hash) || c.is_a?(ActiveSupport::OrderedHash)
|
|
28
|
+
c.count
|
|
29
|
+
elsif c.respond_to? :count
|
|
30
|
+
c.count(column_name)
|
|
31
|
+
else
|
|
32
|
+
c
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def total_pages
|
|
38
|
+
(total_count.to_f / limit_value).ceil
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def next_page
|
|
43
|
+
current_page + 1 unless last_page?
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def prev_page
|
|
47
|
+
current_page - 1 unless first_page?
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def first_page?
|
|
51
|
+
current_page == 1
|
|
52
|
+
end
|
|
14
53
|
|
|
15
|
-
|
|
54
|
+
def last_page?
|
|
55
|
+
current_page == total_pages
|
|
16
56
|
end
|
|
17
57
|
|
|
18
58
|
end
|
data/lib/pading/config.rb
CHANGED
data/lib/pading/version.rb
CHANGED
data/pading-0.1.1.gem
ADDED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pading
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- liym0723
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-09-
|
|
11
|
+
date: 2020-09-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: 参照 kaminari 所写的分页
|
|
14
14
|
email: 15079447645@163.com
|
|
@@ -31,12 +31,23 @@ files:
|
|
|
31
31
|
- LICENSE.txt
|
|
32
32
|
- README.md
|
|
33
33
|
- Rakefile
|
|
34
|
+
- app/views/pading/_first_page.html.erb
|
|
35
|
+
- app/views/pading/_gap.html.erb
|
|
36
|
+
- app/views/pading/_last_page.html.erb
|
|
37
|
+
- app/views/pading/_next_page.html.erb
|
|
38
|
+
- app/views/pading/_page.html.erb
|
|
39
|
+
- app/views/pading/_paginator.html.erb
|
|
40
|
+
- app/views/pading/_prev_page.html.erb
|
|
34
41
|
- bin/console
|
|
35
42
|
- bin/setup
|
|
36
43
|
- lib/generators/pading/config_generator.rb
|
|
37
44
|
- lib/generators/pading/templates/pading_config.rb
|
|
45
|
+
- lib/generators/pading/views_generator.rb
|
|
38
46
|
- lib/pading.rb
|
|
39
47
|
- lib/pading/actionview.rb
|
|
48
|
+
- lib/pading/actionview/helper_menthods.rb
|
|
49
|
+
- lib/pading/actionview/paginator.rb
|
|
50
|
+
- lib/pading/actionview/tags.rb
|
|
40
51
|
- lib/pading/activerecord.rb
|
|
41
52
|
- lib/pading/activerecord/active_record_extension.rb
|
|
42
53
|
- lib/pading/activerecord/active_record_model_extension.rb
|
|
@@ -44,6 +55,7 @@ files:
|
|
|
44
55
|
- lib/pading/config.rb
|
|
45
56
|
- lib/pading/version.rb
|
|
46
57
|
- pading-0.1.0.gem
|
|
58
|
+
- pading-0.1.1.gem
|
|
47
59
|
- pading.gemspec
|
|
48
60
|
homepage: https://github.com/liym0723/pading
|
|
49
61
|
licenses:
|