boss 0.1.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/boss.rb +7 -2
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ spec = Gem::Specification.new do |s|
11
11
  s.name = 'boss'
12
12
  s.rubyforge_project = 'uipoet'
13
13
  s.summary = 'Yahoo BOSS for Ruby'
14
- s.version = '0.1.1'
14
+ s.version = '0.2'
15
15
  end
16
16
 
17
17
  Rake::GemPackageTask.new(spec) do |pkg|
data/lib/boss.rb CHANGED
@@ -252,8 +252,13 @@ module Boss
252
252
  @result['date']
253
253
  end
254
254
 
255
- def dispurl
256
- @result['dispurl']
255
+ def dispurl(options = {})
256
+ data = @result['dispurl']
257
+ if options[:wbr] == false
258
+ data.gsub(/<wbr>/, '')
259
+ else
260
+ data
261
+ end
257
262
  end
258
263
 
259
264
  def size
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: "0.2"
5
5
  platform: ruby
6
6
  authors:
7
7
  - UiPoet
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-12 00:00:00 -08:00
12
+ date: 2008-12-16 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency