ruby_learner 1.1.15 → 1.2.0
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/{workshop → contents/datas}/emacs.d/black/answer.el +6 -6
- data/{workshop → contents/datas}/emacs.d/black/init.el +6 -6
- data/{workshop → contents/datas}/emacs.d/inits/line-num.el +0 -0
- data/{workshop → contents/datas}/emacs.d/markdown-mode/markdown-mode.el +0 -0
- data/{workshop → contents/datas}/emacs.d/ruby-mode/inf-ruby.el +0 -0
- data/{workshop → contents/datas}/emacs.d/ruby-mode/rdoc-mode.el +0 -0
- data/{workshop → contents/datas}/emacs.d/ruby-mode/ruby-electric.el +0 -0
- data/{workshop → contents/datas}/emacs.d/ruby-mode/ruby-mode.el +0 -0
- data/{workshop → contents/datas}/emacs.d/ruby-mode/ruby-style.el +0 -0
- data/{workshop → contents/datas}/emacs.d/ruby-mode/rubydb2x.el +0 -0
- data/{workshop → contents/datas}/emacs.d/ruby-mode/rubydb3x.el +0 -0
- data/{workshop → contents/datas}/emacs.d/themes/dracula-theme.el +0 -0
- data/{workshop → contents/datas}/emacs.d/themes/iceberg-theme.el +0 -0
- data/{workshop → contents/datas}/emacs.d/themes/my-misterioso-theme.el +0 -0
- data/{workshop → contents/datas}/emacs.d/themes/my-whiteboard-theme.el +0 -0
- data/{workshop → contents/datas}/emacs.d/themes/my-wombat-theme.el +0 -0
- data/{workshop → contents/datas}/emacs.d/white/answer.el +6 -6
- data/{workshop → contents/datas}/emacs.d/white/init.el +6 -6
- data/{lib → contents}/datas/emacs_help.org +0 -0
- data/contents/datas/emacs_help.pdf +0 -0
- data/{lib → contents}/datas/final_history_sequential.txt +0 -0
- data/{lib → contents}/datas/install_emacs.sh +0 -0
- data/{lib → contents}/datas/theme_color.txt +0 -0
- data/{questions → contents/questions}/random_check/.rspec +0 -0
- data/{questions → contents/questions}/random_check/random_h.rb +0 -0
- data/{questions → contents/questions}/random_check/section_1/.rspec +0 -0
- data/{questions → contents/questions}/random_check/section_1/lib/answer.rb +0 -0
- data/{questions → contents/questions}/random_check/section_1/lib/sentence.org +0 -0
- data/{questions → contents/questions}/random_check/section_1/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/random_check/section_1/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/random_check/section_1/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/random_check/section_2/.rspec +0 -0
- data/{questions → contents/questions}/random_check/section_2/lib/answer.rb +0 -0
- data/{questions → contents/questions}/random_check/section_2/lib/sentence.org +0 -0
- data/{questions → contents/questions}/random_check/section_2/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/random_check/section_2/spec/.rspec +0 -0
- data/{questions → contents/questions}/random_check/section_2/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/random_check/section_2/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_1/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_1/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_1/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_1/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_1/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_2/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_2/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_2/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_2/spec/.rspec +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_2/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_2/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_3/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_3/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_3/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_3/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_1/part_3/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_10/part_1/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_10/part_1/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_10/part_1/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_10/part_1/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_10/part_1/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_10/part_2/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_10/part_2/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_10/part_2/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_10/part_2/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_10/part_2/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_11/part_1/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_11/part_1/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_11/part_1/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_11/part_1/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_11/part_1/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_11/part_2/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_11/part_2/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_11/part_2/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_11/part_2/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_11/part_2/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_1/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_1/lib/sentence.org +16 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_1/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_1/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_1/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_2/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_2/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_2/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_2/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_2/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_3/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_3/lib/sentence.org +1 -1
- data/{questions → contents/questions}/sequential_check/section_2/part_3/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_3/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_2/part_3/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_1/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_1/lib/sentence.org +14 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_1/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_1/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_1/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_2/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_2/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_2/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_2/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_2/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_3/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_3/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_3/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_3/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_3/part_3/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_1/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_1/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_1/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_1/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_1/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_2/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_2/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_2/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_2/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_2/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_3/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_3/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_3/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_3/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_4/part_3/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_1/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_1/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_1/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_1/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_1/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_2/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_2/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_2/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_2/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_2/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_3/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_3/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_3/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_3/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_5/part_3/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_1/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_1/lib/sentence.org +1 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_1/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_1/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_1/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_2/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_2/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_2/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_2/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_2/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_3/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_3/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_3/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_3/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_3/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_4/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_4/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_4/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_4/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_6/part_4/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_7/part_1/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_7/part_1/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_7/part_1/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_7/part_1/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_7/part_1/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_7/part_2/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_7/part_2/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_7/part_2/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_7/part_2/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_7/part_2/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_8/part_1/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_8/part_1/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_8/part_1/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_8/part_1/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_8/part_1/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_1/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_1/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_1/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_1/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_1/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_2/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_2/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_2/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_2/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_2/spec/workplace_spec.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_3/lib/answer.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_3/lib/sentence.org +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_3/lib/workplace.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_3/spec/spec_helper.rb +0 -0
- data/{questions → contents/questions}/sequential_check/section_9/part_3/spec/workplace_spec.rb +0 -0
- data/{workshop → contents}/restore/empty.rb +0 -0
- data/{takahashi → contents/takahashi}/docs/README.org +0 -0
- data/{takahashi → contents/takahashi}/docs/drill.html +0 -0
- data/{takahashi → contents/takahashi}/docs/drill.org +0 -0
- data/{takahashi → contents/takahashi}/docs/ruby_for_beginner.html +0 -0
- data/{takahashi → contents/takahashi}/docs/ruby_for_beginner.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/10_1.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/10_2.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/11_1.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/11_2.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/1_1.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/1_2.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/1_3.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/2_1.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/2_2.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/3_1.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/4_1.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/5_1.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/5_2.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/6_1.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/6_2.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/6_3.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/6_4.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/7_1.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/7_2.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/8_1.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/9_1.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/9_2.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/9_3.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/answer/hello.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/final_check/cut_nisen.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/final_check/get_nisen.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/final_check/nisendouka.html +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/final_check/nisendouka.txt +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/final_check/simple_match.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/final_check/simple_match2.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/final_check/simple_match3.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/final_check/simple_match4.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/final_check/test.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/final_check/test_2.rb +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/10_1.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/10_2.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/11_1.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/11_2.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/1_1.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/1_2.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/1_3.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/2_1.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/2_2.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/3_1.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/4_1.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/5_1.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/5_2.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/6_1.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/6_2.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/6_3.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/6_4.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/7_1.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/7_2.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/8_1.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/9_1.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/9_2.org +0 -0
- data/{takahashi → contents/takahashi}/sample_prog/question/9_3.org +0 -0
- data/{workshop → contents/workshop}/lib/answer.rb +0 -0
- data/{workshop → contents/workshop}/lib/for-def-read.rb +0 -0
- data/{workshop → contents/workshop}/lib/for-read.txt +0 -0
- data/{workshop → contents/workshop}/lib/sentence.org +0 -0
- data/{workshop → contents/workshop}/lib/workplace.rb +0 -0
- data/{workshop → contents/workshop}/rspec +0 -0
- data/{workshop → contents/workshop}/rubocop.yml +0 -0
- data/{workshop → contents/workshop}/spec/spec_helper.rb +0 -0
- data/{workshop → contents/workshop}/spec/workplace_spec.rb +0 -0
- data/lib/ruby_learner/common.rb +21 -22
- data/lib/ruby_learner/ruby_learner.rb +51 -16
- data/lib/ruby_learner/sequential_main.rb +39 -19
- data/lib/ruby_learner/typing_practice.rb +8 -5
- data/lib/ruby_learner/version.rb +1 -1
- metadata +258 -261
- data/takahashi/docs/README.org~ +0 -148
- data/takahashi/docs/drill.html~ +0 -861
- data/takahashi/sample_prog/answer/1_1.rb~ +0 -1
- data/takahashi/sample_prog/answer/9_2.rb~ +0 -5
data/{questions → contents/questions}/sequential_check/section_4/part_3/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_5/part_1/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_5/part_2/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_5/part_3/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_6/part_1/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_6/part_2/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_6/part_3/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_6/part_4/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_7/part_1/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_7/part_2/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_8/part_1/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_9/part_1/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_9/part_2/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{questions → contents/questions}/sequential_check/section_9/part_3/spec/workplace_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/ruby_learner/common.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
class Common
|
|
2
|
-
def
|
|
3
|
-
|
|
4
|
-
line = File.open("#{
|
|
2
|
+
def save_restore(file: String, local_dir: String)
|
|
3
|
+
restore_file = ""
|
|
4
|
+
line = File.open("#{local_dir}/workshop/lib/answer.rb") do |f|
|
|
5
5
|
1.times {
|
|
6
6
|
f.gets
|
|
7
7
|
}
|
|
@@ -9,13 +9,12 @@ class Common
|
|
|
9
9
|
end
|
|
10
10
|
restore_file.gsub!(" ", "")
|
|
11
11
|
restore_file.delete!("#")
|
|
12
|
-
Dir::chdir("#{
|
|
12
|
+
Dir::chdir("#{local_dir}/restore"){
|
|
13
13
|
file_count = Dir.glob("*.rb").count
|
|
14
|
-
# restore_file.insert(-5, "[#{file_count}]")
|
|
15
14
|
restore_file.insert(0, "[#{file_count}]")
|
|
16
15
|
}
|
|
17
|
-
system "touch #{
|
|
18
|
-
system "cp #{
|
|
16
|
+
system "touch #{local_dir}/restore/#{restore_file}"
|
|
17
|
+
system "cp #{local_dir}/workshop/lib/workplace.rb #{local_dir}/restore/#{restore_file}"
|
|
19
18
|
end
|
|
20
19
|
|
|
21
20
|
def time_check(start_time: Time)
|
|
@@ -30,25 +29,25 @@ class Common
|
|
|
30
29
|
puts "check answer >>> 'answer' + [RET]"
|
|
31
30
|
end
|
|
32
31
|
|
|
33
|
-
def init_mk_files(gem_dir: String,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
system("
|
|
38
|
-
|
|
39
|
-
system("
|
|
32
|
+
def init_mk_files(gem_dir: String, local_dir: String)
|
|
33
|
+
gem_contents_dir = "#{gem_dir}/contents"
|
|
34
|
+
if Dir.exist?(local_dir) != true then
|
|
35
|
+
FileUtils.mkdir_p("#{local_dir}/workshop")
|
|
36
|
+
system("cp -R #{gem_contents_dir}/workshop/* #{local_dir}/workshop")
|
|
37
|
+
FileUtils.mkdir_p("#{local_dir}/restore")
|
|
38
|
+
system("cp -R #{gem_contents_dir}/restore/* #{local_dir}/restore")
|
|
39
|
+
FileUtils.mkdir_p("#{local_dir}/.datas")
|
|
40
|
+
system("cp -R #{gem_contents_dir}/datas/* #{local_dir}/.datas")
|
|
41
|
+
system("cd #{local_dir}/.datas && mv emacs.d .emacs.d")
|
|
42
|
+
system("cd #{local_dir}/workshop && mv rspec .rspec")
|
|
43
|
+
system("cd #{local_dir}/workshop && mv rubocop.yml .rubocop.yml")
|
|
44
|
+
system("cd #{local_dir}/restore && mv empty.rb .empty.rb")
|
|
40
45
|
end
|
|
41
46
|
end
|
|
42
47
|
|
|
43
|
-
def
|
|
44
|
-
app_vers = Open3.capture3("gem list #{app_name}")
|
|
45
|
-
latest_ver = app_vers[0].chomp.gsub(' (', '-').gsub(')','')
|
|
46
|
-
return latest_ver
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def change_theme(color: String, gem_dir: String)
|
|
48
|
+
def change_theme(color: String, datas_dir: String)
|
|
50
49
|
chmoded = 0
|
|
51
|
-
file_path = "#{
|
|
50
|
+
file_path = "#{datas_dir}/theme_color.txt"
|
|
52
51
|
begin
|
|
53
52
|
File.write(file_path, "#{color}")
|
|
54
53
|
puts "your ruby_learner's color is #{color}!!"
|
|
@@ -10,9 +10,12 @@ module RubyLearner
|
|
|
10
10
|
class CLI < Thor
|
|
11
11
|
def initialize(*args)
|
|
12
12
|
super
|
|
13
|
-
@
|
|
13
|
+
@local_dir = "#{ENV['HOME']}/.ruby_learner"
|
|
14
|
+
@workshop_dir = "#{@local_dir}/workshop"
|
|
15
|
+
@restore_dir = "#{@local_dir}/restore"
|
|
16
|
+
@datas_dir = "#{@local_dir}/.datas"
|
|
14
17
|
@gem_dir = File.expand_path("../../../", __FILE__)
|
|
15
|
-
Common.allocate.init_mk_files(gem_dir: @gem_dir,
|
|
18
|
+
Common.allocate.init_mk_files(gem_dir: @gem_dir, local_dir: @local_dir)
|
|
16
19
|
end
|
|
17
20
|
|
|
18
21
|
desc '-v', 'show program version'
|
|
@@ -22,52 +25,84 @@ module RubyLearner
|
|
|
22
25
|
end
|
|
23
26
|
|
|
24
27
|
desc 'emacs_key', 'check emacs key-bindings'
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
option :image, aliases: :i, type: :boolean
|
|
29
|
+
def emacs_key(*args)
|
|
30
|
+
if options[:image]
|
|
31
|
+
system("open #{@datas_dir}/emacs_help.pdf")
|
|
32
|
+
else
|
|
33
|
+
system("cat #{@datas_dir}/emacs_help.org")
|
|
34
|
+
end
|
|
27
35
|
end
|
|
28
36
|
|
|
29
37
|
desc 'sequential_check [section:1~11] [part:1~]','learning drill'
|
|
30
38
|
option :next, aliases: :n, type: :boolean
|
|
31
39
|
option :drill, aliases: :d, type: :boolean
|
|
40
|
+
option :last, aliases: :l, type: :boolean
|
|
32
41
|
def sequential_check(*args)
|
|
33
42
|
begin
|
|
34
|
-
sequential_main = SequentialMain.new(@gem_dir, @
|
|
43
|
+
sequential_main = SequentialMain.new(@gem_dir, @local_dir)
|
|
35
44
|
if options[:drill]
|
|
36
45
|
sequential_main.drill_contents
|
|
37
46
|
elsif options[:next]
|
|
38
|
-
final_sec, final_par = sequential_main.get_final_history(
|
|
47
|
+
final_sec, final_par = sequential_main.get_final_history()
|
|
39
48
|
next_sec, next_par = sequential_main.get_next_question(final_sec, final_par)
|
|
40
49
|
sequential_main.action(next_sec, next_par)
|
|
50
|
+
elsif options[:last]
|
|
51
|
+
sequential_main.last_re_action()
|
|
41
52
|
else
|
|
42
53
|
sequential_main.action(args[0], args[1])
|
|
43
54
|
end
|
|
44
55
|
rescue => error
|
|
45
56
|
puts "Error.message: #{error.message}"
|
|
46
57
|
puts 'sequential_check has 3-modes'
|
|
47
|
-
puts 'mode-1: $ sequential_check [section:1~11] [part:1~]
|
|
58
|
+
puts 'mode-1: $ sequential_check [section:1~11] [part:1~], ex) sequential_check 1 3'
|
|
48
59
|
puts 'mode-2: $ sequential_check -d, check drill contents'
|
|
49
60
|
puts 'mode-3: $ sequential_check -n, learn next to your last-question'
|
|
61
|
+
puts 'mode-4: $ sequential_check -l, learn your last-question'
|
|
50
62
|
end
|
|
51
63
|
end
|
|
52
64
|
|
|
53
65
|
desc 'restore','check your restore'
|
|
54
66
|
option :refresh, aliases: :r, type: :boolean
|
|
55
67
|
def restore(*args)
|
|
68
|
+
restores = []
|
|
69
|
+
dir = Dir.open(@restore_dir)
|
|
70
|
+
dir.each do |file|
|
|
71
|
+
if file != '.' && file != '..' && file != '.empty.rb'
|
|
72
|
+
restores << file.slice(1..file.length)
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
sorted_restores = restores.sort_by{|item| item.to_i}
|
|
76
|
+
sorted_restores.each{|item| item.insert(0, "[")}
|
|
56
77
|
if options[:refresh]
|
|
57
|
-
system("rm -rf #{@
|
|
58
|
-
system("mkdir #{@
|
|
59
|
-
elsif args.empty? == true
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
78
|
+
system("rm -rf #{@restore_dir}")
|
|
79
|
+
system("mkdir #{@restore_dir}")
|
|
80
|
+
elsif args.empty? == true
|
|
81
|
+
if sorted_restores.size < 20
|
|
82
|
+
puts sorted_restores
|
|
83
|
+
else
|
|
84
|
+
system("ls #{@restore_dir}")
|
|
85
|
+
puts "\nlast 5 restore history."
|
|
86
|
+
puts sorted_restores[-5..-1], "\n"
|
|
87
|
+
end
|
|
88
|
+
puts "If you want to open a restore_file, you execute 'ruby_learner restore [number]'"
|
|
89
|
+
puts "ex) ruby_learner restore 3"
|
|
90
|
+
print "If you want to remove all restore_files, you execute 'ruby_learner restore -r'"
|
|
63
91
|
else
|
|
64
|
-
|
|
92
|
+
case args[0].to_i
|
|
93
|
+
when 0..sorted_restores.size-1
|
|
94
|
+
filename = sorted_restores[args[0].to_i]
|
|
95
|
+
system("emacs #{@restore_dir}/#{filename}")
|
|
96
|
+
else
|
|
97
|
+
puts "you have #{sorted_restores.size} restore_files."
|
|
98
|
+
puts "you must put 'ruby_learner restore 0~#{sorted_restores.size - 1}.'"
|
|
99
|
+
end
|
|
65
100
|
end
|
|
66
101
|
end
|
|
67
102
|
|
|
68
103
|
desc 'install_emacs','install emacs in your mac'
|
|
69
104
|
def install_emacs
|
|
70
|
-
file_path = "#{@
|
|
105
|
+
file_path = "#{@datas_dir}/install_emacs.sh"
|
|
71
106
|
system("sh #{file_path}")
|
|
72
107
|
end
|
|
73
108
|
|
|
@@ -75,7 +110,7 @@ module RubyLearner
|
|
|
75
110
|
def theme(*args)
|
|
76
111
|
args[0].chomp
|
|
77
112
|
if args[0] == 'black' || args[0] == 'white'
|
|
78
|
-
Common.allocate.change_theme(color: args[0],
|
|
113
|
+
Common.allocate.change_theme(color: args[0], datas_dir: @datas_dir)
|
|
79
114
|
else
|
|
80
115
|
puts "you can change the theme_color, only black or white."
|
|
81
116
|
end
|