fluxapi 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake'
3
3
  require 'rake/testtask'
4
4
  require 'echoe'
5
5
 
6
- Echoe.new('fluxapi', '0.5.2') do |p|
6
+ Echoe.new('fluxapi', '0.5.3') do |p|
7
7
  p.description = "A fluxiom api wrapper for ruby"
8
8
  p.url = "http://fluxapi.rubyforge.org"
9
9
  p.author = "Sebastian Gräßl"
data/fluxapi.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fluxapi}
5
- s.version = "0.5.2"
5
+ s.version = "0.5.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sebastian Gr\303\244\303\237l"]
@@ -12,4 +12,7 @@ class Fluxiom::Assets < Fluxiom
12
12
  def first
13
13
  @assets.first
14
14
  end
15
+ def find(id)
16
+ @assets.find {|a| a.id == id }
17
+ end
15
18
  end
@@ -15,4 +15,8 @@ class Fluxiom::AssetsTest < Test::Unit::TestCase
15
15
  assert @assets.first, Fluxiom::Asset
16
16
  end
17
17
 
18
+ def test_find
19
+ assert @assets.find(185388).id.to_i, 185388
20
+ end
21
+
18
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluxapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Sebastian Gr\xC3\xA4\xC3\x9Fl"