activerecord-import 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/test/test_helper.rb +1 -5
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/test/test_helper.rb CHANGED
@@ -12,8 +12,7 @@ require "bundler"
12
12
  Bundler.setup
13
13
 
14
14
  require "logger"
15
- require "rails"
16
- require "rails/test_help"
15
+ require 'test/unit'
17
16
  require "active_record"
18
17
  require "active_record/fixtures"
19
18
  require "active_support/test_case"
@@ -21,7 +20,6 @@ require "active_support/test_case"
21
20
  require "delorean"
22
21
  require "ruby-debug"
23
22
 
24
- class MyApplication < Rails::Application ; end
25
23
  adapter = ENV["ARE_DB"] || "sqlite3"
26
24
 
27
25
  FileUtils.mkdir_p 'log'
@@ -29,11 +27,9 @@ ActiveRecord::Base.logger = Logger.new("log/test.log")
29
27
  ActiveRecord::Base.logger.level = Logger::DEBUG
30
28
  ActiveRecord::Base.configurations["test"] = YAML.load(test_dir.join("database.yml").open)[adapter]
31
29
 
32
-
33
30
  require "activerecord-import"
34
31
  ActiveRecord::Base.establish_connection "test"
35
32
 
36
-
37
33
  ActiveSupport::Notifications.subscribe(/active_record.sql/) do |event, _, _, _, hsh|
38
34
  ActiveRecord::Base.logger.info hsh[:sql]
39
35
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-import
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Zach Dennis
@@ -32,7 +32,7 @@ dependencies:
32
32
  - 0rc
33
33
  version: 3.0.0rc
34
34
  requirement: *id001
35
- name: rails
35
+ name: activerecord
36
36
  type: :runtime
37
37
  description: Extraction of the ActiveRecord::Base#import functionality from ar-extensions for Rails 3 and beyond
38
38
  email: zach.dennis@gmail.com