omniauth-swedbank 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,4 +2,6 @@ language: ruby
2
2
  rvm:
3
3
  - "1.9.2"
4
4
  - "1.9.3"
5
- script: bundle exec rspec
5
+ - "2.0.0"
6
+ script: bundle exec rspec
7
+
data/README.md CHANGED
@@ -1,10 +1,14 @@
1
1
  # Omniauth::Swedbank
2
2
 
3
- TODO: Write a gem description
3
+ Omniauth strategy for using Swedbank as an authentication service provider.
4
+
5
+ This implementation works in Latvia, and should work in Estonia and Lithuania.
4
6
 
5
7
  [![Gem Version](https://badge.fury.io/rb/omniauth-swedbank.png)](http://badge.fury.io/rb/omniauth-swedbank)
6
8
  [![Build Status](https://travis-ci.org/kirsis/omniauth-swedbank.png?branch=master)](https://travis-ci.org/kirsis/omniauth-swedbank)
7
9
 
10
+ Supported Ruby versions: 1.9.3 and 2.0.0
11
+
8
12
  ## Installation
9
13
 
10
14
  Add this line to your application's Gemfile:
@@ -4,8 +4,8 @@ require 'base64'
4
4
  class String
5
5
  def prepend_length
6
6
  # prepend length to string in 0xx format
7
- len = self.to_s.length
8
- self.dup.to_s.force_encoding("ascii").prepend(len.to_s.rjust(3, '0'))
7
+
8
+ [ self.to_s.length.to_s.rjust(3, '0'), self.dup.to_s.force_encoding("ascii")].join
9
9
  end
10
10
  end
11
11
 
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Swedbank
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
@@ -19,10 +19,11 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_runtime_dependency 'omniauth', '~> 1.0'
22
+ spec.add_runtime_dependency "i18n"
23
+
22
24
  spec.add_development_dependency 'rack-test'
23
25
  spec.add_development_dependency 'rspec', '~> 2.7'
24
26
  spec.add_development_dependency "bundler", "~> 1.3"
25
27
  spec.add_development_dependency "rake"
26
- spec.add_development_dependency "i18n"
27
28
 
28
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-swedbank
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -29,14 +29,14 @@ dependencies:
29
29
  - !ruby/object:Gem::Version
30
30
  version: '1.0'
31
31
  - !ruby/object:Gem::Dependency
32
- name: rack-test
32
+ name: i18n
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  none: false
35
35
  requirements:
36
36
  - - ! '>='
37
37
  - !ruby/object:Gem::Version
38
38
  version: '0'
39
- type: :development
39
+ type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  none: false
@@ -45,29 +45,29 @@ dependencies:
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
- name: rspec
48
+ name: rack-test
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - ~>
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: '2.7'
54
+ version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements:
60
- - - ~>
60
+ - - ! '>='
61
61
  - !ruby/object:Gem::Version
62
- version: '2.7'
62
+ version: '0'
63
63
  - !ruby/object:Gem::Dependency
64
- name: bundler
64
+ name: rspec
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  none: false
67
67
  requirements:
68
68
  - - ~>
69
69
  - !ruby/object:Gem::Version
70
- version: '1.3'
70
+ version: '2.7'
71
71
  type: :development
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -75,25 +75,25 @@ dependencies:
75
75
  requirements:
76
76
  - - ~>
77
77
  - !ruby/object:Gem::Version
78
- version: '1.3'
78
+ version: '2.7'
79
79
  - !ruby/object:Gem::Dependency
80
- name: rake
80
+ name: bundler
81
81
  requirement: !ruby/object:Gem::Requirement
82
82
  none: false
83
83
  requirements:
84
- - - ! '>='
84
+ - - ~>
85
85
  - !ruby/object:Gem::Version
86
- version: '0'
86
+ version: '1.3'
87
87
  type: :development
88
88
  prerelease: false
89
89
  version_requirements: !ruby/object:Gem::Requirement
90
90
  none: false
91
91
  requirements:
92
- - - ! '>='
92
+ - - ~>
93
93
  - !ruby/object:Gem::Version
94
- version: '0'
94
+ version: '1.3'
95
95
  - !ruby/object:Gem::Dependency
96
- name: i18n
96
+ name: rake
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
@@ -148,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  segments:
150
150
  - 0
151
- hash: 85448241469410673
151
+ hash: -3620822024821045063
152
152
  required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  none: false
154
154
  requirements:
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  version: '0'
158
158
  segments:
159
159
  - 0
160
- hash: 85448241469410673
160
+ hash: -3620822024821045063
161
161
  requirements: []
162
162
  rubyforge_project:
163
163
  rubygems_version: 1.8.25