Skip to content

Commit

Permalink
Merge pull request #636 from kmuto/set_urnid
Browse files Browse the repository at this point in the history
fix missing default dc:identifier value.
  • Loading branch information
kmuto committed May 6, 2016
2 parents ac7adac + 4f8566e commit e343003
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions lib/epubmaker/producer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
require 'tmpdir'
require 'fileutils'
require 'review/yamlloader'
require 'securerandom'
require 'epubmaker/content'
require 'epubmaker/epubv2'
require 'epubmaker/epubv3'
Expand Down Expand Up @@ -215,7 +214,6 @@ def complement
"language" => "ja",
"date" => Time.now.strftime("%Y-%m-%d"),
"modified" => Time.now.strftime("%Y-%02m-%02dT%02H:%02M:%02SZ"),
"urnid" => "urn:uid:#{SecureRandom.uuid}",
"isbn" => nil,
"toclevel" => 2,
"stylesheet" => [],
Expand Down
4 changes: 3 additions & 1 deletion lib/review/configure.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
require 'securerandom'

module ReVIEW
class Configure < Hash

Expand All @@ -23,7 +25,7 @@ def self.values
"date" => nil, # publishing date
"rights" => nil, # Copyright messages
"description" => nil, # Description
"urnid" => nil, # Identifier (nil makes random uuid)
"urnid" => "urn:uid:#{SecureRandom.uuid}", # Identifier
"stylesheet" => "stylesheet.css", # stylesheet file
"coverfile" => nil, # content file of body of cover page
"mytoc" => nil, # whether make own table of contents or not
Expand Down

0 comments on commit e343003

Please sign in to comment.