Permalink
Browse files

Added searchgasm 1.0

  • Loading branch information...
1 parent caa5e06 commit b210e17a4f6b00a43cad897024338077382b88ec @binarylogic committed Sep 9, 2008
Showing with 4,267 additions and 0 deletions.
  1. +23 −0 vendor/plugins/searchgasm-1.0.0/CHANGELOG
  2. +20 −0 vendor/plugins/searchgasm-1.0.0/MIT-LICENSE
  3. +64 −0 vendor/plugins/searchgasm-1.0.0/Manifest
  4. +353 −0 vendor/plugins/searchgasm-1.0.0/README.rdoc
  5. +17 −0 vendor/plugins/searchgasm-1.0.0/Rakefile
  6. +4 −0 vendor/plugins/searchgasm-1.0.0/examples/README.rdoc
  7. +1 −0 vendor/plugins/searchgasm-1.0.0/init.rb
  8. +72 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm.rb
  9. +64 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/active_record/associations.rb
  10. +103 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/active_record/base.rb
  11. +127 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/base.rb
  12. +20 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/begins_with.rb
  13. +11 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/child_of.rb
  14. +20 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/contains.rb
  15. +24 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/descendant_of.rb
  16. +28 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/does_not_equal.rb
  17. +20 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/ends_with.rb
  18. +20 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/equals.rb
  19. +25 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/greater_than.rb
  20. +20 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/greater_than_or_equal_to.rb
  21. +13 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/inclusive_descendant_of.rb
  22. +33 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/keywords.rb
  23. +25 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/less_than.rb
  24. +20 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/less_than_or_equal_to.rb
  25. +16 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/sibling_of.rb
  26. +16 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/condition/tree.rb
  27. +221 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/conditions/base.rb
  28. +30 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/conditions/protection.rb
  29. +86 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/config.rb
  30. +3 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/helpers.rb
  31. +41 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/helpers/control_types.rb
  32. +198 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/helpers/control_types/link.rb
  33. +149 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/helpers/control_types/links.rb
  34. +86 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/helpers/control_types/remote_link.rb
  35. +69 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/helpers/control_types/remote_links.rb
  36. +33 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/helpers/control_types/remote_select.rb
  37. +78 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/helpers/control_types/select.rb
  38. +194 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/helpers/form.rb
  39. +59 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/helpers/utilities.rb
  40. +78 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/search/base.rb
  41. +48 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/search/conditions.rb
  42. +149 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/search/ordering.rb
  43. +69 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/search/pagination.rb
  44. +74 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/search/protection.rb
  45. +30 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/utilities.rb
  46. +79 −0 vendor/plugins/searchgasm-1.0.0/lib/searchgasm/version.rb
  47. +204 −0 vendor/plugins/searchgasm-1.0.0/searchgasm.gemspec
  48. +15 −0 vendor/plugins/searchgasm-1.0.0/test/fixtures/accounts.yml
  49. +14 −0 vendor/plugins/searchgasm-1.0.0/test/fixtures/orders.yml
  50. +27 −0 vendor/plugins/searchgasm-1.0.0/test/fixtures/users.yml
  51. +98 −0 vendor/plugins/searchgasm-1.0.0/test/libs/acts_as_tree.rb
  52. +14 −0 vendor/plugins/searchgasm-1.0.0/test/libs/rexml_fix.rb
  53. +38 −0 vendor/plugins/searchgasm-1.0.0/test/test_active_record_associations.rb
  54. +83 −0 vendor/plugins/searchgasm-1.0.0/test/test_active_record_base.rb
  55. +61 −0 vendor/plugins/searchgasm-1.0.0/test/test_condition_base.rb
  56. +96 −0 vendor/plugins/searchgasm-1.0.0/test/test_condition_types.rb
  57. +168 −0 vendor/plugins/searchgasm-1.0.0/test/test_conditions_base.rb
  58. +24 −0 vendor/plugins/searchgasm-1.0.0/test/test_conditions_protection.rb
  59. +79 −0 vendor/plugins/searchgasm-1.0.0/test/test_helper.rb
  60. +187 −0 vendor/plugins/searchgasm-1.0.0/test/test_search_base.rb
  61. +27 −0 vendor/plugins/searchgasm-1.0.0/test/test_search_conditions.rb
  62. +91 −0 vendor/plugins/searchgasm-1.0.0/test/test_search_ordering.rb
  63. +72 −0 vendor/plugins/searchgasm-1.0.0/test/test_search_pagination.rb
  64. +35 −0 vendor/plugins/searchgasm-1.0.0/test/test_search_protection.rb
  65. +1 −0 vendor/plugins/searchgasm-1.0.0/test/text_config.rb
@@ -0,0 +1,23 @@
+v1.0.0. Major changes in the helpers, they were completely re-engineered. Much nicer and cleaner now. I established a pattern between all helpers giving you complete flexibility as to how they are used. All helpers are called differently now (see documentation).
+
+v0.9.10. Hardened more tests, fixed bug with setting the per_page configuration to only take effect on protected searches, thus staying out of the way of normal searching.
+
+v0.9.9. Fixed setting per_page to nil, false, or ''. This is done to "show all" results.
+
+v0.9.8. Fixed order_by helper bug when determing the text with arrays. Should use the first value instead of last. Added in per_page config option.
+
+v0.9.7. Complete class restructure, much more organized, added in documentation, added in helpers for using searchgasm in a rails app, updated readme with link to documentation as well as a live example, some bug fixes, more tests
+
+v0.9.6. Fixed bug when instantiating with nil options
+
+v0.9.5. Enhanced searching with conditions only. Updated read me to include example on adding your own conditions.
+
+v0.9.4. Cleaned up search methods, removed reset! method for base and conditions.
+
+v0.9.3. Changed structure of conditions to have their own class. Making it easier to add your own conditions.
+
+v0.9.2. Enhanced protection
+
+v0.9.1. Added aliases for datetime, date, time, and timestamp attrs. You could call created_at_after, mow you can also call created_after.
+
+v0.9.0. First release
@@ -0,0 +1,20 @@
+Copyright (c) 2007 Ben Johnson of Binary Logic (binarylogic.com)
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,64 @@
+CHANGELOG
+examples/README.rdoc
+init.rb
+lib/searchgasm/active_record/associations.rb
+lib/searchgasm/active_record/base.rb
+lib/searchgasm/condition/base.rb
+lib/searchgasm/condition/begins_with.rb
+lib/searchgasm/condition/child_of.rb
+lib/searchgasm/condition/contains.rb
+lib/searchgasm/condition/descendant_of.rb
+lib/searchgasm/condition/does_not_equal.rb
+lib/searchgasm/condition/ends_with.rb
+lib/searchgasm/condition/equals.rb
+lib/searchgasm/condition/greater_than.rb
+lib/searchgasm/condition/greater_than_or_equal_to.rb
+lib/searchgasm/condition/inclusive_descendant_of.rb
+lib/searchgasm/condition/keywords.rb
+lib/searchgasm/condition/less_than.rb
+lib/searchgasm/condition/less_than_or_equal_to.rb
+lib/searchgasm/condition/sibling_of.rb
+lib/searchgasm/condition/tree.rb
+lib/searchgasm/conditions/base.rb
+lib/searchgasm/conditions/protection.rb
+lib/searchgasm/config.rb
+lib/searchgasm/helpers/control_types/link.rb
+lib/searchgasm/helpers/control_types/links.rb
+lib/searchgasm/helpers/control_types/remote_link.rb
+lib/searchgasm/helpers/control_types/remote_links.rb
+lib/searchgasm/helpers/control_types/remote_select.rb
+lib/searchgasm/helpers/control_types/select.rb
+lib/searchgasm/helpers/control_types.rb
+lib/searchgasm/helpers/form.rb
+lib/searchgasm/helpers/utilities.rb
+lib/searchgasm/helpers.rb
+lib/searchgasm/search/base.rb
+lib/searchgasm/search/conditions.rb
+lib/searchgasm/search/ordering.rb
+lib/searchgasm/search/pagination.rb
+lib/searchgasm/search/protection.rb
+lib/searchgasm/utilities.rb
+lib/searchgasm/version.rb
+lib/searchgasm.rb
+Manifest
+MIT-LICENSE
+Rakefile
+README.rdoc
+test/fixtures/accounts.yml
+test/fixtures/orders.yml
+test/fixtures/users.yml
+test/libs/acts_as_tree.rb
+test/libs/rexml_fix.rb
+test/test_active_record_associations.rb
+test/test_active_record_base.rb
+test/test_condition_base.rb
+test/test_condition_types.rb
+test/test_conditions_base.rb
+test/test_conditions_protection.rb
+test/test_helper.rb
+test/test_search_base.rb
+test/test_search_conditions.rb
+test/test_search_ordering.rb
+test/test_search_pagination.rb
+test/test_search_protection.rb
+test/text_config.rb
Oops, something went wrong.

0 comments on commit b210e17

Please sign in to comment.