towise 0.1.6 → 0.1.8

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
  SHA256:
3
- metadata.gz: 962aa865e5bb2e8db567f7dbb65bdc857b7565ee097cd4c40660c08a23780260
4
- data.tar.gz: a68bd2c2b23e1ae235898b889925c477e3cb548967d61889384ad93b5b04bda3
3
+ metadata.gz: b2a287b59dba266c2cd615b294d27712138066e4742d8c47def4f27a20deffa1
4
+ data.tar.gz: d0eafb3cb825203670397b2ad59ad4e6d84a1832ee1356c6b0da5f6cc647f1cb
5
5
  SHA512:
6
- metadata.gz: 5247dda94f0c4742c1b040e3bd80dd904d9580f4db232f3b8bb69123454ca8cf68ea98b7988c099168cb2575d64c89ac1f64b61276f183ad542959016238ecbe
7
- data.tar.gz: 1919c8a75611b4e463cf4ec5d92a9b9bcabd16f1b70d3e76ae3576c501c1d1b8481f8beddb43ea3450f0400a0ff3081411a8dbc12e9322ae581cb2dbce0f879b
6
+ metadata.gz: db86da6920957cd0a821cc660ccc489e38cc0906cb7d4e1113d9d12799dbce238d575cdd9b7ea6e8dc12b230eb83bce40991d45be4111177168e79e7abae81c0
7
+ data.tar.gz: 5e04bf59a81ab3f48d46379e1f8cf430e5e2f27d8e03f3bdf482fe5dfe05b02a0cba4e42f63a5ee07aebcf131ef94d1d83e9e54f4cf461a3357c0634ec65791f
data/Gemfile.lock ADDED
@@ -0,0 +1,24 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ towise (0.1.8)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ faraday (0.15.4)
10
+ multipart-post (>= 1.2, < 3)
11
+ multipart-post (2.0.0)
12
+ rake (10.5.0)
13
+
14
+ PLATFORMS
15
+ ruby
16
+
17
+ DEPENDENCIES
18
+ bundler (~> 2.0)
19
+ faraday (~> 0.15.4)
20
+ rake (~> 10.0)
21
+ towise!
22
+
23
+ BUNDLED WITH
24
+ 2.0.1
data/README.md CHANGED
@@ -1,43 +1,43 @@
1
- # Towise
2
1
 
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/towise`. To experiment with that code, run `bin/console` for an interactive prompt.
2
+ # TOWISE RUBY API
3
+ Towise assists you to detect human faces and bodies with using the latest and reliable technology.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
5
+ ## Getting Started
6
+ ### Prerequisites
7
+ ```
8
+ ruby 2.6.3
9
+ gem 3.0.3
8
10
 
9
- Add this line to your application's Gemfile:
11
+ ```
12
+ ### Installing
13
+ To install the package
10
14
 
15
+ ```sh
16
+ gem install towise
17
+ ```
18
+ To import your project
11
19
  ```ruby
12
- gem 'towise'
20
+ require "towise"
13
21
  ```
22
+ ### Using Towise
23
+ You must enter appKey and appId
14
24
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install towise
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
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.
25
+ For Example:
26
+ ```ruby
27
+ require "towise"
30
28
 
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).
29
+ image_url = "https://cdn.onebauer.media/one/media/5c6e/80bc/d007/9656/5f0a/6c12/dua-lipa-brits.jpg"
30
+ t = Towise::API.new({"appid"=>"your appId","appkey"=>"your appKey"})
31
+ puts t.faceDetect(image_url)
32
+ ```
32
33
 
33
- ## Contributing
34
+ ## Versioning
35
+ For the versions available, see the https://github.com/argedor/TowiseNodeJSAPI/tags
34
36
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/towise. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
37
+ ## Authors
38
+ * **Harun Keleşoğlu** - *Developer* - [Github](https://github.com/harunkelesoglu)
39
+ See also the list of [contributers](https://github.com/argedor/TowiseNodeJSAPI/graphs/contributors)
36
40
 
37
41
  ## License
38
42
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
-
41
- ## Code of Conduct
42
-
43
- Everyone interacting in the Towise project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/towise/blob/master/CODE_OF_CONDUCT.md).
43
+ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
data/lib/constants.rb ADDED
@@ -0,0 +1,13 @@
1
+ module Constants
2
+ BASE_URL = "https://api.towise.io"
3
+ DETECT = {
4
+ "face" => "/detect/face",
5
+ "body" => "/detect/person",
6
+ "emotion" => "/detect/emotion"
7
+ }
8
+ RECOGNIZE = {
9
+ "face" => "/recognize/face"
10
+ }
11
+ PERSONS = "/persons/"
12
+ FACES = "/faces/"
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Towise
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: towise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - harunkelesoglu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -64,11 +64,13 @@ files:
64
64
  - ".gitignore"
65
65
  - CODE_OF_CONDUCT.md
66
66
  - Gemfile
67
+ - Gemfile.lock
67
68
  - LICENSE.txt
68
69
  - README.md
69
70
  - Rakefile
70
71
  - bin/console
71
72
  - bin/setup
73
+ - lib/constants.rb
72
74
  - lib/towise.rb
73
75
  - lib/towise/version.rb
74
76
  - towise.gemspec