abstractor 1.0.15 → 1.0.16

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmMxMzYzMjdiMmFjODc2MDU0YTBiNDcwYmQ0MGQ2YWVmMjE4ZTA1Zg==
4
+ MzViNmRmMjQzZWEzOWZkZWYzYWZkYWI1N2Q4NTViNjJiYzUzMmMyOA==
5
5
  data.tar.gz: !binary |-
6
- ZDRmNzc4NWVmN2IwNDVlMDUxMmE4ZDc3OWIyNTMyNmQ2ZTA0MjU0MQ==
6
+ MmY5ZmQ2M2ZhZWVhMWRkYWZlOTZjNWMzZTVkMGEzMTcyYjM2N2VjNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGQzNmYxYzFhOGNhYzJjODQ3NTc1YTUwMTUxYmQ0NDY1YTAzY2E3OTRlYWY4
10
- MzU2MTY1NGM2ODExYjA0NWRmMDdhN2MxMmNiM2MxZmFmNmI5ZmNiYmNiNGQw
11
- MTk2Nzk0ZmI1YmI0ZGE3MzBmMmY0YjViOWNkYzRiMTRjNjg1ZWE=
9
+ ZDViNWM4NzE5MzkyOTYzY2IwZjc1NGViMjJjZWM1OGU4YjcyYzM3ZTg2YTVj
10
+ MmUyMjRiYmYxOGVmOWE2MjU0M2RmYjFlM2UyNTAwNGNjZWU3YjkxZDBlYTY1
11
+ MTM5MTQ5MzhhZWM1YWU2OTIyYzUyMGEzNDQzYjc3MmQ1NzA3ZGY=
12
12
  data.tar.gz: !binary |-
13
- OWVjYzMyMWZlNzBhMDhlMmE5NGQ2ZDJlOWQxMTRhYjk3MjM1YzgxMzVjZWFl
14
- YTlkNTY2Y2E4ZThmOTRhODgyNzFjY2Y5NWFiZDIxYzE2NzJiZmU4ZjQzMjgy
15
- ODU0ZDFkOTVjN2Q3Y2VjNjc1MmNmMTFmMmUyZjQ4MTI2NTJlOWI=
13
+ MDk4MzUzNWM4Y2RlYTgyZTFkYjhiZmQ1MjhmYmM3NjQ5NWExNjk2NjhkMDE3
14
+ YTlhNzRjYTQxMzk0ZTI5ODQ5YzJhODM4NTcxODdiNGEwY2VhY2Q3ZjYxNTUy
15
+ Yjg1ODA5OGZjMjMxZTRlZWY4NGU0NWFiYzZhMWI3ZGViYjkxYWE=
data/README.md CHANGED
@@ -44,13 +44,23 @@ Some key dependencies are:
44
44
 
45
45
  Add abstractor to your Gemfile:
46
46
 
47
- gem 'abstractor'
47
+ ```ruby
48
+ gem 'abstractor'
49
+ ```
50
+
51
+ 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:
52
+
53
+ ```ruby
54
+ gem 'stanford-core-nlp', :git => 'https://github.com/louismullie/stanford-core-nlp', :branch => 'master',
55
+ ```
48
56
 
49
57
  Also add the paper\_trail gem to your Gemfile (if it is not already there):
50
58
 
51
- gem 'paper_trail'
59
+ ```ruby
60
+ gem 'paper_trail'
61
+ ```
52
62
 
53
- Bundle, install, and migrate:
63
+ Bundle, install, and migrate. The abstractor:install generator can take a long time because it needs to download and intall the Stanford CoreNLP library into your application's lib directory:
54
64
 
55
65
  * bundle install
56
66
  * bundle exec rails g abstractor:install
@@ -60,4 +70,4 @@ Bundle, install, and migrate:
60
70
  Install the paper\_trail gem (if it is not already installed in your application).
61
71
 
62
72
  * bundle exec rails g paper_trail:install
63
- * bundle exec rake db:migrate
73
+ * bundle exec rake db:migrate
@@ -7,6 +7,12 @@ Abstractor.AbstractionUI = function(){
7
7
  parent_div.load($(this).attr('href'), function(){
8
8
  parent_div.find('.combobox').combobox({watermark:'a value'});
9
9
  parent_div.find('input[type="submit"], button, a.button').button();
10
+ $('.abstractor_datepicker').datepicker({
11
+ altFormat: 'yy-mm-dd',
12
+ dateFormat: 'yy-mm-dd',
13
+ changeMonth: true,
14
+ changeYear: true
15
+ });
10
16
  });
11
17
  parent_div.addClass('highlighted');
12
18
  //parent_div.siblings('.abstractor_abstraction').block({ message: null, overlayCSS: { opacity: .2 }});
@@ -86,4 +92,4 @@ Abstractor.AbstractionGroupUI = function(){
86
92
  parent_div = $(this).closest('.abstractor_subject_groups_container');
87
93
  parent_div.find('.abstractor_subject_groups').append(xhr.responseText);
88
94
  });
89
- };
95
+ };
@@ -8,6 +8,8 @@
8
8
  = abstraction_schema.display_name
9
9
  .column-7
10
10
  - case abstraction_schema.abstractor_object_type.value
11
+ - when 'date'
12
+ = f.text_field :value, class: 'abstractor_datepicker'
11
13
  - when 'string'
12
14
  = f.text_field :value
13
15
  - when 'number'
@@ -50,4 +52,4 @@
50
52
  .column-4
51
53
  = f.submit 'Save', :class => 'button positive'
52
54
  = link_to 'Cancel', abstractor_abstraction, :class => 'button negative', :remote => true
53
- .clear
55
+ .clear
@@ -7,6 +7,7 @@ module Abstractor
7
7
  Abstractor::AbstractorObjectType.find_or_create_by_value('boolean')
8
8
  Abstractor::AbstractorObjectType.find_or_create_by_value('string')
9
9
  Abstractor::AbstractorObjectType.find_or_create_by_value('radio button list')
10
+ Abstractor::AbstractorObjectType.find_or_create_by_value('date')
10
11
 
11
12
  puts 'Setting up AbstractorRuleType'
12
13
  Abstractor::AbstractorRuleType.find_or_create_by_name_and_description(name: 'name/value', description:'search for value associated with name')
@@ -1,3 +1,3 @@
1
1
  module Abstractor
2
- VERSION = '1.0.15'
2
+ VERSION = '1.0.16'
3
3
  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: 1.0.15
4
+ version: 1.0.16
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: 2014-05-29 00:00:00.000000000 Z
11
+ date: 2014-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails