acts_as_orderable 0.1.0 → 0.1.1
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.
- data/CHANGELOG.rdoc +2 -0
- data/Rakefile +2 -1
- data/acts_as_orderable.gemspec +8 -10
- data/lib/acts_as_orderable.rb +4 -2
- metadata +41 -68
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -2
data/CHANGELOG.rdoc
CHANGED
data/Rakefile
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
require 'psych'
|
|
1
2
|
require 'rubygems'
|
|
2
3
|
require 'rake'
|
|
3
4
|
require 'echoe'
|
|
4
5
|
|
|
5
|
-
Echoe.new('acts_as_orderable', '0.1.
|
|
6
|
+
Echoe.new('acts_as_orderable', '0.1.1') do |p|
|
|
6
7
|
p.description = "Rails gem allowing ActiveRecord models to have order and to move them up and down"
|
|
7
8
|
p.url = "https://github.com/mensfeld/Acts-as-Orderable"
|
|
8
9
|
p.author = "Maciej Mensfeld"
|
data/acts_as_orderable.gemspec
CHANGED
|
@@ -2,22 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{acts_as_orderable}
|
|
5
|
-
s.version = "0.1.
|
|
5
|
+
s.version = "0.1.1"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
|
-
s.authors = [
|
|
9
|
-
s.
|
|
10
|
-
s.date = %q{2011-04-17}
|
|
8
|
+
s.authors = [%q{Maciej Mensfeld}]
|
|
9
|
+
s.date = %q{2011-11-06}
|
|
11
10
|
s.description = %q{Rails gem allowing ActiveRecord models to have order and to move them up and down}
|
|
12
11
|
s.email = %q{maciej@mensfeld.pl}
|
|
13
|
-
s.extra_rdoc_files = [
|
|
14
|
-
s.files = [
|
|
12
|
+
s.extra_rdoc_files = [%q{CHANGELOG.rdoc}, %q{README.md}, %q{lib/acts_as_orderable.rb}]
|
|
13
|
+
s.files = [%q{CHANGELOG.rdoc}, %q{Gemfile}, %q{MIT-LICENSE}, %q{Manifest}, %q{README.md}, %q{Rakefile}, %q{init.rb}, %q{lib/acts_as_orderable.rb}, %q{spec/acts_as_orderable_spec.rb}, %q{spec/spec_helper.rb}, %q{acts_as_orderable.gemspec}]
|
|
15
14
|
s.homepage = %q{https://github.com/mensfeld/Acts-as-Orderable}
|
|
16
|
-
s.rdoc_options = [
|
|
17
|
-
s.require_paths = [
|
|
15
|
+
s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Acts_as_orderable}, %q{--main}, %q{README.md}]
|
|
16
|
+
s.require_paths = [%q{lib}]
|
|
18
17
|
s.rubyforge_project = %q{acts_as_orderable}
|
|
19
|
-
s.rubygems_version = %q{1.5
|
|
20
|
-
s.signing_key = %q{/home/mencio/.cert_keys/gem-private_key.pem}
|
|
18
|
+
s.rubygems_version = %q{1.8.5}
|
|
21
19
|
s.summary = %q{Rails gem allowing ActiveRecord models to have order and to move them up and down}
|
|
22
20
|
|
|
23
21
|
if s.respond_to? :specification_version then
|
data/lib/acts_as_orderable.rb
CHANGED
|
@@ -21,8 +21,10 @@ module Acts
|
|
|
21
21
|
|
|
22
22
|
parent_column = options.delete("tree_column")
|
|
23
23
|
# Determine tree column (first from param - else check default acts_as_tree "parent_id")
|
|
24
|
-
|
|
25
|
-
parent_column
|
|
24
|
+
if self.table_exists?
|
|
25
|
+
unless parent_column
|
|
26
|
+
parent_column = 'parent_id' if self.column_names.include? 'parent_id'
|
|
27
|
+
end
|
|
26
28
|
end
|
|
27
29
|
|
|
28
30
|
# Set class attributes
|
metadata
CHANGED
|
@@ -1,72 +1,48 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acts_as_orderable
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.1
|
|
4
5
|
prerelease:
|
|
5
|
-
version: 0.1.0
|
|
6
6
|
platform: ruby
|
|
7
|
-
authors:
|
|
7
|
+
authors:
|
|
8
8
|
- Maciej Mensfeld
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
|
-
cert_chain:
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
ZWoxGDAWBgoJkiaJk/IsZAEZFghtZW5zZmVsZDESMBAGCgmSJomT8ixkARkWAnBs
|
|
16
|
-
MB4XDTExMDQwOTA5NDcyMloXDTEyMDQwODA5NDcyMlowPzEPMA0GA1UEAwwGbWFj
|
|
17
|
-
aWVqMRgwFgYKCZImiZPyLGQBGRYIbWVuc2ZlbGQxEjAQBgoJkiaJk/IsZAEZFgJw
|
|
18
|
-
bDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0+nG3V4/exIeiJ0IN+
|
|
19
|
-
wVfq8Utcu4Qpo+58EIVMIu3FiK+8w6MBvatZnUrRu12pqWLw9xrUkCiYeRErD+jF
|
|
20
|
-
AmdggIM/tu9CcjvURXH7VeTzOVA+pnV+eJWMD61o8HljFVcb/nyEYYVKErtr9/O4
|
|
21
|
-
QrIGv5lnszq1PMj2sBMy2gOP1YnzawncMLmkpp/T5SU4JZ5gAktGMRVz8RxmZzF5
|
|
22
|
-
6NVqFLbuqSRSU5U//WJvZVJt8dycCGgQzBM4Vi3nkOWyjIF0BANf1TqnlU2u6s8d
|
|
23
|
-
UK1AoDZfg5feef5e8eqoomHebX1opNGM/SOQhu3LRgax4rJfnl6VS3I2wighohsf
|
|
24
|
-
AgcCAwEAAaM5MDcwCQYDVR0TBAIwADAdBgNVHQ4EFgQUGlrWBqxVieAPk7NEzBDp
|
|
25
|
-
kM+iAMMwCwYDVR0PBAQDAgSwMA0GCSqGSIb3DQEBBQUAA4IBAQAJMoyBaJs8boiz
|
|
26
|
-
lFpbw6MWjk+7ZhqoHpFrWEV4nzb5GzyHZ7GU/pa1fSEQR0SCs+LnTLQbAYNQyUTT
|
|
27
|
-
O+UsTuA7xzI//v6cSodv3Q9NbfoDlou74xv1NXorWoosQFMpVWrXv+c/1RqU3cq4
|
|
28
|
-
WUr+rRiveEXG4tXOwkrpX8KH8xVp2vQZcGw3AXPqhzfqDGzpHd6ws3lk+8HoSrSo
|
|
29
|
-
2L68tDoxraF2Z2toAg9vfFw1+mOeDk1xVIPVcBy3tJxstHfHGHlQuMiRiDQX2b2D
|
|
30
|
-
YYU8UWVt2841IwB5Dgl4O+atXhe9ZTBO0W32pl4Bq5CP9lhQRT1KL7sxfznJlF7Y
|
|
31
|
-
BH3YFsdk
|
|
32
|
-
-----END CERTIFICATE-----
|
|
33
|
-
|
|
34
|
-
date: 2011-04-17 00:00:00 +02:00
|
|
35
|
-
default_executable:
|
|
36
|
-
dependencies:
|
|
37
|
-
- !ruby/object:Gem::Dependency
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2011-11-06 00:00:00.000000000Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
38
15
|
name: rspec
|
|
39
|
-
|
|
40
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
|
16
|
+
requirement: &26845980 !ruby/object:Gem::Requirement
|
|
41
17
|
none: false
|
|
42
|
-
requirements:
|
|
43
|
-
- -
|
|
44
|
-
- !ruby/object:Gem::Version
|
|
18
|
+
requirements:
|
|
19
|
+
- - ! '>='
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
45
21
|
version: 2.0.0
|
|
46
22
|
type: :development
|
|
47
|
-
version_requirements: *id001
|
|
48
|
-
- !ruby/object:Gem::Dependency
|
|
49
|
-
name: active_record
|
|
50
23
|
prerelease: false
|
|
51
|
-
|
|
24
|
+
version_requirements: *26845980
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
26
|
+
name: active_record
|
|
27
|
+
requirement: &26845540 !ruby/object:Gem::Requirement
|
|
52
28
|
none: false
|
|
53
|
-
requirements:
|
|
54
|
-
- -
|
|
55
|
-
- !ruby/object:Gem::Version
|
|
56
|
-
version:
|
|
29
|
+
requirements:
|
|
30
|
+
- - ! '>='
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
57
33
|
type: :development
|
|
58
|
-
|
|
59
|
-
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: *26845540
|
|
36
|
+
description: Rails gem allowing ActiveRecord models to have order and to move them
|
|
37
|
+
up and down
|
|
60
38
|
email: maciej@mensfeld.pl
|
|
61
39
|
executables: []
|
|
62
|
-
|
|
63
40
|
extensions: []
|
|
64
|
-
|
|
65
|
-
extra_rdoc_files:
|
|
41
|
+
extra_rdoc_files:
|
|
66
42
|
- CHANGELOG.rdoc
|
|
67
43
|
- README.md
|
|
68
44
|
- lib/acts_as_orderable.rb
|
|
69
|
-
files:
|
|
45
|
+
files:
|
|
70
46
|
- CHANGELOG.rdoc
|
|
71
47
|
- Gemfile
|
|
72
48
|
- MIT-LICENSE
|
|
@@ -78,38 +54,35 @@ files:
|
|
|
78
54
|
- spec/acts_as_orderable_spec.rb
|
|
79
55
|
- spec/spec_helper.rb
|
|
80
56
|
- acts_as_orderable.gemspec
|
|
81
|
-
has_rdoc: true
|
|
82
57
|
homepage: https://github.com/mensfeld/Acts-as-Orderable
|
|
83
58
|
licenses: []
|
|
84
|
-
|
|
85
59
|
post_install_message:
|
|
86
|
-
rdoc_options:
|
|
60
|
+
rdoc_options:
|
|
87
61
|
- --line-numbers
|
|
88
62
|
- --inline-source
|
|
89
63
|
- --title
|
|
90
64
|
- Acts_as_orderable
|
|
91
65
|
- --main
|
|
92
66
|
- README.md
|
|
93
|
-
require_paths:
|
|
67
|
+
require_paths:
|
|
94
68
|
- lib
|
|
95
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
70
|
none: false
|
|
97
|
-
requirements:
|
|
98
|
-
- -
|
|
99
|
-
- !ruby/object:Gem::Version
|
|
100
|
-
version:
|
|
101
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - ! '>='
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '0'
|
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
76
|
none: false
|
|
103
|
-
requirements:
|
|
104
|
-
- -
|
|
105
|
-
- !ruby/object:Gem::Version
|
|
106
|
-
version:
|
|
77
|
+
requirements:
|
|
78
|
+
- - ! '>='
|
|
79
|
+
- !ruby/object:Gem::Version
|
|
80
|
+
version: '1.2'
|
|
107
81
|
requirements: []
|
|
108
|
-
|
|
109
82
|
rubyforge_project: acts_as_orderable
|
|
110
|
-
rubygems_version: 1.5
|
|
83
|
+
rubygems_version: 1.8.5
|
|
111
84
|
signing_key:
|
|
112
85
|
specification_version: 3
|
|
113
|
-
summary: Rails gem allowing ActiveRecord models to have order and to move them up
|
|
86
|
+
summary: Rails gem allowing ActiveRecord models to have order and to move them up
|
|
87
|
+
and down
|
|
114
88
|
test_files: []
|
|
115
|
-
|
data.tar.gz.sig
DELETED
|
Binary file
|
metadata.gz.sig
DELETED