abstractor 4.3.2 → 4.3.3
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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a061d566e99d4c51eb64e933e20c1a87d8055fa
|
4
|
+
data.tar.gz: 3c110a04810414ee724e1ecfffdc05f907723da4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f5ebb7723d60f1389bce4c4f9a23aea5ac6f7982079014f0c5869fef4657f46a6e90b62730806159737b4459b95caa9ed3d4f1d27ade32fd023f80c218331d6
|
7
|
+
data.tar.gz: fe161176c8a8570a50a6d24e2a43326cef54f3a602844ca9934bcb74b3044225d778df84a1cc523a3b017e5e22d11ea465fa669b23c3b5b2dadb4156062a01d6
|
data/README.md
CHANGED
@@ -51,10 +51,10 @@ or if using Rails 3
|
|
51
51
|
gem 'abstractor', :git => 'https://github.com/NUBIC/abstractor', branch: 'rails-3'
|
52
52
|
```
|
53
53
|
|
54
|
-
Add
|
54
|
+
Add our foked and released version of stanford-core-nlp gem to your Gemfile. Currently we need to use our fork until the official gem releases a new version:
|
55
55
|
|
56
56
|
```ruby
|
57
|
-
gem 'stanford-core-nlp
|
57
|
+
gem 'stanford-core-nlp-abstractor'
|
58
58
|
```
|
59
59
|
|
60
60
|
Also add the paper\_trail gem to your Gemfile (if it is not already there):
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'httparty'
|
2
2
|
module Abstractor
|
3
3
|
module Methods
|
4
4
|
module Models
|
@@ -171,7 +171,7 @@ module Abstractor
|
|
171
171
|
abstractor_abstraction_source.normalize_from_method_to_sources(about).each do |source|
|
172
172
|
abstractor_text = Abstractor::AbstractorAbstractionSource.abstractor_text(source)
|
173
173
|
body = Abstractor::CustomNlpProvider.format_body_for_suggestion_endpoint(abstractor_abstraction, abstractor_abstraction_source, abstractor_text, source)
|
174
|
-
|
174
|
+
HTTParty.post(suggestion_endpoint, body: body.to_json, headers: { 'Content-Type' => 'application/json' })
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
data/lib/abstractor/version.rb
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
module Abstractor
|
2
|
+
module AbstractorAbstractionSchemasControllerCustomMethods
|
3
|
+
def show
|
4
|
+
super
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
class AbstractorAbstractionSchemasController < ApplicationController
|
9
|
+
include Abstractor::Methods::Controllers::AbstractorAbstractionSchemasController
|
10
|
+
include Abstractor::AbstractorAbstractionSchemasControllerCustomMethods
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abstractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Gurley, Yulia Bushmanova
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -179,25 +179,25 @@ dependencies:
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: 4.0.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
182
|
+
name: httparty
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: 0.13.0
|
188
188
|
- - ">="
|
189
189
|
- !ruby/object:Gem::Version
|
190
|
-
version:
|
190
|
+
version: 0.13.3
|
191
191
|
type: :runtime
|
192
192
|
prerelease: false
|
193
193
|
version_requirements: !ruby/object:Gem::Requirement
|
194
194
|
requirements:
|
195
195
|
- - "~>"
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
197
|
+
version: 0.13.0
|
198
198
|
- - ">="
|
199
199
|
- !ruby/object:Gem::Version
|
200
|
-
version:
|
200
|
+
version: 0.13.3
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
202
|
name: sqlite3
|
203
203
|
requirement: !ruby/object:Gem::Requirement
|
@@ -604,6 +604,7 @@ files:
|
|
604
604
|
- lib/abstractor/version.rb
|
605
605
|
- lib/generators/abstractor/install/install_generator.rb
|
606
606
|
- lib/generators/abstractor/install/templates/controllers/abstractor_abstraction_groups_controller.rb
|
607
|
+
- lib/generators/abstractor/install/templates/controllers/abstractor_abstraction_schemas_controller.rb
|
607
608
|
- lib/generators/abstractor/install/templates/controllers/abstractor_abstractions_controller.rb
|
608
609
|
- lib/generators/abstractor/install/templates/controllers/abstractor_suggestions_controller.rb
|
609
610
|
- lib/generators/abstractor/install/templates/helpers/abstractions_helper.rb
|