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: baaa1b6df1b052ab3bcf5f3ed7620290040328f2
4
- data.tar.gz: cae4b1b08d93db0c37edb7436d52ceaad4c66766
3
+ metadata.gz: 2a061d566e99d4c51eb64e933e20c1a87d8055fa
4
+ data.tar.gz: 3c110a04810414ee724e1ecfffdc05f907723da4
5
5
  SHA512:
6
- metadata.gz: 93838c76aab24163a7b5745c679ed374206f4c5448c024d83c0e01dd0ec0938633a4ec50d03933f623e81bce7761a48f1f5e646c6eb391db73c5b291e51dbf1e
7
- data.tar.gz: 798b93ed4755ca454c91f49a41886c7f53108173b9b7dbf859574319e136b000fa3c31695810cf1249f3786a7422aba8dfadde279f35aa9e5eb7e14af83f382c
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 the stanford-core-nlp gem to your Gemfile. Currently need to use the master branch of the official repository until a new version of the gem is released:
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', :git => 'https://github.com/louismullie/stanford-core-nlp', branch: 'master'
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 'rest_client'
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
- RestClient.post(suggestion_endpoint, body.to_json, content_type: :json)
174
+ HTTParty.post(suggestion_endpoint, body: body.to_json, headers: { 'Content-Type' => 'application/json' })
175
175
  end
176
176
  end
177
177
 
@@ -1,3 +1,3 @@
1
1
  module Abstractor
2
- VERSION = '4.3.2'
2
+ VERSION = '4.3.3'
3
3
  end
@@ -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.2
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-03-28 00:00:00.000000000 Z
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: rest-client
182
+ name: httparty
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '1.7'
187
+ version: 0.13.0
188
188
  - - ">="
189
189
  - !ruby/object:Gem::Version
190
- version: 1.7.0
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: '1.7'
197
+ version: 0.13.0
198
198
  - - ">="
199
199
  - !ruby/object:Gem::Version
200
- version: 1.7.0
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