gulesider 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/gulesider +1 -7
- data/bin/tlf +3 -2
- data/lib/terminal_search.rb +9 -0
- metadata +4 -3
data/bin/gulesider
CHANGED
@@ -1,10 +1,4 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
3
|
|
4
|
-
require '
|
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 != ", "
|
4
|
+
require 'terminal_search'
|
data/bin/tlf
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'gulesider'
|
3
|
+
|
4
|
+
puts "Søker på gulesider.no"
|
5
|
+
result = Gulesider.search("#{ARGV[0]}")
|
6
|
+
puts ""
|
7
|
+
puts "#{result[:name]}"
|
8
|
+
address = "#{result[:street_name]}, #{result[:postal_code]} #{result[:city]}"
|
9
|
+
puts address if address != ", "
|
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.
|
4
|
+
version: 0.1.9
|
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: &
|
16
|
+
requirement: &70111210376740 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '2.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70111210376740
|
25
25
|
description:
|
26
26
|
email: mail@goeran.no
|
27
27
|
executables:
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- lib/search_result.rb
|
34
34
|
- lib/screen_scraper.rb
|
35
35
|
- lib/gulesider.rb
|
36
|
+
- lib/terminal_search.rb
|
36
37
|
- bin/gulesider
|
37
38
|
- bin/tlf
|
38
39
|
homepage: http://github.com/goeran/gulesider
|