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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b20fe007c9641e3159a06b0d0649e67dc48dbb1c
4
- data.tar.gz: 3a9a7620dae679d18df7879f591a8325229e3cd5
3
+ metadata.gz: 5872fd7659ebd835fbb395c262db2f920b31a443
4
+ data.tar.gz: 9a38820194d21036e9f49867631b4c1ef70e4b3d
5
5
  SHA512:
6
- metadata.gz: 6c835dee4850ea619c0883208de545e83e44b2113903045a43239bc80458a43f42d6efb5eae0202686a03e86f91483ddf3d033496e5ec6f016976f703f5c31ff
7
- data.tar.gz: 11f21a74acb8b6eb4ed6c19229004b9920d822d20b8a806db713239e2137e32dbb73dc3b47f56617817ee6ecd6a79cd239327a6c9f3e6661160320d33c1eb95f
6
+ metadata.gz: 7febf9d38e4bdc5d376318f253049f8cea37bf7278440db4fb188233a179896f83e44e73e669aa325dda66fcdeb0556174850cca3428d4b053168eff6f7117cd
7
+ data.tar.gz: e5bf3c2135fbf931f988a76a0e6528bde4eb9f864e2d82d9c97183b2a0180c6bd22de9614b6121183d3bf433d75ce7b7340482c780ff5912c8066daf60f7c0f7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- editor_learner (1.0.0)
4
+ editor_learner (1.0.1)
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.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -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
- 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.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Souki Wada