lucarecord 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75aa7ba67a42741a9b533dcdbd83a52a3a9d4d113b8bdb558d894d39cdab453b
4
- data.tar.gz: 1f80272124518bfdf0f8f2461e8e5f24a2d60ca5bffa1c4f06e386b5f5b966d3
3
+ metadata.gz: 48c2bb561dd877e5400caf8944563350b26d013164692fdccdb61d128a45312e
4
+ data.tar.gz: 6b5a1e71c3a1b4f337ddfe967050e6443f05c246d07c51d360e0c6ea10955984
5
5
  SHA512:
6
- metadata.gz: b18fe1bb5b4094d76330adb36445c673941f4b75987657029c72fb987bbc1b64dd405623bb6b4a1636288c7f3054bf02cdb0e77a1161b761d6b7e5e4510e8663
7
- data.tar.gz: 0eb7fda772606eec3019b08fcaccc89c99b17fb9d52169c7c31b529ac70fbd16c18a6b305dc95acc29dfee04f22f14381ee8302b081c4e26d4f3c352c45df87e
6
+ metadata.gz: 112755952657fbbf7463b8af6e942ae7598c0a905033f38bd99d07b5e5dfba124177f5a9c9f82aee6c0f4fdd920ea46637c4d8d7453d80b1fc852d93548ad4af
7
+ data.tar.gz: 2598d1e49de40e1bd58abc5436c77291683a3a9704348ec8ba9764c6f8435148ee01b9f237297bc145e0459c16b19127f8e463fc352dfebd36af1e00e4039cec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## LucaRecord 0.7.2
2
+
3
+ * `LucaCmd.check_dir()` accepts optional `ext_conf:` keyword.
4
+
1
5
  ## LucaRecord 0.7.1
2
6
 
3
7
  * `LucaRecord::IO.load_project()` supports optional `ext_conf:` keyword for an extra config file.
data/lib/luca_cmd.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  require 'luca_record'
3
3
 
4
4
  class LucaCmd
5
- def self.check_dir(target)
5
+ def self.check_dir(target, ext_conf: nil)
6
6
  unless Dir.exist?('data')
7
7
  Dir.glob('*').reject { |f| File.symlink?(f) }
8
8
  .find { |f| File.directory?("#{f}/data/#{target}") }.tap do |d|
@@ -11,7 +11,7 @@ class LucaCmd
11
11
  Dir.chdir(d)
12
12
  end
13
13
  end
14
- LucaRecord::Base.load_project(Dir.pwd)
14
+ LucaRecord::Base.load_project(Dir.pwd, ext_conf: ext_conf)
15
15
  LucaRecord::Base.valid_project?
16
16
  yield
17
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucaRecord
4
- VERSION = '0.7.1'
4
+ VERSION = '0.7.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucarecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuma Takahiro