omniauth-headquarters 0.1.0 → 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: 917443b6389c19d0cf7c8c46daa24d42b3c33d72
4
- data.tar.gz: ad24f5436eb6648043f2543c87870b7e4f0d81c3
3
+ metadata.gz: 112feead1c1c6fbc63b7734bb52e8770e0424c1a
4
+ data.tar.gz: 0367d756c7124eca9379c4b907416ad68b541f51
5
5
  SHA512:
6
- metadata.gz: 7523c9d56b15bddb0dc3be62509b29ae9c122317202a3c6d5aff3b2736b3c5554fc2dbc78e61cb687c5676d03027a0802535b10a36e1fa79418cc844e706bde6
7
- data.tar.gz: af6d988135934d8affadc6e948313a057c9b1295196bf630d539a3599afadb23b2211a8e3b56135f06d2b2e38d97320c8ae146c32301481b22f207426bca6b68
6
+ metadata.gz: 230497239b578216927617723d61c366835ab7dc369acc219a7007208010e49c3864062582bcb61ec9e484a1c414d98c7e04e3564338bdbad590f4038c779566
7
+ data.tar.gz: 7eb5e3b7458b1842f8c41ebb1b272542dfb3b18e2dff2ce13849532d3ef59928e12da8487b3f17aaf75f0a4c7dc8dc5f92e8785758d4344b3d31fbc33ad60bb5
data/.rubocop.yml ADDED
@@ -0,0 +1,34 @@
1
+ AllCops:
2
+ Include:
3
+ - '**/Rakefile'
4
+ - '**/config.ru'
5
+ Exclude:
6
+ - 'db/**/*'
7
+ - 'config/**/*'
8
+ - 'script/**/*'
9
+ - 'bin/**/*'
10
+ - 'vendor/**/*'
11
+
12
+ Metrics/LineLength:
13
+ Enabled: false
14
+
15
+ Style/AlignParameters:
16
+ EnforcedStyle: with_fixed_indentation
17
+
18
+ Style/ClassAndModuleChildren:
19
+ Enabled: false
20
+
21
+ Style/Documentation:
22
+ Enabled: false
23
+
24
+ Style/DotPosition:
25
+ EnforcedStyle: trailing
26
+
27
+ Style/IfUnlessModifier:
28
+ Enabled: false
29
+
30
+ Style/RegexpLiteral:
31
+ MaxSlashes: 0
32
+
33
+ Style/FileName:
34
+ Enabled: false
data/Rakefile CHANGED
@@ -1,8 +1,7 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
2
  require 'rubocop/rake_task'
3
3
  require 'rspec/core/rake_task'
4
4
  RuboCop::RakeTask.new
5
5
  RSpec::Core::RakeTask.new(:spec)
6
6
 
7
7
  task default: [:rubocop, :spec]
8
-
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Headquarters
3
- VERSION = "0.1.0"
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -5,7 +5,7 @@ module OmniAuth
5
5
  class Headquarters < ::OmniAuth::Strategies::OAuth2
6
6
  include ::OmniAuth::Strategy
7
7
 
8
- URL = ENV['HQ_URL'] || 'http://localhost:3000'
8
+ URL = ENV['HQ_URL'] || 'https://hq.groupbuddies.com'
9
9
  PATH = '/oauth/authorize'
10
10
 
11
11
  option :name, :headquarters
@@ -4,25 +4,25 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'omniauth-headquarters/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "omniauth-headquarters"
7
+ spec.name = 'omniauth-headquarters'
8
8
  spec.version = Omniauth::Headquarters::VERSION
9
- spec.authors = ["Miguel Palhas"]
10
- spec.email = ["mpalhas@groupbuddies.com"]
11
- spec.summary = %q{OAuth2 strategy for the Headquarters API, by Group Buddies}
12
- spec.description = %q{OAuth2 strategy for the Headquarters API, by Group Buddies}
13
- spec.homepage = "https://github.com/groupbuddies/omniauth-headquarters"
14
- spec.license = "MIT"
9
+ spec.authors = ['Miguel Palhas']
10
+ spec.email = ['mpalhas@groupbuddies.com']
11
+ spec.summary = 'OAuth2 strategy for the Headquarters API, by Group Buddies'
12
+ spec.description = 'OAuth2 strategy for the Headquarters API, by Group Buddies'
13
+ spec.homepage = 'https://github.com/groupbuddies/omniauth-headquarters'
14
+ spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
19
+ spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'omniauth', '~> 1.2', '>= 1.2.2'
22
22
  spec.add_dependency 'omniauth-oauth2', '~> 1.2', '>= 1.2.0'
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.7"
25
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency 'bundler', '~> 1.7'
25
+ spec.add_development_dependency 'rake', '~> 10.0'
26
26
  spec.add_development_dependency 'rubocop', '~> 0.27.1'
27
27
  spec.add_development_dependency 'rspec', '~> 3.1', '~> 3.1.0'
28
28
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,2 @@
1
1
  require 'omniauth-headquarters'
2
2
  require 'rspec'
3
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-headquarters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Palhas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-26 00:00:00.000000000 Z
11
+ date: 2015-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -120,6 +120,7 @@ extensions: []
120
120
  extra_rdoc_files: []
121
121
  files:
122
122
  - ".gitignore"
123
+ - ".rubocop.yml"
123
124
  - Gemfile
124
125
  - LICENSE.txt
125
126
  - README.md