meaning-cloud 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/LICENSE +22 -0
- data/README.md +49 -0
- data/lib/{meaning_cloud.rb → meaning-cloud.rb} +0 -0
- data/spec/spec_helper.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 921f04946ca7e64c872d8dad016ba45790f8af1b
|
4
|
+
data.tar.gz: 98985f49ce3ae9081b0755b6f3e0aeacd66e8c0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f77bc06a56d50e48467ebb318c400d8f7f38a2f0d1e40114ce890ba5cd802d01b2c2d4c94cc31733f2f2ff6ee35fd9ab73a5fd8ba62340af1e4bea806db7545a
|
7
|
+
data.tar.gz: 107986bac21937a77e848f074c9609e9201ab7ae198fa897bc9ffc78c7bcd4082ed0637537b325097221018f7f3ac727697ae04cac0f8d42d6661421a25af325
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Tailor
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/README.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
The Meaning Cloud Ruby API Wrapper
|
2
|
+
===================
|
3
|
+
|
4
|
+
A Ruby API wrapper for [Meaning Cloud](https://www.meaningcloud.com/) [API's](https://www.meaningcloud.com/developer/getting-started)
|
5
|
+
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/meaning-cloud.svg)](http://badge.fury.io/rb/meaning-cloud)[![Dependency Status](https://gemnasium.com/TailorBrands/meaning-cloud.svg)](https://gemnasium.com/TailorBrands/meaning-cloud)
|
7
|
+
[![Circle CI](https://circleci.com/gh/TailorBrands/meaning-cloud/tree/master.svg?style=svg)](https://circleci.com/gh/TailorBrands/meaning-cloud/tree/master) [![Code Climate](https://codeclimate.com/github/TailorBrands/meaning-cloud/badges/gpa.svg)](https://codeclimate.com/github/TailorBrands/meaning-cloud) [![Test Coverage](https://codeclimate.com/github/TailorBrands/meaning-cloud/badges/coverage.svg)](https://codeclimate.com/github/TailorBrands/meaning-cloud)
|
8
|
+
|
9
|
+
```rb
|
10
|
+
gem "meaning-cloud", "~> 0.1.1"
|
11
|
+
```
|
12
|
+
|
13
|
+
## Missing
|
14
|
+
|
15
|
+
Current version only wraps the Topics extraction API's and is focused on specific usage. Feel free to send a pull request with more API's wrapped!
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
|
19
|
+
You need a valid key to use the Gem, you can get it by signing up [here](https://www.meaningcloud.com/developer/getting-started)
|
20
|
+
|
21
|
+
*Raises Exception on missing key*
|
22
|
+
|
23
|
+
### Configuration
|
24
|
+
You can use an initializer for example if you're on Rails.
|
25
|
+
```rb
|
26
|
+
# initializers/meaning_cloud.rb
|
27
|
+
MeaningCloud.configure do |config|
|
28
|
+
config.key = ENV['MEANING_CLOUD_KEY']
|
29
|
+
end
|
30
|
+
```
|
31
|
+
|
32
|
+
### Extract by text
|
33
|
+
|
34
|
+
```rb
|
35
|
+
result = MeaningCloud::Topics.extract_topics(txt: 'The most amazing text in the world') # Returns a hash of the parsed JSON result.
|
36
|
+
```
|
37
|
+
Source [source](https://www.meaningcloud.com/developer/topics-extraction/doc/1.2/examples)
|
38
|
+
|
39
|
+
## Disclaimer
|
40
|
+
|
41
|
+
This is completely unofficial and is not related to Meaning Cloud in any way.
|
42
|
+
|
43
|
+
## Contributing
|
44
|
+
|
45
|
+
1. Fork it
|
46
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
47
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
48
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
49
|
+
5. Create new Pull Request
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meaning-cloud
|
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
|
- Nadav Shatz
|
@@ -92,8 +92,10 @@ executables: []
|
|
92
92
|
extensions: []
|
93
93
|
extra_rdoc_files: []
|
94
94
|
files:
|
95
|
+
- LICENSE
|
96
|
+
- README.md
|
95
97
|
- Rakefile
|
96
|
-
- lib/
|
98
|
+
- lib/meaning-cloud.rb
|
97
99
|
- lib/meaning_cloud/topics.rb
|
98
100
|
- spec/lib/meaning_cloud/topics_spec.rb
|
99
101
|
- spec/lib/meaning_cloud_spec.rb
|