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 +4 -4
- data/lib/wotd/version.rb +1 -1
- data/lib/wotd/word.rb +1 -1
- data/spec.md +6 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e7adfb8d3acbeaa8a7035f588617b4a148080ad
|
4
|
+
data.tar.gz: 28f9ebe7903475f6468d15b38b2ed9986980c297
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a09d5346918315820947f7161d1362aabd6358a53aa4c38081bf315d8a543f7f88dbeb3602ad792d8c3862c2658050aa2f0bee642109a643391a894cc8a1f795
|
7
|
+
data.tar.gz: 443e5a997f0fde778bbf6ed8717300fc6cadfece028007df2f4112ee3656decd417800f53ba49951f1f2666dfcf4ecafa83227e22e9db8e69bc706b00ca6e233
|
data/lib/wotd/version.rb
CHANGED
data/lib/wotd/word.rb
CHANGED
@@ -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("
|
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.
|
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:
|
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.
|
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
|