enju_subject 0.1.0.pre6 → 0.1.0.pre7

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b3fbd0d3b98bafeb64ba65c66d786198cf02d81
4
- data.tar.gz: 03e8e768a6ee6ab072aad5bc5fc33cf4b9d7391c
3
+ metadata.gz: 3c944887efaf78d8871e5dbf5f6577b792261409
4
+ data.tar.gz: a5c431d2772f71898a06dfae749eef5b5aec3929
5
5
  SHA512:
6
- metadata.gz: 7a1d84d4be7cc56d4f938f835589c29a8ae737d9941574e50275e7e54296bd19c29a1265138fda50790e758a0da76e82d2f2ff99ff0379a0d0435967a1112e83
7
- data.tar.gz: 2d1aef73854ab35545774f28924cd3aa83aaf5aab9f2e557d73129d12ba3e5e9cdf969d6ca86ab51c7641c7b97cc07695393466da014db149bd3d24dab5e5954
6
+ metadata.gz: 1c591ca724c4ad98edd01a57ad1d44dde8581a0b1443b86fcbf7909431abe4238178e8e3710ce19aeca9ed4ca5172ab515b979ddfd1f21a17b30a856b18bcd3d
7
+ data.tar.gz: a47c6a4ff4ae8dae0e67de7b0d7c7b304bf1c0a06a721ceea3cf7871d6c5fe45b17b7a9e77c23b7121213fe3f728cb51cf99b1e00147f933927d0dfbe3e6200f
@@ -14,7 +14,7 @@ module EnjuSubject
14
14
  can :manage, WorkHasSubject
15
15
  if LibraryGroup.site_config.network_access_allowed?(ip_address)
16
16
  can [:read, :create, :update], ClassificationType
17
- can :destroy, ClassificationType do |classification_type|
17
+ can [:destroy, :delete], ClassificationType do |classification_type|
18
18
  classification_type.classifications.empty?
19
19
  end
20
20
  can :manage, [
@@ -25,7 +25,7 @@
25
25
  <%- if can? :update, classification_type -%>
26
26
  <%= link_to t('page.edit'), edit_classification_type_path(classification_type) -%>
27
27
  <% end %>
28
- <%- if can? :destroy, classification_type -%>
28
+ <%- if can? :delete, classification_type -%>
29
29
  <%= link_to t('page.destroy'), classification_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
30
30
  <%- end -%>
31
31
  </td>
@@ -25,7 +25,7 @@
25
25
  <td><%= classification.note -%></td>
26
26
  <td><%= link_to classification.classification_type.display_name.localize, classification.classification_type -%></td>
27
27
  <td>
28
- <%- if can? :destroy, classification -%>
28
+ <%- if can? :delete, classification -%>
29
29
  <%= link_to t('page.edit'), edit_classification_path(classification) -%>
30
30
  <%= link_to t('page.destroy'), classification, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
31
31
  <%- end -%>
@@ -31,12 +31,12 @@
31
31
  <td><%= classification.note -%></td>
32
32
  <td><%= classification.classification_type.display_name.localize -%></td>
33
33
  <td>
34
- <%- if can? :destroy, classification -%>
34
+ <%- if can? :delete, classification -%>
35
35
  <%= link_to t('page.edit'), edit_classification_path(classification) -%>
36
36
  <% end %>
37
37
  </td>
38
38
  <td>
39
- <%- if can? :destroy, classification -%>
39
+ <%- if can? :delete, classification -%>
40
40
  <%- if params[:mode] == 'add' -%>
41
41
  <%= link_to t('page.add'), new_subject_subject_has_classification_path(@subject, :classification_id => classification.id) unless @subject.classifications.include?(classification) -%>
42
42
  <%- else -%>
@@ -16,7 +16,7 @@
16
16
  <td><%= link_to subject_has_classification.classification.category, subject_has_classification.classification -%></td>
17
17
  <td><%= link_to t('page.show'), subject_has_classification -%></td>
18
18
  <td>
19
- <% if can? :destroy, subject_has_classification %>
19
+ <% if can? :delete, subject_has_classification %>
20
20
  <%= link_to t('page.edit'), edit_subject_has_classification_path(subject_has_classification) -%>
21
21
  <%= link_to t('page.destroy'), subject_has_classification, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
22
22
  <% end %>
@@ -25,7 +25,7 @@
25
25
  <%- if can? :update, subject_heading_type -%>
26
26
  <%= link_to t('page.edit'), edit_subject_heading_type_path(subject_heading_type) -%>
27
27
  <% end %>
28
- <%- if can? :destroy, subject_heading_type -%>
28
+ <%- if can? :delete, subject_heading_type -%>
29
29
  <%= link_to t('page.destroy'), subject_heading_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
30
30
  <%- end -%>
31
31
  </td>
@@ -25,7 +25,7 @@
25
25
  <%- if can? :update, subject_type -%>
26
26
  <%= link_to t('page.edit'), edit_subject_type_path(subject_type) -%>
27
27
  <% end %>
28
- <%- if can? :destroy, subject_type -%>
28
+ <%- if can? :delete, subject_type -%>
29
29
  <%= link_to t('page.destroy'), subject_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
30
30
  <%- end -%>
31
31
  </td>
@@ -23,7 +23,7 @@
23
23
  <%- if can? :update, subject -%>
24
24
  <%= link_to t('page.edit'), edit_subject_path(subject) -%>
25
25
  <%- end -%>
26
- <%- if can? :destroy, subject -%>
26
+ <%- if can? :delete, subject -%>
27
27
  <%= link_to t('page.destroy'), subject, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
28
28
  <%- end -%>
29
29
  </td>
@@ -1,3 +1,3 @@
1
1
  module EnjuSubject
2
- VERSION = "0.1.0.pre6"
2
+ VERSION = "0.1.0.pre7"
3
3
  end
@@ -14,7 +14,7 @@
14
14
  can :manage, WorkHasSubject
15
15
  if LibraryGroup.site_config.network_access_allowed?(ip_address)
16
16
  can [:read, :create, :update], ClassificationType
17
- can :destroy, ClassificationType do |classification_type|
17
+ can [:destroy, :delete], ClassificationType do |classification_type|
18
18
  classification_type.classifications.empty?
19
19
  end
20
20
  can :manage, [
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_subject
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre6
4
+ version: 0.1.0.pre7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
@@ -420,7 +420,7 @@ files:
420
420
  - spec/dummy/solr/conf/stopwords.txt
421
421
  - spec/dummy/solr/conf/synonyms.txt
422
422
  - spec/dummy/solr/data/test/index/segments.gen
423
- - spec/dummy/solr/data/test/index/segments_14k
423
+ - spec/dummy/solr/data/test/index/segments_166
424
424
  - spec/dummy/solr/data/test/spellchecker/segments.gen
425
425
  - spec/dummy/solr/data/test/spellchecker/segments_1
426
426
  - spec/dummy/spec/fixtures/subjects.yml
@@ -654,7 +654,7 @@ test_files:
654
654
  - spec/dummy/solr/conf/stopwords.txt
655
655
  - spec/dummy/solr/conf/synonyms.txt
656
656
  - spec/dummy/solr/data/test/index/segments.gen
657
- - spec/dummy/solr/data/test/index/segments_14k
657
+ - spec/dummy/solr/data/test/index/segments_166
658
658
  - spec/dummy/solr/data/test/spellchecker/segments.gen
659
659
  - spec/dummy/solr/data/test/spellchecker/segments_1
660
660
  - spec/dummy/spec/fixtures/subjects.yml