Skip to content

Latest commit

 

History

History
102 lines (80 loc) · 3.15 KB

File metadata and controls

102 lines (80 loc) · 3.15 KB

Ruby scripts to create

  • save your git branch history to a file. Output them to the cli when a command is given. Store a specific number based on a config file. Have a default number of past branches to output, along with an option for this in the config. Allow display of a specific number based on a property given to the script

  • create the same branch on both main and base. First check out develop on each, then if both checkouts succeed, create a branch with the given name on each. Otherwise return an error.

  • use table display for showing files lists (in lsr.rb)

  • recursive file list

  • detector of files containing '>>>>', '<<<<', '====', etc. - git merge conflict artifacts

  • extract all translations from a project, display them

General scripting tasks

  • Figure out how to get Clojure up and running

TODO learning Ruby better

  • singleton methods?
  • trust
  • taint
  • allocate

TODO Learn rspec + factory_girl + Ruby

! rack basics ! install rack ! get a basic rack app running ! get a config-based rack app running ! get a config-based rack app that loads an external file running ! write a middleware - write a second middleware that provides html - try arbre

Consider arbre to make html in ruby syntax is regular ruby files Arbre: https://github.com/activeadmin/arbre e.g. html = Arbre::Context.new do h2 "Why is Arbre awesome?"

ul do li "The DOM is implemented in ruby" li "You can create object oriented views" li "Templates suck" end end

puts html.to_s # =>