taiwan_tours 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e64121574b9a2cbacc8da265b95fdd1921e9671
4
- data.tar.gz: 3e585b8ba243438ee3b007ffd1d214c2d81f6a02
3
+ metadata.gz: d40515b274c6f3656403d0f207ed00fafb3d222f
4
+ data.tar.gz: d8e945207728f7b568802a08438ab7363dc594e7
5
5
  SHA512:
6
- metadata.gz: 55193252cc08899017ac0b8bad0157986b3efc452dcb5dc2789b1522425c513723c3fbdc1fede4a1a8568d18b2f889dcc1a44e9d9febe8070dbba6efa1b072fc
7
- data.tar.gz: f7109e3c3f637f9598dc1bc8dda6c80efdce811a2d48817ef8cae7aecd949734ef1efdc1ae39760e18d776d46afad287efd7409c8c345fe217f2af8d06a1e855
6
+ metadata.gz: 9a63cb5a5fd0e12925435598025203a9bd0c09c36bbbec2c7ea834845e5267b6f3a8063f2d3cdf6f32ffa35809218244b8807fa5a10a3c4b68fa1299053fcdc9
7
+ data.tar.gz: 3db382ef36c1edad61b945239b68b62cf8dcb23ffc32ef98aef3446d886ecf248083856c7bbead04b7c2357f38287721887b674141376e76c1873c3cb40b3a0f
data/README.md CHANGED
@@ -1,32 +1,34 @@
1
- # taiwan_tours [![Build Status](https://travis-ci.org/ZhongMeiZhou/scraper_project.svg)](https://travis-ci.org/ZhongMeiZhou/scraper_project)
2
1
 
3
- The lonelyplanet web scraper service traverses details of Taiwan tour packages in a easiest way and with simple steps.
4
2
 
5
- Our company entirely respect the privacy policies of our partner Lonelyplanet declared on 'robots.txt' file.
3
+ # taiwan_tours [![Gem Version](https://badge.fury.io/rb/taiwan_tours.svg)](https://badge.fury.io/rb/taiwan_tours) [![Build Status](https://travis-ci.org/ZhongMeiZhou/scraper_project.svg)](https://travis-ci.org/ZhongMeiZhou/scraper_project)
6
4
 
5
+ The web scraper service we built provides listings of Taiwan tour packages from Lonelyplanet. We have bundled this service into the taiwan_tours gem for you to use.
7
6
 
8
- ## Gem Usage
7
+ Note that we respect Lonelyplanet's 'robots.txt' file.
9
8
 
10
- Install our fantastic gem using the following simple command on your command line:
9
+
10
+ ## Usage
11
+
12
+ Install at the command line:
11
13
 
12
14
  ```sh
13
15
  $ gem install taiwan_tours
14
16
  ```
15
17
 
16
- either, as our gem is published by Rubygems.org you can also include it in your 'Gemfile' as:
18
+ or include it in your 'Gemfile' as:
17
19
 
18
20
  ```ruby
19
21
  gem taiwan_tours
20
22
  ```
21
23
 
22
24
  ## Try it yourself!
23
- Run it from the command line as follow:
25
+ Run it from the command line as:
24
26
 
25
27
  ```sh
26
28
  $ taiwan_tours
27
29
  ```
28
30
 
29
- or it can also be include it in your own Ruby code with the steps:
31
+ or include it in your code:
30
32
 
31
33
  ```ruby
32
34
  require 'taiwan_tours'
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'json'
3
- require './lib/taiwan_tours/lonelyplanet_scrap'
3
+ require 'taiwan_tours/lonelyplanet_scrap'
4
4
 
5
5
  begin
6
6
  taiwan_tours = LonelyPlanetScrape::LonelyPlanetTours.new
@@ -5,8 +5,6 @@ require 'json'
5
5
  # Module defines LonelyPlanetTours class which handles scraping of lonelyplanet Taiwan tours page
6
6
  module LonelyPlanetScrape
7
7
  class LonelyPlanetTours
8
- # Define constants needed for scraping
9
- # Please if the test for uri fails replace contant manually
10
8
  LONELYPLANET_URL = 'http://www.lonelyplanet.com'
11
9
  TOUR_RELATIVE_DIR = 'taiwan/tours'
12
10
 
@@ -1,5 +1,5 @@
1
1
  # Versioning
2
2
  module LonelyPlanetScrape
3
- VERSION = '0.1.0'
4
- DATE = '2015-10-16'
3
+ VERSION = '0.1.1'
4
+ DATE = '2015-10-17'
5
5
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.date = LonelyPlanetScrape::DATE
8
8
  s.executables << 'taiwan_tours'
9
9
  s.summary = 'The lonelyplanet web scraper service traverses details of Taiwan tour packages'
10
- s.description = 'Get deatils of taiwan tours packages'
10
+ s.description = 'Get listings of taiwan tour packages from Lonelyplanet'
11
11
  s.authors = ['Bayardo Salgado', 'Cesar Ordoñez','Eduardo Salazar','Nicole Weatherburne']
12
12
  s.email = ['bayardo_salgado@yahoo.com','cesar','esalazar922@gmail.com','nikkiweat@gmail.com']
13
13
  s.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taiwan_tours
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bayardo Salgado
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-10-16 00:00:00.000000000 Z
14
+ date: 2015-10-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: minitest
@@ -83,7 +83,7 @@ dependencies:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
- description: Get deatils of taiwan tours packages
86
+ description: Get listings of taiwan tour packages from Lonelyplanet
87
87
  email:
88
88
  - bayardo_salgado@yahoo.com
89
89
  - cesar
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 2.4.6
134
+ rubygems_version: 2.4.5
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: The lonelyplanet web scraper service traverses details of Taiwan tour packages