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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65a39a124561eff680ff86bd903c9f9182a7b053
4
- data.tar.gz: c8f24cb3bf4a9656c598346a50220424927d8cad
3
+ metadata.gz: 7253726511dd39cfd7b1bb082c824cc8670a71c0
4
+ data.tar.gz: 8bd9ed7fc5df5669680c86c48472ddf4e20c989c
5
5
  SHA512:
6
- metadata.gz: aff3a2f7fef924948d625863985fed1f570a26f7e93fa3074b2f57dc17db8e2037fb90cb8de9b507c17217dccc936b4465ae80236fc68fac6929b96727374a7f
7
- data.tar.gz: 6c952963878cc1634a3ed86dfd064807e66277fd65b99ad123a58735ba223eeac8c653df337dd7365981bdc1765dbccbc2a7ff186741bcf649058db1cdff18f9
6
+ metadata.gz: 69455666d6852d77a0979ea91d0f8cb398334ba08fc89eb10b3e3824751cb2ede0c984519e21278b20d250d99080e3258c08bf5549d8bfcc9b40c50552e3ec46
7
+ data.tar.gz: 076123de96c60a6e683bd2e539b869c610380a44a137824a31ffa6fef88c0e2cc30d512c4276755aad1d5b9c6415ac373473ee61ee2127174f4637875cf9e544
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -0,0 +1,4 @@
1
+ unreleased=true
2
+ future-release=0.2.0
3
+ since-tag=v0.1.0
4
+ date-format=%d-%B-%Y
@@ -1,9 +1,8 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.1
2
+ TargetRubyVersion: 2.3
3
3
  Exclude:
4
4
  - "vendor/**/*"
5
5
  - "db/schema.rb"
6
- - "*.gemspec"
7
6
  UseCache: false
8
7
  Style/CollectionMethods:
9
8
  Description: Preferred collection methods.
@@ -2,8 +2,8 @@ language: ruby
2
2
 
3
3
  rvm:
4
4
  - ruby-head
5
- - 2.3.0
6
- - 2.2.4
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 --trust-policy=MediumSecurity --jobs=3 --retry=3
14
+ bundler_args: --without tools --jobs=3 --retry=3
15
15
 
16
16
  branches:
17
17
  only:
@@ -1,3 +1,25 @@
1
- # v0.1.0 (2016-04-26)
1
+ # Change Log
2
2
 
3
- - Initial version.
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in martinet.gemspec
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
4
  require 'gemsmith/rake/setup'
3
5
  Dir.glob('lib/tasks/*.rake').each { |file| load file }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'martinet/version'
2
4
  require 'martinet/configuration'
3
5
  require 'martinet/session'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Martinet
2
4
  class << self
3
5
  attr_writer :configuration
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Martinet
2
4
  module Impersonation
3
5
  def impersonate!(user, impersonator_scope: nil)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Martinet
2
4
  # HTTP/Warden session-specific behavior.
3
5
  class Session
@@ -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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Martinet
2
- VERSION = '0.1.1'.freeze
4
+ VERSION = '0.2.0'
3
5
  end
@@ -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.11', '>= 1.11.2'
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.1.1
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-04-26 00:00:00.000000000 Z
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.11'
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.11'
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.3
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
- ���Dԓ�q�ʸ#�b��7O��-=T0�f6h�������`�k5l98�זl[=U�Qd{�35�4�5�!)9�RmX"WaNyIW����H {����F�4M/`47����<��1����x`w)��
1
+ �2�{��e>]�|H.�ѝ�|�8 �,��Ԉ�x��mG����gk���A+�bf"3x����v2�ڧ����콑ߎ��;�QN���:�(8�MX�-�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