paper_trail-sinatra 0.2.0 → 0.3.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: fa087d46aa08b44ba0358bec5b68011567733f58
4
- data.tar.gz: 6b4c4944eeee144e3a3f97a2b915d9d608f05616
2
+ SHA256:
3
+ metadata.gz: 02b7ddf0982ce846ee50323035eda996cd94dc3252f1093b520b525a41fc2f22
4
+ data.tar.gz: 1248c0a0fd5d0c509396c33308a896fbdc4c559e39a2da63311df2831cea2eaf
5
5
  SHA512:
6
- metadata.gz: 8ab94f9f5e1f2873e8f7815fa1a6938a6618aebde19a609dc0494cca172e7a0bce73431e0b904ca0b2df80b29d9bb7c9a08aa5ddfe65a5f7e35f239bb57abe7c
7
- data.tar.gz: 5bbbadfd6d4a56589064c94030985df9de4411d7ebd510c550a500ac34a1e0a8e76005f8e27ad48931e0938e2b185ea53b62596bd7a4e6e757d92cd7fd80a885
6
+ metadata.gz: 854c929dd6a47cd3284e5ed1207ebfd5917c1e38348890ff9e7580cfac014fefa42d4fa7b3b7dc3864595a59c33e71300f8a7892eca95ad122a3fefabce25dfe
7
+ data.tar.gz: 7137fb6dc2db905aabd5e60bbaf512eae371c32942999b4e3959a52329c4d3f44055392c8650e0f0607d3b28db539a3b81f92ba7f47d5b561e46085fb91aedbc
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ .ruby-version
1
2
  /.bundle/
2
3
  /.yardoc
3
4
  /Gemfile.lock
data/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- ## Unreleased
3
+ ## 0.3.0 (2017-12-10)
4
4
 
5
5
  Breaking Changes
6
6
 
@@ -8,13 +8,15 @@ Breaking Changes
8
8
 
9
9
  Added
10
10
 
11
- - None
11
+ - Update dependency constraints
12
+ - paper_trail >= 7, < 9
13
+ - sinatra >= 1.0.0, < 3
12
14
 
13
15
  Fixed
14
16
 
15
17
  - None
16
18
 
17
- ## 0.2.0 2017-05-25
19
+ ## 0.2.0 (2017-05-25)
18
20
 
19
21
  Breaking Changes
20
22
 
@@ -28,6 +30,6 @@ Fixed
28
30
 
29
31
  - None
30
32
 
31
- ## 0.1.0 2017-03-20
33
+ ## 0.1.0 (2017-03-20)
32
34
 
33
35
  Initial release
data/README.md CHANGED
@@ -3,14 +3,12 @@
3
3
  Register this module inside your Sinatra application to gain access to
4
4
  controller-level methods used by PaperTrail.
5
5
 
6
- To configure PaperTrail for usage with [Sinatra][12], your `Sinatra` app must be
7
- using `ActiveRecord` 3 or 4. There is no released version of sinatra yet that is
8
- compatible with AR 5. We expect sinatra 2.0 to support AR 5, but it will have
9
- breaking changes that will require changes to PaperTrail.
10
-
11
- It is also recommended to use the
12
- [Sinatra ActiveRecord Extension][13] or something similar for managing your
13
- applications `ActiveRecord` connection in a manner similar to the way `Rails`
6
+ To configure PaperTrail for usage with [Sinatra][1], your `Sinatra` app must be
7
+ using `ActiveRecord` 3, 4, or 5.
8
+
9
+ It is recommended to use the
10
+ [Sinatra ActiveRecord Extension][2] or something similar for managing your
11
+ application's `ActiveRecord` connection in a manner similar to the way `Rails`
14
12
  does. If using the aforementioned `Sinatra ActiveRecord Extension`, steps for
15
13
  setting up your app with PaperTrail will look something like this:
16
14
 
@@ -25,7 +23,7 @@ gem 'paper_trail-sinatra'
25
23
 
26
24
  `bundle exec rake db:create_migration NAME=create_versions`
27
25
 
28
- 3. Copy contents of [create_versions.rb][14]
26
+ 3. Copy contents of [create_versions.rb][3]
29
27
  into the `create_versions` migration that was generated into your `db/migrate` directory.
30
28
 
31
29
  4. Run the migration.
@@ -41,7 +39,7 @@ It will set `PaperTrail.whodunnit` to whatever is returned by a method named
41
39
  `user_for_paper_trail` which you can define inside your Sinatra Application. (by
42
40
  default it attempts to invoke a method named `current_user`)
43
41
 
44
- If you're using the modular [`Sinatra::Base`][15] style of application, you will
42
+ If you're using the modular [`Sinatra::Base`][4] style of application, you will
45
43
  need to register the extension:
46
44
 
47
45
  ```ruby
@@ -63,3 +61,8 @@ sqlite3 db/test.sqlite3
63
61
  .read spec/create_db.sql
64
62
  bundle exec rspec
65
63
  ```
64
+
65
+ [1]: http://www.sinatrarb.com
66
+ [2]: https://github.com/janko-m/sinatra-activerecord
67
+ [3]: https://raw.github.com/airblade/paper_trail/master/lib/generators/paper_trail/templates/create_versions.rb
68
+ [4]: http://www.sinatrarb.com/intro.html#Modular%20vs.%20Classic%20Style
@@ -1,5 +1,5 @@
1
1
  module PaperTrail
2
2
  module Sinatra
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -19,15 +19,19 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
+ # PT 7 requires ruby >= 2.1.0. We don't technically need the same constraint
23
+ # in this project, but it's helpful for local development.
24
+ spec.required_ruby_version = ">= 2.1.0"
25
+
22
26
  spec.add_dependency "activesupport", [">= 4.0", "< 6"]
23
27
 
24
28
  spec.add_dependency "bundler", "~> 1.13"
25
29
 
26
- # This gem should # not be used with PT < 7 because both define
30
+ # This gem should not be used with PT < 7 because both define
27
31
  # `::PaperTrail::Sinatra`.
28
- spec.add_dependency "paper_trail", "~> 7"
32
+ spec.add_dependency "paper_trail", [">= 7", "< 9"]
29
33
 
30
- spec.add_dependency "sinatra", [">= 1.0.0", "<= 2"]
34
+ spec.add_dependency "sinatra", [">= 1.0.0", "< 3"]
31
35
  spec.add_development_dependency "rack-test", "~> 0.6"
32
36
  spec.add_development_dependency "rspec", "~> 3.5"
33
37
  spec.add_development_dependency "sqlite3", "~> 1.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paper_trail-sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Beck
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-25 00:00:00.000000000 Z
11
+ date: 2017-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -48,16 +48,22 @@ dependencies:
48
48
  name: paper_trail
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '7'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '9'
54
57
  type: :runtime
55
58
  prerelease: false
56
59
  version_requirements: !ruby/object:Gem::Requirement
57
60
  requirements:
58
- - - "~>"
61
+ - - ">="
59
62
  - !ruby/object:Gem::Version
60
63
  version: '7'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '9'
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: sinatra
63
69
  requirement: !ruby/object:Gem::Requirement
@@ -65,9 +71,9 @@ dependencies:
65
71
  - - ">="
66
72
  - !ruby/object:Gem::Version
67
73
  version: 1.0.0
68
- - - "<="
74
+ - - "<"
69
75
  - !ruby/object:Gem::Version
70
- version: '2'
76
+ version: '3'
71
77
  type: :runtime
72
78
  prerelease: false
73
79
  version_requirements: !ruby/object:Gem::Requirement
@@ -75,9 +81,9 @@ dependencies:
75
81
  - - ">="
76
82
  - !ruby/object:Gem::Version
77
83
  version: 1.0.0
78
- - - "<="
84
+ - - "<"
79
85
  - !ruby/object:Gem::Version
80
- version: '2'
86
+ version: '3'
81
87
  - !ruby/object:Gem::Dependency
82
88
  name: rack-test
83
89
  requirement: !ruby/object:Gem::Requirement
@@ -149,7 +155,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
155
  requirements:
150
156
  - - ">="
151
157
  - !ruby/object:Gem::Version
152
- version: '0'
158
+ version: 2.1.0
153
159
  required_rubygems_version: !ruby/object:Gem::Requirement
154
160
  requirements:
155
161
  - - ">="
@@ -157,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
163
  version: '0'
158
164
  requirements: []
159
165
  rubyforge_project:
160
- rubygems_version: 2.6.10
166
+ rubygems_version: 2.7.2
161
167
  signing_key:
162
168
  specification_version: 4
163
169
  summary: Sinatra support for paper_trail