Sha256: f91de309844d00498f27153bb7c46744b83bfc0350aeccc5c82d67f043a3d0c2
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
#!/usr/bin/env ruby require 'bundler/setup' $LOAD_PATH.unshift 'lib' require 'reality' require 'reality/data_sources/wikivoyage' titles = ARGV.dup source = Reality::DataSources::Wikivoyage.new titles.each do |t| puts "#{t}\n" + "="*t.length + "\n" observations = source.get(t) observations.each { |name, val| puts '%s: %p' % [name, val] } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reality-0.1.0.alpha2 | test/wikivoyage.rb |
reality-0.1.0.alpha | test/wikivoyage.rb |