mw_dictionary_api 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: fde666fe3da63ac495854526b7290e75c88139d0
4
- data.tar.gz: 8c495dedbdec5aea75ded362b8286ad615744daf
3
+ metadata.gz: 71845ea8f9e79128fd3851c7e2ea05867a0bdacd
4
+ data.tar.gz: 443aeee9ab04ed732822be7ccbdf4a7c858502b7
5
5
  SHA512:
6
- metadata.gz: be5bfd04c8bc8a3d16317ee28fa398efcf0f6a45a200c0c0eacceb8ffe66f907ff84a32a8b42258477f4ecab276c05f0e240481e16d714adc48eab0fe3974631
7
- data.tar.gz: 17e34ff4252c94e7c927bba6cf22212a21ade65ee34edf4cf88958dbb54584c6aa8024362e7ecbc26af221be956185103aa7e1496e90208c11363c651676b67c
6
+ metadata.gz: 50a33b9326cdc6ad1beb9988e4622aa92caca54288dcbbee10e9ae5ba277249378b92de05df52de00569f78f4954a235d8b025316f74df43d8220cf9e9af2721
7
+ data.tar.gz: e0688e891cff8ec2d9a98634af147d8ab8875d9d23454cd3d6713769c29dfa7e1e16732d210a6a4ff9baf74eb67643e8da218c21d4d4e295bab529991882ca62
@@ -1,5 +1,5 @@
1
- # require 'active_support/core_ext/class/attribute'
2
- require 'nokogiri'
1
+ # encoding: UTF-8
2
+
3
3
  require 'mw_dictionary_api/client'
4
4
  require 'mw_dictionary_api/result'
5
5
  require "mw_dictionary_api/parsable"
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  module MWDictionaryAPI
2
4
 
3
5
  class MemoryCache
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  module MWDictionaryAPI
2
4
  module Parsable
3
5
  def self.included(base)
@@ -1,5 +1,8 @@
1
1
  # encoding: UTF-8
2
2
 
3
+ require 'nokogiri'
4
+ require 'json'
5
+
3
6
  module MWDictionaryAPI
4
7
  class Result
5
8
 
@@ -31,5 +34,9 @@ module MWDictionaryAPI
31
34
  suggestions: suggestions
32
35
  }
33
36
  end
37
+
38
+ def to_json
39
+ to_hash.to_json
40
+ end
34
41
  end
35
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mw_dictionary_api
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
  - Frank Liu
@@ -14,16 +14,30 @@ dependencies:
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.6.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 1.6.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 2.14.1
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 2.14.1
27
41
  description: A Simple Way to Query Merriam Webster Dictionary API
28
42
  email: gniquil@gmail.com
29
43
  executables: []