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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e68dd910bddff0bc749609a542200dd7e811007a
4
- data.tar.gz: 25f694e143383044baf30b1b68c9ef55a94007ca
3
+ metadata.gz: 77cdab20a9aac4d827d25c94e6313f1b856e24bc
4
+ data.tar.gz: 323c8036073b430289f065922ca938fb9b0b528b
5
5
  SHA512:
6
- metadata.gz: a8ad463af5b6a142d4ca8920a62b172972de61e80538361aa8474cf3315f48a7b6869069db2b72ea7e7b93217092d2402b52220cc7ac031a2c96a1cba6544ea9
7
- data.tar.gz: 860c20cb5ef89a82b25c1a4da2dfc060e30896ecdd83dd6e52169afdf4bf418d6c36851006ec6fe3afa6c81256a4686cffc04b1e632b9fb06f86abde79cc239a
6
+ metadata.gz: 8b011753331a4971e47bcf621cead6717e43285ad64b30de37b7ae5a9c90ed2cf60cb90cec0f5f40daed9f8c0b187c4874988a8304fe9761bcc4e984f43c2def
7
+ data.tar.gz: bf51202dc5f1d10a34bcbb20ed088170f1bda07f0af02ec0966352a57ea36c03183934cd97489d4318b468cffb00668dcd669a09e3ddc3e887f90f0be86fb7d3
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
3
  /Gemfile.lock
4
+ gemfiles
4
5
  /_yardoc/
5
6
  /coverage/
6
7
  /doc/
@@ -1,10 +1,12 @@
1
1
  language: ruby
2
- script: bundle exec rspec spec
3
2
  cache: bundler
4
3
  rvm:
5
- - 2.3.1
6
- gemfile:
7
- - gemfiles/4.0.gemfile
8
- - gemfiles/4.1.gemfile
9
- - gemfiles/4.2.gemfile
10
- - gemfiles/5.0.gemfile
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.7.1"
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.1"
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
@@ -7,7 +7,7 @@ Multi-token authentication for Rails apps. Built with Devise in mind, but can be
7
7
  Something like the following should go in your Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'visa', '~> 0.0.3'
10
+ gem 'visa', '~> 0.1.0'
11
11
  ```
12
12
 
13
13
  ## Usage
@@ -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
- class CreateTokens < ActiveRecord::Migration
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
@@ -1,4 +1,6 @@
1
- class AddVoidedAt < ActiveRecord::Migration
1
+ superclass = ActiveRecord::VERSION::MAJOR < 5 ?
2
+ ActiveRecord::Migration : ActiveRecord::Migration[4.2]
3
+ class AddVoidedAt < superclass
2
4
  def change
3
5
  add_column :visa_tokens, :voided_at, :datetime
4
6
  end
@@ -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.3'
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.1.0'
22
- spec.add_development_dependency 'combustion', '0.5.5'
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.3
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: 2016-11-15 00:00:00.000000000 Z
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.1.0
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.1.0
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.5.5
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.5.5
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.5.1
167
+ rubygems_version: 2.6.11
170
168
  signing_key:
171
169
  specification_version: 4
172
170
  summary: Multi-token authentication for Rails apps.
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "4.0.13"
6
-
7
- gemspec :path => "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "4.1.16"
6
-
7
- gemspec :path => "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "4.2.7.1"
6
-
7
- gemspec :path => "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "5.0.0.1"
6
-
7
- gemspec :path => "../"