sharks_ahead 0.2.0 → 0.2.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: 677949237ec9525dcba486700690d2e37e9d06d2
4
- data.tar.gz: 50964e5576720b0f7c19cb722c822e348f244c43
3
+ metadata.gz: 21113c76586ea6c34076b792b738b83085deed84
4
+ data.tar.gz: c0b57f84bae369325ec3724de478740fe3da6c2d
5
5
  SHA512:
6
- metadata.gz: a84d6b2756f34aa30f96b7e81b7d33a072546530a3b81b35c90206ddc7b90585357f573264491da7d70a037bfb455216b21415919b8e2e701614a55bb3346986
7
- data.tar.gz: 47638a493767ea28fb9fd399856d76769b49a6ecc68aa72d070e02d9601876f28e56c356e85503ce9b3c5f7595958c2423160d5cde30dca60458ca94ac601184
6
+ metadata.gz: 2436ecd85895f632512539231bfc77838977f1ab39a324a00821a149139ca9614711ff068f1569a9bfeb2b8f5427adf81b1685e876c02cac5e78f7ac9c11fd73
7
+ data.tar.gz: 78187fa14d36d96e130014cf7e80f7d2d5bd1291ebfc3f41f98af6fb451915583931bc6af6b3490e2e30eb660189bd193c7c86e48f14e153d60b6dbc3d7a4601
data/CHANGELOG.md CHANGED
@@ -1 +1,2 @@
1
1
  Version 0.2.0 - fixed broken links in shark-extinct, added word wrap, changed version
2
+ Version 0.2.1 - fixed broken links in shark-extinct, fixed links in shark-living, changed version
data/README.md CHANGED
@@ -3,7 +3,10 @@
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/sharks_ahead.svg)](https://badge.fury.io/rb/sharks_ahead)
5
5
 
6
- SharksAhead cli gem was built to scrape and display information about living and extinct shark species.
6
+ SharksAhead cli gem was built to scrape and display information about living and extinct shark species.
7
+ Read more about this project:
8
+ * [UX and UI for CLI Ruby Gem](http://www.form-and-function.co/2016/07/08/ux_and_ui_for_cli_ruby_gem/)
9
+ * [What My Ruby Gem Taught Me](http://www.form-and-function.co/2016/07/14/what_my_ruby_gem_taught_me/)
7
10
 
8
11
  ## Installation
9
12
 
@@ -3,14 +3,14 @@ class SharksAhead::SharkExtinct
3
3
  def self.get_extinct_sharks
4
4
  extinct_sharks = []
5
5
  url = [
6
- 'http://dinosaurs.about.com/od/tetrapodsandamphibians/p/cladoselache.htm',
7
6
  'http://dinosaurs.about.com/od/tetrapodsandamphibians/p/cretoxyrhina.htm',
8
7
  'http://dinosaurs.about.com/od/tetrapodsandamphibians/p/Edestus.htm',
9
8
  'http://dinosaurs.about.com/od/tetrapodsandamphibians/p/helicoprion.htm',
9
+ 'http://dinosaurs.about.com/od/tetrapodsandamphibians/p/hybodus.htm',
10
10
  'http://dinosaurs.about.com/od/tetrapodsandamphibians/p/otodus.htm',
11
+ 'http://dinosaurs.about.com/od/tetrapodsandamphibians/p/ptychodus.htm',
11
12
  'http://dinosaurs.about.com/od/tetrapodsandamphibians/p/squalicorax.htm',
12
13
  'http://dinosaurs.about.com/od/tetrapodsandamphibians/p/stethacanthus.htm',
13
-
14
14
  ]
15
15
  url.each do |u|
16
16
  doc = Nokogiri::HTML(open(u))
@@ -21,6 +21,3 @@ class SharksAhead::SharkExtinct
21
21
  extinct_sharks
22
22
  end
23
23
  end
24
-
25
- # [19] pry(main)> link = doc.search('a[href]').text
26
- # => "\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\nAbout.comAutosCareersDating & RelationshipsEducationen EspañolEntertainmentFoodHealthHomeMoneyNews & IssuesParentingReligion & SpiritualitySportsStyleTechTravel\t\t\t\t1\n\t\t\t\t 400 Million Years of Shark Evolution\n\n\t\t\t\t\t2\n\t\t\t\t\t 500 Million Years of Fish Evolution\n\n\t\t\t\t\t3\n\t\t\t\t\t The Devonian Period (416-360 Million Years Ago)\n\n\t\t\t\t\t4\n\t\t\t\t\t Ichthyosaurs - The \"Fish Lizards\"\n\n\t\t\t\t\t5\n\t\t\t\t\t Helicoprion\n\n\t\t\t\tAbout.com\n\t\t\t\t\tAbout Education\n\t\t\t\t\tDinosaurs\n\t\t\t\t\t\tPrehistoric Animals\nBy Bob Strauss\t\t \tDinosaurs Expert\n \n\n\n\n\n\n\n\n\n\n\nShare\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\n\nPin\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\n\nTweet\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\n\nSubmit\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\n\nStumble\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\n\nPost\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\n\nShare\n\n\n\n\n\n\n\n\n\n\n\n\n\nBob StraussOrdovicianpliosaursmosasaursGreat White Sharkgallery of prehistoric shark pictureswhy there are no giant sharks alive todayfossilized teethtetrapodsCladoselacheStethacanthusOrthacanthusXenacanthusMesozoic EraichthyosaursHybodusCretaceousCretoxyrhinaSqualicoraxPtychodusMioceneOtodusMegalodonclimate changeCladoselacheCretoxyrhinaDiablodontusEdestusFalcatusHelicoprionHybodusIschyrhizaMegalodonOrthacanthusOtodusPtychodusSqualicoraxStethacanthusXenacanthus\t\t\n\t\t\tShow Full Article\n\t\t\t\n\t\t\nHybodus FactsThese Sharks Were the Terror of the Mesozoic and Cenozoic ErasStethacanthus FactsSqualicorax FactsDinosaurs Dinosaur Basics\n Types of Dinosaurs - Carnivorous and Herbivorous Dinosaurs and Other Prehistoric Reptiles\n Dinosaur Evolution\n The Daily Life of a Dinosaur\n Dinosaurs and Birds\n Prehistoric Animals\n Dinosaur Extinction\n Dinosaur Controversies\n Dinosaur Discovery\n Dinosaur Fun!\nAbout Education\n\n\n\nOur StoryAdvertise With UsSite MapHelpWrite for AboutCareers at AboutTerms of Use & PoliciesVerywellThe Balance"
@@ -7,7 +7,8 @@ class SharksAhead::SharkLiving
7
7
  'http://marinelife.about.com/od/Sharks/p/Blue-Shark.htm',
8
8
  'http://marinelife.about.com/od/fish/p/Greatwhiteshark.htm',
9
9
  'http://marinelife.about.com/od/Sharks/p/Hammerhead-Sharks.htm',
10
- 'http://marinelife.about.com/od/vertebrates/p/shortfinmako.htm',
10
+ 'http://marinelife.about.com/od/Shark-Profiles/fl/Megamouth-Shark.htm',
11
+ 'http://marinelife.about.com/od/Sharks/p/Nurse-Shark-Ginlymostoma-Cirratum.htm',
11
12
  'http://marinelife.about.com/od/Sharks/p/Tiger-Shark-Galeocerdo-Cuvier.htm',
12
13
  'http://marinelife.about.com/od/fish/p/whaleshark.htm',
13
14
  ]
@@ -1,3 +1,3 @@
1
1
  module SharksAhead
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sharks_ahead
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rebecca Sherman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-05 00:00:00.000000000 Z
11
+ date: 2017-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler