editor_learner 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/editor_learner/version.rb +1 -1
- data/lib/editor_learner.rb +5 -5
- 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: 5872fd7659ebd835fbb395c262db2f920b31a443
|
4
|
+
data.tar.gz: 9a38820194d21036e9f49867631b4c1ef70e4b3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7febf9d38e4bdc5d376318f253049f8cea37bf7278440db4fb188233a179896f83e44e73e669aa325dda66fcdeb0556174850cca3428d4b053168eff6f7117cd
|
7
|
+
data.tar.gz: e5bf3c2135fbf931f988a76a0e6528bde4eb9f864e2d82d9c97183b2a0180c6bd22de9614b6121183d3bf433d75ce7b7340482c780ff5912c8066daf60f7c0f7
|
data/Gemfile.lock
CHANGED
data/lib/editor_learner.rb
CHANGED
@@ -16,7 +16,7 @@ class CLI < Thor
|
|
16
16
|
@lib_location = Open3.capture3("gem environment gemdir")
|
17
17
|
@versions = Open3.capture3("gem list editor_learner")
|
18
18
|
@latest_version = @versions[0].chomp.gsub(' (', '-').gsub(')','')
|
19
|
-
@inject = File.join(@lib_location[0].chomp, "/gems/#{@latest_version}/lib")
|
19
|
+
p @inject = File.join(@lib_location[0].chomp, "/gems/#{@latest_version}/lib")
|
20
20
|
if File.exist?(@prac_dir) != true then
|
21
21
|
FileUtils.mkdir_p(@prac_dir)
|
22
22
|
FileUtils.touch("#{@prac_dir}/question.rb")
|
@@ -35,11 +35,11 @@ class CLI < Thor
|
|
35
35
|
FileUtils.mkdir("#{@prac_dir}/ruby_#{num}")
|
36
36
|
FileUtils.touch("#{@prac_dir}/ruby_#{num}/q.rb")
|
37
37
|
FileUtils.touch("#{@prac_dir}/ruby_#{num}/sequential_h.rb")
|
38
|
-
if File.exist?("#{@inject}/sequential_h.rb") == true then
|
38
|
+
#if File.exist?("#{@inject}/sequential_h.rb") == true then
|
39
39
|
FileUtils.cp("#{@inject}/sequential_h.rb", "#{@prac_dir}/ruby_#{num}/sequential_h.rb")
|
40
|
-
else
|
41
|
-
|
42
|
-
end
|
40
|
+
#else
|
41
|
+
# FileUtils.cp("#{ENV['HOME']}/editor_learner/lib/sequential_h.rb", "#{@prac_dir}/ruby_#{num}/sequential_h.rb")
|
42
|
+
#end
|
43
43
|
range_ruby.each do|n|
|
44
44
|
FileUtils.touch("#{@prac_dir}/ruby_#{num}/#{n}.rb")
|
45
45
|
end
|