paper_trail-sinatra 0.4.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6d6d8c636449a424b7c0abdbc05cc80bdfe79d2a
4
- data.tar.gz: a0a674060d20173bc2fdc012b91d479043ab5f38
2
+ SHA256:
3
+ metadata.gz: c1ae428dbe47f144a4f96dd698bc538c30fd54fbe1887d40ad885b93fdb09c2d
4
+ data.tar.gz: be39c611be9c5139750ba27b3c7a4955399af72ae1b9ea9320a22c16295e9034
5
5
  SHA512:
6
- metadata.gz: 7e4c53518748ed4db5417ca3c55c345e4e4e29df03e354e3c728800e3568695f674e8b10748b7613afc9d512b7b153337c9fca274fa3424a3ddf58bdb40f6cfa
7
- data.tar.gz: 0b1a95a6976c92541cfd027e85b61f21aa682c19f9421cd59f0ce354ded240254d5173bd84c0e4f3683412186fe51f58f8a1f63fb2e3f14abb678a21fa4860b9
6
+ metadata.gz: 7006cc84101f9c7afc80e6f2665aafc71eafce1aca4527f5fc54942e084d8ac2f80e3a0414ae9ebf9b5a66af1d0e25b5176c50f24a80c97d8eef1580115fb86c
7
+ data.tar.gz: 25759f2f93eb102832ad9dfa117f8fc47aa1b8f9551472c74ec345f14814f678da2da2c03d0fe19afde2951dbf913c0ccb296ffd2e39e1980715468097ef8d63
data/.gitignore CHANGED
@@ -6,7 +6,7 @@
6
6
  /coverage/
7
7
  /doc/
8
8
  /pkg/
9
- /spec/gemfiles/*.lock
9
+ /gemfiles/*.lock
10
10
  /spec/reports/
11
11
  /spec/examples.txt
12
12
  /tmp/
@@ -0,0 +1,106 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ # Please:
4
+ #
5
+ # - Comment any deviations from the Ruby Style Guide
6
+ # - Alphabetize cops
7
+ # - Only include permanent config; temporary goes in .rubocop_todo.yml
8
+
9
+ AllCops:
10
+ Exclude:
11
+ # This is where travis CI installs our bundle. If we don't exclude it,
12
+ # travis will try to lint all of our dependencies XD
13
+ - gemfiles/vendor/bundle/**/*
14
+
15
+ # Set to lowest supported version
16
+ TargetRubyVersion: 2.3
17
+
18
+ Layout/AlignParameters:
19
+ EnforcedStyle: with_fixed_indentation
20
+
21
+ Layout/DotPosition:
22
+ EnforcedStyle: trailing
23
+
24
+ Layout/MultilineMethodCallIndentation:
25
+ EnforcedStyle: indented
26
+
27
+ Layout/MultilineOperationIndentation:
28
+ EnforcedStyle: indented
29
+
30
+ # Use exactly one space on each side of an operator. Do not align operators
31
+ # because it makes the code harder to edit, and makes lines unnecessarily long.
32
+ Layout/SpaceAroundOperators:
33
+ AllowForAlignment: false
34
+
35
+ # Not a useful metric compared to, e.g. `AbcSize`.
36
+ Metrics/BlockLength:
37
+ Enabled: false
38
+
39
+ # Not a useful metric compared to, e.g. `AbcSize`.
40
+ Metrics/ClassLength:
41
+ Enabled: false
42
+
43
+ # The Ruby Style Guide recommends to "Limit lines to 80 characters."
44
+ # (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
45
+ # Please aim for 80, but up to 100 is OK.
46
+ Metrics/LineLength:
47
+ Max: 100
48
+
49
+ # The number of lines in a method is not a useful metric compared to `AbcSize`.
50
+ # It's common to have very long methods (> 50 lines) which are quite simple. For
51
+ # example, a method that returns a long string with only a few interpolations.
52
+ Metrics/MethodLength:
53
+ Enabled: false
54
+
55
+ # Not a useful metric compared to, e.g. `AbcSize`.
56
+ Metrics/ModuleLength:
57
+ Enabled: false
58
+
59
+ # Heredocs are usually assigned to a variable or constant, which already has a
60
+ # name, so naming the heredoc doesn't add much value. Feel free to name
61
+ # heredocs that are used as anonymous values (not a variable, constant, or
62
+ # named parameter).
63
+ #
64
+ # All heredocs containing SQL should be named SQL, to support editor syntax
65
+ # highlighting.
66
+ Naming/HeredocDelimiterNaming:
67
+ Enabled: false
68
+
69
+ # Too subtle to lint.
70
+ # Two-letter param names are OK. Consider `send_email(to:, cc:)`.
71
+ # Even one-letter names are OK. Consider `draw_point(x, y)`.
72
+ Naming/UncommunicativeMethodParamName:
73
+ Enabled: false
74
+
75
+ # Please use semantic style, e.g. `do` when there's a side-effect, else `{}`.
76
+ # The semantic style is too nuanced to lint, so the cop is disabled.
77
+ Style/BlockDelimiters:
78
+ Enabled: false
79
+
80
+ # Use double negation wherever it would otherwise be impractical to convert
81
+ # a value to an actual boolean.
82
+ Style/DoubleNegation:
83
+ Enabled: false
84
+
85
+ # Avoid annotated tokens except in desperately complicated format strings.
86
+ # In 99% of format strings they actually make it less readable.
87
+ Style/FormatStringToken:
88
+ Enabled: false
89
+
90
+ # The decision of when to use a guard clause to improve readability is subtle,
91
+ # and it's not clear that it can be linted. Certainly, the default
92
+ # `MinBodyLength` of 1 can actually hurt readability.
93
+ Style/GuardClause:
94
+ Enabled: false
95
+
96
+ # Only use postfix (modifier) conditionals for utterly simple statements.
97
+ # As a rule of thumb, the entire statement should not exceed 60 chars.
98
+ # Rubocop used to support this level of configuration, but no longer does.
99
+ Style/IfUnlessModifier:
100
+ Enabled: false
101
+
102
+ # The Ruby Style Guide does not prescribe a particular quote character, only
103
+ # that a project should pick one and be consistent. The decision has no
104
+ # performance implications. Double quotes are slightly easier to read.
105
+ Style/StringLiterals:
106
+ EnforcedStyle: double_quotes
@@ -0,0 +1,85 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-05-08 22:55:10 -0400 using RuboCop version 0.55.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 4
10
+ # Configuration parameters: CountComments, ExcludedMethods.
11
+ Metrics/BlockLength:
12
+ Max: 42
13
+
14
+ # Offense count: 1
15
+ # Cop supports --auto-correct.
16
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
17
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining
18
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
19
+ # FunctionalMethods: let, let!, subject, watch
20
+ # IgnoredMethods: lambda, proc, it
21
+ Style/BlockDelimiters:
22
+ Exclude:
23
+ - 'lib/paper_trail/sinatra.rb'
24
+
25
+ # Offense count: 1
26
+ Style/Documentation:
27
+ Exclude:
28
+ - 'spec/**/*'
29
+ - 'test/**/*'
30
+ - 'lib/paper_trail/sinatra/version.rb'
31
+
32
+ # Offense count: 1
33
+ # Cop supports --auto-correct.
34
+ Style/Encoding:
35
+ Exclude:
36
+ - 'paper_trail-sinatra.gemspec'
37
+
38
+ # Offense count: 1
39
+ # Cop supports --auto-correct.
40
+ Style/ExpandPathArguments:
41
+ Exclude:
42
+ - 'paper_trail-sinatra.gemspec'
43
+
44
+ Style/FrozenStringLiteralComment:
45
+ Enabled: false
46
+
47
+ # Offense count: 2
48
+ # Cop supports --auto-correct.
49
+ Style/IfUnlessModifier:
50
+ Exclude:
51
+ - 'lib/paper_trail/sinatra.rb'
52
+ - 'spec/spec_helper.rb'
53
+
54
+ # Offense count: 1
55
+ # Cop supports --auto-correct.
56
+ Style/MutableConstant:
57
+ Exclude:
58
+ - 'lib/paper_trail/sinatra/version.rb'
59
+
60
+ # Offense count: 149
61
+ # Cop supports --auto-correct.
62
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
63
+ # SupportedStyles: single_quotes, double_quotes
64
+ Style/StringLiterals:
65
+ Exclude:
66
+ - 'bin/console'
67
+ - 'lib/paper_trail/sinatra.rb'
68
+ - 'lib/paper_trail/sinatra/version.rb'
69
+ - 'paper_trail-sinatra.gemspec'
70
+ - 'spec/gem_version_spec.rb'
71
+ - 'spec/gemfiles/Gemfile_pt7_sinatra1.rb'
72
+ - 'spec/gemfiles/Gemfile_pt7_sinatra2.rb'
73
+ - 'spec/gemfiles/Gemfile_pt8_sinatra1.rb'
74
+ - 'spec/gemfiles/Gemfile_pt8_sinatra2.rb'
75
+ - 'spec/gemfiles/Gemfile_pt9_sinatra1.rb'
76
+ - 'spec/gemfiles/Gemfile_pt9_sinatra2.rb'
77
+ - 'spec/modular_sinatra_spec.rb'
78
+ - 'spec/sinatra_spec.rb'
79
+ - 'spec/spec_helper.rb'
80
+
81
+ # Offense count: 1
82
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
83
+ # URISchemes: http, https
84
+ Metrics/LineLength:
85
+ Max: 89
@@ -5,18 +5,22 @@ before_script:
5
5
  - mkdir db
6
6
  - touch db/test.sqlite3
7
7
  - sqlite3 db/test.sqlite3 < spec/create_db.sql
8
+ cache: bundler
8
9
  gemfile:
9
- - spec/gemfiles/Gemfile_pt7_sinatra1.rb
10
- - spec/gemfiles/Gemfile_pt7_sinatra2.rb
11
- - spec/gemfiles/Gemfile_pt8_sinatra1.rb
12
- - spec/gemfiles/Gemfile_pt8_sinatra2.rb
10
+ - gemfiles/pt9_sinatra1.rb
11
+ - gemfiles/pt9_sinatra2.rb
12
+ - gemfiles/pt10_sinatra1.rb
13
+ - gemfiles/pt10_sinatra2.rb
14
+ - gemfiles/pt11_sinatra1.rb
15
+ - gemfiles/pt11_sinatra2.rb
13
16
  language: ruby
14
17
 
15
- # For ruby compatibility, we test the highest and lowest minor versions only.
18
+ # For ruby compatibility, we usually only test the highest and lowest supported
19
+ # versions.
16
20
  rvm:
17
- - 2.5.0
18
- - 2.2.9
21
+ - 2.6.6
19
22
 
20
23
  script:
24
+ - bundle exec rubocop
21
25
  - bundle exec rspec
22
26
  sudo: false
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
+
3
8
  ## Unreleased
4
9
 
5
10
  Breaking Changes
@@ -14,6 +19,83 @@ Fixed
14
19
 
15
20
  - None
16
21
 
22
+ ## 0.8.0 (2021-01-06)
23
+
24
+ Breaking Changes
25
+
26
+ - None
27
+
28
+ Added
29
+
30
+ - Support for PaperTrail 11
31
+
32
+ Fixed
33
+
34
+ - None
35
+
36
+ ## 0.7.0 (2020-04-23)
37
+
38
+ Breaking Changes
39
+
40
+ - None
41
+
42
+ Added
43
+
44
+ - None
45
+
46
+ Fixed
47
+
48
+ - [#11](https://github.com/paper-trail-gem/paper_trail-sinatra/pull/11) - Drop
49
+ `activesupport` dependency, thus allowing `activerecord` 6.0
50
+
51
+ ## 0.6.1 (2019-03-18)
52
+
53
+ Breaking Changes
54
+
55
+ - None
56
+
57
+ Added
58
+
59
+ - None
60
+
61
+ Fixed
62
+
63
+ - None
64
+
65
+ Dependencies
66
+
67
+ - Drop support for EoL rubies, < 2.3
68
+ - Drop support for PT < 9
69
+
70
+ ## 0.6.0 (2018-12-17)
71
+
72
+ Breaking Changes
73
+
74
+ - None
75
+
76
+ Added
77
+
78
+ - Support for PaperTrail 10
79
+
80
+ Fixed
81
+
82
+ - None
83
+
84
+ ## 0.5.0 (2018-05-08)
85
+
86
+ Breaking Changes
87
+
88
+ - None
89
+
90
+ Added
91
+
92
+ - Support for PaperTrail 9
93
+ - PaperTrail::Sinatra.gem_version
94
+
95
+ Fixed
96
+
97
+ - None
98
+
17
99
  ## 0.4.0 (2018-02-22)
18
100
 
19
101
  Breaking Changes
@@ -0,0 +1,14 @@
1
+ ## Contributing
2
+
3
+ ```
4
+ git clone
5
+ bundle
6
+ mkdir db
7
+ sqlite3 db/test.sqlite3
8
+ .read spec/create_db.sql
9
+ bundle exec rubocop
10
+
11
+ # Test specific dependency versions
12
+ BUNDLE_GEMFILE=gemfiles/pt9_sinatra2.rb bundle
13
+ BUNDLE_GEMFILE=gemfiles/pt9_sinatra2.rb bundle exec rspec
14
+ ```
data/Gemfile CHANGED
@@ -1,2 +1,4 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
  gemspec
3
+
4
+ gem 'rake'
data/README.md CHANGED
@@ -4,7 +4,7 @@ Register this module inside your Sinatra application to gain access to
4
4
  controller-level methods used by PaperTrail.
5
5
 
6
6
  To configure PaperTrail for usage with [Sinatra][1], your `Sinatra` app must be
7
- using `ActiveRecord` 3, 4, or 5.
7
+ using `ActiveRecord` 3, 4, 5, or 6.
8
8
 
9
9
  It is recommended to use the
10
10
  [Sinatra ActiveRecord Extension][2] or something similar for managing your
@@ -62,17 +62,6 @@ class BlehApp < Sinatra::Base
62
62
  end
63
63
  ```
64
64
 
65
- ## Contributing
66
-
67
- ```
68
- git clone
69
- bundle
70
- mkdir db
71
- sqlite3 db/test.sqlite3
72
- .read spec/create_db.sql
73
- bundle exec rspec
74
- ```
75
-
76
65
  [1]: http://www.sinatrarb.com
77
66
  [2]: https://github.com/janko-m/sinatra-activerecord
78
67
  [3]: https://raw.github.com/airblade/paper_trail/master/lib/generators/paper_trail/templates/create_versions.rb
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+ gemspec(path: "..")
3
+ gem "activesupport", "~> 5.2"
4
+ gem "paper_trail", "~> 10.0"
5
+ gem "sinatra", "~> 1.4"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+ gemspec(path: "..")
3
+ gem "activesupport", "~> 5.2"
4
+ gem "paper_trail", "~> 10.0"
5
+ gem "sinatra", "~> 2.0.0"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+ gemspec(path: "..")
3
+ gem "activesupport", "~> 6.0"
4
+ gem "paper_trail", "~> 11.0"
5
+ gem "sinatra", "~> 1.4"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+ gemspec(path: "..")
3
+ gem "activesupport", "~> 6.0"
4
+ gem "paper_trail", "~> 11.0"
5
+ gem "sinatra", "~> 2.0.0"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+ gemspec(path: "..")
3
+ gem "activesupport", "~> 5.2"
4
+ gem "paper_trail", "9.0.1"
5
+ gem "sinatra", "1.4.8"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+ gemspec(path: "..")
3
+ gem "activesupport", "~> 5.2"
4
+ gem "paper_trail", "9.0.1"
5
+ gem "sinatra", "2.0.0"
@@ -20,15 +20,14 @@ module PaperTrail
20
20
  protected
21
21
 
22
22
  # Returns the user who is responsible for any changes that occur.
23
- # By default this calls `current_user` and returns the result.
23
+ # By default this calls `current_user#id` and falls back to
24
+ # `current_user`.
24
25
  #
25
26
  # Override this method in your controller to call a different
26
27
  # method, e.g. `current_person`, or anything you like.
27
28
  def user_for_paper_trail
28
29
  return unless defined?(current_user)
29
- ActiveSupport::VERSION::MAJOR >= 4 ? current_user.try!(:id) : current_user.try(:id)
30
- rescue NoMethodError
31
- current_user
30
+ current_user&.id || current_user
32
31
  end
33
32
 
34
33
  # Returns any information about the controller or request that you
@@ -66,19 +65,34 @@ module PaperTrail
66
65
 
67
66
  # Tells PaperTrail who is responsible for any changes that occur.
68
67
  def set_paper_trail_whodunnit
69
- ::PaperTrail.whodunnit = user_for_paper_trail if ::PaperTrail.enabled?
68
+ return unless ::PaperTrail.enabled?
69
+ if ::Gem::Version.new(::PaperTrail::VERSION) >= ::Gem::Version.new('9')
70
+ ::PaperTrail.request.whodunnit = user_for_paper_trail
71
+ else
72
+ ::PaperTrail.whodunnit = user_for_paper_trail
73
+ end
70
74
  end
71
75
 
72
76
  # Tells PaperTrail any information from the controller you want to store
73
77
  # alongside any changes that occur.
74
78
  def set_paper_trail_request_info
75
- ::PaperTrail.controller_info = info_for_paper_trail if ::PaperTrail.enabled?
79
+ return unless ::PaperTrail.enabled?
80
+ if ::Gem::Version.new(::PaperTrail::VERSION) >= ::Gem::Version.new('9')
81
+ ::PaperTrail.request.controller_info = info_for_paper_trail
82
+ else
83
+ ::PaperTrail.controller_info = info_for_paper_trail
84
+ end
76
85
  end
77
86
 
78
87
  # Tells PaperTrail whether versions should be saved in the current
79
88
  # request.
80
89
  def set_paper_trail_enabled_for_request
81
- ::PaperTrail.enabled_for_controller = paper_trail_enabled_for_request if ::PaperTrail.enabled?
90
+ return unless ::PaperTrail.enabled?
91
+ if ::Gem::Version.new(::PaperTrail::VERSION) >= ::Gem::Version.new('9')
92
+ ::PaperTrail.request.enabled = paper_trail_enabled_for_request
93
+ else
94
+ ::PaperTrail.enabled_for_controller = paper_trail_enabled_for_request
95
+ end
82
96
  end
83
97
  end
84
98
  end
@@ -1,5 +1,11 @@
1
1
  module PaperTrail
2
2
  module Sinatra
3
- VERSION = "0.4.0"
3
+ VERSION = "0.8.0"
4
+
5
+ # Added in 0.5.0
6
+ # @api public
7
+ def self.gem_version
8
+ ::Gem::Version.new(VERSION)
9
+ end
4
10
  end
5
11
  end
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'paper_trail/sinatra/version'
@@ -16,22 +17,16 @@ Gem::Specification.new do |spec|
16
17
  end
17
18
  spec.executables = []
18
19
  spec.require_paths = ["lib"]
19
-
20
- # PT 7 requires ruby >= 2.1.0. We don't technically need the same constraint
21
- # in this project, but it's helpful for local development.
22
- spec.required_ruby_version = ">= 2.2.0"
23
-
24
- spec.add_dependency "activesupport", [">= 4.2", "< 6"]
25
-
26
- # Why constrain bundler? Is there a better way?
27
- spec.add_dependency "bundler", "~> 1.13"
20
+ spec.required_ruby_version = ">= 2.3.0"
28
21
 
29
22
  # This gem should not be used with PT < 7 because both define
30
23
  # `::PaperTrail::Sinatra`.
31
- spec.add_dependency "paper_trail", [">= 7", "< 9"]
24
+ spec.add_dependency "paper_trail", ">= 9"
32
25
 
33
26
  spec.add_dependency "sinatra", [">= 1.0.0", "< 3"]
27
+ spec.add_development_dependency "bundler", [">= 1.13", "< 3"]
34
28
  spec.add_development_dependency "rack-test", "~> 0.6"
35
- spec.add_development_dependency "rspec", "~> 3.5"
36
- spec.add_development_dependency "sqlite3", "~> 1.3"
29
+ spec.add_development_dependency "rspec", "~> 3.7"
30
+ spec.add_development_dependency "rubocop", "~> 0.55.0"
31
+ spec.add_development_dependency "sqlite3", "~> 1.4.0"
37
32
  end
metadata CHANGED
@@ -1,86 +1,66 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paper_trail-sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Beck
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-22 00:00:00.000000000 Z
11
+ date: 2021-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activesupport
14
+ name: paper_trail
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '6'
19
+ version: '9'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '4.2'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '6'
33
- - !ruby/object:Gem::Dependency
34
- name: bundler
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '1.13'
40
- type: :runtime
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '1.13'
26
+ version: '9'
47
27
  - !ruby/object:Gem::Dependency
48
- name: paper_trail
28
+ name: sinatra
49
29
  requirement: !ruby/object:Gem::Requirement
50
30
  requirements:
51
31
  - - ">="
52
32
  - !ruby/object:Gem::Version
53
- version: '7'
33
+ version: 1.0.0
54
34
  - - "<"
55
35
  - !ruby/object:Gem::Version
56
- version: '9'
36
+ version: '3'
57
37
  type: :runtime
58
38
  prerelease: false
59
39
  version_requirements: !ruby/object:Gem::Requirement
60
40
  requirements:
61
41
  - - ">="
62
42
  - !ruby/object:Gem::Version
63
- version: '7'
43
+ version: 1.0.0
64
44
  - - "<"
65
45
  - !ruby/object:Gem::Version
66
- version: '9'
46
+ version: '3'
67
47
  - !ruby/object:Gem::Dependency
68
- name: sinatra
48
+ name: bundler
69
49
  requirement: !ruby/object:Gem::Requirement
70
50
  requirements:
71
51
  - - ">="
72
52
  - !ruby/object:Gem::Version
73
- version: 1.0.0
53
+ version: '1.13'
74
54
  - - "<"
75
55
  - !ruby/object:Gem::Version
76
56
  version: '3'
77
- type: :runtime
57
+ type: :development
78
58
  prerelease: false
79
59
  version_requirements: !ruby/object:Gem::Requirement
80
60
  requirements:
81
61
  - - ">="
82
62
  - !ruby/object:Gem::Version
83
- version: 1.0.0
63
+ version: '1.13'
84
64
  - - "<"
85
65
  - !ruby/object:Gem::Version
86
66
  version: '3'
@@ -104,29 +84,43 @@ dependencies:
104
84
  requirements:
105
85
  - - "~>"
106
86
  - !ruby/object:Gem::Version
107
- version: '3.5'
87
+ version: '3.7'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '3.7'
95
+ - !ruby/object:Gem::Dependency
96
+ name: rubocop
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: 0.55.0
108
102
  type: :development
109
103
  prerelease: false
110
104
  version_requirements: !ruby/object:Gem::Requirement
111
105
  requirements:
112
106
  - - "~>"
113
107
  - !ruby/object:Gem::Version
114
- version: '3.5'
108
+ version: 0.55.0
115
109
  - !ruby/object:Gem::Dependency
116
110
  name: sqlite3
117
111
  requirement: !ruby/object:Gem::Requirement
118
112
  requirements:
119
113
  - - "~>"
120
114
  - !ruby/object:Gem::Version
121
- version: '1.3'
115
+ version: 1.4.0
122
116
  type: :development
123
117
  prerelease: false
124
118
  version_requirements: !ruby/object:Gem::Requirement
125
119
  requirements:
126
120
  - - "~>"
127
121
  - !ruby/object:Gem::Version
128
- version: '1.3'
129
- description:
122
+ version: 1.4.0
123
+ description:
130
124
  email:
131
125
  - jared@jaredbeck.com
132
126
  executables: []
@@ -134,13 +128,23 @@ extensions: []
134
128
  extra_rdoc_files: []
135
129
  files:
136
130
  - ".gitignore"
131
+ - ".rubocop.yml"
132
+ - ".rubocop_todo.yml"
137
133
  - ".travis.yml"
138
134
  - CHANGELOG.md
135
+ - CONTRIBUTING.md
139
136
  - Gemfile
140
137
  - LICENSE
141
138
  - README.md
139
+ - Rakefile
142
140
  - bin/console
143
141
  - bin/setup
142
+ - gemfiles/pt10_sinatra1.rb
143
+ - gemfiles/pt10_sinatra2.rb
144
+ - gemfiles/pt11_sinatra1.rb
145
+ - gemfiles/pt11_sinatra2.rb
146
+ - gemfiles/pt9_sinatra1.rb
147
+ - gemfiles/pt9_sinatra2.rb
144
148
  - lib/paper_trail/sinatra.rb
145
149
  - lib/paper_trail/sinatra/version.rb
146
150
  - paper_trail-sinatra.gemspec
@@ -148,7 +152,7 @@ homepage: https://github.com/jaredbeck/paper_trail-sinatra
148
152
  licenses:
149
153
  - GPL-3.0
150
154
  metadata: {}
151
- post_install_message:
155
+ post_install_message:
152
156
  rdoc_options: []
153
157
  require_paths:
154
158
  - lib
@@ -156,16 +160,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
156
160
  requirements:
157
161
  - - ">="
158
162
  - !ruby/object:Gem::Version
159
- version: 2.2.0
163
+ version: 2.3.0
160
164
  required_rubygems_version: !ruby/object:Gem::Requirement
161
165
  requirements:
162
166
  - - ">="
163
167
  - !ruby/object:Gem::Version
164
168
  version: '0'
165
169
  requirements: []
166
- rubyforge_project:
167
- rubygems_version: 2.6.14
168
- signing_key:
170
+ rubygems_version: 3.0.8
171
+ signing_key:
169
172
  specification_version: 4
170
173
  summary: Sinatra support for paper_trail
171
174
  test_files: []