editor_learner 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5872fd7659ebd835fbb395c262db2f920b31a443
4
- data.tar.gz: 9a38820194d21036e9f49867631b4c1ef70e4b3d
3
+ metadata.gz: 3629f77d71916ba88b11c2344358f82c76b263e7
4
+ data.tar.gz: e47926170236a5dc9417a8ac8e05025577a44f8a
5
5
  SHA512:
6
- metadata.gz: 7febf9d38e4bdc5d376318f253049f8cea37bf7278440db4fb188233a179896f83e44e73e669aa325dda66fcdeb0556174850cca3428d4b053168eff6f7117cd
7
- data.tar.gz: e5bf3c2135fbf931f988a76a0e6528bde4eb9f864e2d82d9c97183b2a0180c6bd22de9614b6121183d3bf433d75ce7b7340482c780ff5912c8066daf60f7c0f7
6
+ metadata.gz: 3bbbdc6e2fb42d75da53e394429480269a457bae616c0191189a7676e9e5d9d811db7cbb99e6845e4401e69325d269f2765e8f638dd1ab8e2ff66cb8a48b75c3
7
+ data.tar.gz: 1c52caabab8109090adb4b75ae072205ee8cfda2c390ee894a8f7696078c0c0357e0a3d94bd1e661109aa09fd040a922916ad52459c9ef88188c328d5860b665
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- editor_learner (1.0.1)
4
+ editor_learner (1.0.2)
5
5
  colorize
6
6
  diff-lcs
7
7
  minitest (~> 5.10.3)
@@ -1,3 +1,3 @@
1
1
  module EditorLearner
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -15,8 +15,8 @@ class CLI < Thor
15
15
  @prac_dir="#{ENV['HOME']}/editor_learner/workshop"
16
16
  @lib_location = Open3.capture3("gem environment gemdir")
17
17
  @versions = Open3.capture3("gem list editor_learner")
18
- @latest_version = @versions[0].chomp.gsub(' (', '-').gsub(')','')
19
- p @inject = File.join(@lib_location[0].chomp, "/gems/#{@latest_version}/lib")
18
+ p @latest_version = @versions[0].chomp.gsub(' (', '-').gsub(')','')
19
+ @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
- # FileUtils.cp("#{ENV['HOME']}/editor_learner/lib/sequential_h.rb", "#{@prac_dir}/ruby_#{num}/sequential_h.rb")
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: editor_learner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Souki Wada