Skip to content

Commit

Permalink
chore: upgrade standard
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Aug 15, 2019
1 parent e07c003 commit 7501b25
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ create a new version with old data. Caveat: when switching to a newer version, `

```ruby
post = Post.create!(title: "first post") # v1
post.update!(title: "new title") # v2
post.undo!(append: true) # v3 (with same attributes as v1)
post.update!(title: "new title") # v2
post.undo!(append: true) # v3 (with same attributes as v1)
```

Note that `redo!` will not work after `undo!(append: true)` because the latter will create a new version
Expand Down
20 changes: 10 additions & 10 deletions logidze.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "logidze/version"

Gem::Specification.new do |spec|
spec.name = "logidze"
spec.version = Logidze::VERSION
spec.authors = ["palkan"]
spec.email = ["dementiev.vm@gmail.com"]
spec.name = "logidze"
spec.version = Logidze::VERSION
spec.authors = ["palkan"]
spec.email = ["dementiev.vm@gmail.com"]

spec.summary = "PostgreSQL JSON-based auditing"
spec.description = "PostgreSQL JSON-based auditing"
spec.homepage = "http://github.com/palkan/logidze"
spec.license = "MIT"
spec.summary = "PostgreSQL JSON-based auditing"
spec.description = "PostgreSQL JSON-based auditing"
spec.homepage = "http://github.com/palkan/logidze"
spec.license = "MIT"

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.4.0"
Expand All @@ -36,6 +36,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake", ">= 10.0"
spec.add_development_dependency "rspec-rails", ">= 3.4"
spec.add_development_dependency "rubocop-md", "~> 0.2.0"
spec.add_development_dependency "standard", "~> 0.1.0"
spec.add_development_dependency "standard", "~> 0.1.2"
spec.add_development_dependency "timecop", "~> 0.8"
end
2 changes: 1 addition & 1 deletion spec/logidze/history_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
end

describe "#version" do
specify { expect(subject.version).to eq 5 }
specify { expect(subject.version).to eq 5 }
end

describe "#versions" do
Expand Down

0 comments on commit 7501b25

Please sign in to comment.