open_calais 0.2.0 → 0.4.0
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 +5 -5
- data/.travis.yml +9 -2
- data/README.md +12 -8
- data/Rakefile +1 -0
- data/lib/open_calais.rb +7 -18
- data/lib/open_calais/client.rb +2 -4
- data/lib/open_calais/configuration.rb +2 -3
- data/lib/open_calais/connection.rb +11 -8
- data/lib/open_calais/response.rb +61 -28
- data/lib/open_calais/version.rb +1 -1
- data/open_calais.gemspec +5 -6
- data/test/client_test.rb +12 -13
- data/test/configuration_test.rb +1 -2
- data/test/open_calais_test.rb +7 -8
- data/test/test_helper.rb +0 -1
- metadata +14 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 34b051160ea2d22366cacafdcb786d98e7671c49cfd67798095e0563b08766bc
|
4
|
+
data.tar.gz: fc056e88eb523daeaa03d14e5b70ceb5797b352e062dbf15d7807b204dc99491
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8765c48314b227bee03d5fd88c7e6e178724574a316b139c651a27da1ad8d992fd33bf54ae419d76a68d88d44bc0535df5195c47ce905e405104adc13f13b08d
|
7
|
+
data.tar.gz: 01b798fb0b54312b077c1ef3cc38fa926dc86ce395323bcfeef4ae24410838bc1b944b6d363c1ac49d36282761eef0f7996f9f0e2aa3e3d2cca6f86ade3c3a21
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -4,14 +4,18 @@
|
|
4
4
|
[](https://travis-ci.org/PRX/open_calais)
|
5
5
|
[](https://codeclimate.com/github/PRX/open_calais)
|
6
6
|
[](https://coveralls.io/r/PRX/open_calais?branch=master)
|
7
|
-
[](https://gemnasium.com/PRX/open_calais)
|
8
7
|
|
9
|
-
|
10
|
-
### Gem Version 0.2.* now uses the upgraded API http://new.opencalais.com/upgrade/
|
8
|
+
_Gem Version 0.1.* supports the original OpenCalais API_
|
11
9
|
|
12
|
-
|
10
|
+
_Gem Version 0.2.* now uses the upgraded API http://www.opencalais.com/_
|
13
11
|
|
14
|
-
|
12
|
+
_Gem Version 0.4.* supports refinitiv API_
|
13
|
+
|
14
|
+
Open Calais is now found at: https://developers.refinitiv.com/open-permid/intelligent-tagging-restful-api
|
15
|
+
|
16
|
+
It has a new default endpoint: https://api-eit.refinitiv.com/permid/calais
|
17
|
+
|
18
|
+
This is a ruby gem to access the (formerly OpenCalais) [Refinitiv Intelligent Tagging API](https://developers.refinitiv.com/open-permid/intelligent-tagging-restful-api), using the REST API, and JSON responses.
|
15
19
|
|
16
20
|
It uses [Faraday](https://github.com/lostisland/faraday) to abstract HTTP library (defaults to use excon because it is excellent), and multi_json to abstract JSON parsing.
|
17
21
|
|
@@ -33,7 +37,7 @@ Or install it yourself as:
|
|
33
37
|
|
34
38
|
## Usage
|
35
39
|
|
36
|
-
OpenCalais has one main method, `enrich`, and so does the gem:
|
40
|
+
Intelligent Tagging (OpenCalais) has one main method, `enrich`, and so does the gem:
|
37
41
|
|
38
42
|
```ruby
|
39
43
|
require 'open_calais'
|
@@ -44,7 +48,7 @@ OpenCalais.configure do |c|
|
|
44
48
|
end
|
45
49
|
|
46
50
|
# or you can configure for a single call
|
47
|
-
open_calais = OpenCalais::Client.new(:api_key=>'an api key')
|
51
|
+
open_calais = OpenCalais::Client.new(:api_key => 'an api key')
|
48
52
|
|
49
53
|
# it returns a OpenCalais::Response instance
|
50
54
|
response = open_calais.enrich('Ruby on Rails is a fantastic web framework. It uses MVC, and the Ruby programming language invented by Matz in Japan.')
|
@@ -54,7 +58,7 @@ response.raw
|
|
54
58
|
|
55
59
|
# and has been parsed a bit to get :language, :topics, :tags, :entities, :relations, :locations
|
56
60
|
# as lists of hashes
|
57
|
-
response.tags.each{|t| puts t[:name] }
|
61
|
+
response.tags.each { |t| puts t[:name] }
|
58
62
|
```
|
59
63
|
|
60
64
|
## Contributing
|
data/Rakefile
CHANGED
data/lib/open_calais.rb
CHANGED
@@ -14,30 +14,20 @@ module OpenCalais
|
|
14
14
|
:license_id => 'X-AG-Access-Token',
|
15
15
|
:content_type => 'Content-Type',
|
16
16
|
:output_format => 'outputFormat',
|
17
|
-
:
|
18
|
-
:calculate_relevance_score => 'calculateRelevanceScore',
|
19
|
-
:enable_metadata_type => 'enableMetadataType',
|
20
|
-
:doc_rdf_accessible => 'docRDFaccessible',
|
21
|
-
:discard_metadata => 'discardMetadata',
|
22
|
-
:omit_outputting_original_text => 'omitOutputtingOriginalText',
|
23
|
-
:allow_distribution => 'allowDistribution',
|
24
|
-
:allow_search => 'allowSearch',
|
25
|
-
:external_id => 'externalID',
|
26
|
-
:submitter => 'submitter'
|
17
|
+
:language => 'x-calais-language'
|
27
18
|
}
|
28
19
|
|
29
20
|
CONTENT_TYPES = {
|
30
|
-
:xml => '
|
31
|
-
:html => '
|
32
|
-
:htmlraw => '
|
21
|
+
:xml => 'text/xml',
|
22
|
+
:html => 'text/html',
|
23
|
+
:htmlraw => 'text/htmlraw',
|
33
24
|
:raw => 'text/raw'
|
34
25
|
}
|
35
26
|
|
36
27
|
OUTPUT_FORMATS = {
|
37
|
-
:rdf
|
38
|
-
:
|
39
|
-
:
|
40
|
-
:json => 'application/json'
|
28
|
+
:rdf => 'xml/rdf',
|
29
|
+
:n3 => 'text/n3',
|
30
|
+
:json => 'application/json'
|
41
31
|
}
|
42
32
|
|
43
33
|
METADATA_SOCIAL_TAGS = 'SocialTags'
|
@@ -49,5 +39,4 @@ module OpenCalais
|
|
49
39
|
GEO_TYPES = %w(City Continent Country NaturalFeature ProvinceOrState Region)
|
50
40
|
|
51
41
|
DISAMBUGUATIONS = %w(er/Company er/Geo er/Product)
|
52
|
-
|
53
42
|
end
|
data/lib/open_calais/client.rb
CHANGED
@@ -9,7 +9,7 @@ module OpenCalais
|
|
9
9
|
|
10
10
|
include Connection
|
11
11
|
|
12
|
-
attr_reader
|
12
|
+
attr_reader(*OpenCalais::Configuration.keys)
|
13
13
|
|
14
14
|
attr_accessor :current_options
|
15
15
|
|
@@ -38,7 +38,7 @@ module OpenCalais
|
|
38
38
|
|
39
39
|
def analyze(text, opts={})
|
40
40
|
raise 'Specify a value for the text' unless (text && text.length > 0)
|
41
|
-
options =
|
41
|
+
options = current_options.merge(opts)
|
42
42
|
|
43
43
|
response = connection(options).post do |request|
|
44
44
|
request.body = text
|
@@ -49,7 +49,5 @@ module OpenCalais
|
|
49
49
|
# using analyze as a standard method name
|
50
50
|
# enrich is more OpenCalais specific
|
51
51
|
alias_method :enrich, :analyze
|
52
|
-
|
53
52
|
end
|
54
|
-
|
55
53
|
end
|
@@ -17,12 +17,12 @@ module OpenCalais
|
|
17
17
|
DEFAULT_ADAPTER = :excon
|
18
18
|
|
19
19
|
# The api endpoint to get REST info from opencalais
|
20
|
-
DEFAULT_ENDPOINT = 'https://api.
|
20
|
+
DEFAULT_ENDPOINT = 'https://api-eit.refinitiv.com/permid/calais'.freeze
|
21
21
|
|
22
22
|
# The value sent in the http header for 'User-Agent' if none is set
|
23
23
|
DEFAULT_USER_AGENT = "OpenCalais Ruby Gem #{OpenCalais::VERSION}".freeze
|
24
24
|
|
25
|
-
attr_accessor
|
25
|
+
attr_accessor(*VALID_OPTIONS_KEYS)
|
26
26
|
|
27
27
|
# Convenience method to allow for global setting of configuration options
|
28
28
|
def configure
|
@@ -53,6 +53,5 @@ module OpenCalais
|
|
53
53
|
self.user_agent = DEFAULT_USER_AGENT
|
54
54
|
self
|
55
55
|
end
|
56
|
-
|
57
56
|
end
|
58
57
|
end
|
@@ -1,10 +1,15 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
require 'faraday_middleware'
|
4
|
+
require 'hashie'
|
4
5
|
|
5
6
|
module OpenCalais
|
6
7
|
module Connection
|
7
8
|
|
9
|
+
class HashieWrapper < ::Hashie::Mash
|
10
|
+
disable_warnings
|
11
|
+
end
|
12
|
+
|
8
13
|
ALLOWED_OPTIONS = [
|
9
14
|
:headers,
|
10
15
|
:url,
|
@@ -22,24 +27,22 @@ module OpenCalais
|
|
22
27
|
'Accept' => "#{OpenCalais::OUTPUT_FORMATS[:json]};charset=utf-8",
|
23
28
|
|
24
29
|
# open calais default headers
|
25
|
-
OpenCalais::HEADERS[:license_id]
|
26
|
-
OpenCalais::HEADERS[:content_type]
|
27
|
-
OpenCalais::HEADERS[:output_format]
|
28
|
-
OpenCalais::HEADERS[:
|
29
|
-
OpenCalais::HEADERS[:enable_metadata_type] => 'SocialTags',
|
30
|
-
OpenCalais::HEADERS[:doc_rdf_accessible] => 'false',
|
31
|
-
OpenCalais::HEADERS[:omit_outputting_original_text] => 'TRUE' # case matters here, actually
|
30
|
+
OpenCalais::HEADERS[:license_id] => api_key,
|
31
|
+
OpenCalais::HEADERS[:content_type] => OpenCalais::CONTENT_TYPES[:raw],
|
32
|
+
OpenCalais::HEADERS[:output_format] => OpenCalais::OUTPUT_FORMATS[:json],
|
33
|
+
OpenCalais::HEADERS[:language] => 'English'
|
32
34
|
},
|
33
35
|
:ssl => {:verify => false},
|
34
36
|
:url => endpoint
|
35
37
|
}.merge(opts)
|
36
38
|
options[:headers] = options[:headers].merge(headers)
|
37
39
|
OpenCalais::HEADERS.each{|k,v| options[:headers][v] = options.delete(k) if options.key?(k)}
|
38
|
-
options
|
40
|
+
options.select{|k,v| ALLOWED_OPTIONS.include?(k.to_sym)}
|
39
41
|
end
|
40
42
|
|
41
43
|
def connection(options={})
|
42
44
|
opts = merge_default_options(options)
|
45
|
+
FaradayMiddleware::Mashify.mash_class = HashieWrapper
|
43
46
|
Faraday::Connection.new(opts) do |connection|
|
44
47
|
connection.request :url_encoded
|
45
48
|
connection.response :mashify
|
data/lib/open_calais/response.rb
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
|
2
|
+
|
3
|
+
require 'active_support'
|
3
4
|
|
4
5
|
module OpenCalais
|
5
6
|
class Response
|
7
|
+
|
8
|
+
include ActiveSupport::Inflector
|
6
9
|
attr_accessor :raw, :language, :topics, :tags, :entities, :relations, :locations
|
7
10
|
|
8
11
|
def initialize(response)
|
@@ -19,11 +22,11 @@ module OpenCalais
|
|
19
22
|
end
|
20
23
|
|
21
24
|
def humanize_topic(topic)
|
22
|
-
topic.gsub('_', ' & ').titleize
|
25
|
+
transliterate(topic.gsub('_', ' & ').titleize)
|
23
26
|
end
|
24
27
|
|
25
28
|
def importance_to_score(imp)
|
26
|
-
case imp
|
29
|
+
case imp.to_i
|
27
30
|
when 1 then 0.9
|
28
31
|
when 2 then 0.7
|
29
32
|
else 0.5
|
@@ -38,38 +41,68 @@ module OpenCalais
|
|
38
41
|
r.each do |k,v|
|
39
42
|
case v._typeGroup
|
40
43
|
when 'topics'
|
41
|
-
self.topics << {
|
44
|
+
self.topics << {
|
45
|
+
:name => humanize_topic(v.name),
|
46
|
+
:score => v.score.to_f,
|
47
|
+
:original => v.name
|
48
|
+
}
|
42
49
|
when 'socialTag'
|
43
|
-
self.tags << {
|
50
|
+
self.tags << {
|
51
|
+
:name => v.name.gsub('_', ' and ').downcase,
|
52
|
+
:score => importance_to_score(v.importance)
|
53
|
+
}
|
44
54
|
when 'entities'
|
45
|
-
|
46
|
-
|
47
|
-
instances = Array(v.instances).select{|i| i.exact.downcase != item[:name].downcase }
|
48
|
-
item[:matches] = instances if instances && instances.size > 0
|
49
|
-
|
50
|
-
if OpenCalais::GEO_TYPES.include?(v._type)
|
51
|
-
if (v.resolutions && v.resolutions.size > 0)
|
52
|
-
r = v.resolutions.first
|
53
|
-
item[:name] = r.shortname || r.name
|
54
|
-
item[:latitude] = r.latitude
|
55
|
-
item[:longitude] = r.longitude
|
56
|
-
item[:country] = r.containedbycountry if r.containedbycountry
|
57
|
-
item[:state] = r.containedbystate if r.containedbystate
|
58
|
-
end
|
59
|
-
self.locations << item
|
60
|
-
else
|
61
|
-
self.entities << item
|
62
|
-
end
|
55
|
+
parse_entity(k, v)
|
63
56
|
when 'relations'
|
64
|
-
|
65
|
-
item[:type] = v._type.remove_formatting.titleize
|
66
|
-
self.relations << item
|
57
|
+
parse_relation(k, v)
|
67
58
|
end
|
68
59
|
end
|
69
60
|
|
70
61
|
# remove social tags which are in the topics list already
|
71
|
-
topic_names = self.topics.collect{|topic| topic[:name].downcase}
|
72
|
-
self.tags.delete_if{|tag| topic_names.include?(tag[:name]) }
|
62
|
+
topic_names = self.topics.collect { |topic| topic[:name].downcase }
|
63
|
+
self.tags.delete_if { |tag| topic_names.include?(tag[:name]) }
|
64
|
+
end
|
65
|
+
|
66
|
+
def parse_entity(k, v)
|
67
|
+
if v.name.nil?
|
68
|
+
v.name = v.instances.first[:exact]
|
69
|
+
end
|
70
|
+
|
71
|
+
item = {
|
72
|
+
:guid => k,
|
73
|
+
:name => v.name,
|
74
|
+
:type => transliterate(v._type).titleize,
|
75
|
+
:score => v.relevance
|
76
|
+
}
|
77
|
+
|
78
|
+
instances = Array(v.instances).select { |i| i.exact.downcase != item[:name].downcase }
|
79
|
+
if instances && instances.size > 0
|
80
|
+
item[:matches] = instances
|
81
|
+
end
|
82
|
+
|
83
|
+
if OpenCalais::GEO_TYPES.include?(v._type)
|
84
|
+
self.locations << set_location_info(item, v)
|
85
|
+
else
|
86
|
+
self.entities << item
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
def set_location_info(item, v)
|
91
|
+
if (v.resolutions && v.resolutions.size > 0)
|
92
|
+
r = v.resolutions.first
|
93
|
+
item[:name] = r.shortname || r.name
|
94
|
+
item[:latitude] = r.latitude
|
95
|
+
item[:longitude] = r.longitude
|
96
|
+
item[:country] = r.containedbycountry if r.containedbycountry
|
97
|
+
item[:state] = r.containedbystate if r.containedbystate
|
98
|
+
end
|
99
|
+
item
|
100
|
+
end
|
101
|
+
|
102
|
+
def parse_relation(k, v)
|
103
|
+
item = v.reject { |key,val| key[0] == '_' || key == 'instances' } || {}
|
104
|
+
item[:type] = transliterate(v._type).titleize
|
105
|
+
self.relations << item
|
73
106
|
end
|
74
107
|
end
|
75
108
|
end
|
data/lib/open_calais/version.rb
CHANGED
data/open_calais.gemspec
CHANGED
@@ -11,21 +11,20 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.summary = %q{This is a gem to call the OpenCalais improved REST API.}
|
12
12
|
gem.description = %q{This is a gem to call the OpenCalais improved REST API. http://www.opencalais.com/ http://www.opencalais.com/documentation/calais-web-service-api/api-invocation/rest}
|
13
13
|
gem.homepage = "https://github.com/PRX/open_calais"
|
14
|
-
|
14
|
+
gem.license = 'MIT'
|
15
15
|
|
16
16
|
gem.files = `git ls-files`.split($/)
|
17
17
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.add_runtime_dependency('faraday'
|
22
|
-
gem.add_runtime_dependency('faraday_middleware'
|
23
|
-
gem.add_runtime_dependency('multi_json'
|
21
|
+
gem.add_runtime_dependency('faraday')
|
22
|
+
gem.add_runtime_dependency('faraday_middleware')
|
23
|
+
gem.add_runtime_dependency('multi_json')
|
24
24
|
gem.add_runtime_dependency('multi_xml')
|
25
25
|
gem.add_runtime_dependency('excon')
|
26
|
-
gem.add_runtime_dependency('hashie'
|
26
|
+
gem.add_runtime_dependency('hashie')
|
27
27
|
gem.add_runtime_dependency('activesupport')
|
28
|
-
gem.add_runtime_dependency('stringex')
|
29
28
|
|
30
29
|
gem.add_development_dependency('rake')
|
31
30
|
gem.add_development_dependency('minitest')
|
data/test/client_test.rb
CHANGED
@@ -4,37 +4,36 @@ describe OpenCalais::Client do
|
|
4
4
|
|
5
5
|
it "is initialized with defaults" do
|
6
6
|
oc = OpenCalais::Client.new
|
7
|
-
oc.current_options.wont_be_nil
|
8
|
-
oc.current_options.must_equal OpenCalais.options
|
7
|
+
_(oc.current_options).wont_be_nil
|
8
|
+
_(oc.current_options).must_equal OpenCalais.options
|
9
9
|
end
|
10
10
|
|
11
11
|
it "is initialized with specific values" do
|
12
12
|
oc = OpenCalais::Client.new(:api_key => 'current')
|
13
|
-
oc.current_options.wont_be_nil
|
14
|
-
oc.current_options.wont_equal OpenCalais.options
|
15
|
-
oc.current_options[:api_key].must_equal 'current'
|
16
|
-
oc.api_key.must_equal 'current'
|
13
|
+
_(oc.current_options).wont_be_nil
|
14
|
+
_(oc.current_options).wont_equal OpenCalais.options
|
15
|
+
_(oc.current_options[:api_key]).must_equal 'current'
|
16
|
+
_(oc.api_key).must_equal 'current'
|
17
17
|
end
|
18
18
|
|
19
19
|
it "gets tags for text" do
|
20
20
|
oc = OpenCalais::Client.new(:api_key => ENV['OPEN_CALAIS_KEY'])
|
21
21
|
response = oc.enrich("Ruby on Rails is a fantastic web framework. It uses MVC, and the ruby programming language invented by Matz")
|
22
|
-
response.wont_be_nil
|
23
|
-
response.raw.wont_be_nil
|
22
|
+
_(response).wont_be_nil
|
23
|
+
_(response.raw).wont_be_nil
|
24
24
|
end
|
25
25
|
|
26
26
|
it "passes in header options in client" do
|
27
27
|
oc = OpenCalais::Client.new(:api_key => ENV['OPEN_CALAIS_KEY'], :content_type => OpenCalais::CONTENT_TYPES[:html])
|
28
28
|
response = oc.enrich("Ruby on Rails is a fantastic web framework. It uses MVC, and the ruby programming language invented by Matz")
|
29
|
-
response.wont_be_nil
|
30
|
-
response.raw.wont_be_nil
|
29
|
+
_(response).wont_be_nil
|
30
|
+
_(response.raw).wont_be_nil
|
31
31
|
end
|
32
32
|
|
33
33
|
it "passes in header optionsin enrich" do
|
34
34
|
oc = OpenCalais::Client.new(:api_key => ENV['OPEN_CALAIS_KEY'])
|
35
35
|
response = oc.enrich("Ruby on Rails is a fantastic web framework. It uses MVC, and the ruby programming language invented by Matz", :headers => {:content_type => OpenCalais::CONTENT_TYPES[:html]})
|
36
|
-
response.wont_be_nil
|
37
|
-
response.raw.wont_be_nil
|
36
|
+
_(response).wont_be_nil
|
37
|
+
_(response.raw).wont_be_nil
|
38
38
|
end
|
39
|
-
|
40
39
|
end
|
data/test/configuration_test.rb
CHANGED
data/test/open_calais_test.rb
CHANGED
@@ -3,23 +3,22 @@ require File.expand_path(File.dirname(__FILE__) + '/test_helper')
|
|
3
3
|
describe OpenCalais do
|
4
4
|
|
5
5
|
it "has default configuration options" do
|
6
|
-
OpenCalais.options.wont_be_nil
|
7
|
-
OpenCalais.options[:adapter].must_equal OpenCalais::Configuration::DEFAULT_ADAPTER
|
6
|
+
_(OpenCalais.options).wont_be_nil
|
7
|
+
_(OpenCalais.options[:adapter]).must_equal OpenCalais::Configuration::DEFAULT_ADAPTER
|
8
8
|
end
|
9
9
|
|
10
10
|
it "can be configured" do
|
11
|
-
OpenCalais.must_respond_to(:configure)
|
11
|
+
_(OpenCalais).must_respond_to(:configure)
|
12
12
|
|
13
|
-
OpenCalais.api_key.must_be_nil
|
13
|
+
_(OpenCalais.api_key).must_be_nil
|
14
14
|
|
15
15
|
OpenCalais.configure do |c|
|
16
|
-
c.must_equal OpenCalais
|
16
|
+
_(c).must_equal OpenCalais
|
17
17
|
c.api_key = "this is a test key"
|
18
18
|
end
|
19
19
|
|
20
|
-
OpenCalais.api_key.must_equal "this is a test key"
|
20
|
+
_(OpenCalais.api_key).must_equal "this is a test key"
|
21
21
|
|
22
|
-
OpenCalais.options[:api_key].must_equal "this is a test key"
|
22
|
+
_(OpenCalais.options[:api_key]).must_equal "this is a test key"
|
23
23
|
end
|
24
|
-
|
25
24
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: open_calais
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kuklewicz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,48 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
19
|
+
version: '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: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday_middleware
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: multi_json
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
-
- - "~>"
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: '1.0'
|
47
|
+
version: '0'
|
51
48
|
type: :runtime
|
52
49
|
prerelease: false
|
53
50
|
version_requirements: !ruby/object:Gem::Requirement
|
54
51
|
requirements:
|
55
52
|
- - ">="
|
56
53
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '1.0'
|
54
|
+
version: '0'
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: multi_xml
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,20 +82,6 @@ dependencies:
|
|
88
82
|
version: '0'
|
89
83
|
- !ruby/object:Gem::Dependency
|
90
84
|
name: hashie
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - ">="
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: 0.4.0
|
96
|
-
type: :runtime
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: 0.4.0
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: activesupport
|
105
85
|
requirement: !ruby/object:Gem::Requirement
|
106
86
|
requirements:
|
107
87
|
- - ">="
|
@@ -115,7 +95,7 @@ dependencies:
|
|
115
95
|
- !ruby/object:Gem::Version
|
116
96
|
version: '0'
|
117
97
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
98
|
+
name: activesupport
|
119
99
|
requirement: !ruby/object:Gem::Requirement
|
120
100
|
requirements:
|
121
101
|
- - ">="
|
@@ -210,7 +190,8 @@ files:
|
|
210
190
|
- test/open_calais_test.rb
|
211
191
|
- test/test_helper.rb
|
212
192
|
homepage: https://github.com/PRX/open_calais
|
213
|
-
licenses:
|
193
|
+
licenses:
|
194
|
+
- MIT
|
214
195
|
metadata: {}
|
215
196
|
post_install_message:
|
216
197
|
rdoc_options: []
|
@@ -227,8 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
208
|
- !ruby/object:Gem::Version
|
228
209
|
version: '0'
|
229
210
|
requirements: []
|
230
|
-
|
231
|
-
rubygems_version: 2.4.5
|
211
|
+
rubygems_version: 3.1.2
|
232
212
|
signing_key:
|
233
213
|
specification_version: 4
|
234
214
|
summary: This is a gem to call the OpenCalais improved REST API.
|