works_cited 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/VERSION +1 -1
- data/app/models/works_cited/citation.rb +12 -0
- data/app/models/works_cited/contributor.rb +6 -0
- data/works_cited.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 223c3627849389e812e67066663b6cb86d852f55023788b6e230a749587c2ac7
|
4
|
+
data.tar.gz: 2f9237bacc4fb387c6cfdd29fa8dafe44b34edef6589270cf28001ec0911b32b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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.
|
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.
|
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-
|
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.
|
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-
|
11
|
+
date: 2021-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|