c3-activerecord-oracle_enhanced-adapter 1.2.4
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.
- data/History.txt +182 -0
- data/License.txt +20 -0
- data/Manifest.txt +32 -0
- data/README.rdoc +77 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/activerecord-oracle_enhanced-adapter.gemspec +79 -0
- data/lib/active_record/connection_adapters/emulation/oracle_adapter.rb +5 -0
- data/lib/active_record/connection_adapters/oracle_enhanced.rake +51 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb +1664 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_connection.rb +121 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_core_ext.rb +64 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_cpk.rb +21 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_dirty.rb +39 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb +393 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb +389 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_procedures.rb +163 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_reserved_words.rb +126 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb +168 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_dumper.rb +213 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_statements_ext.rb +224 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_tasks.rb +11 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_version.rb +1 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb +477 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_adapter_structure_dumper_spec.rb +267 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb +206 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_core_ext_spec.rb +40 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_cpk_spec.rb +107 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb +984 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_dbms_output_spec.rb +67 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_dirty_spec.rb +93 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb +25 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_procedures_spec.rb +370 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_schema_dump_spec.rb +218 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_schema_spec.rb +784 -0
- data/spec/spec.opts +6 -0
- data/spec/spec_helper.rb +114 -0
- metadata +137 -0
data/History.txt
ADDED
@@ -0,0 +1,182 @@
|
|
1
|
+
== 1.2.4 2010-02-23
|
2
|
+
|
3
|
+
* Enhancements:
|
4
|
+
* rake db:test:purge will drop all schema objects from test schema (including views, synonyms, packages, functions, procedures) -
|
5
|
+
they should be always reloaded before tests run if necessary
|
6
|
+
* added views, synonyms, packages, functions, procedures, indexes, triggers, types, primary, unique and foreign key constraints to structure dump
|
7
|
+
* added :temporary option for create_table to create temporary tables
|
8
|
+
* added :tablespace option for add_index
|
9
|
+
* support function based indexes in schema dump
|
10
|
+
* support JNDI database connections in JRuby
|
11
|
+
* check ruby-oci8 minimum version 2.0.3
|
12
|
+
* added savepoints support (nested ActiveRecord transactions)
|
13
|
+
* Bug fixes:
|
14
|
+
* typecast returned BigDecimal integer values to Fixnum or Bignum
|
15
|
+
(to avoid issues with _before_type_cast values for id attributes because _before_type_cast is used in form helpers)
|
16
|
+
* clear table columns cache after columns definition change in migrations
|
17
|
+
|
18
|
+
== 1.2.3 2009-12-09
|
19
|
+
|
20
|
+
* Enhancements
|
21
|
+
* support fractional seconds in TIMESTAMP values
|
22
|
+
* support for ActiveRecord 2.3.5
|
23
|
+
* use ENV['TZ'] to set database session time zone
|
24
|
+
(as a result DATE and TIMESTAMP values are retrieved with correct time zone)
|
25
|
+
* added cache_columns adapter option
|
26
|
+
* added current_user adapter method
|
27
|
+
* added set_integer_columns and set_string_columns ActiveRecord model class methods
|
28
|
+
* Bug fixes:
|
29
|
+
* do not raise exception if ENV['PATH'] is nil
|
30
|
+
* do not add change_table behavior for ActiveRecord 2.0 (to avoid exception during loading)
|
31
|
+
* move foreign key definitions after definition of all tables in schema.rb
|
32
|
+
(to avoid definition of foreign keys before all tables are created)
|
33
|
+
* changed timestamp format mask to use ':' before fractional seconds
|
34
|
+
(workaround to avoid table detection in tables_in_string method in ActiveRecord associations.rb file)
|
35
|
+
* fixed custom create/update/delete methods with ActiveRecord 2.3+ and timestamps
|
36
|
+
* do not call oracle_enhanced specific schema dump methods when using other database adapters
|
37
|
+
|
38
|
+
== 1.2.2 2009-09-28
|
39
|
+
|
40
|
+
* Enhancements
|
41
|
+
* improved RDoc documentation of public methods
|
42
|
+
* structure dump optionally (database.yml environment has db_stored_code: yes) extracts
|
43
|
+
packages, procedures, functions, views, triggers and synonyms
|
44
|
+
* automatically generated too long index names are shortened down to 30 characters
|
45
|
+
* create tables with primary key triggers
|
46
|
+
* use 'set_sequence_name :autogenerated' for inserting into legacy tables with trigger populated primary keys
|
47
|
+
* access to tables over database link (need to define local synonym to remote table and use local synonym in set_table_name)
|
48
|
+
* [JRuby] support JDBC connection using TNS_ADMIN environment variable and TNS database alias
|
49
|
+
* changed cursor_sharing option default from 'similar' to 'force'
|
50
|
+
* optional dbms_output logging to ActiveRecord log file (requires ruby-plsql gem)
|
51
|
+
* use add_foreign_key and remove_foreign_key to define foreign key constraints
|
52
|
+
(the same syntax as in http://github.com/matthuhiggins/foreigner and similar
|
53
|
+
to http://github.com/eyestreet/active_record_oracle_extensions)
|
54
|
+
* raise RecordNotUnique and InvalidForeignKey exceptions if caused by corresponding ORA errors
|
55
|
+
(these new exceptions are supported just by current ActiveRecord master branch)
|
56
|
+
* implemented disable_referential_integrity
|
57
|
+
(enables safe loading of fixtures in schema with foreign key constraints)
|
58
|
+
* use add_synonym and remove_synonym to define database synonyms
|
59
|
+
* add_foreign_key and add_synonym are also exported to schema.rb
|
60
|
+
* Bug fixes:
|
61
|
+
* [JRuby] do not raise LoadError if ojdbc14.jar cannot be required (rely on application server to add it to class path)
|
62
|
+
* [JRuby] 'execute' can be used to create triggers with :NEW reference
|
63
|
+
* support create_table without a block
|
64
|
+
* support create_table with Symbol table name
|
65
|
+
* use ActiveRecord functionality to do time zone conversion
|
66
|
+
* rake tasks such as db:test:clone are redefined only if oracle_enhanced is current adapter in use
|
67
|
+
* VARCHAR2 and CHAR column sizes are defined in characters and not in bytes (expected behavior from ActiveRecord)
|
68
|
+
* set_date_columns, set_datetime_columns, ignore_table_columns will work after reestablishing connection
|
69
|
+
* ignore :limit option for :text and :binary columns in migrations
|
70
|
+
* patches for ActiveRecord schema dumper to remove table prefixes and suffixes from schema.rb
|
71
|
+
|
72
|
+
== 1.2.1 2009-06-07
|
73
|
+
|
74
|
+
* Enhancements
|
75
|
+
* caching of table indexes query which makes schema dump much faster
|
76
|
+
* Bug fixes:
|
77
|
+
* return Date (and not DateTime) values for :date column value before year 1970
|
78
|
+
* fixed after_create/update/destroy callbacks with plsql custom methods
|
79
|
+
* fixed creation of large integers in JRuby
|
80
|
+
* Made test tasks respect RAILS_ENV
|
81
|
+
* fixed support for composite primary keys for tables with LOBs
|
82
|
+
|
83
|
+
== 1.2.0 2009-03-22
|
84
|
+
|
85
|
+
* Enhancements
|
86
|
+
* support for JRuby and JDBC
|
87
|
+
* support for Ruby 1.9.1 and ruby-oci8 2.0
|
88
|
+
* support for Rails 2.3
|
89
|
+
* quoting of Oracle reserved words in table names and column names
|
90
|
+
* emulation of OracleAdapter (for ActiveRecord unit tests)
|
91
|
+
* Bug fixes:
|
92
|
+
* several bug fixes that were identified during running of ActiveRecord unit tests
|
93
|
+
|
94
|
+
== 1.1.9 2009-01-02
|
95
|
+
|
96
|
+
* Enhancements
|
97
|
+
* Added support for table and column comments in migrations
|
98
|
+
* Added support for specifying sequence start values
|
99
|
+
* Added :privilege option (e.g. :SYSDBA) to ActiveRecord::Base.establish_connection
|
100
|
+
* Bug fixes:
|
101
|
+
* Do not mark empty decimals, strings and texts (stored as NULL in database) as changed when reassigning them (starting from Rails 2.1)
|
102
|
+
* Create booleans as VARCHAR2(1) columns if emulate_booleans_from_strings is true
|
103
|
+
|
104
|
+
== 1.1.8 2008-10-10
|
105
|
+
|
106
|
+
* Bug fixes:
|
107
|
+
* Fixed storing of serialized LOB columns
|
108
|
+
* Prevent from SQL injection in :limit and :offset
|
109
|
+
* Order by LOB columns (by replacing column with function which returns first 100 characters of LOB)
|
110
|
+
* Sequence creation for tables with non-default primary key in create_table block
|
111
|
+
* Do count distinct workaround only when composite_primary_keys gem is used
|
112
|
+
(otherwise count distinct did not work with ActiveRecord 2.1.1)
|
113
|
+
* Fixed rake db:test:clone_structure task
|
114
|
+
(see http://rsim.lighthouseapp.com/projects/11468/tickets/11-rake-dbtestclone_structure-fails-in-117)
|
115
|
+
* Fixed bug when ActiveRecord::Base.allow_concurrency = true
|
116
|
+
(see http://dev.rubyonrails.org/ticket/11134)
|
117
|
+
|
118
|
+
== 1.1.7 2008-08-20
|
119
|
+
|
120
|
+
* Bug fixes:
|
121
|
+
* Fixed that adapter works without ruby-plsql gem (in this case just custom create/update/delete methods are not available)
|
122
|
+
|
123
|
+
== 1.1.6 2008-08-19
|
124
|
+
|
125
|
+
* Enhancements:
|
126
|
+
* Added support for set_date_columns and set_datetime_columns
|
127
|
+
* Added support for set_boolean_columns
|
128
|
+
* Added support for schema prefix in set_table_name (removed table name quoting)
|
129
|
+
* Added support for NVARCHAR2 column type
|
130
|
+
* Bug fixes:
|
131
|
+
* Do not call write_lobs callback when custom create or update methods are defined
|
132
|
+
|
133
|
+
== 1.1.5 2008-07-27
|
134
|
+
|
135
|
+
* Bug fixes:
|
136
|
+
* Fixed that write_lobs callback works with partial_updates enabled (added additional record lock before writing BLOB data to database)
|
137
|
+
* Enhancements:
|
138
|
+
* Changed SQL SELECT in indexes method so that it will execute faster on some large data dictionaries
|
139
|
+
* Support for other date and time formats when assigning string to :date or :datetime column
|
140
|
+
|
141
|
+
== 1.1.4 2008-07-14
|
142
|
+
|
143
|
+
* Enhancements:
|
144
|
+
* Date/Time quoting changes to support composite_primary_keys
|
145
|
+
* Added additional methods that are used by composite_primary_keys
|
146
|
+
|
147
|
+
== 1.1.3 2008-07-10
|
148
|
+
|
149
|
+
* Enhancements:
|
150
|
+
* Added support for custom create, update and delete methods when working with legacy databases where
|
151
|
+
PL/SQL API should be used for create, update and delete operations
|
152
|
+
|
153
|
+
== 1.1.2 2008-07-08
|
154
|
+
|
155
|
+
* Bug fixes:
|
156
|
+
* Fixed after_save callback addition for session store in ActiveRecord version 2.0.2
|
157
|
+
* Changed date column name recognition - now should match regex /(^|_)date(_|$)/i
|
158
|
+
(previously "updated_at" was recognized as :date column and not as :datetime)
|
159
|
+
|
160
|
+
== 1.1.1 2008-06-28
|
161
|
+
|
162
|
+
* Enhancements:
|
163
|
+
* Added ignore_table_columns option
|
164
|
+
* Added support for TIMESTAMP columns (without fractional seconds)
|
165
|
+
* NLS_DATE_FORMAT and NLS_TIMESTAMP_FORMAT independent DATE and TIMESTAMP columns support
|
166
|
+
* Bug fixes:
|
167
|
+
* Checks if CGI::Session::ActiveRecordStore::Session does not have enhanced_write_lobs callback before adding it
|
168
|
+
(Rails 2.0 does not add this callback, Rails 2.1 does)
|
169
|
+
|
170
|
+
== 1.1.0 2008-05-05
|
171
|
+
|
172
|
+
* Forked from original activerecord-oracle-adapter-1.0.0.9216
|
173
|
+
* Renamed oracle adapter to oracle_enhanced adapter
|
174
|
+
* Added "enhanced" to method and class definitions so that oracle_enhanced and original oracle adapter
|
175
|
+
could be used simultaniously
|
176
|
+
* Added Rails rake tasks as a copy from original oracle tasks
|
177
|
+
* Enhancements:
|
178
|
+
* Improved perfomance of schema dump methods when used on large data dictionaries
|
179
|
+
* Added LOB writing callback for sessions stored in database
|
180
|
+
* Added emulate_dates_by_column_name option
|
181
|
+
* Added emulate_integers_by_column_name option
|
182
|
+
* Added emulate_booleans_from_strings option
|
data/License.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2008-2010 Graham Jenkins, Michael Schoen, Raimonds Simanovskis
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Manifest.txt
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
History.txt
|
2
|
+
License.txt
|
3
|
+
README.rdoc
|
4
|
+
lib/active_record/connection_adapters/emulation/oracle_adapter.rb
|
5
|
+
lib/active_record/connection_adapters/oracle_enhanced.rake
|
6
|
+
lib/active_record/connection_adapters/oracle_enhanced_adapter.rb
|
7
|
+
lib/active_record/connection_adapters/oracle_enhanced_connection.rb
|
8
|
+
lib/active_record/connection_adapters/oracle_enhanced_core_ext.rb
|
9
|
+
lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
|
10
|
+
lib/active_record/connection_adapters/oracle_enhanced_dirty.rb
|
11
|
+
lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb
|
12
|
+
lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb
|
13
|
+
lib/active_record/connection_adapters/oracle_enhanced_procedures.rb
|
14
|
+
lib/active_record/connection_adapters/oracle_enhanced_reserved_words.rb
|
15
|
+
lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb
|
16
|
+
lib/active_record/connection_adapters/oracle_enhanced_schema_dumper.rb
|
17
|
+
lib/active_record/connection_adapters/oracle_enhanced_schema_statements_ext.rb
|
18
|
+
lib/active_record/connection_adapters/oracle_enhanced_tasks.rb
|
19
|
+
lib/active_record/connection_adapters/oracle_enhanced_version.rb
|
20
|
+
spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb
|
21
|
+
spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb
|
22
|
+
spec/active_record/connection_adapters/oracle_enhanced_core_ext_spec.rb
|
23
|
+
spec/active_record/connection_adapters/oracle_enhanced_cpk_spec.rb
|
24
|
+
spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb
|
25
|
+
spec/active_record/connection_adapters/oracle_enhanced_dbms_output_spec.rb
|
26
|
+
spec/active_record/connection_adapters/oracle_enhanced_dirty_spec.rb
|
27
|
+
spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
|
28
|
+
spec/active_record/connection_adapters/oracle_enhanced_procedures_spec.rb
|
29
|
+
spec/active_record/connection_adapters/oracle_enhanced_schema_dump_spec.rb
|
30
|
+
spec/active_record/connection_adapters/oracle_enhanced_schema_spec.rb
|
31
|
+
spec/spec.opts
|
32
|
+
spec/spec_helper.rb
|
data/README.rdoc
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
= activerecord-oracle_enhanced-adapter
|
2
|
+
|
3
|
+
Oracle enhanced adapter for ActiveRecord
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
Oracle "enhanced" ActiveRecord adapter contains useful additional methods for working with new and legacy Oracle databases
|
8
|
+
from Rails which are extracted from current real projects' monkey patches of original Oracle adapter.
|
9
|
+
|
10
|
+
See http://wiki.github.com/rsim/oracle-enhanced for usage information.
|
11
|
+
|
12
|
+
For questions and feature discussion please use http://groups.google.com/group/oracle-enhanced
|
13
|
+
|
14
|
+
Blog posts about oracle-enahnced can be found at http://blog.rayapps.com/category/oracle-enhanced
|
15
|
+
|
16
|
+
== REQUIREMENTS:
|
17
|
+
|
18
|
+
* Works (has been tested) with ActiveRecord version 2.0, 2.1, 2.2 and 2.3 (these are the same as Rails versions)
|
19
|
+
* Can be used on the following Ruby platforms:
|
20
|
+
* MRI - requires ruby-oci8 1.x or 2.x gem to connect to Oracle (2.0.3 or later recommended)
|
21
|
+
* Ruby/YARV 1.9.1 - requires ruby-oci8 2.x library to connect to Oracle
|
22
|
+
unicode_utils gem is recommended for Unicode aware string upcase and downcase
|
23
|
+
* JRuby - uses JDBC driver ojdbc14.jar to connect to Oracle (should be in JRUBY_HOME/lib or in Java class path)
|
24
|
+
* Requires ruby-plsql gem to support custom create, update and delete methods (but can be used without ruby-plsql if this functionality is not needed)
|
25
|
+
|
26
|
+
== INSTALL:
|
27
|
+
|
28
|
+
* [sudo] gem install activerecord-oracle_enhanced-adapter
|
29
|
+
|
30
|
+
In addition install either ruby-oci8 (for MRI/YARV) or copy Oracle JDBC driver to $JRUBY_HOME/lib (for JRuby).
|
31
|
+
|
32
|
+
== LINKS
|
33
|
+
|
34
|
+
* Source code: http://github.com/rsim/oracle-enhanced
|
35
|
+
* Bug reports / Feature requests: http://github.com/rsim/oracle-enhanced/issues
|
36
|
+
* Discuss at oracle_enhanced adapter group: http://groups.google.com/group/oracle-enhanced
|
37
|
+
|
38
|
+
== CONTRIBUTORS:
|
39
|
+
|
40
|
+
* Raimonds Simanovskis
|
41
|
+
* Jorge Dias
|
42
|
+
* James Wylder
|
43
|
+
* Rob Christie
|
44
|
+
* Nate Wieger
|
45
|
+
* Edgars Beigarts
|
46
|
+
* Lachlan Laycock
|
47
|
+
* toddwf
|
48
|
+
* Anton Jenkins
|
49
|
+
* Dave Smylie
|
50
|
+
* Alex Rothenberg
|
51
|
+
* Billy Reisinger
|
52
|
+
* David Blain
|
53
|
+
|
54
|
+
== LICENSE:
|
55
|
+
|
56
|
+
(The MIT License)
|
57
|
+
|
58
|
+
Copyright (c) 2008-2010 Graham Jenkins, Michael Schoen, Raimonds Simanovskis
|
59
|
+
|
60
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
61
|
+
a copy of this software and associated documentation files (the
|
62
|
+
'Software'), to deal in the Software without restriction, including
|
63
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
64
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
65
|
+
permit persons to whom the Software is furnished to do so, subject to
|
66
|
+
the following conditions:
|
67
|
+
|
68
|
+
The above copyright notice and this permission notice shall be
|
69
|
+
included in all copies or substantial portions of the Software.
|
70
|
+
|
71
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
72
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
73
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
74
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
75
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
76
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
77
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "activerecord-oracle_enhanced-adapter"
|
8
|
+
gem.summary = "Oracle enhanced adapter for ActiveRecord"
|
9
|
+
gem.description = <<-EOS
|
10
|
+
Oracle "enhanced" ActiveRecord adapter contains useful additional methods for working with new and legacy Oracle databases.
|
11
|
+
This adapter is superset of original ActiveRecord Oracle adapter.
|
12
|
+
EOS
|
13
|
+
gem.email = "raimonds.simanovskis@gmail.com"
|
14
|
+
gem.homepage = "http://github.com/rsim/oracle-enhanced"
|
15
|
+
gem.authors = ["Raimonds Simanovskis"]
|
16
|
+
gem.add_dependency "activerecord", ">= 2.0.0"
|
17
|
+
gem.add_development_dependency "rspec", ">= 1.2.9"
|
18
|
+
gem.extra_rdoc_files = ['README.rdoc']
|
19
|
+
end
|
20
|
+
Jeweler::GemcutterTasks.new
|
21
|
+
rescue LoadError
|
22
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
23
|
+
end
|
24
|
+
|
25
|
+
require 'spec/rake/spectask'
|
26
|
+
Spec::Rake::SpecTask.new(:spec) do |spec|
|
27
|
+
spec.libs << 'lib' << 'spec'
|
28
|
+
spec.spec_files = FileList['spec/**/*_spec.rb']
|
29
|
+
end
|
30
|
+
|
31
|
+
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
32
|
+
spec.libs << 'lib' << 'spec'
|
33
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
34
|
+
spec.rcov = true
|
35
|
+
end
|
36
|
+
|
37
|
+
task :spec => :check_dependencies
|
38
|
+
|
39
|
+
task :default => :spec
|
40
|
+
|
41
|
+
require 'rake/rdoctask'
|
42
|
+
Rake::RDocTask.new do |rdoc|
|
43
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
44
|
+
|
45
|
+
rdoc.rdoc_dir = 'doc'
|
46
|
+
rdoc.title = "activerecord-oracle_enhanced-adapter #{version}"
|
47
|
+
rdoc.rdoc_files.include('README*')
|
48
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
49
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.2.4
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{c3-activerecord-oracle_enhanced-adapter}
|
8
|
+
s.version = "1.2.4"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Raimonds Simanovskis"]
|
12
|
+
s.date = %q{2011-05-23}
|
13
|
+
s.description = %q{Oracle "enhanced" ActiveRecord adapter contains useful additional methods for working with new and legacy Oracle databases.
|
14
|
+
This adapter is superset of original ActiveRecord Oracle adapter.
|
15
|
+
}
|
16
|
+
s.email = %q{raimonds.simanovskis@gmail.com}
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
"History.txt",
|
22
|
+
"License.txt",
|
23
|
+
"Manifest.txt",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"activerecord-oracle_enhanced-adapter.gemspec",
|
28
|
+
"lib/active_record/connection_adapters/emulation/oracle_adapter.rb",
|
29
|
+
"lib/active_record/connection_adapters/oracle_enhanced.rake",
|
30
|
+
"lib/active_record/connection_adapters/oracle_enhanced_adapter.rb",
|
31
|
+
"lib/active_record/connection_adapters/oracle_enhanced_connection.rb",
|
32
|
+
"lib/active_record/connection_adapters/oracle_enhanced_core_ext.rb",
|
33
|
+
"lib/active_record/connection_adapters/oracle_enhanced_cpk.rb",
|
34
|
+
"lib/active_record/connection_adapters/oracle_enhanced_dirty.rb",
|
35
|
+
"lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb",
|
36
|
+
"lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb",
|
37
|
+
"lib/active_record/connection_adapters/oracle_enhanced_procedures.rb",
|
38
|
+
"lib/active_record/connection_adapters/oracle_enhanced_reserved_words.rb",
|
39
|
+
"lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb",
|
40
|
+
"lib/active_record/connection_adapters/oracle_enhanced_schema_dumper.rb",
|
41
|
+
"lib/active_record/connection_adapters/oracle_enhanced_schema_statements_ext.rb",
|
42
|
+
"lib/active_record/connection_adapters/oracle_enhanced_tasks.rb",
|
43
|
+
"lib/active_record/connection_adapters/oracle_enhanced_version.rb",
|
44
|
+
"spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb",
|
45
|
+
"spec/active_record/connection_adapters/oracle_enhanced_adapter_structure_dumper_spec.rb",
|
46
|
+
"spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb",
|
47
|
+
"spec/active_record/connection_adapters/oracle_enhanced_core_ext_spec.rb",
|
48
|
+
"spec/active_record/connection_adapters/oracle_enhanced_cpk_spec.rb",
|
49
|
+
"spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb",
|
50
|
+
"spec/active_record/connection_adapters/oracle_enhanced_dbms_output_spec.rb",
|
51
|
+
"spec/active_record/connection_adapters/oracle_enhanced_dirty_spec.rb",
|
52
|
+
"spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb",
|
53
|
+
"spec/active_record/connection_adapters/oracle_enhanced_procedures_spec.rb",
|
54
|
+
"spec/active_record/connection_adapters/oracle_enhanced_schema_dump_spec.rb",
|
55
|
+
"spec/active_record/connection_adapters/oracle_enhanced_schema_spec.rb",
|
56
|
+
"spec/spec.opts",
|
57
|
+
"spec/spec_helper.rb"
|
58
|
+
]
|
59
|
+
s.homepage = %q{http://github.com/rsim/oracle-enhanced}
|
60
|
+
s.require_paths = ["lib"]
|
61
|
+
s.rubygems_version = %q{1.4.2}
|
62
|
+
s.summary = %q{Oracle enhanced adapter for ActiveRecord}
|
63
|
+
|
64
|
+
if s.respond_to? :specification_version then
|
65
|
+
s.specification_version = 3
|
66
|
+
|
67
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
68
|
+
s.add_runtime_dependency(%q<activerecord>, [">= 2.0.0"])
|
69
|
+
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
70
|
+
else
|
71
|
+
s.add_dependency(%q<activerecord>, [">= 2.0.0"])
|
72
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
73
|
+
end
|
74
|
+
else
|
75
|
+
s.add_dependency(%q<activerecord>, [">= 2.0.0"])
|
76
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|