acts_as_list 0.1.4 → 0.2.0

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.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_list
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease: false
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 4
10
- version: 0.1.4
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Heinemeier Hansson
@@ -17,40 +17,37 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-07-27 00:00:00 +05:30
21
- default_executable:
20
+ date: 2013-02-28 00:00:00 Z
22
21
  dependencies:
23
22
  - !ruby/object:Gem::Dependency
24
- name: bundler
23
+ name: activerecord
25
24
  prerelease: false
26
25
  requirement: &id001 !ruby/object:Gem::Requirement
27
26
  none: false
28
27
  requirements:
29
- - - ~>
28
+ - - ">="
30
29
  - !ruby/object:Gem::Version
31
- hash: 23
30
+ hash: 7
32
31
  segments:
33
- - 1
34
- - 0
32
+ - 3
35
33
  - 0
36
- version: 1.0.0
37
- type: :development
34
+ version: "3.0"
35
+ type: :runtime
38
36
  version_requirements: *id001
39
37
  - !ruby/object:Gem::Dependency
40
- name: activerecord
38
+ name: bundler
41
39
  prerelease: false
42
40
  requirement: &id002 !ruby/object:Gem::Requirement
43
41
  none: false
44
42
  requirements:
45
43
  - - ">="
46
44
  - !ruby/object:Gem::Version
47
- hash: 15571
45
+ hash: 23
48
46
  segments:
49
47
  - 1
50
- - 15
51
- - 4
52
- - 7794
53
- version: 1.15.4.7794
48
+ - 0
49
+ - 0
50
+ version: 1.0.0
54
51
  type: :development
55
52
  version_requirements: *id002
56
53
  - !ruby/object:Gem::Dependency
@@ -93,8 +90,9 @@ extra_rdoc_files: []
93
90
  files:
94
91
  - .gemtest
95
92
  - .gitignore
93
+ - .travis.yml
96
94
  - Gemfile
97
- - README.rdoc
95
+ - README.md
98
96
  - Rakefile
99
97
  - acts_as_list.gemspec
100
98
  - init.rb
@@ -102,8 +100,13 @@ files:
102
100
  - lib/acts_as_list/active_record/acts/list.rb
103
101
  - lib/acts_as_list/version.rb
104
102
  - test/helper.rb
103
+ - test/shared.rb
104
+ - test/shared_array_scope_list.rb
105
+ - test/shared_list.rb
106
+ - test/shared_list_sub.rb
107
+ - test/shared_top_addition.rb
108
+ - test/shared_zero_based.rb
105
109
  - test/test_list.rb
106
- has_rdoc: true
107
110
  homepage: http://github.com/swanandp/acts_as_list
108
111
  licenses: []
109
112
 
@@ -133,10 +136,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
136
  requirements: []
134
137
 
135
138
  rubyforge_project: acts_as_list
136
- rubygems_version: 1.3.7
139
+ rubygems_version: 1.8.15
137
140
  signing_key:
138
141
  specification_version: 3
139
142
  summary: A gem allowing a active_record model to act_as_list.
140
143
  test_files:
141
144
  - test/helper.rb
145
+ - test/shared.rb
146
+ - test/shared_array_scope_list.rb
147
+ - test/shared_list.rb
148
+ - test/shared_list_sub.rb
149
+ - test/shared_top_addition.rb
150
+ - test/shared_zero_based.rb
142
151
  - test/test_list.rb
data/README.rdoc DELETED
@@ -1,35 +0,0 @@
1
- = ActsAsList
2
-
3
- == Description
4
-
5
- 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
-
8
- == Example
9
-
10
- class TodoList < ActiveRecord::Base
11
- has_many :todo_items, :order => "position"
12
- end
13
-
14
- class TodoItem < ActiveRecord::Base
15
- belongs_to :todo_list
16
- acts_as_list :scope => :todo_list
17
- end
18
-
19
- todo_list.first.move_to_bottom
20
- todo_list.last.move_higher
21
-
22
- == Contributing to acts_as_list
23
-
24
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
25
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
26
- * Fork the project
27
- * Start a feature/bugfix branch
28
- * Commit and push until you are happy with your contribution
29
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
30
- * 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.
31
-
32
- == Copyright
33
-
34
- Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license
35
-