Sha256: 3d1241eb33bbae5aaba97cee98acbf66cb1af1b7654829ef15fa84b98a03d720

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

Smoke.configure do |c|
  c[:cache][:enabled] = true
  c[:cache][:store] = :memory
  c[:cache][:expire_in] = 1800
end

Smoke.data(:github) do
  url "http://github.com/api/v2/json/repos/show/benschwarz"
  path :repositories
  
  emit do
    sort :watchers
    reverse
    truncate 5
  end
end

Smoke.data(:twitter) do
  prepare :require => :username do
    url "http://twitter.com/users/show.json?screen_name=#{username}", :format => :json  
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-smoke-1.0.0 spec/support/source.rb