oracle_ebs_authentication 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0dcfad5ba97f2de363666d3cba03e63e1d2b7799
4
+ data.tar.gz: aa1876ebb34bcd7bcd0b70f97149fd67f5e18b3c
5
+ SHA512:
6
+ metadata.gz: 73f5df93f082609c4dde877f70553b9d5a4b1464ef69c1ac919d5ab87907ad44b4926d42b5230c32a6094cba25872f1bef8486e0f47c5dde5612e960598254e1
7
+ data.tar.gz: fb8071df6e5fa37b47eb2a1e55df053871fe76da4d267acba055c9a440a21c3bb0c572c500b00b2eb5865dfffae4f59f1f27bbc000cae7418610e04dc0cce5c8
@@ -3,12 +3,12 @@ require "digest/sha1"
3
3
  module OracleEbsAuthentication
4
4
  # The Java original source code was taken form
5
5
  # http://code.google.com/p/jebusinessauth/source/browse/trunk/src/com/milci/ebusinesssuite/eBusinessSuiteSecurity.java
6
- #
6
+ #
7
7
  # As original Java source is not documented then Ruby source code was done
8
8
  # as similar as possible to Java code to avoid differences in functionality.
9
- #
9
+ #
10
10
  class Security
11
- if RUBY_VERSION =~ /^1.9/
11
+ if RUBY_VERSION =~ /^(1\.9|2\.)/
12
12
  class Bytes < String
13
13
  def initialize(string)
14
14
  super(string.force_encoding('ASCII-8BIT'))
@@ -341,7 +341,7 @@ module OracleEbsAuthentication
341
341
  abyte0 = a_(s1.dup)
342
342
  #j1 = s2.mb_chars.length
343
343
  j1 = s2.length
344
-
344
+
345
345
  if (j1 > i1 - 1)
346
346
  j1 = i1 - 1
347
347
  end
@@ -428,7 +428,7 @@ module OracleEbsAuthentication
428
428
  def n(i1, j1, k1)
429
429
  return i1 ^ j1 ^ k1
430
430
  end
431
-
431
+
432
432
  def o(i1, j1, k1)
433
433
  return i1 ^ j1 ^ k1
434
434
  end
@@ -436,7 +436,7 @@ module OracleEbsAuthentication
436
436
  def control(s1, s2, i1)
437
437
  return new_control(s1, s2, 0, i1)
438
438
  end
439
-
439
+
440
440
  def p(s1)
441
441
  s1 = bytes s1
442
442
  flag = false
@@ -723,7 +723,7 @@ module OracleEbsAuthentication
723
723
  i1 += 1
724
724
  abyte0[i1] = (ai[1] & 0xff)
725
725
  end
726
-
726
+
727
727
  def old_check(s1, s2, flag)
728
728
  abyte0 = a_(s1.dup)
729
729
  abyte1 = p(s2)
@@ -766,7 +766,7 @@ module OracleEbsAuthentication
766
766
  # puts "<br/>DEBUG y: abyte2=#{abyte2.unpack("H*")[0]}"
767
767
  return abyte2
768
768
  end
769
-
769
+
770
770
  def z(abyte0)
771
771
  abyte0.unpack("H*")[0].upcase
772
772
  end
@@ -850,7 +850,7 @@ module OracleEbsAuthentication
850
850
  return true if decrypt(s1, s2, flag)
851
851
  false
852
852
  end
853
-
853
+
854
854
  def decrypt(s1, s2, flag)
855
855
  if (s2 != nil && s2.length() > 0)
856
856
  if (s2[0, 2] == "ZG")
@@ -1,3 +1,3 @@
1
1
  module OracleEbsAuthentication
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,137 +1,122 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: oracle_ebs_authentication
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 2
9
- version: 0.1.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Raimonds Simanovskis
13
8
  - Edgars Beigarts
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-06-17 00:00:00 +03:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2014-07-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: activesupport
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- requirements:
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
26
18
  - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- - 2
31
- version: "2.2"
19
+ - !ruby/object:Gem::Version
20
+ version: '2.2'
32
21
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: ruby-plsql
36
22
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
39
25
  - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- - 4
44
- - 2
26
+ - !ruby/object:Gem::Version
27
+ version: '2.2'
28
+ - !ruby/object:Gem::Dependency
29
+ name: ruby-plsql
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
45
34
  version: 0.4.2
46
35
  type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: rake
50
36
  prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- requirements:
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
53
39
  - - ">="
54
- - !ruby/object:Gem::Version
55
- segments:
56
- - 0
57
- version: "0"
40
+ - !ruby/object:Gem::Version
41
+ version: 0.4.2
42
+ - !ruby/object:Gem::Dependency
43
+ name: rake
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
58
49
  type: :development
59
- version_requirements: *id003
60
- - !ruby/object:Gem::Dependency
61
- name: rspec
62
50
  prerelease: false
63
- requirement: &id004 !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ~>
66
- - !ruby/object:Gem::Version
67
- segments:
68
- - 2
69
- - 5
70
- - 0
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rspec
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
71
62
  version: 2.5.0
72
63
  type: :development
73
- version_requirements: *id004
74
- - !ruby/object:Gem::Dependency
75
- name: ruby-oci8
76
64
  prerelease: false
77
- requirement: &id005 !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ~>
80
- - !ruby/object:Gem::Version
81
- segments:
82
- - 2
83
- - 0
84
- - 4
85
- version: 2.0.4
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: 2.5.0
70
+ - !ruby/object:Gem::Dependency
71
+ name: ruby-oci8
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: 2.1.4
86
77
  type: :development
87
- version_requirements: *id005
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: 2.1.4
88
84
  description: This plugin provides Oracle E-Business Suite user authentication functionality.
89
85
  email: 1@wb4.lv
90
86
  executables: []
91
-
92
87
  extensions: []
93
-
94
88
  extra_rdoc_files: []
95
-
96
- files:
89
+ files:
90
+ - LICENSE
91
+ - README.md
92
+ - lib/oracle_ebs_authentication.rb
97
93
  - lib/oracle_ebs_authentication/authenticator.rb
98
94
  - lib/oracle_ebs_authentication/security.rb
99
95
  - lib/oracle_ebs_authentication/version.rb
100
- - lib/oracle_ebs_authentication.rb
101
96
  - spec/authenticator_spec.rb
102
97
  - spec/security_spec.rb
103
98
  - spec/spec_helper.rb
104
- - README.md
105
- - LICENSE
106
- has_rdoc: true
107
99
  homepage: http://github.com/ebeigarts/oracle_ebs_authentication
108
100
  licenses: []
109
-
101
+ metadata: {}
110
102
  post_install_message:
111
103
  rdoc_options: []
112
-
113
- require_paths:
104
+ require_paths:
114
105
  - lib
115
- required_ruby_version: !ruby/object:Gem::Requirement
116
- requirements:
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
117
108
  - - ">="
118
- - !ruby/object:Gem::Version
119
- segments:
120
- - 0
121
- version: "0"
122
- required_rubygems_version: !ruby/object:Gem::Requirement
123
- requirements:
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
124
113
  - - ">="
125
- - !ruby/object:Gem::Version
126
- segments:
127
- - 0
128
- version: "0"
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
129
116
  requirements: []
130
-
131
117
  rubyforge_project:
132
- rubygems_version: 1.3.6
118
+ rubygems_version: 2.2.2
133
119
  signing_key:
134
- specification_version: 3
120
+ specification_version: 4
135
121
  summary: This plugin provides Oracle E-Business Suite user authentication functionality.
136
122
  test_files: []
137
-