visa 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +9 -7
- data/Appraisals +11 -7
- data/README.md +1 -1
- data/bin/literals +11 -0
- data/db/migrate/1_create_tokens.rb +3 -1
- data/db/migrate/2_add_voided_at.rb +3 -1
- data/visa.gemspec +3 -3
- metadata +10 -12
- data/gemfiles/4.0.gemfile +0 -7
- data/gemfiles/4.1.gemfile +0 -7
- data/gemfiles/4.2.gemfile +0 -7
- data/gemfiles/5.0.gemfile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77cdab20a9aac4d827d25c94e6313f1b856e24bc
|
4
|
+
data.tar.gz: 323c8036073b430289f065922ca938fb9b0b528b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b011753331a4971e47bcf621cead6717e43285ad64b30de37b7ae5a9c90ed2cf60cb90cec0f5f40daed9f8c0b187c4874988a8304fe9761bcc4e984f43c2def
|
7
|
+
data.tar.gz: bf51202dc5f1d10a34bcbb20ed088170f1bda07f0af02ec0966352a57ea36c03183934cd97489d4318b468cffb00668dcd669a09e3ddc3e887f90f0be86fb7d3
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
language: ruby
|
2
|
-
script: bundle exec rspec spec
|
3
2
|
cache: bundler
|
4
3
|
rvm:
|
5
|
-
- 2.
|
6
|
-
|
7
|
-
-
|
8
|
-
|
9
|
-
-
|
10
|
-
|
4
|
+
- 2.2.7
|
5
|
+
- 2.3.4
|
6
|
+
- 2.4.1
|
7
|
+
before_install:
|
8
|
+
- gem install bundler
|
9
|
+
before_script:
|
10
|
+
- ./bin/literals
|
11
|
+
- bundle exec appraisal update
|
12
|
+
script: bundle exec appraisal rspec
|
data/Appraisals
CHANGED
@@ -1,15 +1,19 @@
|
|
1
1
|
appraise "4.0" do
|
2
|
-
gem "rails", "4.0.13"
|
3
|
-
end
|
2
|
+
gem "rails", "~> 4.0.13"
|
3
|
+
end if RUBY_VERSION.to_f < 2.4
|
4
4
|
|
5
5
|
appraise "4.1" do
|
6
|
-
gem "rails", "4.1.16"
|
7
|
-
end
|
6
|
+
gem "rails", "~> 4.1.16"
|
7
|
+
end if RUBY_VERSION.to_f < 2.4
|
8
8
|
|
9
9
|
appraise "4.2" do
|
10
|
-
gem "rails", "4.2.
|
11
|
-
end
|
10
|
+
gem "rails", "~> 4.2.8"
|
11
|
+
end if RUBY_VERSION.to_f < 2.4
|
12
12
|
|
13
13
|
appraise "5.0" do
|
14
|
-
gem "rails", "5.0.0
|
14
|
+
gem "rails", "~> 5.0.0"
|
15
|
+
end
|
16
|
+
|
17
|
+
appraise "5.1" do
|
18
|
+
gem "rails", "~> 5.1.0"
|
15
19
|
end
|
data/README.md
CHANGED
data/bin/literals
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
if (ruby -e "exit RUBY_VERSION.to_f >= 2.4")
|
2
|
+
then
|
3
|
+
echo "Automatic frozen string literals are supported"
|
4
|
+
gem install pragmater -v 4.0.0
|
5
|
+
pragmater --add app --comments "# frozen_string_literal: true" --whitelist "**/*.rb"
|
6
|
+
pragmater --add db --comments "# frozen_string_literal: true" --whitelist "**/*.rb"
|
7
|
+
pragmater --add lib --comments "# frozen_string_literal: true" --whitelist "**/*.rb"
|
8
|
+
pragmater --add spec --comments "# frozen_string_literal: true" --whitelist "**/*.rb"
|
9
|
+
else
|
10
|
+
echo "Automatic frozen string literals are not supported."
|
11
|
+
fi
|
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
superclass = ActiveRecord::VERSION::MAJOR < 5 ?
|
2
|
+
ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
3
|
+
class CreateTokens < superclass
|
2
4
|
def change
|
3
5
|
create_table :visa_tokens do |t|
|
4
6
|
t.string :tokenable_type, null: false
|
data/visa.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
Gem::Specification.new do |spec|
|
3
3
|
spec.name = 'visa'
|
4
|
-
spec.version = '0.0
|
4
|
+
spec.version = '0.1.0'
|
5
5
|
spec.authors = ['Pat Allan']
|
6
6
|
spec.email = ['pat@freelancing-gods.com']
|
7
7
|
spec.summary = %q{Multi-token authentication for Rails apps.}
|
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.add_runtime_dependency 'rack'
|
19
19
|
spec.add_runtime_dependency 'rails', '>= 4.0'
|
20
20
|
|
21
|
-
spec.add_development_dependency 'appraisal', '~> 2.
|
22
|
-
spec.add_development_dependency 'combustion', '0.
|
21
|
+
spec.add_development_dependency 'appraisal', '~> 2.2.0'
|
22
|
+
spec.add_development_dependency 'combustion', '0.7.0'
|
23
23
|
spec.add_development_dependency 'rspec-rails', '~> 3.1'
|
24
24
|
spec.add_development_dependency 'sqlite3', '~> 1.3'
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: visa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: 2.2.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
68
|
+
version: 2.2.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: combustion
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.7.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.7.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,7 +111,8 @@ dependencies:
|
|
111
111
|
description: Multi-token authentication Rails engine.
|
112
112
|
email:
|
113
113
|
- pat@freelancing-gods.com
|
114
|
-
executables:
|
114
|
+
executables:
|
115
|
+
- literals
|
115
116
|
extensions: []
|
116
117
|
extra_rdoc_files: []
|
117
118
|
files:
|
@@ -123,13 +124,10 @@ files:
|
|
123
124
|
- README.md
|
124
125
|
- Rakefile
|
125
126
|
- app/models/visa/token.rb
|
127
|
+
- bin/literals
|
126
128
|
- config.ru
|
127
129
|
- db/migrate/1_create_tokens.rb
|
128
130
|
- db/migrate/2_add_voided_at.rb
|
129
|
-
- gemfiles/4.0.gemfile
|
130
|
-
- gemfiles/4.1.gemfile
|
131
|
-
- gemfiles/4.2.gemfile
|
132
|
-
- gemfiles/5.0.gemfile
|
133
131
|
- lib/visa.rb
|
134
132
|
- lib/visa/engine.rb
|
135
133
|
- lib/visa/request.rb
|
@@ -166,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
164
|
version: '0'
|
167
165
|
requirements: []
|
168
166
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.6.11
|
170
168
|
signing_key:
|
171
169
|
specification_version: 4
|
172
170
|
summary: Multi-token authentication for Rails apps.
|
data/gemfiles/4.0.gemfile
DELETED
data/gemfiles/4.1.gemfile
DELETED
data/gemfiles/4.2.gemfile
DELETED