Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removed scope_source_options - not needed for azure api and just gets…

… in the way
  • Loading branch information...
commit b48187ca48a4c591350ba2e6ba78e527249bc391 1 parent e50adbe
Kelly Mahan KellyMahan authored

Showing 1 changed file with 0 additions and 9 deletions. Show diff stats Hide diff stats

  1. +0 9 lib/rbing.rb
9 lib/rbing.rb
@@ -165,12 +165,10 @@ def options_for(type, query, options={})
165 165 opts.merge!(build_query(query, options))
166 166
167 167 source_options = filter_hash(options, [:http] + BASE_OPTIONS + QUERY_KEYWORDS)
168   - opts.merge!(scope_source_options(type, source_options))
169 168 RESERVED_OPTIONS.each do |reserved_option|
170 169 next unless options[reserved_option]
171 170 opts.merge!("$#{reserved_option}" => options[reserved_option])
172 171 opts.delete(reserved_option)
173   - opts.delete('Web.' + "#{reserved_option}") # Why is this needed? What is causing it to set this?
174 172 end
175 173 opts.merge!('$format' => 'JSON')
176 174
@@ -183,13 +181,6 @@ def options_for(type, query, options={})
183 181 http_options.merge(:query => opts)
184 182 end
185 183
186   - # returns a Hash containing the data in +options+
187   - # with the keys prefixed with +type+ and '.'
188   - #
189   - def scope_source_options(type, options={})
190   - options.inject({}) {|h,kv| h["#{type}.#{kv[0]}"] = kv[1]; h }
191   - end
192   -
193 184 # returns the user's default app id, if one has been
194 185 # defined in ~/.rbing_app_id
195 186 #

0 comments on commit b48187c

Please sign in to comment.
Something went wrong with that request. Please try again.