gulesider 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/bin/tlf ADDED
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+
3
+ echo "TLF $1"
4
+ echo "Søker på gulesider.no"
5
+ ruby -e "require 'gulesider'; puts Gulesider.search('$1')[:name]"
data/lib/gulesider.rb CHANGED
@@ -1,6 +1,4 @@
1
- require 'mechanize'
2
1
  require 'screen_scraper'
3
- require 'search_result'
4
2
 
5
3
  class Gulesider
6
4
  def self.search number
@@ -1,3 +1,6 @@
1
+ require 'mechanize'
2
+ require 'search_result'
3
+
1
4
  class ScreenScraper
2
5
  def initialize
3
6
  @gulesider = "http://www.gulesider.no/finn:"
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.3
4
+ version: 0.1.4
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: &70106496277480 !ruby/object:Gem::Requirement
16
+ requirement: &70219386008620 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,16 +21,18 @@ dependencies:
21
21
  version: '2.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70106496277480
24
+ version_requirements: *70219386008620
25
25
  description:
26
26
  email: mail@goeran.no
27
- executables: []
27
+ executables:
28
+ - tlf
28
29
  extensions: []
29
30
  extra_rdoc_files: []
30
31
  files:
31
32
  - lib/search_result.rb
32
33
  - lib/screen_scraper.rb
33
34
  - lib/gulesider.rb
35
+ - bin/tlf
34
36
  homepage: http://github.com/goeran/gulesider
35
37
  licenses: []
36
38
  post_install_message: