ruby-plsql 0.7.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/History.txt +26 -0
  3. data/README.md +1 -1
  4. data/VERSION +1 -1
  5. data/lib/plsql/connection.rb +16 -16
  6. data/lib/plsql/helpers.rb +3 -3
  7. data/lib/plsql/jdbc_connection.rb +3 -5
  8. data/lib/plsql/oci_connection.rb +8 -4
  9. data/lib/plsql/package.rb +3 -3
  10. data/lib/plsql/procedure.rb +306 -11
  11. data/lib/plsql/procedure_call.rb +20 -15
  12. data/lib/plsql/schema.rb +13 -9
  13. data/lib/plsql/sequence.rb +2 -2
  14. data/lib/plsql/table.rb +7 -6
  15. data/lib/plsql/type.rb +7 -7
  16. data/lib/plsql/variable.rb +4 -4
  17. data/lib/plsql/version.rb +1 -1
  18. data/lib/plsql/view.rb +2 -2
  19. metadata +13 -91
  20. data/.codeclimate.yml +0 -30
  21. data/.github/stale.yml +0 -37
  22. data/.rubocop.yml +0 -153
  23. data/.travis/oracle/download.sh +0 -15
  24. data/.travis/oracle/install.sh +0 -32
  25. data/.travis/setup_accounts.sh +0 -9
  26. data/.travis.yml +0 -49
  27. data/Gemfile +0 -21
  28. data/Rakefile +0 -53
  29. data/Vagrantfile +0 -38
  30. data/gemfiles/Gemfile.activerecord-5.0 +0 -21
  31. data/gemfiles/Gemfile.activerecord-5.1 +0 -21
  32. data/gemfiles/Gemfile.activerecord-5.2 +0 -21
  33. data/ruby-plsql.gemspec +0 -114
  34. data/spec/plsql/connection_spec.rb +0 -505
  35. data/spec/plsql/package_spec.rb +0 -172
  36. data/spec/plsql/procedure_spec.rb +0 -2360
  37. data/spec/plsql/schema_spec.rb +0 -356
  38. data/spec/plsql/sequence_spec.rb +0 -67
  39. data/spec/plsql/sql_statements_spec.rb +0 -91
  40. data/spec/plsql/table_spec.rb +0 -371
  41. data/spec/plsql/type_spec.rb +0 -299
  42. data/spec/plsql/variable_spec.rb +0 -497
  43. data/spec/plsql/version_spec.rb +0 -8
  44. data/spec/plsql/view_spec.rb +0 -264
  45. data/spec/spec.opts +0 -6
  46. data/spec/spec_helper.rb +0 -121
  47. data/spec/support/create_arunit_user.sql +0 -2
  48. data/spec/support/custom_config.rb.sample +0 -14
  49. data/spec/support/file_check_script.sh +0 -9
  50. data/spec/support/test_db.rb +0 -149
  51. data/spec/support/unlock_and_setup_hr_user.sql +0 -2
@@ -1,11 +1,16 @@
1
1
  module PLSQL
2
- class ProcedureCall #:nodoc:
2
+ class ProcedureCall # :nodoc:
3
3
  def initialize(procedure, args = [], options = {})
4
4
  @procedure = procedure
5
5
  @schema = @procedure.schema
6
6
  @dbms_output_stream = @schema.dbms_output_stream
7
7
  @skip_self = options[:skip_self]
8
8
  @self = options[:self]
9
+
10
+ if args.size == 1 && args[0].is_a?(Hash) && args[0].keys.all? { |k| k.is_a?(Symbol) }
11
+ args[0] = args[0].map { |k, v| [k.downcase, v] }.to_h
12
+ end
13
+
9
14
  @overload = get_overload_from_arguments_list(args)
10
15
  @procedure.ensure_tmp_tables_created(@overload) if @procedure.respond_to?(:ensure_tmp_tables_created)
11
16
  construct_sql(args)
@@ -110,7 +115,7 @@ module PLSQL
110
115
  MATCHING_TYPES = {
111
116
  integer: ["NUMBER", "NATURAL", "NATURALN", "POSITIVE", "POSITIVEN", "SIGNTYPE", "SIMPLE_INTEGER", "PLS_INTEGER", "BINARY_INTEGER"],
112
117
  decimal: ["NUMBER", "BINARY_FLOAT", "BINARY_DOUBLE"],
113
- string: ["VARCHAR", "VARCHAR2", "NVARCHAR2", "CHAR", "NCHAR", "CLOB", "BLOB", "XMLTYPE"],
118
+ string: ["VARCHAR", "VARCHAR2", "NVARCHAR2", "CHAR", "NCHAR", "CLOB", "BLOB", "XMLTYPE", "OPAQUE/XMLTYPE"],
114
119
  date: ["DATE"],
115
120
  time: ["DATE", "TIMESTAMP", "TIMESTAMP WITH TIME ZONE", "TIMESTAMP WITH LOCAL TIME ZONE"],
116
121
  boolean: ["PL/SQL BOOLEAN"],
@@ -144,10 +149,10 @@ module PLSQL
144
149
  end
145
150
 
146
151
  def construct_sql(args)
147
- @declare_sql = ""
148
- @assignment_sql = ""
149
- @call_sql = ""
150
- @return_sql = ""
152
+ @declare_sql = +""
153
+ @assignment_sql = +""
154
+ @call_sql = +""
155
+ @return_sql = +""
151
156
  @return_vars = []
152
157
  @return_vars_metadata = {}
153
158
 
@@ -213,7 +218,7 @@ module PLSQL
213
218
  end
214
219
  add_out_variables
215
220
 
216
- @sql = @declare_sql.empty? ? "" : "DECLARE\n" << @declare_sql
221
+ @sql = @declare_sql.empty? ? +"" : +"DECLARE\n" << @declare_sql
217
222
  @sql << "BEGIN\n" << @assignment_sql << dbms_output_enable_sql << @call_sql << @return_sql << "END;\n"
218
223
  end
219
224
 
@@ -235,8 +240,8 @@ module PLSQL
235
240
  @bind_values[argument] = value.nil? ? nil : (value ? 1 : 0)
236
241
  @bind_metadata[argument] = argument_metadata.merge(data_type: "NUMBER", data_precision: 1)
237
242
  "l_#{argument}"
238
- when "UNDEFINED"
239
- if argument_metadata[:type_name] == "XMLTYPE"
243
+ when "UNDEFINED", "XMLTYPE", "OPAQUE/XMLTYPE"
244
+ if argument_metadata[:type_name] == "XMLTYPE" || argument_metadata[:data_type] =~ /XMLTYPE/
240
245
  @declare_sql << "l_#{argument} XMLTYPE;\n"
241
246
  @assignment_sql << "l_#{argument} := XMLTYPE(:#{argument});\n" if not value.nil?
242
247
  @bind_values[argument] = value if not value.nil?
@@ -321,7 +326,7 @@ module PLSQL
321
326
  "l_#{argument} #{argument_metadata[:sql_type_name]};\n"
322
327
  else
323
328
  fields_metadata = argument_metadata[:fields]
324
- sql = "TYPE t_#{argument} IS RECORD (\n"
329
+ sql = +"TYPE t_#{argument} IS RECORD (\n"
325
330
  sql << record_fields_sorted_by_position(fields_metadata).map do |field|
326
331
  metadata = fields_metadata[field]
327
332
  "#{field} #{type_to_sql(metadata)}"
@@ -336,7 +341,7 @@ module PLSQL
336
341
  end
337
342
 
338
343
  def record_assignment_sql_values_metadata(argument, argument_metadata, record_value)
339
- sql = ""
344
+ sql = +""
340
345
  bind_values = {}
341
346
  bind_metadata = {}
342
347
  (record_value || {}).each do |key, value|
@@ -390,8 +395,8 @@ module PLSQL
390
395
  end
391
396
  end
392
397
  "l_#{argument} := " if is_return_value
393
- when "UNDEFINED"
394
- if argument_metadata[:type_name] == "XMLTYPE"
398
+ when "UNDEFINED", "XMLTYPE", "OPAQUE/XMLTYPE"
399
+ if argument_metadata[:type_name] == "XMLTYPE" || argument_metadata[:data_type] =~ /XMLTYPE/
395
400
  @declare_sql << "l_#{argument} XMLTYPE;\n" if is_return_value
396
401
  bind_variable = :"o_#{argument}"
397
402
  @return_vars << bind_variable
@@ -512,8 +517,8 @@ module PLSQL
512
517
  when "PL/SQL BOOLEAN"
513
518
  numeric_value = @cursor[":o_#{argument}"]
514
519
  numeric_value.nil? ? nil : numeric_value == 1
515
- when "UNDEFINED"
516
- if argument_metadata[:type_name] == "XMLTYPE"
520
+ when "UNDEFINED", "XMLTYPE", "OPAQUE/XMLTYPE"
521
+ if argument_metadata[:type_name] == "XMLTYPE" || argument_metadata[:data_type] =~ /XMLTYPE/
517
522
  @cursor[":o_#{argument}"]
518
523
  end
519
524
  else
data/lib/plsql/schema.rb CHANGED
@@ -4,8 +4,8 @@ module PLSQL
4
4
 
5
5
  @@schemas = {}
6
6
 
7
- class <<self
8
- def find_or_new(connection_alias) #:nodoc:
7
+ class << self
8
+ def find_or_new(connection_alias) # :nodoc:
9
9
  connection_alias ||= :default
10
10
  if @@schemas[connection_alias]
11
11
  @@schemas[connection_alias]
@@ -15,7 +15,7 @@ module PLSQL
15
15
  end
16
16
  end
17
17
 
18
- def initialize(raw_conn = nil, schema = nil, original_schema = nil) #:nodoc:
18
+ def initialize(raw_conn = nil, schema = nil, original_schema = nil) # :nodoc:
19
19
  self.connection = raw_conn
20
20
  @schema_name = schema ? schema.to_s.upcase : nil
21
21
  @original_schema = original_schema
@@ -25,11 +25,11 @@ module PLSQL
25
25
  # Returns connection wrapper object (this is not raw OCI8 or JDBC connection!)
26
26
  attr_reader :connection
27
27
 
28
- def root_schema #:nodoc:
28
+ def root_schema # :nodoc:
29
29
  @original_schema || self
30
30
  end
31
31
 
32
- def raw_connection=(raw_conn) #:nodoc:
32
+ def raw_connection=(raw_conn) # :nodoc:
33
33
  @connection = raw_conn ? Connection.create(raw_conn) : nil
34
34
  reset_instance_variables
35
35
  end
@@ -99,8 +99,12 @@ module PLSQL
99
99
  @original_schema.default_timezone
100
100
  else
101
101
  @default_timezone ||
102
- # Use ActiveRecord class default_timezone when ActiveRecord connection is used
103
- (@connection && (ar_class = @connection.activerecord_class) && ar_class.default_timezone) ||
102
+ # Use ActiveRecord default_timezone when ActiveRecord connection is used,
103
+ # preferring the connection's activerecord_class so a subclass override
104
+ # (available in AR < 8.0) is honored before falling back to the
105
+ # module-level accessor (AR 7.0+; the only one in AR 8.0+).
106
+ (@connection && (ar_class = @connection.activerecord_class) &&
107
+ (ar_class.respond_to?(:default_timezone) ? ar_class.default_timezone : ActiveRecord.default_timezone)) ||
104
108
  # default to local timezone
105
109
  :local
106
110
  end
@@ -117,7 +121,7 @@ module PLSQL
117
121
 
118
122
  # Same implementation as for ActiveRecord
119
123
  # DateTimes aren't aware of DST rules, so use a consistent non-DST offset when creating a DateTime with an offset in the local zone
120
- def local_timezone_offset #:nodoc:
124
+ def local_timezone_offset # :nodoc:
121
125
  ::Time.local(2007).utc_offset.to_r / 86400
122
126
  end
123
127
 
@@ -234,7 +238,7 @@ module PLSQL
234
238
  end
235
239
 
236
240
  def _errors(object_schema_name, object_name, object_type)
237
- result = ""
241
+ result = +""
238
242
  previous_line = 0
239
243
  select_all(
240
244
  "SELECT e.line, e.position, e.text error_text, s.text source_text
@@ -1,5 +1,5 @@
1
1
  module PLSQL
2
- module SequenceClassMethods #:nodoc:
2
+ module SequenceClassMethods # :nodoc:
3
3
  def find(schema, sequence)
4
4
  if schema.select_first(
5
5
  "SELECT sequence_name FROM all_sequences
@@ -27,7 +27,7 @@ module PLSQL
27
27
  class Sequence
28
28
  extend SequenceClassMethods
29
29
 
30
- def initialize(schema, sequence, override_schema_name = nil) #:nodoc:
30
+ def initialize(schema, sequence, override_schema_name = nil) # :nodoc:
31
31
  @schema = schema
32
32
  @schema_name = override_schema_name || schema.schema_name
33
33
  @sequence_name = sequence.to_s.upcase
data/lib/plsql/table.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module PLSQL
2
- module TableClassMethods #:nodoc:
2
+ module TableClassMethods # :nodoc:
3
3
  def find(schema, table)
4
4
  if schema.select_first(
5
5
  "SELECT table_name FROM all_tables
@@ -33,9 +33,9 @@ module PLSQL
33
33
  class Table
34
34
  extend TableClassMethods
35
35
 
36
- attr_reader :columns, :schema_name, :table_name #:nodoc:
36
+ attr_reader :columns, :schema_name, :table_name # :nodoc:
37
37
 
38
- def initialize(schema, table, override_schema_name = nil) #:nodoc:
38
+ def initialize(schema, table, override_schema_name = nil) # :nodoc:
39
39
  @schema = schema
40
40
  @schema_name = override_schema_name || schema.schema_name
41
41
  @table_name = table.to_s.upcase
@@ -87,9 +87,9 @@ module PLSQL
87
87
  def select(first_or_all, sql_params = "", *bindvars)
88
88
  case first_or_all
89
89
  when :first, :all
90
- select_sql = "SELECT * "
90
+ select_sql = +"SELECT * "
91
91
  when :count
92
- select_sql = "SELECT COUNT(*) "
92
+ select_sql = +"SELECT COUNT(*) "
93
93
  else
94
94
  raise ArgumentError, "Only :first, :all or :count are supported"
95
95
  end
@@ -172,6 +172,7 @@ module PLSQL
172
172
  end
173
173
 
174
174
  table_proc = TableProcedure.new(@schema, self, :insert)
175
+ record = record.map { |k, v| [k.downcase.to_sym, v] }.to_h
175
176
  table_proc.add_insert_arguments(record)
176
177
 
177
178
  call = ProcedureCall.new(table_proc, table_proc.argument_values)
@@ -250,7 +251,7 @@ module PLSQL
250
251
  end
251
252
 
252
253
  # wrapper class to simulate Procedure class for ProcedureClass#exec
253
- class TableProcedure #:nodoc:
254
+ class TableProcedure # :nodoc:
254
255
  attr_reader :arguments, :argument_list, :return, :out_list, :schema
255
256
 
256
257
  def initialize(schema, table, operation)
data/lib/plsql/type.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module PLSQL
2
- module TypeClassMethods #:nodoc:
2
+ module TypeClassMethods # :nodoc:
3
3
  def find(schema, type)
4
4
  if schema.select_first(
5
5
  "SELECT type_name FROM all_types
@@ -33,9 +33,9 @@ module PLSQL
33
33
  class Type
34
34
  extend TypeClassMethods
35
35
 
36
- attr_reader :typecode, :attributes, :schema_name, :type_name, :type_object_id #:nodoc:
36
+ attr_reader :typecode, :attributes, :schema_name, :type_name, :type_object_id # :nodoc:
37
37
 
38
- def initialize(schema, type, override_schema_name = nil) #:nodoc:
38
+ def initialize(schema, type, override_schema_name = nil) # :nodoc:
39
39
  @schema = schema
40
40
  @schema_name = override_schema_name || schema.schema_name
41
41
  @type_name = type.to_s.upcase
@@ -107,7 +107,7 @@ module PLSQL
107
107
  end
108
108
  end
109
109
 
110
- def method_missing(method, *args, &block) #:nodoc:
110
+ def method_missing(method, *args, &block) # :nodoc:
111
111
  if procedure = find_procedure(method)
112
112
  procedure.exec_with_options(args, {}, &block)
113
113
  else
@@ -115,7 +115,7 @@ module PLSQL
115
115
  end
116
116
  end
117
117
 
118
- def find_procedure(new_or_procedure) #:nodoc:
118
+ def find_procedure(new_or_procedure) # :nodoc:
119
119
  @type_procedures[new_or_procedure] ||= begin
120
120
  procedure_name = new_or_procedure == :new ? @type_name : new_or_procedure
121
121
  # find defined procedure for type
@@ -134,7 +134,7 @@ module PLSQL
134
134
  end
135
135
 
136
136
  # wrapper class to simulate Procedure class for ProcedureClass#exec
137
- class TypeProcedure #:nodoc:
137
+ class TypeProcedure # :nodoc:
138
138
  include ProcedureCommon
139
139
 
140
140
  def initialize(schema, type, procedure)
@@ -250,7 +250,7 @@ module PLSQL
250
250
  end
251
251
  end
252
252
 
253
- class ObjectInstance < Hash #:nodoc:
253
+ class ObjectInstance < Hash # :nodoc:
254
254
  attr_accessor :plsql_type
255
255
 
256
256
  def self.create(type, attributes)
@@ -1,5 +1,5 @@
1
1
  module PLSQL
2
- module VariableClassMethods #:nodoc:
2
+ module VariableClassMethods # :nodoc:
3
3
  def find(schema, variable, package, override_schema_name = nil)
4
4
  variable_upcase = variable.to_s.upcase
5
5
  schema.select_all(
@@ -17,10 +17,10 @@ module PLSQL
17
17
  end
18
18
  end
19
19
 
20
- class Variable #:nodoc:
20
+ class Variable # :nodoc:
21
21
  extend VariableClassMethods
22
22
 
23
- attr_reader :schema_name, :package_name, :variable_name #:nodoc:
23
+ attr_reader :schema_name, :package_name, :variable_name # :nodoc:
24
24
 
25
25
  def initialize(schema, variable, package, variable_type, override_schema_name = nil)
26
26
  @schema = schema
@@ -95,7 +95,7 @@ module PLSQL
95
95
  end
96
96
 
97
97
  # wrapper class to simulate Procedure class for ProcedureClass#exec
98
- class VariableProcedure #:nodoc:
98
+ class VariableProcedure # :nodoc:
99
99
  attr_reader :arguments, :argument_list, :return, :out_list, :schema
100
100
 
101
101
  def initialize(schema, variable, operation, metadata)
data/lib/plsql/version.rb CHANGED
@@ -1,3 +1,3 @@
1
- module PLSQL #:nodoc:
1
+ module PLSQL # :nodoc:
2
2
  VERSION = File.read(File.dirname(__FILE__) + "/../../VERSION").chomp
3
3
  end
data/lib/plsql/view.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module PLSQL
2
- module ViewClassMethods #:nodoc:
2
+ module ViewClassMethods # :nodoc:
3
3
  def find(schema, view)
4
4
  if schema.select_first(
5
5
  "SELECT view_name FROM all_views
@@ -33,6 +33,6 @@ module PLSQL
33
33
  class View < Table
34
34
  extend ViewClassMethods
35
35
 
36
- alias :view_name :table_name #:nodoc:
36
+ alias :view_name :table_name # :nodoc:
37
37
  end
38
38
  end
metadata CHANGED
@@ -1,43 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-plsql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raimonds Simanovskis
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2018-09-03 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: juwelier
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '2.0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '2.0'
27
- - !ruby/object:Gem::Dependency
28
- name: rspec_junit_formatter
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
12
  - !ruby/object:Gem::Dependency
42
13
  name: rake
43
14
  requirement: !ruby/object:Gem::Requirement
@@ -67,33 +38,19 @@ dependencies:
67
38
  - !ruby/object:Gem::Version
68
39
  version: '3.1'
69
40
  - !ruby/object:Gem::Dependency
70
- name: activerecord
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '5.0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '5.0'
83
- - !ruby/object:Gem::Dependency
84
- name: activerecord-oracle_enhanced-adapter
41
+ name: rspec_junit_formatter
85
42
  requirement: !ruby/object:Gem::Requirement
86
43
  requirements:
87
- - - "~>"
44
+ - - ">="
88
45
  - !ruby/object:Gem::Version
89
- version: '1.7'
46
+ version: '0'
90
47
  type: :development
91
48
  prerelease: false
92
49
  version_requirements: !ruby/object:Gem::Requirement
93
50
  requirements:
94
- - - "~>"
51
+ - - ">="
95
52
  - !ruby/object:Gem::Version
96
- version: '1.7'
53
+ version: '0'
97
54
  - !ruby/object:Gem::Dependency
98
55
  name: simplecov
99
56
  requirement: !ruby/object:Gem::Requirement
@@ -122,33 +79,20 @@ dependencies:
122
79
  - - "~>"
123
80
  - !ruby/object:Gem::Version
124
81
  version: '2.1'
125
- description: |2
126
- ruby-plsql gem provides simple Ruby API for calling Oracle PL/SQL procedures.
127
- It could be used both for accessing Oracle PL/SQL API procedures in legacy applications
128
- as well as it could be used to create PL/SQL unit tests using Ruby testing libraries.
82
+ description: |-
83
+ ruby-plsql gem provides simple Ruby API for calling Oracle PL/SQL procedures.
84
+ It could be used both for accessing Oracle PL/SQL API procedures in legacy applications
85
+ as well as it could be used to create PL/SQL unit tests using Ruby testing libraries.
129
86
  email: raimonds.simanovskis@gmail.com
130
87
  executables: []
131
88
  extensions: []
132
89
  extra_rdoc_files:
133
90
  - README.md
134
91
  files:
135
- - ".codeclimate.yml"
136
- - ".github/stale.yml"
137
- - ".rubocop.yml"
138
- - ".travis.yml"
139
- - ".travis/oracle/download.sh"
140
- - ".travis/oracle/install.sh"
141
- - ".travis/setup_accounts.sh"
142
- - Gemfile
143
92
  - History.txt
144
93
  - License.txt
145
94
  - README.md
146
- - Rakefile
147
95
  - VERSION
148
- - Vagrantfile
149
- - gemfiles/Gemfile.activerecord-5.0
150
- - gemfiles/Gemfile.activerecord-5.1
151
- - gemfiles/Gemfile.activerecord-5.2
152
96
  - lib/plsql/connection.rb
153
97
  - lib/plsql/helpers.rb
154
98
  - lib/plsql/jdbc_connection.rb
@@ -167,30 +111,10 @@ files:
167
111
  - lib/plsql/view.rb
168
112
  - lib/ruby-plsql.rb
169
113
  - lib/ruby_plsql.rb
170
- - ruby-plsql.gemspec
171
- - spec/plsql/connection_spec.rb
172
- - spec/plsql/package_spec.rb
173
- - spec/plsql/procedure_spec.rb
174
- - spec/plsql/schema_spec.rb
175
- - spec/plsql/sequence_spec.rb
176
- - spec/plsql/sql_statements_spec.rb
177
- - spec/plsql/table_spec.rb
178
- - spec/plsql/type_spec.rb
179
- - spec/plsql/variable_spec.rb
180
- - spec/plsql/version_spec.rb
181
- - spec/plsql/view_spec.rb
182
- - spec/spec.opts
183
- - spec/spec_helper.rb
184
- - spec/support/create_arunit_user.sql
185
- - spec/support/custom_config.rb.sample
186
- - spec/support/file_check_script.sh
187
- - spec/support/test_db.rb
188
- - spec/support/unlock_and_setup_hr_user.sql
189
- homepage: http://github.com/rsim/ruby-plsql
114
+ homepage: https://github.com/rsim/ruby-plsql
190
115
  licenses:
191
116
  - MIT
192
117
  metadata: {}
193
- post_install_message:
194
118
  rdoc_options: []
195
119
  require_paths:
196
120
  - lib
@@ -205,9 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
129
  - !ruby/object:Gem::Version
206
130
  version: '0'
207
131
  requirements: []
208
- rubyforge_project:
209
- rubygems_version: 2.7.7
210
- signing_key:
132
+ rubygems_version: 4.0.10
211
133
  specification_version: 4
212
134
  summary: Ruby API for calling Oracle PL/SQL procedures.
213
135
  test_files: []
data/.codeclimate.yml DELETED
@@ -1,30 +0,0 @@
1
- checks:
2
- argument-count:
3
- enabled: false
4
- complex-logic:
5
- enabled: false
6
- file-lines:
7
- enabled: false
8
- method-complexity:
9
- enabled: false
10
- method-count:
11
- enabled: false
12
- method-lines:
13
- enabled: false
14
- nested-control-flow:
15
- enabled: false
16
- return-statements:
17
- enabled: false
18
- similar-code:
19
- enabled: false
20
- identical-code:
21
- enabled: false
22
-
23
- engines:
24
- rubocop:
25
- enabled: true
26
- channel: rubocop-0-58
27
-
28
- ratings:
29
- paths:
30
- - "**.rb"
data/.github/stale.yml DELETED
@@ -1,37 +0,0 @@
1
- # Configuration for probot-stale - https://github.com/probot/stale
2
-
3
- # Number of days of inactivity before an Issue or Pull Request becomes stale
4
- daysUntilStale: 60
5
- # Number of days of inactivity before a stale Issue or Pull Request is closed
6
- daysUntilClose: 7
7
- # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
8
- exemptLabels:
9
- - pinned
10
- - security
11
- - "[Status] Maybe Later"
12
- # Label to use when marking as stale
13
- staleLabel: wontfix
14
- # Comment to post when marking as stale. Set to `false` to disable
15
- markComment: >
16
- This issue has been automatically marked as stale because it has not had
17
- recent activity. It will be closed if no further activity occurs. Thank you
18
- for your contributions.
19
- # Comment to post when removing the stale label. Set to `false` to disable
20
- unmarkComment: false
21
- # Comment to post when closing a stale Issue or Pull Request. Set to `false` to disable
22
- closeComment: false
23
- # Limit the number of actions per hour, from 1-30. Default is 30
24
- limitPerRun: 30
25
- # Limit to only `issues` or `pulls`
26
- # only: issues
27
- #
28
- # Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
29
- # pulls:
30
- # daysUntilStale: 30
31
- # markComment: >
32
- # This pull request has been automatically marked as stale because it has not had
33
- # recent activity. It will be closed if no further activity occurs. Thank you
34
- # for your contributions.
35
- # issues:
36
- # exemptLabels:
37
- # - confirmed