classic_acts_as_list 0.5.1 → 0.5.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f585ec30d81349756d8f2f86ec479c048e4cf763027baa741c7641a19e69958e
4
- data.tar.gz: 2ebeb550817bc9f21d65beeb4e368c99c83b1ae3dcac32abaa04649bed2e7f59
3
+ metadata.gz: d31ee69d66cb8eb03c136763a078ede5e12ba3c34a67c1fb27934213f8595eb1
4
+ data.tar.gz: a39b6878c415b3fafda4ba076cda38c9e5fecb7bf15cfbbc026d135ca21fa2c5
5
5
  SHA512:
6
- metadata.gz: 3ea9951fdccee29d1dba5b5609b5f378b8542620c28fbaa72169daeae6e0c3b8016ac051d07637a4a07a871048c6664713581d9ae28769d4719a1621ea17cc86
7
- data.tar.gz: 88845e2241815e4d13183a7259b0a952cab36a245f686822ea3f00ec6b7cd6265cf2120f22314ff2696efa9c4e4ba421c6d1f16aeb7f85a5e4db109ce5483b28
6
+ metadata.gz: 57f3c8555788be3f29c69199cd46ca7eea7d753768be68adef949870d241dc14c64317ceac2189778c2b91ba8c155dce9632f16b356a36f668a5e7d29e963211
7
+ data.tar.gz: 50c695cfd35cdb89f40e68d7fff657ecaf47cc6f97d16aaf90de81039fdabe39df4f5f6968695233f7559c0767f6ec9627297b5eea79700a2b6064da61f2d286
File without changes
@@ -0,0 +1,7 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
5
+ .rvmrc
6
+ *.tmproj
7
+ .rbenv-version
@@ -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 classic_acts_as_list-0.5.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove RDoc HTML files" fullCmd="clobber_rdoc" taksId="clobber_rdoc" /><RakeTask description="Default: run acts_as_list unit tests" fullCmd="default" taksId="default" /><RakeTask description="Build and install classic_acts_as_list-0.5.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install classic_acts_as_list-0.5.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Build RDoc HTML files" fullCmd="rdoc" taksId="rdoc" /><RakeTask description="Create tag v0.5.0 and build and push classic_acts_as_list-0.5.0.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Rebuild RDoc HTML files" fullCmd="rerdoc" taksId="rerdoc" /><RakeTask description="Run tests" fullCmd="test" taksId="test" /><RakeTask description="" fullCmd="clobber" taksId="clobber" /><RakeTask description="" fullCmd="rdoc/created.rid" taksId="rdoc/created.rid" /><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>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$" />
8
+ <orderEntry type="inheritedJdk" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="activemodel (v6.0.3.2, ruby-2.6.3-p62) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="activerecord (v6.0.3.2, ruby-2.6.3-p62) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v6.0.3.2, ruby-2.6.3-p62) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, ruby-2.6.3-p62) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.1.6, ruby-2.6.3-p62) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v1.8.3, ruby-2.6.3-p62) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.14.1, ruby-2.6.3-p62) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.1, ruby-2.6.3-p62) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="sqlite3 (v1.4.2, ruby-2.6.3-p62) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.6, ruby-2.6.3-p62) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.7, ruby-2.6.3-p62) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.3.0, ruby-2.6.3-p62) [gem]" level="application" />
22
+ </component>
23
+ </module>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" addBOMForNewFiles="with NO BOM" />
4
+ </project>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="ES6" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="ruby-2.6.3-p62" project-jdk-type="RUBY_SDK" />
7
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/classic_acts_as_list.iml" filepath="$PROJECT_DIR$/.idea/classic_acts_as_list.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,309 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="bfeab213-f823-4ce6-87e6-bfcaaf760cdd" name="Default Changelist" comment="">
5
+ <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+ <change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
7
+ <change beforePath="$PROJECT_DIR$/classic_acts_as_list.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/classic_acts_as_list.gemspec" afterDir="false" />
8
+ <change beforePath="$PROJECT_DIR$/init.rb" beforeDir="false" afterPath="$PROJECT_DIR$/init.rb" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/lib/acts_as_list.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/classic_acts_as_list.rb" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/lib/acts_as_list/active_record/acts/list.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/classic_acts_as_list/active_record/acts/list.rb" afterDir="false" />
11
+ <change beforePath="$PROJECT_DIR$/lib/acts_as_list/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/classic_acts_as_list/version.rb" afterDir="false" />
12
+ </list>
13
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
14
+ <option name="SHOW_DIALOG" value="false" />
15
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
16
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
17
+ <option name="LAST_RESOLUTION" value="IGNORE" />
18
+ </component>
19
+ <component name="FileEditorManager">
20
+ <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
21
+ <file pinned="false" current-in-tab="false">
22
+ <entry file="file://$PROJECT_DIR$/classic_acts_as_list.gemspec">
23
+ <provider selected="true" editor-type-id="text-editor">
24
+ <state relative-caret-position="15">
25
+ <caret line="2" column="17" selection-start-line="2" selection-start-column="17" selection-end-line="2" selection-end-column="17" />
26
+ </state>
27
+ </provider>
28
+ </entry>
29
+ </file>
30
+ <file pinned="false" current-in-tab="true">
31
+ <entry file="file://$PROJECT_DIR$/README.md">
32
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
33
+ <state split_layout="SPLIT">
34
+ <first_editor relative-caret-position="636">
35
+ <caret line="93" column="17" selection-start-line="93" selection-start-column="17" selection-end-line="93" selection-end-column="17" />
36
+ </first_editor>
37
+ <second_editor />
38
+ </state>
39
+ </provider>
40
+ </entry>
41
+ </file>
42
+ <file pinned="false" current-in-tab="false">
43
+ <entry file="file://$PROJECT_DIR$/lib/classic_acts_as_list/version.rb">
44
+ <provider selected="true" editor-type-id="text-editor">
45
+ <state relative-caret-position="45">
46
+ <caret line="3" column="21" selection-start-line="3" selection-start-column="21" selection-end-line="3" selection-end-column="21" />
47
+ </state>
48
+ </provider>
49
+ </entry>
50
+ </file>
51
+ <file pinned="false" current-in-tab="false">
52
+ <entry file="file://$PROJECT_DIR$/classic_acts_as_list-0.5.3.gem">
53
+ <provider selected="true" editor-type-id="text-editor" />
54
+ </entry>
55
+ </file>
56
+ <file pinned="false" current-in-tab="false">
57
+ <entry file="file://$PROJECT_DIR$/Gemfile.lock">
58
+ <provider selected="true" editor-type-id="text-editor" />
59
+ </entry>
60
+ </file>
61
+ <file pinned="false" current-in-tab="false">
62
+ <entry file="file://$PROJECT_DIR$/.travis.yml">
63
+ <provider selected="true" editor-type-id="text-editor" />
64
+ </entry>
65
+ </file>
66
+ <file pinned="false" current-in-tab="false">
67
+ <entry file="file://$PROJECT_DIR$/init.rb">
68
+ <provider selected="true" editor-type-id="text-editor">
69
+ <state relative-caret-position="15">
70
+ <caret line="1" column="17" selection-start-line="1" selection-start-column="17" selection-end-line="1" selection-end-column="17" />
71
+ </state>
72
+ </provider>
73
+ </entry>
74
+ </file>
75
+ <file pinned="false" current-in-tab="false">
76
+ <entry file="file://$PROJECT_DIR$/lib/classic_acts_as_list.rb">
77
+ <provider selected="true" editor-type-id="text-editor">
78
+ <state relative-caret-position="105">
79
+ <caret line="7" column="27" selection-start-line="7" selection-start-column="27" selection-end-line="7" selection-end-column="27" />
80
+ </state>
81
+ </provider>
82
+ </entry>
83
+ </file>
84
+ <file pinned="false" current-in-tab="false">
85
+ <entry file="file://$PROJECT_DIR$/gemfiles/rails5/Gemfile">
86
+ <provider selected="true" editor-type-id="text-editor" />
87
+ </entry>
88
+ </file>
89
+ <file pinned="false" current-in-tab="false">
90
+ <entry file="file://$PROJECT_DIR$/Gemfile">
91
+ <provider selected="true" editor-type-id="text-editor" />
92
+ </entry>
93
+ </file>
94
+ </leaf>
95
+ </component>
96
+ <component name="Git.Settings">
97
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
98
+ </component>
99
+ <component name="IdeDocumentHistory">
100
+ <option name="CHANGED_PATHS">
101
+ <list>
102
+ <option value="$PROJECT_DIR$/lib/acts_as_list/active_record/acts/list.rb" />
103
+ <option value="$PROJECT_DIR$/lib/acts_as_list/version.rb" />
104
+ <option value="$PROJECT_DIR$/init.rb" />
105
+ <option value="$PROJECT_DIR$/lib/classic_acts_as_list.rb" />
106
+ <option value="$PROJECT_DIR$/classic_acts_as_list.gemspec" />
107
+ <option value="$PROJECT_DIR$/lib/classic_acts_as_list/version.rb" />
108
+ <option value="$PROJECT_DIR$/README.md" />
109
+ </list>
110
+ </option>
111
+ </component>
112
+ <component name="ProjectFrameBounds" fullScreen="true">
113
+ <option name="width" value="2048" />
114
+ <option name="height" value="1280" />
115
+ </component>
116
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
117
+ <component name="ProjectView">
118
+ <navigator proportions="" version="1">
119
+ <foldersAlwaysOnTop value="true" />
120
+ </navigator>
121
+ <panes>
122
+ <pane id="ProjectPane">
123
+ <subPane>
124
+ <expand>
125
+ <path>
126
+ <item name="classic_acts_as_list" type="b2602c69:ProjectViewProjectNode" />
127
+ <item name="classic_acts_as_list" type="462c0819:PsiDirectoryNode" />
128
+ </path>
129
+ <path>
130
+ <item name="classic_acts_as_list" type="b2602c69:ProjectViewProjectNode" />
131
+ <item name="classic_acts_as_list" type="462c0819:PsiDirectoryNode" />
132
+ <item name="gemfiles" type="462c0819:PsiDirectoryNode" />
133
+ </path>
134
+ <path>
135
+ <item name="classic_acts_as_list" type="b2602c69:ProjectViewProjectNode" />
136
+ <item name="classic_acts_as_list" type="462c0819:PsiDirectoryNode" />
137
+ <item name="gemfiles" type="462c0819:PsiDirectoryNode" />
138
+ <item name="rails5" type="462c0819:PsiDirectoryNode" />
139
+ </path>
140
+ <path>
141
+ <item name="classic_acts_as_list" type="b2602c69:ProjectViewProjectNode" />
142
+ <item name="classic_acts_as_list" type="462c0819:PsiDirectoryNode" />
143
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
144
+ </path>
145
+ <path>
146
+ <item name="classic_acts_as_list" type="b2602c69:ProjectViewProjectNode" />
147
+ <item name="classic_acts_as_list" type="462c0819:PsiDirectoryNode" />
148
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
149
+ <item name="classic_acts_as_list" type="462c0819:PsiDirectoryNode" />
150
+ </path>
151
+ <path>
152
+ <item name="classic_acts_as_list" type="b2602c69:ProjectViewProjectNode" />
153
+ <item name="classic_acts_as_list" type="462c0819:PsiDirectoryNode" />
154
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
155
+ <item name="classic_acts_as_list" type="462c0819:PsiDirectoryNode" />
156
+ <item name="active_record" type="462c0819:PsiDirectoryNode" />
157
+ </path>
158
+ <path>
159
+ <item name="classic_acts_as_list" type="b2602c69:ProjectViewProjectNode" />
160
+ <item name="classic_acts_as_list" type="462c0819:PsiDirectoryNode" />
161
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
162
+ <item name="classic_acts_as_list" type="462c0819:PsiDirectoryNode" />
163
+ <item name="active_record" type="462c0819:PsiDirectoryNode" />
164
+ <item name="acts" type="462c0819:PsiDirectoryNode" />
165
+ </path>
166
+ </expand>
167
+ <select />
168
+ </subPane>
169
+ </pane>
170
+ <pane id="Scope" />
171
+ </panes>
172
+ </component>
173
+ <component name="PropertiesComponent">
174
+ <property name="WebServerToolWindowFactoryState" value="false" />
175
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
176
+ <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
177
+ <property name="nodejs_npm_path_reset_for_default_project" value="true" />
178
+ </component>
179
+ <component name="RunDashboard">
180
+ <option name="ruleStates">
181
+ <list>
182
+ <RuleState>
183
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
184
+ </RuleState>
185
+ <RuleState>
186
+ <option name="name" value="StatusDashboardGroupingRule" />
187
+ </RuleState>
188
+ </list>
189
+ </option>
190
+ </component>
191
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
192
+ <component name="SvnConfiguration">
193
+ <configuration />
194
+ </component>
195
+ <component name="TaskManager">
196
+ <task active="true" id="Default" summary="Default task">
197
+ <changelist id="bfeab213-f823-4ce6-87e6-bfcaaf760cdd" name="Default Changelist" comment="" />
198
+ <created>1594749748626</created>
199
+ <option name="number" value="Default" />
200
+ <option name="presentableId" value="Default" />
201
+ <updated>1594749748626</updated>
202
+ <workItem from="1594749749800" duration="129000" />
203
+ <workItem from="1594752537653" duration="3085000" />
204
+ <workItem from="1594924038231" duration="761000" />
205
+ <workItem from="1594998792735" duration="500000" />
206
+ </task>
207
+ <servers />
208
+ </component>
209
+ <component name="TimeTrackingManager">
210
+ <option name="totallyTimeSpent" value="4475000" />
211
+ </component>
212
+ <component name="ToolWindowManager">
213
+ <frame x="0" y="0" width="2048" height="1280" extended-state="0" />
214
+ <editor active="true" />
215
+ <layout>
216
+ <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2572283" />
217
+ <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
218
+ <window_info id="Favorites" order="2" side_tool="true" />
219
+ <window_info anchor="bottom" id="Message" order="0" />
220
+ <window_info anchor="bottom" id="Find" order="1" />
221
+ <window_info anchor="bottom" id="Run" order="2" />
222
+ <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
223
+ <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
224
+ <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
225
+ <window_info anchor="bottom" id="TODO" order="6" />
226
+ <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
227
+ <window_info anchor="bottom" id="Database Changes" order="8" />
228
+ <window_info anchor="bottom" id="Version Control" order="9" />
229
+ <window_info active="true" anchor="bottom" id="Terminal" order="10" visible="true" weight="0.13226622" />
230
+ <window_info anchor="bottom" id="Event Log" order="11" side_tool="true" />
231
+ <window_info anchor="bottom" id="Messages" order="12" weight="0.32940185" />
232
+ <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
233
+ <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
234
+ <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
235
+ <window_info anchor="right" id="Database" order="3" />
236
+ </layout>
237
+ </component>
238
+ <component name="TypeScriptGeneratedFilesManager">
239
+ <option name="version" value="1" />
240
+ </component>
241
+ <component name="editorHistoryManager">
242
+ <entry file="file://$PROJECT_DIR$/gemfiles/rails4/Gemfile">
243
+ <provider selected="true" editor-type-id="text-editor" />
244
+ </entry>
245
+ <entry file="file://$PROJECT_DIR$/classic_acts_as_list-0.5.4.gem">
246
+ <provider selected="true" editor-type-id="text-editor" />
247
+ </entry>
248
+ <entry file="file://$PROJECT_DIR$/classic_acts_as_list.gemspec">
249
+ <provider selected="true" editor-type-id="text-editor">
250
+ <state relative-caret-position="15">
251
+ <caret line="2" column="17" selection-start-line="2" selection-start-column="17" selection-end-line="2" selection-end-column="17" />
252
+ </state>
253
+ </provider>
254
+ </entry>
255
+ <entry file="file://$PROJECT_DIR$/lib/classic_acts_as_list/active_record/acts/list.rb">
256
+ <provider selected="true" editor-type-id="text-editor">
257
+ <state relative-caret-position="75">
258
+ <caret line="5" column="8" selection-start-line="5" selection-start-column="8" selection-end-line="5" selection-end-column="8" />
259
+ </state>
260
+ </provider>
261
+ </entry>
262
+ <entry file="file://$PROJECT_DIR$/lib/classic_acts_as_list/version.rb">
263
+ <provider selected="true" editor-type-id="text-editor">
264
+ <state relative-caret-position="45">
265
+ <caret line="3" column="21" selection-start-line="3" selection-start-column="21" selection-end-line="3" selection-end-column="21" />
266
+ </state>
267
+ </provider>
268
+ </entry>
269
+ <entry file="file://$PROJECT_DIR$/classic_acts_as_list-0.5.3.gem">
270
+ <provider selected="true" editor-type-id="text-editor" />
271
+ </entry>
272
+ <entry file="file://$PROJECT_DIR$/Gemfile.lock">
273
+ <provider selected="true" editor-type-id="text-editor" />
274
+ </entry>
275
+ <entry file="file://$PROJECT_DIR$/.travis.yml">
276
+ <provider selected="true" editor-type-id="text-editor" />
277
+ </entry>
278
+ <entry file="file://$PROJECT_DIR$/init.rb">
279
+ <provider selected="true" editor-type-id="text-editor">
280
+ <state relative-caret-position="15">
281
+ <caret line="1" column="17" selection-start-line="1" selection-start-column="17" selection-end-line="1" selection-end-column="17" />
282
+ </state>
283
+ </provider>
284
+ </entry>
285
+ <entry file="file://$PROJECT_DIR$/lib/classic_acts_as_list.rb">
286
+ <provider selected="true" editor-type-id="text-editor">
287
+ <state relative-caret-position="105">
288
+ <caret line="7" column="27" selection-start-line="7" selection-start-column="27" selection-end-line="7" selection-end-column="27" />
289
+ </state>
290
+ </provider>
291
+ </entry>
292
+ <entry file="file://$PROJECT_DIR$/gemfiles/rails5/Gemfile">
293
+ <provider selected="true" editor-type-id="text-editor" />
294
+ </entry>
295
+ <entry file="file://$PROJECT_DIR$/Gemfile">
296
+ <provider selected="true" editor-type-id="text-editor" />
297
+ </entry>
298
+ <entry file="file://$PROJECT_DIR$/README.md">
299
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
300
+ <state split_layout="SPLIT">
301
+ <first_editor relative-caret-position="636">
302
+ <caret line="93" column="17" selection-start-line="93" selection-start-column="17" selection-end-line="93" selection-end-column="17" />
303
+ </first_editor>
304
+ <second_editor />
305
+ </state>
306
+ </provider>
307
+ </entry>
308
+ </component>
309
+ </project>
@@ -0,0 +1,15 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.2
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.0
7
+ - jruby-19mode
8
+ - rbx-2
9
+ gemfile:
10
+ - gemfiles/rails3/Gemfile
11
+ - gemfiles/rails4/Gemfile
12
+ matrix:
13
+ allow_failures:
14
+ - rvm: 1.9.2
15
+ gemfile: gemfiles/rails4/Gemfile
data/Gemfile ADDED
@@ -0,0 +1,19 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'sqlite3', :platforms => [:ruby]
4
+ gem 'activerecord-jdbcsqlite3-adapter', :platforms => [:jruby]
5
+
6
+ platforms :rbx do
7
+ gem 'rubysl', '~> 2.0'
8
+ gem 'rubinius-developer_tools'
9
+ gem 'rubysl-test-unit'
10
+ end
11
+
12
+ # Specify your gem's dependencies in acts_as_list-rails3.gemspec
13
+ gemspec
14
+
15
+ gem 'rake'
16
+
17
+ group :test do
18
+ gem 'minitest', '~> 5'
19
+ end
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2007 David Heinemeier Hansson
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -0,0 +1,117 @@
1
+ # ClassicActsAsList
2
+
3
+ ## Description
4
+
5
+ This is a hard fork off the ActsAsList gem, version 0.5.0- modernized to work with rails 5 and 6. This `acts_as` extension provides the capabilities for sorting and reordering a number of objects in a list. The class that has this specified needs to have a `position` column defined as an integer on the mapped database table.
6
+
7
+ ## Installation
8
+
9
+ In your Gemfile:
10
+
11
+ gem 'classic_acts_as_list'
12
+
13
+ Or, from the command line:
14
+
15
+ gem install classic_acts_as_list
16
+
17
+ You also need to add the following function to `models/application_record.rb` for Rails 5+.
18
+ ```ruby
19
+ def self.sanitize_sql_hash_for_conditions(attrs)
20
+ self.where(attrs).to_sql.split('WHERE ')[1]
21
+ end
22
+ ```
23
+
24
+ ## Example
25
+
26
+ At first, you need to add a `position` column to desired table:
27
+
28
+ rails g migration AddPositionToTodoItem position:integer
29
+ rake db:migrate
30
+
31
+ After that you can use `acts_as_list` method in the model:
32
+
33
+ ```ruby
34
+ class TodoList < ActiveRecord::Base
35
+ has_many :todo_items, -> { order("position ASC") }
36
+ end
37
+
38
+ class TodoItem < ActiveRecord::Base
39
+ belongs_to :todo_list
40
+ acts_as_list scope: :todo_list
41
+ end
42
+
43
+ todo_list.first.move_to_bottom
44
+ todo_list.last.move_higher
45
+ ```
46
+
47
+ ## Instance Methods Added To ActiveRecord Models
48
+
49
+ You'll have a number of methods added to each instance of the ActiveRecord model that to which `acts_as_list` is added.
50
+
51
+ In `acts_as_list`, "higher" means further up the list (a lower `position`), and "lower" means further down the list (a higher `position`). That can be confusing, so it might make sense to add tests that validate that you're using the right method given your context.
52
+
53
+ ### Methods That Change Position and Reorder List
54
+
55
+ - `list_item.insert_at(2)`
56
+ - `list_item.move_lower` will do nothing if the item is the lowest item
57
+ - `list_item.move_higher` will do nothing if the item is the highest item
58
+ - `list_item.move_to_bottom`
59
+ - `list_item.move_to_top`
60
+ - `list_item.remove_from_list`
61
+
62
+ ### Methods That Change Position Without Reordering List
63
+
64
+ - `list_item.increment_position`
65
+ - `list_item.decrement_position`
66
+ - `list_item.set_list_position(3)`
67
+
68
+ ### Methods That Return Attributes of the Item's List Position
69
+ - `list_item.first?`
70
+ - `list_item.last?`
71
+ - `list_item.in_list?`
72
+ - `list_item.not_in_list?`
73
+ - `list_item.default_position?`
74
+ - `list_item.higher_item`
75
+ - `list_item.higher_items` will return all the items above `list_item` in the list (ordered by the position, ascending)
76
+ - `list_item.lower_item`
77
+ - `list_item.lower_items` will return all the items below `list_item` in the list (ordered by the position, ascending)
78
+
79
+ ## Notes
80
+ If the `position` column has a default value, then there is a slight change in behavior, i.e if you have 4 items in the list, and you insert 1, with a default position 0, it would be pushed to the bottom of the list. Please look at the tests for this and some recent pull requests for discussions related to this.
81
+
82
+ All `position` queries (select, update, etc.) inside gem methods are executed without the default scope (i.e. `Model.unscoped`), this will prevent nasty issues when the default scope is different from `acts_as_list` scope.
83
+
84
+ The `position` column is set after validations are called, so you should not put a `presence` validation on the `position` column.
85
+
86
+
87
+ If you need a scope by a non-association field you should pass an array, containing field name, to a scope:
88
+ ```ruby
89
+ class TodoItem < ActiveRecord::Base
90
+ # `kind` is a plain text field (e.g. 'work', 'shopping', 'meeting'), not an association
91
+ acts_as_list scope: [:kind]
92
+ end
93
+ ```
94
+
95
+ ## Versions
96
+ All versions `0.5.4` onwards were designed to work with Rails 4.2.x and higher.
97
+
98
+
99
+ ## Roadmap
100
+
101
+ - Rails 6 compatibility.
102
+
103
+ ## Contributing to `classic_acts_as_list`
104
+
105
+ - Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
106
+ - Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
107
+ - Fork the project
108
+ - Start a feature/bugfix branch
109
+ - Commit and push until you are happy with your contribution
110
+ - Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
111
+ - Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
112
+ - MAINTAIN BACKWARDS-COMPATIBILITY!!! The whole reason for this fork was that the original maintainers decided to break things that worked.
113
+
114
+
115
+ ## Copyright
116
+
117
+ Copyright (c) 2020 Steven Bong, released under the MIT license