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 +4 -4
- data/lib/merlin/configuration.rb +10 -3
- data/lib/merlin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dcaecf599e448a25ec8e464a009360aba3ab5d8
|
4
|
+
data.tar.gz: 6f7185b678e87e9e741ea6ccca283bce22a8f4c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba1d0f112dbca80bca9142e4a7f6fd1ec9e424a164a44eac286ead2550f5f82e2ddea9748aea01a9d56041e3eeb1638d88d8ed4e82a5789f52c5fa1f651fbff2
|
7
|
+
data.tar.gz: 6f8d8a0f1e0c812695ed01497837f27ca2041539ad4feb83d224bfc15d7cadd1d0f04ad1ca3ab61b850bd0f9da90a453b66f8b4d3298e4cd18608e34ad10d431
|
data/lib/merlin/configuration.rb
CHANGED
@@ -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
|
data/lib/merlin/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|