gulesider 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/gulesider +8 -1
  2. data/bin/tlf +3 -0
  3. metadata +5 -3
@@ -1,3 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
+ # encoding: utf-8
3
+
2
4
  require 'gulesider'
3
- puts Gulesider.search("#{ARGV[0]}")[:name]
5
+ puts "Søker på gulesider.no"
6
+ result = Gulesider.search("#{ARGV[0]}")
7
+ puts ""
8
+ puts "#{result[:name]}"
9
+ address = "#{result[:street_name]}, #{result[:postal_code]} #{result[:city]}"
10
+ puts address if address != ", "
data/bin/tlf ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ gulesider $1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gulesider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mechanize
16
- requirement: &70348645889040 !ruby/object:Gem::Requirement
16
+ requirement: &70219322654040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,11 +21,12 @@ dependencies:
21
21
  version: '2.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70348645889040
24
+ version_requirements: *70219322654040
25
25
  description:
26
26
  email: mail@goeran.no
27
27
  executables:
28
28
  - gulesider
29
+ - tlf
29
30
  extensions: []
30
31
  extra_rdoc_files: []
31
32
  files:
@@ -33,6 +34,7 @@ files:
33
34
  - lib/screen_scraper.rb
34
35
  - lib/gulesider.rb
35
36
  - bin/gulesider
37
+ - bin/tlf
36
38
  homepage: http://github.com/goeran/gulesider
37
39
  licenses: []
38
40
  post_install_message: