works_cited 0.1.8 → 0.1.9

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
  SHA256:
3
- metadata.gz: 0700dd54217e1115ec24a4efb43f2b28b932a22445aba2cd6581f73ac96e8b7d
4
- data.tar.gz: ccdfa97312cd844fea531b0aed7b519e38c40687d97823bc9d8207a959c6623e
3
+ metadata.gz: 223c3627849389e812e67066663b6cb86d852f55023788b6e230a749587c2ac7
4
+ data.tar.gz: 2f9237bacc4fb387c6cfdd29fa8dafe44b34edef6589270cf28001ec0911b32b
5
5
  SHA512:
6
- metadata.gz: 44fbe626c9c79601ac9fcfc0bff3fb7c30db60ada059a146e00b5454d02efdb28df239215768baee0a74e16b74193ed83e6fb65826573012d179043b13b2c67b
7
- data.tar.gz: b7f253ee5dbb629bc4f67db5768accf62be298651f3d704979cbf880a46f8461716849e1edbdfad0b37c62c6a3bbffa9b18c2f038c675dc7e33b8843d5f521e9
6
+ metadata.gz: 15cf63563065af912a02e1def2587ded8aa99810a3ed9e274c4968a8fcc91dc470c87d8f9e127dc26f79bfa0d6ca5c28b028dcb5a14099745272599cdb97c04f
7
+ data.tar.gz: 6b17e36701c2901ec5a0d38bddb726b6aa248c636ce8a5abbcf2787e13bbd3473c674499fb23a6f1affe3314b9506770217ec42bf4b1d6218a546770180100ba
data/README.md CHANGED
@@ -3,6 +3,8 @@ Works Cited allows you to add a list of the works cited in ActiveRecord objects,
3
3
 
4
4
  Works Cited uses CanCanCan to authorize the editing of citations. This makes it easy for you to control access.
5
5
 
6
+ Works Cited is compatible with, but does not require, Rails Admin.
7
+
6
8
  ## Installation
7
9
  Add this line to your application's Gemfile:
8
10
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
@@ -63,5 +63,17 @@ module WorksCited
63
63
  def email?
64
64
  citation_type == 'email'
65
65
  end
66
+
67
+ if defined?(RailsAdmin)
68
+ rails_admin do
69
+ visible false
70
+ edit do
71
+ include_all_fields
72
+ field :record do # Can't remove this using :inverse_of because it's polymorphic
73
+ visible false
74
+ end
75
+ end
76
+ end
77
+ end
66
78
  end
67
79
  end
@@ -90,5 +90,11 @@ module WorksCited
90
90
 
91
91
  middle[0, 1]&.upcase
92
92
  end
93
+
94
+ if defined?(RailsAdmin)
95
+ rails_admin do
96
+ visible false
97
+ end
98
+ end
93
99
  end
94
100
  end
data/works_cited.gemspec CHANGED
@@ -2,17 +2,17 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: works_cited 0.1.8 ruby lib
5
+ # stub: works_cited 0.1.9 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "works_cited".freeze
9
- s.version = "0.1.8"
9
+ s.version = "0.1.9"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.metadata = { "source_code_uri" => "http://github.com/gemvein/works_cited" } if s.respond_to? :metadata=
13
13
  s.require_paths = ["lib".freeze]
14
14
  s.authors = ["Loren Lundgren".freeze]
15
- s.date = "2021-09-10"
15
+ s.date = "2021-09-13"
16
16
  s.description = "Works cited allows you to add a list of the works cited in ActiveRecord objects, to be formatted by a helper that can be added to relevant pages to format the citations like a bibliography.".freeze
17
17
  s.email = "loren.lundgren@gmail.com".freeze
18
18
  s.executables = ["rails".freeze]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: works_cited
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loren Lundgren
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-10 00:00:00.000000000 Z
11
+ date: 2021-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails