martinet 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +9 -5
- data/.gitignore +2 -0
- data/.travis.yml +21 -3
- data/Appraisals +19 -0
- data/README.md +7 -1
- data/gemfiles/activerecord_4_0.gemfile +7 -0
- data/gemfiles/activerecord_4_0.gemfile.lock +64 -0
- data/gemfiles/activerecord_4_1.gemfile +7 -0
- data/gemfiles/activerecord_4_1.gemfile.lock +64 -0
- data/gemfiles/activerecord_4_2.gemfile +7 -0
- data/gemfiles/activerecord_4_2.gemfile.lock +64 -0
- data/gemfiles/activerecord_5_0.gemfile +7 -0
- data/gemfiles/activerecord_5_0.gemfile.lock +62 -0
- data/gemfiles/activerecord_head.gemfile +7 -0
- data/lib/martinet/active_record_serializer.rb +32 -0
- data/lib/martinet/railtie.rb +19 -0
- data/lib/martinet/version.rb +1 -1
- data/lib/martinet.rb +2 -2
- data/martinet.gemspec +10 -7
- metadata +65 -30
- data/.coveralls.yml +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7914315d279e69dcd5889732360ebecadc51a36
|
4
|
+
data.tar.gz: f22d5419bca4025fb15e1111c634dfa7291c40a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 537f987a9ad2089ffbdc68f518ce859545707f8f5cf16c39cf39ce797f2f2240f01d3f2d4dc99c0d2c554c0a9ff7695463fad80385ed26da4dac66c4e1c6c34a
|
7
|
+
data.tar.gz: 6df66ab1eaf9cd76a3946397a1426e639d9595899f1d38d24868af3e7cae24674d64e267dcb1ffa7699e14b5f468879ec2f4bae5944c76964e32e9789d5214e8
|
data/.codeclimate.yml
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
---
|
2
2
|
engines:
|
3
|
-
brakeman:
|
4
|
-
enabled: true
|
5
|
-
bundler-audit:
|
6
|
-
enabled: true
|
7
3
|
duplication:
|
8
4
|
enabled: true
|
9
5
|
config:
|
@@ -11,10 +7,18 @@ engines:
|
|
11
7
|
- ruby
|
12
8
|
fixme:
|
13
9
|
enabled: true
|
10
|
+
markdownlint:
|
11
|
+
enabled: true
|
12
|
+
reek:
|
13
|
+
enabled: true
|
14
14
|
rubocop:
|
15
15
|
enabled: true
|
16
16
|
|
17
17
|
ratings:
|
18
18
|
paths:
|
19
|
+
- lib/**/*
|
19
20
|
- "**.rb"
|
20
|
-
-
|
21
|
+
- "**.md"
|
22
|
+
|
23
|
+
exclude_paths:
|
24
|
+
- test/**/*
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -4,7 +4,27 @@ rvm:
|
|
4
4
|
- ruby-head
|
5
5
|
- 2.3.0
|
6
6
|
- 2.2.4
|
7
|
-
- 2.1.
|
7
|
+
- 2.1.10
|
8
|
+
|
9
|
+
before_install:
|
10
|
+
- gem update --system
|
11
|
+
- gem update bundler
|
12
|
+
- gem cleanup bundler
|
13
|
+
|
14
|
+
gemfile:
|
15
|
+
- gemfiles/activerecord_4_0.gemfile
|
16
|
+
- gemfiles/activerecord_4_1.gemfile
|
17
|
+
- gemfiles/activerecord_4_2.gemfile
|
18
|
+
- gemfiles/activerecord_5_0.gemfile
|
19
|
+
- gemfiles/activerecord_head.gemfile
|
20
|
+
|
21
|
+
matrix:
|
22
|
+
fast_finish: true
|
23
|
+
exclude:
|
24
|
+
- gemfile: gemfiles/activerecord_head.gemfile
|
25
|
+
rvm: 2.1.10
|
26
|
+
- gemfile: gemfiles/activerecord_5_0.gemfile
|
27
|
+
rvm: 2.1.10
|
8
28
|
|
9
29
|
branches:
|
10
30
|
only:
|
@@ -14,7 +34,5 @@ sudo: false
|
|
14
34
|
|
15
35
|
cache: bundler
|
16
36
|
|
17
|
-
before_script: 'bundle update'
|
18
|
-
|
19
37
|
notifications:
|
20
38
|
email: false
|
data/Appraisals
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
appraise 'activerecord-4-0' do
|
2
|
+
gem 'activerecord', '~> 4.0', '>= 4.0.13'
|
3
|
+
end
|
4
|
+
|
5
|
+
appraise 'activerecord-4-1' do
|
6
|
+
gem 'activerecord', '~> 4.1', '>= 4.1.15'
|
7
|
+
end
|
8
|
+
|
9
|
+
appraise 'activerecord-4-2' do
|
10
|
+
gem 'activerecord', '~> 4.2', '>= 4.2.6'
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise 'activerecord-5-0' do
|
14
|
+
gem 'activerecord', '>= 5.0.0.beta3', '< 5.1'
|
15
|
+
end
|
16
|
+
|
17
|
+
appraise 'activerecord-head' do
|
18
|
+
gem 'activerecord', github: 'rails/rails'
|
19
|
+
end
|
data/README.md
CHANGED
@@ -1,9 +1,15 @@
|
|
1
1
|
# Martinet
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/martinet.svg)](https://badge.fury.io/rb/martinet)
|
4
|
+
[![Gem](https://img.shields.io/gem/dt/martinet.svg?maxAge=2592000)](https://rubygems.org/gems/martinet)
|
3
5
|
[![Build Status](https://travis-ci.org/TangRufus/martinet.svg?branch=master)](https://travis-ci.org/TangRufus/martinet)
|
4
6
|
[![Dependency Status](https://gemnasium.com/badges/github.com/TangRufus/martinet.svg)](https://gemnasium.com/github.com/TangRufus/martinet)
|
5
7
|
[![Code Climate](https://codeclimate.com/github/TangRufus/martinet/badges/gpa.svg)](https://codeclimate.com/github/TangRufus/martinet)
|
6
|
-
[![Coverage
|
8
|
+
[![Test Coverage](https://codeclimate.com/github/TangRufus/martinet/badges/coverage.svg)](https://codeclimate.com/github/TangRufus/martinet/coverage)
|
9
|
+
[![GitHub issues](https://img.shields.io/github/issues/TangRufus/martinet.svg)](https://github.com/TangRufus/martinet/issues)
|
10
|
+
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/TangRufus/martinet/master/LICENSE.txt)
|
11
|
+
|
12
|
+
|
7
13
|
|
8
14
|
|
9
15
|
|
@@ -0,0 +1,64 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
martinet (0.0.2)
|
5
|
+
warden (~> 1.2, >= 1.2.6)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (4.2.6)
|
11
|
+
activesupport (= 4.2.6)
|
12
|
+
builder (~> 3.1)
|
13
|
+
activerecord (4.2.6)
|
14
|
+
activemodel (= 4.2.6)
|
15
|
+
activesupport (= 4.2.6)
|
16
|
+
arel (~> 6.0)
|
17
|
+
activesupport (4.2.6)
|
18
|
+
i18n (~> 0.7)
|
19
|
+
json (~> 1.7, >= 1.7.7)
|
20
|
+
minitest (~> 5.1)
|
21
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
22
|
+
tzinfo (~> 1.1)
|
23
|
+
appraisal (2.1.0)
|
24
|
+
bundler
|
25
|
+
rake
|
26
|
+
thor (>= 0.14.0)
|
27
|
+
arel (6.0.3)
|
28
|
+
builder (3.2.2)
|
29
|
+
codeclimate-test-reporter (0.5.0)
|
30
|
+
simplecov (>= 0.7.1, < 1.0.0)
|
31
|
+
docile (1.1.5)
|
32
|
+
i18n (0.7.0)
|
33
|
+
json (1.8.3)
|
34
|
+
minitest (5.8.4)
|
35
|
+
rack (1.6.4)
|
36
|
+
rake (11.1.2)
|
37
|
+
simplecov (0.11.2)
|
38
|
+
docile (~> 1.1.0)
|
39
|
+
json (~> 1.8)
|
40
|
+
simplecov-html (~> 0.10.0)
|
41
|
+
simplecov-html (0.10.0)
|
42
|
+
sqlite3 (1.3.11)
|
43
|
+
thor (0.19.1)
|
44
|
+
thread_safe (0.3.5)
|
45
|
+
tzinfo (1.2.2)
|
46
|
+
thread_safe (~> 0.1)
|
47
|
+
warden (1.2.6)
|
48
|
+
rack (>= 1.0)
|
49
|
+
|
50
|
+
PLATFORMS
|
51
|
+
ruby
|
52
|
+
|
53
|
+
DEPENDENCIES
|
54
|
+
activerecord (~> 4.0, >= 4.0.13)
|
55
|
+
appraisal (~> 2.1.0)
|
56
|
+
bundler
|
57
|
+
codeclimate-test-reporter
|
58
|
+
martinet!
|
59
|
+
minitest (~> 5.0)
|
60
|
+
rake
|
61
|
+
sqlite3
|
62
|
+
|
63
|
+
BUNDLED WITH
|
64
|
+
1.11.2
|
@@ -0,0 +1,64 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
martinet (0.0.2)
|
5
|
+
warden (~> 1.2, >= 1.2.6)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (4.2.6)
|
11
|
+
activesupport (= 4.2.6)
|
12
|
+
builder (~> 3.1)
|
13
|
+
activerecord (4.2.6)
|
14
|
+
activemodel (= 4.2.6)
|
15
|
+
activesupport (= 4.2.6)
|
16
|
+
arel (~> 6.0)
|
17
|
+
activesupport (4.2.6)
|
18
|
+
i18n (~> 0.7)
|
19
|
+
json (~> 1.7, >= 1.7.7)
|
20
|
+
minitest (~> 5.1)
|
21
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
22
|
+
tzinfo (~> 1.1)
|
23
|
+
appraisal (2.1.0)
|
24
|
+
bundler
|
25
|
+
rake
|
26
|
+
thor (>= 0.14.0)
|
27
|
+
arel (6.0.3)
|
28
|
+
builder (3.2.2)
|
29
|
+
codeclimate-test-reporter (0.5.0)
|
30
|
+
simplecov (>= 0.7.1, < 1.0.0)
|
31
|
+
docile (1.1.5)
|
32
|
+
i18n (0.7.0)
|
33
|
+
json (1.8.3)
|
34
|
+
minitest (5.8.4)
|
35
|
+
rack (1.6.4)
|
36
|
+
rake (11.1.2)
|
37
|
+
simplecov (0.11.2)
|
38
|
+
docile (~> 1.1.0)
|
39
|
+
json (~> 1.8)
|
40
|
+
simplecov-html (~> 0.10.0)
|
41
|
+
simplecov-html (0.10.0)
|
42
|
+
sqlite3 (1.3.11)
|
43
|
+
thor (0.19.1)
|
44
|
+
thread_safe (0.3.5)
|
45
|
+
tzinfo (1.2.2)
|
46
|
+
thread_safe (~> 0.1)
|
47
|
+
warden (1.2.6)
|
48
|
+
rack (>= 1.0)
|
49
|
+
|
50
|
+
PLATFORMS
|
51
|
+
ruby
|
52
|
+
|
53
|
+
DEPENDENCIES
|
54
|
+
activerecord (~> 4.1, >= 4.1.15)
|
55
|
+
appraisal (~> 2.1.0)
|
56
|
+
bundler
|
57
|
+
codeclimate-test-reporter
|
58
|
+
martinet!
|
59
|
+
minitest (~> 5.0)
|
60
|
+
rake
|
61
|
+
sqlite3
|
62
|
+
|
63
|
+
BUNDLED WITH
|
64
|
+
1.11.2
|
@@ -0,0 +1,64 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
martinet (0.0.2)
|
5
|
+
warden (~> 1.2, >= 1.2.6)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (4.2.6)
|
11
|
+
activesupport (= 4.2.6)
|
12
|
+
builder (~> 3.1)
|
13
|
+
activerecord (4.2.6)
|
14
|
+
activemodel (= 4.2.6)
|
15
|
+
activesupport (= 4.2.6)
|
16
|
+
arel (~> 6.0)
|
17
|
+
activesupport (4.2.6)
|
18
|
+
i18n (~> 0.7)
|
19
|
+
json (~> 1.7, >= 1.7.7)
|
20
|
+
minitest (~> 5.1)
|
21
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
22
|
+
tzinfo (~> 1.1)
|
23
|
+
appraisal (2.1.0)
|
24
|
+
bundler
|
25
|
+
rake
|
26
|
+
thor (>= 0.14.0)
|
27
|
+
arel (6.0.3)
|
28
|
+
builder (3.2.2)
|
29
|
+
codeclimate-test-reporter (0.5.0)
|
30
|
+
simplecov (>= 0.7.1, < 1.0.0)
|
31
|
+
docile (1.1.5)
|
32
|
+
i18n (0.7.0)
|
33
|
+
json (1.8.3)
|
34
|
+
minitest (5.8.4)
|
35
|
+
rack (1.6.4)
|
36
|
+
rake (11.1.2)
|
37
|
+
simplecov (0.11.2)
|
38
|
+
docile (~> 1.1.0)
|
39
|
+
json (~> 1.8)
|
40
|
+
simplecov-html (~> 0.10.0)
|
41
|
+
simplecov-html (0.10.0)
|
42
|
+
sqlite3 (1.3.11)
|
43
|
+
thor (0.19.1)
|
44
|
+
thread_safe (0.3.5)
|
45
|
+
tzinfo (1.2.2)
|
46
|
+
thread_safe (~> 0.1)
|
47
|
+
warden (1.2.6)
|
48
|
+
rack (>= 1.0)
|
49
|
+
|
50
|
+
PLATFORMS
|
51
|
+
ruby
|
52
|
+
|
53
|
+
DEPENDENCIES
|
54
|
+
activerecord (~> 4.2, >= 4.2.6)
|
55
|
+
appraisal (~> 2.1.0)
|
56
|
+
bundler
|
57
|
+
codeclimate-test-reporter
|
58
|
+
martinet!
|
59
|
+
minitest (~> 5.0)
|
60
|
+
rake
|
61
|
+
sqlite3
|
62
|
+
|
63
|
+
BUNDLED WITH
|
64
|
+
1.11.2
|
@@ -0,0 +1,62 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
martinet (0.0.2)
|
5
|
+
warden (~> 1.2, >= 1.2.6)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (5.0.0.beta3)
|
11
|
+
activesupport (= 5.0.0.beta3)
|
12
|
+
activerecord (5.0.0.beta3)
|
13
|
+
activemodel (= 5.0.0.beta3)
|
14
|
+
activesupport (= 5.0.0.beta3)
|
15
|
+
arel (~> 7.0)
|
16
|
+
activesupport (5.0.0.beta3)
|
17
|
+
concurrent-ruby (~> 1.0)
|
18
|
+
i18n (~> 0.7)
|
19
|
+
minitest (~> 5.1)
|
20
|
+
tzinfo (~> 1.1)
|
21
|
+
appraisal (2.1.0)
|
22
|
+
bundler
|
23
|
+
rake
|
24
|
+
thor (>= 0.14.0)
|
25
|
+
arel (7.0.0)
|
26
|
+
codeclimate-test-reporter (0.5.0)
|
27
|
+
simplecov (>= 0.7.1, < 1.0.0)
|
28
|
+
concurrent-ruby (1.0.1)
|
29
|
+
docile (1.1.5)
|
30
|
+
i18n (0.7.0)
|
31
|
+
json (1.8.3)
|
32
|
+
minitest (5.8.4)
|
33
|
+
rack (1.6.4)
|
34
|
+
rake (11.1.2)
|
35
|
+
simplecov (0.11.2)
|
36
|
+
docile (~> 1.1.0)
|
37
|
+
json (~> 1.8)
|
38
|
+
simplecov-html (~> 0.10.0)
|
39
|
+
simplecov-html (0.10.0)
|
40
|
+
sqlite3 (1.3.11)
|
41
|
+
thor (0.19.1)
|
42
|
+
thread_safe (0.3.5)
|
43
|
+
tzinfo (1.2.2)
|
44
|
+
thread_safe (~> 0.1)
|
45
|
+
warden (1.2.6)
|
46
|
+
rack (>= 1.0)
|
47
|
+
|
48
|
+
PLATFORMS
|
49
|
+
ruby
|
50
|
+
|
51
|
+
DEPENDENCIES
|
52
|
+
activerecord (>= 5.0.0.beta3, < 5.1)
|
53
|
+
appraisal (~> 2.1.0)
|
54
|
+
bundler
|
55
|
+
codeclimate-test-reporter
|
56
|
+
martinet!
|
57
|
+
minitest (~> 5.0)
|
58
|
+
rake
|
59
|
+
sqlite3
|
60
|
+
|
61
|
+
BUNDLED WITH
|
62
|
+
1.11.2
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Martinet
|
2
|
+
class ActiveRecordSerializer
|
3
|
+
def self.serialize(record:)
|
4
|
+
return record unless serializable?(record: record)
|
5
|
+
{ klass: record.class.name, record_id: record.id }
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.deserialize(object_hash:)
|
9
|
+
record_for(object_hash: object_hash) || object_hash
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.record_for(object_hash:)
|
13
|
+
return unless deserializable?(object_hash: object_hash)
|
14
|
+
|
15
|
+
record_klass = object_hash[:klass].safe_constantize
|
16
|
+
record_klass.find_by(id: object_hash[:record_id])
|
17
|
+
end
|
18
|
+
|
19
|
+
# FIXME: Refactor this method
|
20
|
+
def self.serializable?(record:)
|
21
|
+
record.respond_to?(:id) && record.id.presence && record.class.respond_to?(:find_by)
|
22
|
+
end
|
23
|
+
|
24
|
+
# FIXME: Refactor this method, maybe a rescue block?
|
25
|
+
def self.deserializable?(object_hash:)
|
26
|
+
valid = [:klass, :record_id].all? do |k|
|
27
|
+
object_hash.respond_to?(:key) && object_hash.key?(k) && object_hash[k].presence
|
28
|
+
end
|
29
|
+
valid && object_hash[:klass].safe_constantize.respond_to?(:find_by)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'warden'
|
2
|
+
require 'martinet/active_record_serializer'
|
3
|
+
|
4
|
+
module Martinet
|
5
|
+
class Railtie < Rails::Railtie
|
6
|
+
# TODO: Test me
|
7
|
+
initializer 'martinet.setup_warden-manager' do |app|
|
8
|
+
app.middleware.use Warden::Manager do |config|
|
9
|
+
config.serialize_into_session do |user|
|
10
|
+
ActiveRecordSerializer.serialize(record: user)
|
11
|
+
end
|
12
|
+
|
13
|
+
config.serialize_from_session do |object_hash|
|
14
|
+
ActiveRecordSerializer.deserialize(object_hash: object_hash)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/martinet/version.rb
CHANGED
data/lib/martinet.rb
CHANGED
data/martinet.gemspec
CHANGED
@@ -17,14 +17,17 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
18
18
|
|
19
19
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
-
spec.
|
21
|
-
|
22
|
-
spec.
|
20
|
+
spec.require_paths = 'lib'
|
21
|
+
|
22
|
+
spec.required_ruby_version = '>= 2.1.10'
|
23
23
|
|
24
24
|
spec.add_dependency 'warden', '~> 1.2', '>= 1.2.6'
|
25
25
|
|
26
|
-
spec.add_development_dependency 'bundler'
|
27
|
-
spec.add_development_dependency 'rake'
|
28
|
-
spec.add_development_dependency '
|
29
|
-
spec.add_development_dependency '
|
26
|
+
spec.add_development_dependency 'bundler'
|
27
|
+
spec.add_development_dependency 'rake'
|
28
|
+
spec.add_development_dependency 'appraisal', '~> 2.1.0'
|
29
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
30
|
+
spec.add_development_dependency 'codeclimate-test-reporter'
|
31
|
+
spec.add_development_dependency 'activerecord'
|
32
|
+
spec.add_development_dependency 'sqlite3'
|
30
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: martinet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tang Rufus
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: warden
|
@@ -34,76 +34,100 @@ dependencies:
|
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '1.11'
|
40
37
|
- - ">="
|
41
38
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
39
|
+
version: '0'
|
43
40
|
type: :development
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '1.11'
|
50
44
|
- - ">="
|
51
45
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
46
|
+
version: '0'
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: rake
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
56
50
|
requirements:
|
57
|
-
- - "~>"
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '11.1'
|
60
51
|
- - ">="
|
61
52
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
53
|
+
version: '0'
|
63
54
|
type: :development
|
64
55
|
prerelease: false
|
65
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: appraisal
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
66
64
|
requirements:
|
67
65
|
- - "~>"
|
68
66
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
70
|
-
|
67
|
+
version: 2.1.0
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
71
73
|
- !ruby/object:Gem::Version
|
72
|
-
version:
|
74
|
+
version: 2.1.0
|
73
75
|
- !ruby/object:Gem::Dependency
|
74
76
|
name: minitest
|
75
77
|
requirement: !ruby/object:Gem::Requirement
|
76
78
|
requirements:
|
77
79
|
- - "~>"
|
78
80
|
- !ruby/object:Gem::Version
|
79
|
-
version: '5.
|
81
|
+
version: '5.0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '5.0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: codeclimate-test-reporter
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
80
93
|
- - ">="
|
81
94
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
95
|
+
version: '0'
|
83
96
|
type: :development
|
84
97
|
prerelease: false
|
85
98
|
version_requirements: !ruby/object:Gem::Requirement
|
86
99
|
requirements:
|
87
|
-
- - "
|
100
|
+
- - ">="
|
88
101
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
102
|
+
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: activerecord
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
90
107
|
- - ">="
|
91
108
|
- !ruby/object:Gem::Version
|
92
|
-
version:
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
93
117
|
- !ruby/object:Gem::Dependency
|
94
|
-
name:
|
118
|
+
name: sqlite3
|
95
119
|
requirement: !ruby/object:Gem::Requirement
|
96
120
|
requirements:
|
97
|
-
- - "
|
121
|
+
- - ">="
|
98
122
|
- !ruby/object:Gem::Version
|
99
|
-
version: 0
|
123
|
+
version: '0'
|
100
124
|
type: :development
|
101
125
|
prerelease: false
|
102
126
|
version_requirements: !ruby/object:Gem::Requirement
|
103
127
|
requirements:
|
104
|
-
- - "
|
128
|
+
- - ">="
|
105
129
|
- !ruby/object:Gem::Version
|
106
|
-
version: 0
|
130
|
+
version: '0'
|
107
131
|
description: Authorization component for warden and omniauth. Devise-less
|
108
132
|
email:
|
109
133
|
- tangrufus@gmail.com
|
@@ -112,17 +136,28 @@ extensions: []
|
|
112
136
|
extra_rdoc_files: []
|
113
137
|
files:
|
114
138
|
- ".codeclimate.yml"
|
115
|
-
- ".coveralls.yml"
|
116
139
|
- ".gitignore"
|
117
140
|
- ".hound.yml"
|
118
141
|
- ".rubocop.yml"
|
119
142
|
- ".travis.yml"
|
143
|
+
- Appraisals
|
120
144
|
- CODE_OF_CONDUCT.md
|
121
145
|
- Gemfile
|
122
146
|
- LICENSE.txt
|
123
147
|
- README.md
|
124
148
|
- Rakefile
|
149
|
+
- gemfiles/activerecord_4_0.gemfile
|
150
|
+
- gemfiles/activerecord_4_0.gemfile.lock
|
151
|
+
- gemfiles/activerecord_4_1.gemfile
|
152
|
+
- gemfiles/activerecord_4_1.gemfile.lock
|
153
|
+
- gemfiles/activerecord_4_2.gemfile
|
154
|
+
- gemfiles/activerecord_4_2.gemfile.lock
|
155
|
+
- gemfiles/activerecord_5_0.gemfile
|
156
|
+
- gemfiles/activerecord_5_0.gemfile.lock
|
157
|
+
- gemfiles/activerecord_head.gemfile
|
125
158
|
- lib/martinet.rb
|
159
|
+
- lib/martinet/active_record_serializer.rb
|
160
|
+
- lib/martinet/railtie.rb
|
126
161
|
- lib/martinet/session.rb
|
127
162
|
- lib/martinet/version.rb
|
128
163
|
- martinet.gemspec
|
@@ -139,7 +174,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
174
|
requirements:
|
140
175
|
- - ">="
|
141
176
|
- !ruby/object:Gem::Version
|
142
|
-
version:
|
177
|
+
version: 2.1.10
|
143
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
179
|
requirements:
|
145
180
|
- - ">="
|
data/.coveralls.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
service_name: travis-ci
|