Skip to content

Commit

Permalink
refactor organisation contributor metadata: metanorma/metanorma-nist#103
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Nov 23, 2023
1 parent f9a117a commit 2d8d723
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ Encoding.default_internal = Encoding::UTF_8
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}" }

gemspec
group :development, :test do
gem "rspec"
end

if File.exist? 'Gemfile.devel'
eval File.read('Gemfile.devel'), nil, 'Gemfile.devel' # rubocop:disable Security/Eval
if File.exist? "Gemfile.devel"
eval File.read("Gemfile.devel"), nil, "Gemfile.devel" # rubocop:disable Security/Eval
end

#gem "metanorma-cli"
gemspec
2 changes: 2 additions & 0 deletions Gemfile.devel
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gem "metanorma-standoc", git: "https://github.com/metanorma/metanorma-standoc", branch: "features/logos"

6 changes: 6 additions & 0 deletions lib/metanorma/ietf/front.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def metadata_author(node, xml)
personal_author(node, xml)
end

=begin
def metadata_publisher(node, xml)
publishers = node.attr("publisher") || "IETF"
csv_split(publishers)&.each do |p|
Expand All @@ -30,6 +31,11 @@ def metadata_copyright(node, xml)
end
end
end
=end

def default_publisher
"IETF"
end

def org_abbrev
{ "Internet Engineering Task Force" => "IETF" }
Expand Down

0 comments on commit 2d8d723

Please sign in to comment.