strada 0.0.2 → 0.0.3

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: 6a981211dee0078b5673c81a679e548935bc96a89b5a276ad929a4f9f78fec62
4
- data.tar.gz: 2a2b608ebbbe7278cd8c15e5e595d6e3c8ac1084700b163a3a7d919c234a49fe
3
+ metadata.gz: 477e7c0ce3435ec1a093c37b84b2acfef8b4066af4f2bfe0844ac026579cd890
4
+ data.tar.gz: 930f254c50b58c986c53586b5c6d139687dae7afbceaa1b8352566cd0c32d226
5
5
  SHA512:
6
- metadata.gz: dd490ff66da8df469d1c68d81a089af33f4bea7710c204800b2afc896629902554f8a1fd7aba7b81f350c5927527e4dc9a70aa9f0bd14db2a0ecb4d0dea9c716
7
- data.tar.gz: 645f418feeef553fab68563d2490aa122dd170bcb275231efead05e485cb7dae05861001de383d804b612777059c605dc364b145b8454aaceeefbf23c3c1d934
6
+ metadata.gz: c0bcef4d04513deb233b58845d921419c95d00d665277578e3e378f2c162da33100a8618b6210864c2e30fe309c2a4cfaed0d2a09618e134d7b31bcfaed3b902
7
+ data.tar.gz: 3f3ca72c326f29d98c2f82b33359e6953f1e611d6accab9a17021b5dd3f12dea66866fdc17c16d3cdf70a8e440dd965f8a8b7a030a80b54d8ef4beadce0b916a
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Strada
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
data/lib/strada.rb CHANGED
@@ -78,8 +78,8 @@ class Strada
78
78
  # @option opts [boolean] :load load config once saved, by default false
79
79
  # @return [boolean] true if config didn't exist and was created, false if config already exists
80
80
  def create(opts = {})
81
- src = opts.delete :source || :default
82
- dst = opts.delete :destination || :user
81
+ src = opts.delete(:source) || :default
82
+ dst = opts.delete(:destination) || :user
83
83
 
84
84
  no_config = false
85
85
  no_config = true if @system.empty? && @user.empty?
data/strada.gemspec CHANGED
@@ -12,6 +12,5 @@ Gem::Specification.new do |s|
12
12
  s.summary = "configuration library"
13
13
  s.description = "configuration library with object access to YAML/JSON/TOML backends"
14
14
  s.files = `git ls-files`.split("\n")
15
- s.executables = %w( )
16
15
  s.require_path = "lib"
17
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strada
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - WENWU.YAN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-14 00:00:00.000000000 Z
11
+ date: 2022-04-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: configuration library with object access to YAML/JSON/TOML backends
14
14
  email: 968826@gmail.com