djoini 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: ef9bee8ec0d0a303500c4d8b1c274277da54cc58
4
- data.tar.gz: 49f159b37c8334ae196107fff35b1205a19d5878
3
+ metadata.gz: 8bbe2882fc27f06694430982057a42bc30722f1b
4
+ data.tar.gz: 6d949ba9c12a479654de38e3acb47b565fb5cbc2
5
5
  SHA512:
6
- metadata.gz: 0f4167f4f80f398389cb34e168620599194d32a6bc39206444b53fd14a3b0244e6a433daaee84f667d2aaf49db421ce9d9800e3d5439fe4e801ed2a06555232d
7
- data.tar.gz: 76c815604ef444ddc748797ffd0e2eaa2c9b2751dc5ef06d22358bc24973973f8fd7cd1f91fd4d3edf6c046801f02a1f97080ab345f419e1818a8a0696bd2bfd
6
+ metadata.gz: 19181529e88ae20749ef92f6fcbe8cb93ca553de572f8d42fea14304860fd26cb2a667e72f3345e01c2bb64faf95412d1cc9f749fb75940007e4ffbf23b3cd4f
7
+ data.tar.gz: 9e457de4d5229f965ff702e25709021ad49b2501167ba5b29b2f216017862f9d9bcd9b93fc73dfba71888035e615b0a503dbfbcb994a7e9f32ee81b9f232a4fe
@@ -1,3 +1,3 @@
1
1
  module Djoini
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
data/lib/tasks/load.rake CHANGED
@@ -9,13 +9,14 @@ namespace :djoini do
9
9
  # To make sure configure was called if initializer wasn't found
10
10
  Djoini.configure {}
11
11
 
12
-
13
12
  require 'yaml'
14
- _conn_info = YAML.load(File.read(Dir.pwd + '/config/database.yml'))
13
+ _db_config_path = File.join(Dir.pwd, '/config/database.yml')
14
+ fail unless File.file?(_db_config_path)
15
+ _conn_info = YAML.load(File.read(_db_config_path))
15
16
  Djoini::Connection.instance.establish_connection(_conn_info['postgres'])
16
17
 
17
18
  # Path taken from configuration
18
- _loader = Djoini::File.new
19
+ _loader = Djoini::Files.new
19
20
 
20
21
  if args[:type] == 'ini' || Djoini.configuration.fixtures_type == 'ini'
21
22
  _loader.load_files('ini')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: djoini
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - faul