tluong_test_gem 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/test_gem.rb +5 -6
- data/lib/test_gem/version.rb +1 -1
- metadata +1 -1
data/lib/test_gem.rb
CHANGED
@@ -11,13 +11,12 @@ module TestGem
|
|
11
11
|
|
12
12
|
def self.init_config
|
13
13
|
puts "called init_config"
|
14
|
+
config = {
|
15
|
+
default_file_name: 'default_file.txt',
|
16
|
+
supported_types: ['txt', 'pdf']
|
17
|
+
}
|
14
18
|
File.open('config.yml', 'w') do |f|
|
15
|
-
f.puts
|
16
|
-
default_file_name: default_file.txt
|
17
|
-
supported_types:
|
18
|
-
- txt
|
19
|
-
- pdf
|
20
|
-
EOF
|
19
|
+
f.puts config.to_yaml
|
21
20
|
end
|
22
21
|
end
|
23
22
|
|
data/lib/test_gem/version.rb
CHANGED