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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6394af12013d11b0383b6fdcab2e8be5bd88b1cd
4
- data.tar.gz: 5bfb30e8c15058cac2ec1dcb040cbd92b5f4d40a
3
+ metadata.gz: 3a47bf1def72054221463f2a7709a2194f6e90b5
4
+ data.tar.gz: 295e98610447dc2ffa2edde095d74ce332eda173
5
5
  SHA512:
6
- metadata.gz: 34facb1631eff3492dc151d8b26887fc3c08c74a59edb5631881d1b2b8f5fa91f15f6adf029844d8296abe6d4a7475dc14e1f8bde0701f372bece1daf6510bd8
7
- data.tar.gz: 38192dc621739c8f9f40667dd206005c07b4633ab30d0074746daa7545ebb7a1fa7c6cd294915e550e4a364161b19176e6df1a5e5d9e418604ec9f59b9a1e85d
6
+ metadata.gz: 583ac23abbbeafc87d004ec4749c0d18c9e6d967fe446c5fcf136acd1d17936bcd7dc85a42629f0ba83a16c1f14f28b343615285876c661a94594c2839a2ba62
7
+ data.tar.gz: 1300e02c2252ce4278c3bedcd11dd91f1ce00d1dac3a229e00c5d145dfeb1eeafc35895895e1dce35508ded6d1069af0697225d4f864464039d139ccf1d699db
@@ -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}/config/config.yaml")
29
+ first_run unless File.exists?("#{@app_directory}/lib/config.yaml")
30
30
 
31
- config = YAML.load_file("#{@app_directory}/config/config.yaml")
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}/config/config.yaml")
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}/docs/files_changed.)").yellow
126
+ " #{@app_directory}/lib/files_changed.)").yellow
127
127
  files_changed_file_location = STDIN.gets.strip!
128
- files_changed_file_location = "#{@app_directory}/docs/files_changed" if files_changed_file_location == ''
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}/docs/forbidden_words.)").yellow
137
+ " #{@app_directory}/lib/forbidden_words.)").yellow
138
138
  forbidden_words_file_location = STDIN.gets.strip!
139
- forbidden_words_file_location = "#{@app_directory}/docs/forbidden_words" if forbidden_words_file_location == ""
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('config/config.yaml', 'w')
171
+ file = File.open('lib/config.yaml', 'w')
172
172
  YAML.dump(config, file)
173
173
  file.close
174
174
  end
@@ -1,3 +1,3 @@
1
1
  module WielderOfAnor
2
- VERSION = "0.1.01"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wielder_of_anor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.01
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Sellek