chid 0.1.6.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/CONTRIBUTING.md +75 -1
  4. data/Gemfile.lock +23 -36
  5. data/README.md +129 -79
  6. data/bin/chid +2 -25
  7. data/chid.gemspec +0 -6
  8. data/lib/chid.rb +0 -66
  9. data/lib/chid/chid_config.rb +4 -81
  10. data/lib/chid/commands/config.rb +48 -0
  11. data/lib/chid/commands/currency/convert.rb +50 -0
  12. data/lib/chid/commands/currency/list.rb +34 -0
  13. data/lib/chid/commands/currency/now.rb +47 -0
  14. data/lib/chid/commands/gitflow/commit.rb +0 -1
  15. data/lib/chid/commands/github.rb +40 -0
  16. data/lib/chid/commands/init.rb +1 -2
  17. data/lib/chid/commands/install.rb +1 -0
  18. data/lib/chid/commands/installs/dotfile.rb +1 -1
  19. data/lib/chid/commands/installs/node.rb +2 -2
  20. data/lib/chid/commands/installs/postgres.rb +2 -2
  21. data/lib/chid/commands/installs/rvm.rb +2 -2
  22. data/lib/chid/commands/installs/vim.rb +2 -2
  23. data/lib/chid/version.rb +1 -1
  24. data/spec/lib/chid/commands/init_spec.rb +4 -2
  25. data/tasks/install/yadr_dotfiles.rake +1 -0
  26. data/tasks/run/postgres.rake +1 -0
  27. data/tasks/update/os.rake +1 -0
  28. metadata +7 -52
  29. data/#README.md# +0 -222
  30. data/Rakefile +0 -18
  31. data/lib/chid/yandex_translate_api.rb +0 -39
  32. data/tasks/chid/config.rake +0 -5
  33. data/tasks/chid/init.rake +0 -19
  34. data/tasks/chid/install.rake +0 -14
  35. data/tasks/chid/start.rake +0 -26
  36. data/tasks/chid/update.rake +0 -14
  37. data/tasks/currency/convert.rake +0 -9
  38. data/tasks/currency/current.rake +0 -11
  39. data/tasks/currency/list.rake +0 -10
  40. data/tasks/github.rake +0 -12
  41. data/tasks/help.rake +0 -178
  42. data/tasks/install/node.rake +0 -18
  43. data/tasks/install/postgres.rake +0 -18
  44. data/tasks/install/rvm.rake +0 -21
  45. data/tasks/news.rake +0 -11
  46. data/tasks/stack_overflow.rake +0 -20
  47. data/tasks/tmux/config_windows.rake +0 -8
  48. data/tasks/tmux/new_session.rake +0 -9
  49. data/tasks/translate/yandex_list.rake +0 -7
  50. data/tasks/translate/yandex_translate.rake +0 -8
@@ -1,20 +0,0 @@
1
- desc 'Search questions in StackOverflow'
2
- task :stack, [:search] do |t, args|
3
-
4
- search_param = args[:search]
5
-
6
- unless search_param
7
- print "Tell me, what do you want to search?\n".blue
8
- print "> "
9
- search_param = STDIN.gets.strip
10
- end
11
-
12
- questions = StackOverflowApi.questions(search_param)
13
-
14
- Paginator.new(questions).paginate do |question|
15
- question.summary
16
- end
17
-
18
- end
19
-
20
-
@@ -1,8 +0,0 @@
1
- desc 'Configure default windows for development'
2
- task :tmux_config do
3
- system("tmux rename-window bash")
4
- system("tmux new-window -n app")
5
- system("tmux new-window -n server")
6
- end
7
-
8
-
@@ -1,9 +0,0 @@
1
- desc 'Open or Create the new session for development key'
2
- task :tmux do
3
- session = system('tmux attach -t development')
4
- unless session
5
- system('tmux new -s development')
6
- end
7
- end
8
-
9
-
@@ -1,7 +0,0 @@
1
- namespace :translate do
2
- desc 'Yandex translate list'
3
- task :yandex_list do
4
- puts "All options availale are:".blue
5
- YandexTranslateApi.list
6
- end
7
- end
@@ -1,8 +0,0 @@
1
- namespace :translate do
2
- desc 'Yandex translate'
3
- task :yandex_translate, [:text, :from, :to] do |t, args|
4
- puts "Translating..."
5
- text = YandexTranslateApi.translate(args)
6
- puts "#{text}".green
7
- end
8
- end