careful-import 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cae06c6301b01346229b1fc685267a51cf3994daecd70168263494e66191e290
4
- data.tar.gz: 7401359a59e9fa92bd49d79c3f1783312c32ae25fc6652796cafe64b00ff1e66
3
+ metadata.gz: d95cfc374b8bb1fd39441e6cabec32ccbe77f76ccac37a46f981214090a1acb3
4
+ data.tar.gz: 1ff8978e9e9669bec628f478d36b570e9dcd31160ed01064b94299e316ec07db
5
5
  SHA512:
6
- metadata.gz: 23649528c2234469ffa40a01d2c81d079e5d80a4ee4983617c105718590bcb65b26016fff0b8418628794ecc7c516db701e9afa0ca475e422aa73794f22a7e91
7
- data.tar.gz: 397cdc23ed34acf4e8667455ba082aa57bb235d290a2b6471d87747774b520ce13c524a1de29e5db14a43dd51344255a59835765e63aaa3a5362c1efd7c3ebb1
6
+ metadata.gz: 62a1b952199ae21f2484899d316008c7f968480ccb71a30b7153001d53878c811f6a0512d097bbcce25adfaa77e6a42c8fdbcd91665646152a10df6569b087a8
7
+ data.tar.gz: '084afaa6f15e897a2e644eaf49b61899098e976b46dcaae65c17160ee95f5722b56c11604ef8400208392d6d5db924cb5f73efa867eb1e0e4dfefa0e26ad72ee'
data/README.md CHANGED
@@ -22,7 +22,10 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ Add initializer to config file for your application.
26
+ ```ruby
27
+ CarefulImport::Initializer.initialize
28
+ ```
26
29
 
27
30
  ## Development
28
31
 
@@ -6,8 +6,8 @@ Gem::Specification.new do |spec|
6
6
  spec.authors = ["Clive Ivins"]
7
7
  spec.email = ["civins@itglue.com"]
8
8
 
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 using ActiveRecord::Import import an error is raised}
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 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,2 +1 @@
1
- require 'careful_import/railtie' if defined? ::Rails::Railtie
2
1
  require 'careful_import/importer'
@@ -1,5 +1,5 @@
1
1
  module CarefulImport
2
2
  module Version
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clive Ivins
@@ -24,8 +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 using ActiveRecord::Import
28
- import an error is raised
27
+ description: If a primary_key value is passed in when importing using activerecord-import#import
28
+ an error is raised
29
29
  email:
30
30
  - civins@itglue.com
31
31
  executables: []
@@ -46,7 +46,6 @@ files:
46
46
  - lib/careful_import.rb
47
47
  - lib/careful_import/importer.rb
48
48
  - lib/careful_import/initializer.rb
49
- - lib/careful_import/railtie.rb
50
49
  - lib/careful_import/version.rb
51
50
  homepage: https://bitbucket.org/itglue/careful-import/src/master/
52
51
  licenses:
@@ -71,5 +70,5 @@ requirements: []
71
70
  rubygems_version: 3.0.8
72
71
  signing_key:
73
72
  specification_version: 4
74
- summary: Validates and updates args prior to ActiveRecord::Import import
73
+ summary: Validates and updates args prior to activerecord-import#import
75
74
  test_files: []
@@ -1,10 +0,0 @@
1
- require 'rails'
2
- require_relative 'initializer'
3
-
4
- module CarefulImport
5
- class Railtie < Rails::Railtie
6
- config.to_prepare do
7
- CarefulImport::Initializer.initialize
8
- end
9
- end
10
- end