martinet 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.github_changelog_generator +4 -0
- data/.rubocop.yml +1 -2
- data/.travis.yml +3 -3
- data/CHANGELOG.md +24 -2
- data/Gemfile +2 -0
- data/Rakefile +2 -0
- data/lib/martinet.rb +2 -0
- data/lib/martinet/configuration.rb +2 -0
- data/lib/martinet/impersonation.rb +2 -0
- data/lib/martinet/session.rb +2 -0
- data/lib/martinet/test/helpers.rb +19 -0
- data/lib/martinet/version.rb +3 -1
- data/martinet.gemspec +5 -1
- metadata +41 -12
- metadata.gz.sig +2 -1
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7253726511dd39cfd7b1bb082c824cc8670a71c0
|
4
|
+
data.tar.gz: 8bd9ed7fc5df5669680c86c48472ddf4e20c989c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69455666d6852d77a0979ea91d0f8cb398334ba08fc89eb10b3e3824751cb2ede0c984519e21278b20d250d99080e3258c08bf5549d8bfcc9b40c50552e3ec46
|
7
|
+
data.tar.gz: 076123de96c60a6e683bd2e539b869c610380a44a137824a31ffa6fef88c0e2cc30d512c4276755aad1d5b9c6415ac373473ee61ee2127174f4637875cf9e544
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -2,8 +2,8 @@ language: ruby
|
|
2
2
|
|
3
3
|
rvm:
|
4
4
|
- ruby-head
|
5
|
-
- 2.3.
|
6
|
-
- 2.2.
|
5
|
+
- 2.3.1
|
6
|
+
- 2.2.5
|
7
7
|
- 2.1.10
|
8
8
|
|
9
9
|
before_install:
|
@@ -11,7 +11,7 @@ before_install:
|
|
11
11
|
- gem update bundler
|
12
12
|
- gem cleanup bundler
|
13
13
|
|
14
|
-
bundler_args: --without tools --
|
14
|
+
bundler_args: --without tools --jobs=3 --retry=3
|
15
15
|
|
16
16
|
branches:
|
17
17
|
only:
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
-
#
|
1
|
+
# Change Log
|
2
2
|
|
3
|
-
|
3
|
+
## [0.2.0](https://github.com/TangRufus/martinet/tree/0.2.0) (Tuesday, 03-May-2016)
|
4
|
+
[Full Changelog](https://github.com/TangRufus/martinet/compare/v0.1.1...0.2.0)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- Use minitest reporter [\#8](https://github.com/TangRufus/martinet/pull/8) ([TangRufus](https://github.com/TangRufus))
|
9
|
+
- Add Martinet::Test::Helpers [\#7](https://github.com/TangRufus/martinet/pull/7) ([TangRufus](https://github.com/TangRufus))
|
10
|
+
- Add rubocop [\#6](https://github.com/TangRufus/martinet/pull/6) ([TangRufus](https://github.com/TangRufus))
|
11
|
+
- Update bundler [\#5](https://github.com/TangRufus/martinet/pull/5) ([TangRufus](https://github.com/TangRufus))
|
12
|
+
- Upgrade to ruby 2.3.1 [\#4](https://github.com/TangRufus/martinet/pull/4) ([TangRufus](https://github.com/TangRufus))
|
13
|
+
|
14
|
+
## [v0.1.1](https://github.com/TangRufus/martinet/tree/v0.1.1) (Tuesday, 26-April-2016)
|
15
|
+
[Full Changelog](https://github.com/TangRufus/martinet/compare/v0.1.0...v0.1.1)
|
16
|
+
|
17
|
+
**Merged pull requests:**
|
18
|
+
|
19
|
+
- Add gem signing [\#3](https://github.com/TangRufus/martinet/pull/3) ([TangRufus](https://github.com/TangRufus))
|
20
|
+
- Add badges and milestoner config [\#2](https://github.com/TangRufus/martinet/pull/2) ([TangRufus](https://github.com/TangRufus))
|
21
|
+
- Clone from Martinet v0.0.5 [\#1](https://github.com/TangRufus/martinet/pull/1) ([TangRufus](https://github.com/TangRufus))
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/lib/martinet.rb
CHANGED
data/lib/martinet/session.rb
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'warden'
|
4
|
+
|
5
|
+
module Martinet
|
6
|
+
module Test
|
7
|
+
module Helpers
|
8
|
+
include Warden::Test::Mock
|
9
|
+
|
10
|
+
def setup
|
11
|
+
request.env['warden'] = warden
|
12
|
+
end
|
13
|
+
|
14
|
+
def teardown
|
15
|
+
Warden.test_reset!
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/martinet/version.rb
CHANGED
data/martinet.gemspec
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
2
4
|
lib = File.expand_path('../lib', __FILE__)
|
3
5
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
6
|
require 'martinet/version'
|
@@ -26,8 +28,10 @@ Gem::Specification.new do |spec|
|
|
26
28
|
|
27
29
|
spec.add_dependency 'warden', '~> 1.2', '>= 1.2.6'
|
28
30
|
|
29
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
31
|
+
spec.add_development_dependency 'bundler', '~> 1.12'
|
30
32
|
spec.add_development_dependency 'rake', '~> 11.1', '>= 11.1.2'
|
31
33
|
spec.add_development_dependency 'minitest', '~> 5.8', '>= 5.8.4'
|
34
|
+
spec.add_development_dependency 'minitest-reporters', '~> 1.1', '>= 1.1.9'
|
32
35
|
spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.5.0'
|
36
|
+
spec.add_development_dependency 'rubocop', '~> 0.39.0'
|
33
37
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: martinet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tang Rufus
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
DVxnVfAOCAf0EB5NYjdPLfQMjzcQ/3NnCnz6bojdioEweja0cAe/N7KVT/53//5P
|
31
31
|
gbYkHKhrKfuyt6qFGj4ucKISu8bYg3rh
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2016-
|
33
|
+
date: 2016-05-03 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: warden
|
@@ -58,20 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
62
|
-
- - ">="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 1.11.2
|
61
|
+
version: '1.12'
|
65
62
|
type: :development
|
66
63
|
prerelease: false
|
67
64
|
version_requirements: !ruby/object:Gem::Requirement
|
68
65
|
requirements:
|
69
66
|
- - "~>"
|
70
67
|
- !ruby/object:Gem::Version
|
71
|
-
version: '1.
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 1.11.2
|
68
|
+
version: '1.12'
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: rake
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,6 +106,26 @@ dependencies:
|
|
112
106
|
- - ">="
|
113
107
|
- !ruby/object:Gem::Version
|
114
108
|
version: 5.8.4
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: minitest-reporters
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - "~>"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '1.1'
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: 1.1.9
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '1.1'
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: 1.1.9
|
115
129
|
- !ruby/object:Gem::Dependency
|
116
130
|
name: codeclimate-test-reporter
|
117
131
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,6 +140,20 @@ dependencies:
|
|
126
140
|
- - "~>"
|
127
141
|
- !ruby/object:Gem::Version
|
128
142
|
version: 0.5.0
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: rubocop
|
145
|
+
requirement: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 0.39.0
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - "~>"
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: 0.39.0
|
129
157
|
description: Authorization component for warden
|
130
158
|
email:
|
131
159
|
- tangrufus@gmail.com
|
@@ -134,6 +162,7 @@ extensions: []
|
|
134
162
|
extra_rdoc_files: []
|
135
163
|
files:
|
136
164
|
- ".codeclimate.yml"
|
165
|
+
- ".github_changelog_generator"
|
137
166
|
- ".gitignore"
|
138
167
|
- ".hound.yml"
|
139
168
|
- ".milestonerrc"
|
@@ -146,12 +175,12 @@ files:
|
|
146
175
|
- LICENSE.md
|
147
176
|
- README.md
|
148
177
|
- Rakefile
|
149
|
-
- bin/setup
|
150
178
|
- certs/tangrufus.pem
|
151
179
|
- lib/martinet.rb
|
152
180
|
- lib/martinet/configuration.rb
|
153
181
|
- lib/martinet/impersonation.rb
|
154
182
|
- lib/martinet/session.rb
|
183
|
+
- lib/martinet/test/helpers.rb
|
155
184
|
- lib/martinet/version.rb
|
156
185
|
- martinet.gemspec
|
157
186
|
homepage: https://github.com/TangRufus/martinet
|
@@ -175,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
204
|
version: '0'
|
176
205
|
requirements: []
|
177
206
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.6.
|
207
|
+
rubygems_version: 2.6.4
|
179
208
|
signing_key:
|
180
209
|
specification_version: 4
|
181
210
|
summary: Authorization component for warden
|
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
�2�{��e>]�|H.�ѝ�|�8 �,��Ԉ�x��m�G����gk���A+�bf"3x����v2�ڧ����콑ߎ��;�QN���:�(�8�M�X�-�c���"�ۡ�Rn�� Fﬓ����XM�i�ؑo�JI�)(�6�\u��ҩ�J��)
|
2
|
+
�(dGϽ��}]/���G�����sI���Y�淢]����,�ݔX��f�цggd,�ܬRsZ���կ��^!��]�Q�)@��SwkuB��#P� k~E�
|
data/bin/setup
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
#! /bin/bash
|
2
|
-
|
3
|
-
set -o nounset # Exit, with error message, when attempting to use an undefined variable.
|
4
|
-
set -o errexit # Abort script at first error, when a command exits with non-zero status.
|
5
|
-
set -o pipefail # Return exit status of the last command in the pipe that returned a non-zero return value.
|
6
|
-
IFS=$'\n\t' # Defines newlines and tabs as delimiters for splitting words and iterating arrays.
|
7
|
-
|
8
|
-
bundle install
|