diff --git a/.yardopts b/.yardopts index 696a643..818e211 100644 --- a/.yardopts +++ b/.yardopts @@ -9,4 +9,3 @@ AUTHORS UNLICENSE VERSION -CHANGES.md diff --git a/Gemfile b/Gemfile index 4744899..9abfa52 100644 --- a/Gemfile +++ b/Gemfile @@ -11,7 +11,7 @@ group :development, :test do gem 'rdf-turtle', github: "ruby-rdf/rdf-turtle", branch: "develop" gem 'rdf-vocab', github: "ruby-rdf/rdf-vocab", branch: "develop" gem 'sxp', github: "dryruby/sxp.rb", branch: "develop" - gem 'rake', '~> 10.0' + gem 'rake', '~> 13.0' gem 'redcarpet', '~> 3.2.2' unless RUBY_ENGINE == 'jruby' gem 'byebug', platform: :mri gem 'psych', platforms: [:mri, :rbx] diff --git a/README.md b/README.md index a79e2ec..2edff59 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,6 @@ losing access to statement-oriented nature of linked data, if you so choose. It can be used either to access existing RDF data in a resource-oriented way, or to create a new store of RDF data based on simple defaults. -A changelog is available in the {file:CHANGES.md} file. - ### Example ```ruby diff --git a/lib/spira/base.rb b/lib/spira/base.rb index fb2a25c..96e60a9 100644 --- a/lib/spira/base.rb +++ b/lib/spira/base.rb @@ -107,12 +107,16 @@ def id # Initialize a new Spira::Base instance of this resource class using # a new blank node subject. Accepts a hash of arguments for initial # attributes. To use a URI or existing blank node as a subject, use - # {Spira.for} instead. + # the `.for` method on the subclass instead. + # + # @example + # class Person < Spira::Base; end + # bob = Person.for("bob") # # @param [Hash{Symbol => Any}] props Default attributes for this instance # @yield [self] Executes a given block # @yieldparam [self] self The newly created instance - # @see Spira.for + # @see Spira::Persistence::ClassMethods#for # @see RDF::URI#as # @see RDF::Node#as def initialize(props = {}, options = {}) diff --git a/spira.gemspec b/spira.gemspec index bf1e551..b3e6c85 100755 --- a/spira.gemspec +++ b/spira.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |gem| gem.email = 'blavender@gmail.com' gem.platform = Gem::Platform::RUBY - gem.files = %w(CHANGES.md AUTHORS README.md UNLICENSE VERSION) + Dir.glob('lib/**/*.rb') + gem.files = %w(AUTHORS README.md UNLICENSE VERSION) + Dir.glob('lib/**/*.rb') gem.require_paths = %w(lib) gem.has_yardoc = true if gem.respond_to?(:has_yardoc)