definer 0.1.1 → 0.1.2

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: f622b60deb62381212365d4da867b72faacaa748
4
- data.tar.gz: 9f18a847429af4eed64739d693e3c67db9d4b430
3
+ metadata.gz: 1801bb196b950c801a2af1ccff23b71e4fc85b23
4
+ data.tar.gz: 79c81746cb5fe497589c4bb26bcc3d8131c43990
5
5
  SHA512:
6
- metadata.gz: 6d6550dcdf46737d3a20259c7a78a6e3678f7b239859e57e8362896ad10a9055fb779f37fbb1d6d6ad22a598d23d8cea527234e7cba0c80b3f514407708db433
7
- data.tar.gz: b569d336d3445eca3afa3fa0e617f76c60ac12f4b6118d6d0e35f6c9472ced5c1691756d821cae15a031df68f1541c47452a6a036261019c50bfde018afef996
6
+ metadata.gz: 6dd2ee30bd70f1bebb2251d37795c9b10c8663ba00998d04540b08f071ab369db650a7251eda0b25303f160e4c6e043d5360b50db6a9285a2ccb3c0d8ef73e28
7
+ data.tar.gz: 67e5dec83cbc75e666dbcecf3c1b1f2b22c7aa8658b3131058d03588964488bfa928449a2e3ee399e6c36e64cc69e7d39cc191822146db895289b5c1b89c7864
data/README.md CHANGED
@@ -1,34 +1,26 @@
1
1
  # Definer
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/definer`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ A simple command line dictionary app. Currently working on a better API and an increase in options
6
4
 
7
5
  ## Installation
8
6
 
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'definer'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
7
+ Enter this in your shell (cmd,zsh,powershell etc.)
8
+
9
+ ```gem install definer```
18
10
 
19
- Or install it yourself as:
20
-
21
- $ gem install definer
11
+ Make sure you have installed gem and that your installation path is set in your shell.
22
12
 
23
13
  ## Usage
24
14
 
25
- TODO: Write usage instructions here
15
+ To define any word do:
26
16
 
27
- ## Development
17
+ ```define word [options]```
18
+
19
+ Options include -e and -p for example and part of speech respectively. Can be used seperately or together.
28
20
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
21
+ ## Development
30
22
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
23
+ Check out the [RubyGems Page](https://rubygems.org/gems/definer)
32
24
 
33
25
  ## Contributing
34
26
 
@@ -5,7 +5,7 @@ require 'optparse'
5
5
  class Define
6
6
  def define word
7
7
  begin
8
- part_of_speech = example = "not found"
8
+ definition = part_of_speech = example = "not found"
9
9
  api_url = "http://api.pearson.com/v2/dictionaries/entries?headword="
10
10
  header_uri = URI(api_url.concat(word))
11
11
  res = Net::HTTP.get(header_uri);
@@ -1,3 +1,3 @@
1
1
  module Definer
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: definer
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
  - Abishek Aditya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-30 00:00:00.000000000 Z
11
+ date: 2016-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler