wielder_of_anor 0.1.01 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wielder_of_anor.rb +8 -8
- data/lib/wielder_of_anor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a47bf1def72054221463f2a7709a2194f6e90b5
|
4
|
+
data.tar.gz: 295e98610447dc2ffa2edde095d74ce332eda173
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 583ac23abbbeafc87d004ec4749c0d18c9e6d967fe446c5fcf136acd1d17936bcd7dc85a42629f0ba83a16c1f14f28b343615285876c661a94594c2839a2ba62
|
7
|
+
data.tar.gz: 1300e02c2252ce4278c3bedcd11dd91f1ce00d1dac3a229e00c5d145dfeb1eeafc35895895e1dce35508ded6d1069af0697225d4f864464039d139ccf1d699db
|
data/lib/wielder_of_anor.rb
CHANGED
@@ -26,9 +26,9 @@ module WielderOfAnor
|
|
26
26
|
def prepare(commit_message, force_commit)
|
27
27
|
set_app_directory
|
28
28
|
|
29
|
-
first_run unless File.exists?("#{@app_directory}/
|
29
|
+
first_run unless File.exists?("#{@app_directory}/lib/config.yaml")
|
30
30
|
|
31
|
-
config = YAML.load_file("#{@app_directory}/
|
31
|
+
config = YAML.load_file("#{@app_directory}/lib/config.yaml")
|
32
32
|
@commit_message = commit_message
|
33
33
|
@force_commit = force_commit
|
34
34
|
@current_directory = Dir.pwd
|
@@ -70,7 +70,7 @@ module WielderOfAnor
|
|
70
70
|
|
71
71
|
def output_forbidden_words
|
72
72
|
set_app_directory
|
73
|
-
config = YAML.load_file("#{@app_directory}/
|
73
|
+
config = YAML.load_file("#{@app_directory}/lib/config.yaml")
|
74
74
|
|
75
75
|
unless config
|
76
76
|
lines_pretty_print Rainbow('You have yet to set your forbidden words! Please run the app with the parameter '\
|
@@ -123,9 +123,9 @@ module WielderOfAnor
|
|
123
123
|
'you have actually changed and not your entire code base!). Where '\
|
124
124
|
'would you like that file to be located?'
|
125
125
|
lines_pretty_print Rainbow('(Just hit enter to accept the default, which is'\
|
126
|
-
" #{@app_directory}/
|
126
|
+
" #{@app_directory}/lib/files_changed.)").yellow
|
127
127
|
files_changed_file_location = STDIN.gets.strip!
|
128
|
-
files_changed_file_location = "#{@app_directory}/
|
128
|
+
files_changed_file_location = "#{@app_directory}/lib/files_changed" if files_changed_file_location == ''
|
129
129
|
|
130
130
|
files_changed_file_location
|
131
131
|
end
|
@@ -134,9 +134,9 @@ module WielderOfAnor
|
|
134
134
|
lines_pretty_print 'Your \'forbidden words\' are stored in a file. Where would like that'\
|
135
135
|
' file to be located?'
|
136
136
|
lines_pretty_print Rainbow('(Just hit enter to accept the default, which is'\
|
137
|
-
" #{@app_directory}/
|
137
|
+
" #{@app_directory}/lib/forbidden_words.)").yellow
|
138
138
|
forbidden_words_file_location = STDIN.gets.strip!
|
139
|
-
forbidden_words_file_location = "#{@app_directory}/
|
139
|
+
forbidden_words_file_location = "#{@app_directory}/lib/forbidden_words" if forbidden_words_file_location == ""
|
140
140
|
|
141
141
|
forbidden_words_file_location
|
142
142
|
end
|
@@ -168,7 +168,7 @@ module WielderOfAnor
|
|
168
168
|
config['commit_for_user'] = false
|
169
169
|
end
|
170
170
|
|
171
|
-
file = File.open('
|
171
|
+
file = File.open('lib/config.yaml', 'w')
|
172
172
|
YAML.dump(config, file)
|
173
173
|
file.close
|
174
174
|
end
|