pv 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +1 -1
  2. data/lib/pv/story.rb +1 -1
  3. data/lib/pv/version.rb +1 -1
  4. metadata +1 -1
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
3
 
4
- RSpec::Core::RakeTask.new :test
4
+ RSpec::Core::RakeTask.new(:test)
5
5
 
6
6
  task :default => ['test', 'install']
data/lib/pv/story.rb CHANGED
@@ -12,7 +12,7 @@ module Pv
12
12
  end
13
13
 
14
14
  def self.find by_id
15
- new Pv.tracker.stories.find(by_id).first
15
+ new Pv.tracker.stories.select { |s| s.id == by_id.to_i }.first
16
16
  end
17
17
 
18
18
  # Render this Story in plain text.
data/lib/pv/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pv
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: