bulletin 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bulletin.rb +3 -2
  2. metadata +3 -3
data/bulletin.rb CHANGED
@@ -8,7 +8,7 @@ require 'nokogiri'
8
8
  require 'date'
9
9
 
10
10
  module Bulletin
11
- VERSION = '0.0.4'
11
+ VERSION = '0.0.5'
12
12
 
13
13
  class App
14
14
  attr_reader :options, :feeds
@@ -101,7 +101,8 @@ module Bulletin
101
101
  items.sort_by!(&:published_at)
102
102
  items.reverse!
103
103
  items.each_with_index do |item, index|
104
- item.update(:rank => index + 1)
104
+ item.rank = index + 1
105
+ item.save!
105
106
  end
106
107
  end
107
108
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulletin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: .
11
11
  cert_chain: []
12
- date: 2012-06-02 00:00:00.000000000 Z
12
+ date: 2012-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dm-sqlite-adapter
@@ -131,8 +131,8 @@ executables:
131
131
  extensions: []
132
132
  extra_rdoc_files: []
133
133
  files:
134
- - bulletin.rb
135
134
  - bulletin_test.rb
135
+ - bulletin.rb
136
136
  - bulletin
137
137
  - ./bulletin
138
138
  homepage: https://github.com/hughbien/bulletin