gitconfigio 0.0.2 → 1.0.0

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.
data/lib/gitconfigio.rb CHANGED
@@ -51,12 +51,16 @@ module GitConfigIO
51
51
 
52
52
  def self.concat(hash,source = '')
53
53
  source = parse(source) if source.class == String
54
- hash.merge! source
54
+ hash.merge source
55
55
  end
56
56
 
57
- def self.merge!(path,source = '')
57
+ def self.merge(path,source = '')
58
58
  config = load(path)
59
59
  concat(config, source)
60
- dump(path,config)
61
60
  end
61
+
62
+ def self.merge!(path,source = '')
63
+ dump(path,merge(path,source))
64
+ end
65
+
62
66
  end
@@ -1,3 +1,3 @@
1
1
  module GitConfigIO
2
- VERSION = "0.0.2"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -48,7 +48,7 @@ EOS
48
48
  it 'concat method' do
49
49
  g_code = ext.merge color_hash
50
50
  ext_cp = ext.dup
51
- GitConfigIO::concat(ext_cp,color_str)
52
- expect(ext_cp).to eq(g_code)
51
+ test_data = GitConfigIO::concat(ext_cp,color_str)
52
+ expect(test_data).to eq(g_code)
53
53
  end
54
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitconfigio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-21 00:00:00.000000000 Z
12
+ date: 2015-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler