metamind 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 +5 -5
- data/LICENSE.txt +1 -1
- data/lib/metamind.rb +3 -1
- data/lib/metamind/version.rb +1 -1
- data/metamind.gemspec +6 -0
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ecac31a0f5cbd11226bd38fa80362ffa6876ae1e7b80762fdfb8496870fc79ad
|
4
|
+
data.tar.gz: 3e8bbd74e86b6e9e8a51e2d59224f05cbc7e48333847c000829a08ca613d53b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07fd302d2a8eb7a3f7f3050bc12254c24fc77bbe10b24c4726dd192f40e3cb5fe84e7ff2d3e10b6ccb3709f0dea6cab8259c3d7c48eb3cb3a8a9dc8d47ada29a
|
7
|
+
data.tar.gz: 799c0d0c21b799997b1ef2708615ce9cc0a84d53a3525f22a7c329fca5943dd022055f595abccf69329ef45fce8d35ca3045f4fe2cd7e455619cdd4cd195ced2
|
data/LICENSE.txt
CHANGED
data/lib/metamind.rb
CHANGED
@@ -3,6 +3,8 @@ require 'jwt'
|
|
3
3
|
require 'net/https'
|
4
4
|
require 'securerandom'
|
5
5
|
|
6
|
+
warn '[DEPRECATION] This gem has been renamed to `salesforce-einstein` and will no longer be supported. Please switch to `salesforce-einstein` as soon as possible.'
|
7
|
+
|
6
8
|
module Metamind
|
7
9
|
CRLF = "\r\n"
|
8
10
|
METAMIND_VISION_API = 'https://api.metamind.io/v1/vision'
|
@@ -29,7 +31,7 @@ module Metamind
|
|
29
31
|
end
|
30
32
|
|
31
33
|
def predict_with_url url, modelId = 'GeneralImageClassifier'
|
32
|
-
post "/predict", {sampleLocation: url, modelId: modelId}
|
34
|
+
post "#{METAMIND_VISION_API}/predict", {sampleLocation: url, modelId: modelId}
|
33
35
|
end
|
34
36
|
|
35
37
|
# def predict_with_file path, modelId = 'GeneralImageClassifier'
|
data/lib/metamind/version.rb
CHANGED
data/metamind.gemspec
CHANGED
@@ -37,4 +37,10 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_development_dependency "rspec", "~> 3.0"
|
38
38
|
spec.add_development_dependency "webmock", "~> 2.1"
|
39
39
|
spec.add_development_dependency "timecop", "~> 0.8"
|
40
|
+
|
41
|
+
spec.post_install_message = <<-MESSAGE
|
42
|
+
! The 'oldname' gem has been deprecated and has been replaced by 'newname'.
|
43
|
+
! See: https://rubygems.org/gems/newname
|
44
|
+
! And: https://github.com/YourID/newname
|
45
|
+
MESSAGE
|
40
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metamind
|
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
|
- tzmfreedom
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -117,7 +117,10 @@ homepage: https://github.com/tzmfreedom/metamind-ruby
|
|
117
117
|
licenses:
|
118
118
|
- MIT
|
119
119
|
metadata: {}
|
120
|
-
post_install_message:
|
120
|
+
post_install_message: |2
|
121
|
+
! The 'oldname' gem has been deprecated and has been replaced by 'newname'.
|
122
|
+
! See: https://rubygems.org/gems/newname
|
123
|
+
! And: https://github.com/YourID/newname
|
121
124
|
rdoc_options: []
|
122
125
|
require_paths:
|
123
126
|
- lib
|
@@ -133,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
136
|
version: '0'
|
134
137
|
requirements: []
|
135
138
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.7.3
|
137
140
|
signing_key:
|
138
141
|
specification_version: 4
|
139
142
|
summary: API client for Salesforce MetaMind.
|