bossman 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.md +4 -7
  2. data/lib/bossman/search.rb +1 -0
  3. metadata +1 -1
data/README.md CHANGED
@@ -71,10 +71,6 @@ be submitted by using GitHub issues.
71
71
 
72
72
  ## Output Objects
73
73
 
74
- Assuming an object bossed called search:
75
-
76
- search = BOSSMan::Search.web("cobble hill", 0, 20)
77
-
78
74
  ### Common
79
75
 
80
76
  - search.responsecode : HTTP response code
@@ -117,7 +113,7 @@ search = BOSSMan::Search.web("cobble hill", 0, 20)
117
113
  - search.results[].refererurl : Link to page where image was found
118
114
  - search.results[].title : Title of image (usually the filename)
119
115
  - search.results[].width : Width of full-size image
120
- - search.results[].thumbnail_url : URL of thumbnail image
116
+ - search.results[].thumbnail_url : URL of thumbnail image
121
117
  - search.results[].thumbnail_height : Height of thumbnail image
122
118
  - search.results[].thumbnail_width : Width of thumbnail image
123
119
 
@@ -138,8 +134,9 @@ Result sets can be dumped as JSON, XML and YAML by use of to_json, to_xml, to_ya
138
134
 
139
135
  ## Installation
140
136
 
141
- jp@populuxe:~/code/ruby$ gem sources -a http://gems.github.com
142
- jp@populuxe:~/code/ruby$ gem install jpignata-bossman
137
+ jp@populuxe:~/code/ruby$ gem install gemcutter
138
+ jp@populuxe:~/code/ruby$ gem tumble
139
+ jp@populuxe:~/code/ruby$ gem install bossman
143
140
 
144
141
  ## Requirements
145
142
 
@@ -7,6 +7,7 @@ module BOSSMan
7
7
  def method_missing(*args)
8
8
  method, query, options = args
9
9
  super unless [:web, :images, :news, :spelling].include?(method)
10
+ options = {} if options.nil?
10
11
  boss = BOSS.new(method, query, options_defaults.merge!(options))
11
12
  boss.get
12
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bossman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Pignata