careful-import 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/careful-import.gemspec +1 -1
- data/lib/careful_import/railtie.rb +1 -2
- data/lib/careful_import/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cae06c6301b01346229b1fc685267a51cf3994daecd70168263494e66191e290
|
4
|
+
data.tar.gz: 7401359a59e9fa92bd49d79c3f1783312c32ae25fc6652796cafe64b00ff1e66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23649528c2234469ffa40a01d2c81d079e5d80a4ee4983617c105718590bcb65b26016fff0b8418628794ecc7c516db701e9afa0ca475e422aa73794f22a7e91
|
7
|
+
data.tar.gz: 397cdc23ed34acf4e8667455ba082aa57bb235d290a2b6471d87747774b520ce13c524a1de29e5db14a43dd51344255a59835765e63aaa3a5362c1efd7c3ebb1
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/careful-import.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.email = ["civins@itglue.com"]
|
8
8
|
|
9
9
|
spec.summary = %q{Validates and updates args prior to ActiveRecord::Import import}
|
10
|
-
spec.description = %q{If a primary_key value is passed in when importing an error is raised}
|
10
|
+
spec.description = %q{If a primary_key value is passed in when importing using ActiveRecord::Import import an error is raised}
|
11
11
|
spec.homepage = "https://bitbucket.org/itglue/careful-import/src/master/"
|
12
12
|
spec.license = "MIT"
|
13
13
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.2.8")
|
@@ -1,10 +1,9 @@
|
|
1
1
|
require 'rails'
|
2
|
-
require_relative '
|
2
|
+
require_relative 'initializer'
|
3
3
|
|
4
4
|
module CarefulImport
|
5
5
|
class Railtie < Rails::Railtie
|
6
6
|
config.to_prepare do
|
7
|
-
# initialize our custom activerecord-import validator to ensure only 53-bit id's are used and not nextval
|
8
7
|
CarefulImport::Initializer.initialize
|
9
8
|
end
|
10
9
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: careful-import
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clive Ivins
|
@@ -24,7 +24,8 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
description: If a primary_key value is passed in when importing
|
27
|
+
description: If a primary_key value is passed in when importing using ActiveRecord::Import
|
28
|
+
import an error is raised
|
28
29
|
email:
|
29
30
|
- civins@itglue.com
|
30
31
|
executables: []
|