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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 113d397a3f431904e5738c7f2916c3a4e4f12d78
4
- data.tar.gz: 49ddef63be4ca38b03e3b08fd47967796df5f8aa
2
+ SHA256:
3
+ metadata.gz: ecac31a0f5cbd11226bd38fa80362ffa6876ae1e7b80762fdfb8496870fc79ad
4
+ data.tar.gz: 3e8bbd74e86b6e9e8a51e2d59224f05cbc7e48333847c000829a08ca613d53b7
5
5
  SHA512:
6
- metadata.gz: 4f8f70a6fa404479391c846269cfc9ab729a94c210aa08f31e75a7682f95c74553dd11ad623ac1fbef98f7f79f9887d49f13bcd02f27c795d05f38f5b43668a9
7
- data.tar.gz: 05186f35779bc100c764407353fc94e773867899bbb247b80686e23c498938d21598c939bb9e4cd63a3aa40b8d46230c8484b77580ff65ee96c16863a12d8539
6
+ metadata.gz: 07fd302d2a8eb7a3f7f3050bc12254c24fc77bbe10b24c4726dd192f40e3cb5fe84e7ff2d3e10b6ccb3709f0dea6cab8259c3d7c48eb3cb3a8a9dc8d47ada29a
7
+ data.tar.gz: 799c0d0c21b799997b1ef2708615ce9cc0a84d53a3525f22a7c329fca5943dd022055f595abccf69329ef45fce8d35ca3045f4fe2cd7e455619cdd4cd195ced2
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 tzmfreedom
3
+ Copyright (c) 2016 Makoto Tajitsu
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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'
@@ -1,3 +1,3 @@
1
1
  module Metamind
2
- VERSION = "0.1.1"
2
+ VERSION = '0.1.2'
3
3
  end
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.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: 2016-10-11 00:00:00.000000000 Z
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.4.5.1
139
+ rubygems_version: 2.7.3
137
140
  signing_key:
138
141
  specification_version: 4
139
142
  summary: API client for Salesforce MetaMind.