merlin 0.1.9 → 0.1.10

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
  SHA1:
3
- metadata.gz: c1a490b24c4f258584bf1b9c081cc1a956f4da39
4
- data.tar.gz: 613efcbd13bd979f1fc52e29aafc1533aa2a2de3
3
+ metadata.gz: 1dcaecf599e448a25ec8e464a009360aba3ab5d8
4
+ data.tar.gz: 6f7185b678e87e9e741ea6ccca283bce22a8f4c5
5
5
  SHA512:
6
- metadata.gz: 6996a19d576cda97e4dbab2cf4d3be2ea82b318c24c56a92d0f182f615f2202068645047eef575ad19ad5ef8b46acc35c08106e0b4d5ddd5c8bee15fc0d59bf0
7
- data.tar.gz: bc2feec7af874ab9438a118c7ae0a27410a3e5dd6f67c6d60af4d9e743dc65d0a656870db921aaf613f882c05786b4976b8a2cd12b217e950b996e586a27fcda
6
+ metadata.gz: ba1d0f112dbca80bca9142e4a7f6fd1ec9e424a164a44eac286ead2550f5f82e2ddea9748aea01a9d56041e3eeb1638d88d8ed4e82a5789f52c5fa1f651fbff2
7
+ data.tar.gz: 6f8d8a0f1e0c812695ed01497837f27ca2041539ad4feb83d224bfc15d7cadd1d0f04ad1ca3ab61b850bd0f9da90a453b66f8b4d3298e4cd18608e34ad10d431
@@ -75,9 +75,6 @@ module Merlin
75
75
  end
76
76
 
77
77
  def dump_config(config)
78
- tmp_dir = "tmp"
79
- dump_filepath = File.join(tmp_dir, "merlin_offline_dump.yml")
80
- FileUtils.mkdir(tmp_dir) unless File.exist?(tmp_dir) && File.directory?(tmp_dir)
81
78
  File.open(dump_filepath, "w") { |file| file.puts(YAML.dump(config)) }
82
79
  end
83
80
 
@@ -92,6 +89,16 @@ module Merlin
92
89
  puts merlin_message
93
90
  end
94
91
 
92
+ def dump_filepath
93
+ File.join(tmp_dir, "merlin_offline_dump.yml")
94
+ end
95
+
96
+ def tmp_dir
97
+ "tmp".tap do |tmp|
98
+ FileUtils.mkdir(tmp) unless File.exist?(tmp) && File.directory?(tmp)
99
+ end
100
+ end
101
+
95
102
  def merlin_server
96
103
  @local_raw['merlin']
97
104
  end
@@ -1,3 +1,3 @@
1
1
  module Merlin
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merlin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artur Roszczyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-28 00:00:00.000000000 Z
11
+ date: 2013-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday