listable 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/tasks/listable.rake +9 -1
- data/listable.gemspec +3 -3
- metadata +26 -81
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/lib/tasks/listable.rake
CHANGED
@@ -5,9 +5,17 @@ namespace :listable do
|
|
5
5
|
Rails.application.eager_load!
|
6
6
|
Listable::ViewManager.create_views
|
7
7
|
end
|
8
|
+
|
9
|
+
task :rollback => :environment do
|
10
|
+
puts "Dropping Listable views..."
|
11
|
+
Listable::ViewManager.drop_views
|
12
|
+
end
|
8
13
|
end
|
9
14
|
|
10
15
|
# Rebuild views after db:migrate
|
11
16
|
Rake::Task['db:migrate'].enhance do
|
12
17
|
Rake::Task['listable:migrate'].invoke
|
13
|
-
end
|
18
|
+
end
|
19
|
+
|
20
|
+
# Drop views before a rollback to prevent errors due to column dependency
|
21
|
+
Rake::Task['db:rollback'].enhance ['listable:rollback']
|
data/listable.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "listable"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Johannes Baldursson"]
|
12
|
-
s.date = "2013-02-
|
12
|
+
s.date = "2013-02-04"
|
13
13
|
s.description = "With listable you can consolidate fields from several models into one, backed up by a database view.\n It is perfect for e.g. a front page where you may want to display the most recent additions to your site in a joint list.\n By providing scopes for each model you wish to include in a view, Listable will automatically create the database view for you."
|
14
14
|
s.email = "johannes.baldursson@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
|
|
40
40
|
s.homepage = "http://github.com/baldursson/listable"
|
41
41
|
s.licenses = ["MIT"]
|
42
42
|
s.require_paths = ["lib"]
|
43
|
-
s.rubygems_version = "1.8.
|
43
|
+
s.rubygems_version = "1.8.10"
|
44
44
|
s.summary = "ActiveRecord extension that makes it easy to list and query several models through a single view backed model."
|
45
45
|
|
46
46
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: listable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2176931100 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,15 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '3.2'
|
24
|
+
version_requirements: *2176931100
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
26
|
name: activerecord
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &2176929940 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
30
|
- - ! '>='
|
@@ -37,15 +32,10 @@ dependencies:
|
|
37
32
|
version: '3.2'
|
38
33
|
type: :runtime
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '3.2'
|
35
|
+
version_requirements: *2176929940
|
46
36
|
- !ruby/object:Gem::Dependency
|
47
37
|
name: test-unit
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirement: &2176928240 !ruby/object:Gem::Requirement
|
49
39
|
none: false
|
50
40
|
requirements:
|
51
41
|
- - ~>
|
@@ -53,15 +43,10 @@ dependencies:
|
|
53
43
|
version: 2.5.4
|
54
44
|
type: :development
|
55
45
|
prerelease: false
|
56
|
-
version_requirements:
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 2.5.4
|
46
|
+
version_requirements: *2176928240
|
62
47
|
- !ruby/object:Gem::Dependency
|
63
48
|
name: shoulda
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirement: &2176926980 !ruby/object:Gem::Requirement
|
65
50
|
none: false
|
66
51
|
requirements:
|
67
52
|
- - ! '>='
|
@@ -69,15 +54,10 @@ dependencies:
|
|
69
54
|
version: '0'
|
70
55
|
type: :development
|
71
56
|
prerelease: false
|
72
|
-
version_requirements:
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
57
|
+
version_requirements: *2176926980
|
78
58
|
- !ruby/object:Gem::Dependency
|
79
59
|
name: rdoc
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirement: &2176926180 !ruby/object:Gem::Requirement
|
81
61
|
none: false
|
82
62
|
requirements:
|
83
63
|
- - ~>
|
@@ -85,15 +65,10 @@ dependencies:
|
|
85
65
|
version: '3.12'
|
86
66
|
type: :development
|
87
67
|
prerelease: false
|
88
|
-
version_requirements:
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ~>
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '3.12'
|
68
|
+
version_requirements: *2176926180
|
94
69
|
- !ruby/object:Gem::Dependency
|
95
70
|
name: bundler
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirement: &2177083320 !ruby/object:Gem::Requirement
|
97
72
|
none: false
|
98
73
|
requirements:
|
99
74
|
- - ~>
|
@@ -101,15 +76,10 @@ dependencies:
|
|
101
76
|
version: 1.2.3
|
102
77
|
type: :development
|
103
78
|
prerelease: false
|
104
|
-
version_requirements:
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ~>
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 1.2.3
|
79
|
+
version_requirements: *2177083320
|
110
80
|
- !ruby/object:Gem::Dependency
|
111
81
|
name: jeweler
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
82
|
+
requirement: &2177082540 !ruby/object:Gem::Requirement
|
113
83
|
none: false
|
114
84
|
requirements:
|
115
85
|
- - ~>
|
@@ -117,15 +87,10 @@ dependencies:
|
|
117
87
|
version: 1.8.4
|
118
88
|
type: :development
|
119
89
|
prerelease: false
|
120
|
-
version_requirements:
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ~>
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: 1.8.4
|
90
|
+
version_requirements: *2177082540
|
126
91
|
- !ruby/object:Gem::Dependency
|
127
92
|
name: simplecov
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirement: &2177081820 !ruby/object:Gem::Requirement
|
129
94
|
none: false
|
130
95
|
requirements:
|
131
96
|
- - ! '>='
|
@@ -133,15 +98,10 @@ dependencies:
|
|
133
98
|
version: '0'
|
134
99
|
type: :development
|
135
100
|
prerelease: false
|
136
|
-
version_requirements:
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- - ! '>='
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: '0'
|
101
|
+
version_requirements: *2177081820
|
142
102
|
- !ruby/object:Gem::Dependency
|
143
103
|
name: sqlite3
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirement: &2177081200 !ruby/object:Gem::Requirement
|
145
105
|
none: false
|
146
106
|
requirements:
|
147
107
|
- - ! '>='
|
@@ -149,15 +109,10 @@ dependencies:
|
|
149
109
|
version: '0'
|
150
110
|
type: :development
|
151
111
|
prerelease: false
|
152
|
-
version_requirements:
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- - ! '>='
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '0'
|
112
|
+
version_requirements: *2177081200
|
158
113
|
- !ruby/object:Gem::Dependency
|
159
114
|
name: pg
|
160
|
-
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirement: &2177080520 !ruby/object:Gem::Requirement
|
161
116
|
none: false
|
162
117
|
requirements:
|
163
118
|
- - ! '>='
|
@@ -165,15 +120,10 @@ dependencies:
|
|
165
120
|
version: '0'
|
166
121
|
type: :development
|
167
122
|
prerelease: false
|
168
|
-
version_requirements:
|
169
|
-
none: false
|
170
|
-
requirements:
|
171
|
-
- - ! '>='
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
123
|
+
version_requirements: *2177080520
|
174
124
|
- !ruby/object:Gem::Dependency
|
175
125
|
name: mysql2
|
176
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirement: &2177079400 !ruby/object:Gem::Requirement
|
177
127
|
none: false
|
178
128
|
requirements:
|
179
129
|
- - ! '>='
|
@@ -181,12 +131,7 @@ dependencies:
|
|
181
131
|
version: '0'
|
182
132
|
type: :development
|
183
133
|
prerelease: false
|
184
|
-
version_requirements:
|
185
|
-
none: false
|
186
|
-
requirements:
|
187
|
-
- - ! '>='
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: '0'
|
134
|
+
version_requirements: *2177079400
|
190
135
|
description: ! "With listable you can consolidate fields from several models into
|
191
136
|
one, backed up by a database view.\n It is perfect for e.g.
|
192
137
|
a front page where you may want to display the most recent additions to your site
|
@@ -234,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
179
|
version: '0'
|
235
180
|
segments:
|
236
181
|
- 0
|
237
|
-
hash:
|
182
|
+
hash: 1361511994202071463
|
238
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
184
|
none: false
|
240
185
|
requirements:
|
@@ -243,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
188
|
version: '0'
|
244
189
|
requirements: []
|
245
190
|
rubyforge_project:
|
246
|
-
rubygems_version: 1.8.
|
191
|
+
rubygems_version: 1.8.10
|
247
192
|
signing_key:
|
248
193
|
specification_version: 3
|
249
194
|
summary: ActiveRecord extension that makes it easy to list and query several models
|