sortable 0.0.1 → 0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,7 @@
1
- === 0.0.1 2009-09-23
1
+ === 0.0.2 2009-09-23
2
+
3
+ * 1 minor enhancement:
4
+ * Don't pollute the Object namespace by default [foca]
2
5
 
3
6
  * 1 major enhancement:
4
7
  * Initial release
@@ -15,6 +15,8 @@ first that provides a non-zero sort value is used.
15
15
  require 'sortable'
16
16
 
17
17
  class Book
18
+ include Sortable
19
+
18
20
  attr_accessor :author, :title
19
21
 
20
22
  sortable :author, lambda {|book| book.title.sub(/^(The|A|An) /, '')}
@@ -60,4 +62,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
60
62
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
61
63
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
62
64
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
63
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
65
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  module Sortable
2
- VERSION = '0.0.1'
2
+ VERSION = '0.1'
3
3
 
4
4
  def self.included(base)
5
5
  base.extend Sortable::ClassMethods
@@ -23,5 +23,3 @@ module Sortable
23
23
  end
24
24
  end
25
25
  end
26
-
27
- Object.send(:include, Sortable)
@@ -1,3 +1,5 @@
1
1
  require 'stringio'
2
2
  require 'test/unit'
3
3
  require File.dirname(__FILE__) + '/../lib/sortable'
4
+
5
+ Object.send(:include, Sortable)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sortable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: "0.1"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Scofield