blogit 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -108,11 +108,11 @@ describe Blogit::Post do
108
108
 
109
109
  before :all do
110
110
  Blogit::Post.destroy_all
111
- 15.times { |i| create :post, updated_at: i.days.ago }
111
+ 15.times { |i| create :post, created_at: i.days.ago }
112
112
  end
113
113
 
114
- it "should order posts by updated_at DESC" do
115
- Blogit::Post.for_index.first.should == Blogit::Post.order("updated_at DESC").first
114
+ it "should order posts by created_at DESC" do
115
+ Blogit::Post.for_index.first.should == Blogit::Post.order("created_at DESC").first
116
116
  end
117
117
 
118
118
  it "should paginate posts in blocks of 5" do
@@ -120,7 +120,7 @@ describe Blogit::Post do
120
120
  end
121
121
 
122
122
  it "should accept page no as an argument" do
123
- Blogit::Post.for_index(2).should == Blogit::Post.order("updated_at DESC").offset(5).limit(5)
123
+ Blogit::Post.for_index(2).should == Blogit::Post.order("created_at DESC").offset(5).limit(5)
124
124
  end
125
125
 
126
126
  it "should change the no of posts per page if paginates_per is set" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blogit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: RedCloth
16
- requirement: &70345280478640 !ruby/object:Gem::Requirement
16
+ requirement: &70110923898020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 4.2.9
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70345280478640
24
+ version_requirements: *70110923898020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: redcarpet
27
- requirement: &70345280477960 !ruby/object:Gem::Requirement
27
+ requirement: &70110923897500 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.0.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70345280477960
35
+ version_requirements: *70110923897500
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: nokogiri
38
- requirement: &70345280476400 !ruby/object:Gem::Requirement
38
+ requirement: &70110923897000 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.5.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70345280476400
46
+ version_requirements: *70110923897000
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: albino
49
- requirement: &70345280475440 !ruby/object:Gem::Requirement
49
+ requirement: &70110923896340 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.3.3
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70345280475440
57
+ version_requirements: *70110923896340
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: acts-as-taggable-on
60
- requirement: &70345280452420 !ruby/object:Gem::Requirement
60
+ requirement: &70110923895860 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 2.2.1
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70345280452420
68
+ version_requirements: *70110923895860
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: kaminari
71
- requirement: &70345280451600 !ruby/object:Gem::Requirement
71
+ requirement: &70110923895400 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.13.0
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70345280451600
79
+ version_requirements: *70110923895400
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: jquery-rails
82
- requirement: &70345280450440 !ruby/object:Gem::Requirement
82
+ requirement: &70110923894880 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70345280450440
90
+ version_requirements: *70110923894880
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: sqlite3
93
- requirement: &70345280449560 !ruby/object:Gem::Requirement
93
+ requirement: &70110923894280 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70345280449560
101
+ version_requirements: *70110923894280
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: guard
104
- requirement: &70345280448940 !ruby/object:Gem::Requirement
104
+ requirement: &70110923892800 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70345280448940
112
+ version_requirements: *70110923892800
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: guard-rspec
115
- requirement: &70345280448120 !ruby/object:Gem::Requirement
115
+ requirement: &70110923891280 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70345280448120
123
+ version_requirements: *70110923891280
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: growl
126
- requirement: &70345280447460 !ruby/object:Gem::Requirement
126
+ requirement: &70110923890340 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70345280447460
134
+ version_requirements: *70110923890340
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: factory_girl
137
- requirement: &70345280446860 !ruby/object:Gem::Requirement
137
+ requirement: &70110923889440 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: 2.3.2
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70345280446860
145
+ version_requirements: *70110923889440
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: mocha
148
- requirement: &70345280446440 !ruby/object:Gem::Requirement
148
+ requirement: &70110923888280 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *70345280446440
156
+ version_requirements: *70110923888280
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: rspec-rails
159
- requirement: &70345280445940 !ruby/object:Gem::Requirement
159
+ requirement: &70110923887540 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *70345280445940
167
+ version_requirements: *70110923887540
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: sqlite3
170
- requirement: &70345280445400 !ruby/object:Gem::Requirement
170
+ requirement: &70110923886760 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,7 +175,7 @@ dependencies:
175
175
  version: '0'
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *70345280445400
178
+ version_requirements: *70110923886760
179
179
  description: Add a blog to your Rails application in minutes with this mountable Rails
180
180
  Engine
181
181
  email:
@@ -338,7 +338,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
338
338
  version: '0'
339
339
  segments:
340
340
  - 0
341
- hash: 4369998918776007398
341
+ hash: 3500605658268519652
342
342
  required_rubygems_version: !ruby/object:Gem::Requirement
343
343
  none: false
344
344
  requirements:
@@ -347,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
347
347
  version: '0'
348
348
  segments:
349
349
  - 0
350
- hash: 4369998918776007398
350
+ hash: 3500605658268519652
351
351
  requirements: []
352
352
  rubyforge_project:
353
353
  rubygems_version: 1.8.11