wotd 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b9e307e5fa6cc26ec83c7f858cc18664a9ac014
4
- data.tar.gz: 05b2760afb62310f43deead048130379a72f0d18
3
+ metadata.gz: 0e7adfb8d3acbeaa8a7035f588617b4a148080ad
4
+ data.tar.gz: 28f9ebe7903475f6468d15b38b2ed9986980c297
5
5
  SHA512:
6
- metadata.gz: 5813b774d4692cf14f5c20dfcf141985b6901fd901e5d9fe8d00b7ab0f36a7903e957d55f26e0e4bff2be7f7c7b2b933e6633de8727a5b3c196883028fb11c9a
7
- data.tar.gz: f14e5cbfc73cb84788178c1d89c71047575b17747fcb3ded6861b2598a1f85b2103eb58ee1c43dfbfe7263dddfa6dccb1462e5ea5756f15e4b9ed0a655b7b03e
6
+ metadata.gz: a09d5346918315820947f7161d1362aabd6358a53aa4c38081bf315d8a543f7f88dbeb3602ad792d8c3862c2658050aa2f0bee642109a643391a894cc8a1f795
7
+ data.tar.gz: 443e5a997f0fde778bbf6ed8717300fc6cadfece028007df2f4112ee3656decd417800f53ba49951f1f2666dfcf4ecafa83227e22e9db8e69bc706b00ca6e233
@@ -1,3 +1,3 @@
1
1
  module Wotd
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -11,7 +11,7 @@ class Wotd::Word
11
11
  # go to site, find wotd
12
12
  # extract properties
13
13
  # instantiate word
14
- doc = Nokogiri::HTML(open("http://www.merriam-webster.com/word-of-the-day"))
14
+ doc = Nokogiri::HTML(open("https://www.merriam-webster.com/word-of-the-day"))
15
15
  word = self.new
16
16
  word.wotd = doc.search("h1").last.text
17
17
  word.syllables = doc.search("div.word-attributes span.word-syllables").text
data/spec.md ADDED
@@ -0,0 +1,6 @@
1
+ # Specifications for the CLI Assessment
2
+
3
+ Specs:
4
+ - [x] Have a CLI for interfacing with the application
5
+ - [x] Pull data from an external source : pulls the word of the day from Merriam-Webster's website
6
+ - [x] Implement both list and detail views : User is shown word and definition, and is given the option to view more info. If user selects Y for yes, an example of the word used in a sentence and a fact will be shown.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wotd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - cmiller36
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-19 00:00:00.000000000 Z
11
+ date: 2017-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,6 +107,7 @@ files:
107
107
  - ".travis.yml"
108
108
  - CODE_OF_CONDUCT.md
109
109
  - Gemfile
110
+ - Gemfile.lock
110
111
  - LICENSE.txt
111
112
  - NOTES.md
112
113
  - README.md
@@ -118,6 +119,7 @@ files:
118
119
  - lib/wotd/cli.rb
119
120
  - lib/wotd/version.rb
120
121
  - lib/wotd/word.rb
122
+ - spec.md
121
123
  - wotd.gemspec
122
124
  homepage: https://github.com/cmiller36/wotd-cli-gem
123
125
  licenses:
@@ -139,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
141
  version: '0'
140
142
  requirements: []
141
143
  rubyforge_project:
142
- rubygems_version: 2.4.5.1
144
+ rubygems_version: 2.6.7
143
145
  signing_key:
144
146
  specification_version: 4
145
147
  summary: Simple CLI to view a word of the day