abstractor 1.0.22 → 1.0.23
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 +8 -8
- data/app/assets/stylesheets/abstractor/abstractor_abstractions.css +3 -4
- data/app/views/abstractor/abstractor_abstraction_groups/_form.html.haml +0 -2
- data/app/views/abstractor/abstractor_abstractions/_list.html.haml +0 -1
- data/app/views/abstractor/abstractor_abstractions/edit.html.haml +3 -0
- data/db/migrate/20140716184049_add_dynamic_list_method_to_abstractor_subjects.rb +5 -0
- data/lib/abstractor/methods/models/abstractor_subject.rb +1 -1
- data/lib/abstractor/setup.rb +1 -0
- data/lib/abstractor/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjVhYzRjMmQyYTc3MGFiNWQ4OWRkODQ1NmI2OTUyN2JkZTJjMmJlYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGQ2ODg1YTA4OTEwNTMzMGRiMmM0MzQzNjBlNWVlMDBjZGUxN2NmYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzlhMjAxNTdhZGY4ODZmMjhkZGQzZTgyOTM3ZGJhNjIwZjUyYjYxZjA3OTVl
|
10
|
+
M2ExNTRjNjhhZWRiZDA4Zjk2YWZiOTY3MDFhMWUyNzMyMTY5NmZkNGNlNWQz
|
11
|
+
ZDZmNjY4YzhiZGFhZTNhNTJjNjEwNmU0OWM3YTEzOGJhMDg3NjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjQzY2RjMjI3ZTAxZDlkNDdkMDk5MmI5ZjAwY2U1OGQ4YzM0MWZlZDIyODYy
|
14
|
+
ODRkZjZhZWE1MWQ1NDlkM2YxYzBhNmZiM2YyM2Y1YTE3ZTRhYTBjNGE1NDZm
|
15
|
+
YWZjMjhiN2E4Mjg4ZTRiMGMyNzNmYWExNTljNjcxMDBmMzA1ZTI=
|
@@ -32,10 +32,6 @@
|
|
32
32
|
padding: 0.75em 0.5em 0.4em 0.5em;
|
33
33
|
}
|
34
34
|
|
35
|
-
.abstractor_abstractions fieldset .delete_link {
|
36
|
-
float: right;
|
37
|
-
}
|
38
|
-
|
39
35
|
.abstractor_abstractions fieldset input.combobox {
|
40
36
|
vertical-align: bottom;
|
41
37
|
width: 12em !important;
|
@@ -311,4 +307,7 @@ span.tooltip_img {
|
|
311
307
|
|
312
308
|
.abstractor_abstraction_actions {
|
313
309
|
float: right;
|
310
|
+
}
|
311
|
+
.abstractor_abstraction_actions a {
|
312
|
+
margin: .25em;
|
314
313
|
}
|
@@ -7,9 +7,7 @@
|
|
7
7
|
|
8
8
|
.abstractor_abstraction_actions
|
9
9
|
= link_to 'Not applicable group ', Abstractor::UserInterface.abstractor_relative_path(abstractor.abstractor_abstraction_group_path(abstractor_abstraction_group, abstractor_abstraction_value: 'not applicable')), :confirm => 'Are you sure?', :method => :put, :class => "icon_link update_link", :remote => true
|
10
|
-
%br
|
11
10
|
= link_to 'Unknown group ', Abstractor::UserInterface.abstractor_relative_path(abstractor.abstractor_abstraction_group_path(abstractor_abstraction_group, abstractor_abstraction_value: 'unknown')), :confirm => 'Are you sure?', :method => :put, :class => "icon_link update_link", :remote => true
|
12
11
|
- if abstractor_abstraction_group.removable?
|
13
|
-
%br
|
14
12
|
= link_to 'Delete group', Abstractor::UserInterface.abstractor_relative_path(abstractor.abstractor_abstraction_group_path(abstractor_abstraction_group)), :confirm => 'Are you sure?', :method => :delete, :class => "icon_link delete_link", :remote => true
|
15
13
|
%hr
|
@@ -1,7 +1,6 @@
|
|
1
1
|
- about ||= @about
|
2
2
|
.abstractor_abstractions
|
3
3
|
= link_to 'Not applicable all', Abstractor::UserInterface.abstractor_relative_path(abstractor.update_all_abstractor_abstractions_path(about_type: about.class, about_id: about.id, abstractor_abstraction_value: 'not applicable')), :confirm => 'Are you sure?', :method => :put, :class => "icon_link update_link"
|
4
|
-
%br
|
5
4
|
= link_to 'Unknown all', Abstractor::UserInterface.abstractor_relative_path(abstractor.update_all_abstractor_abstractions_path(about_type: about.class, about_id: about.id, abstractor_abstraction_value: 'unknown')), :confirm => 'Are you sure?', :method => :put, :class => "icon_link update_link"
|
6
5
|
- abstractor_subject_groups = Abstractor::AbstractorSubjectGroup.joins(:abstractor_subjects).where(:abstractor_subjects => {:subject_type => about.class}).order('abstractor_subject_groups.id').not_deleted.to_a.uniq
|
7
6
|
- abstractor_subject_groups.each do |abstractor_subject_group|
|
@@ -24,6 +24,9 @@
|
|
24
24
|
- when 'list'
|
25
25
|
- values = abstraction_schema.abstractor_object_values.sort_by(&:value)
|
26
26
|
= f.select :value, values.map{|s| [s.value, s.value]}, {:include_blank => true}, :class => "combobox"
|
27
|
+
- when 'dynamic list'
|
28
|
+
- values = abstractor_abstraction.about.send(abstractor_abstraction.abstractor_subject.dynamic_list_method).sort_by { |l| l[:value] }
|
29
|
+
= f.select :value, values.map{|s| [s[:value], s[:id]]}, {:include_blank => true}, :class => "combobox"
|
27
30
|
- when 'boolean'
|
28
31
|
- ['true', 'false'].each do |value|
|
29
32
|
= f.radio_button :value, value
|
@@ -19,7 +19,7 @@ module Abstractor
|
|
19
19
|
base.send :has_many, :subject_relations, :class_name => "Abstractor::AbstractorSubjectRelation", :foreign_key => "subject_id"
|
20
20
|
|
21
21
|
|
22
|
-
base.send :attr_accessible, :abstractor_abstraction_schema, :abstractor_abstraction_schema_id, :abstractor_rule_type, :abstractor_rule_type_id, :subject_type
|
22
|
+
base.send :attr_accessible, :abstractor_abstraction_schema, :abstractor_abstraction_schema_id, :abstractor_rule_type, :abstractor_rule_type_id, :subject_type, :dynamic_list_method
|
23
23
|
base.send(:include, InstanceMethods)
|
24
24
|
end
|
25
25
|
|
data/lib/abstractor/setup.rb
CHANGED
@@ -8,6 +8,7 @@ module Abstractor
|
|
8
8
|
Abstractor::AbstractorObjectType.find_or_create_by_value('string')
|
9
9
|
Abstractor::AbstractorObjectType.find_or_create_by_value('radio button list')
|
10
10
|
Abstractor::AbstractorObjectType.find_or_create_by_value('date')
|
11
|
+
Abstractor::AbstractorObjectType.find_or_create_by_value('dynamic list')
|
11
12
|
|
12
13
|
puts 'Setting up AbstractorRuleType'
|
13
14
|
Abstractor::AbstractorRuleType.find_or_create_by_name_and_description(name: 'name/value', description:'search for value associated with name')
|
data/lib/abstractor/version.rb
CHANGED
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.
|
4
|
+
version: 1.0.23
|
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-
|
11
|
+
date: 2014-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -483,6 +483,7 @@ files:
|
|
483
483
|
- db/migrate/20131228041945_create_abstractor_suggestion_sources.rb
|
484
484
|
- db/migrate/20140618140759_add_custom_method_to_abstractor_abstraction_sources.rb
|
485
485
|
- db/migrate/20140618140828_add_custom_method_to_abstractor_suggestion_sources.rb
|
486
|
+
- db/migrate/20140716184049_add_dynamic_list_method_to_abstractor_subjects.rb
|
486
487
|
- db/seeds.rb
|
487
488
|
- lib/abstractor.rb
|
488
489
|
- lib/abstractor/abstractable.rb
|