Skip to content

Commit

Permalink
Bump to 1.0.0.pre1
Browse files Browse the repository at this point in the history
  • Loading branch information
mwpastore committed Dec 2, 2016
1 parent a47301d commit 5352d97
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 74 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/.bundle/
/.yardoc
/Gemfile.lock
Gemfile.lock
/_yardoc/
/coverage/
/doc/
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ Sinja aims to be lightweight (to the extent that Sinatra is), ORM-agnostic (to
the extent that JSONAPI::Serializers is), and opinionated (to the extent that
the JSON:API specification is).

**CAVEAT EMPTOR: This gem is still very new and under active development. The
API is mostly stable, but there still may be significant breaking changes. It
has not yet been thoroughly tested or vetted in a production environment.**

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

Expand Down
67 changes: 0 additions & 67 deletions demo-app/Gemfile.lock

This file was deleted.

3 changes: 3 additions & 0 deletions demo-app/classes/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ def role
end

graft(roles: :superuser, sideload_on: :create) do |rio|
halt 403, 'You may only assign yourself as comment author!' \
unless role?(:superuser) || rio[:id].to_i == current_user.id

resource.author = Author.with_pk!(rio[:id].to_i)
resource.save_changes(validate: !sideloaded?)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/sinja/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Sinja
VERSION = '0.2.0.beta2'.freeze
VERSION = '1.0.0.pre1'
end

0 comments on commit 5352d97

Please sign in to comment.