ezbash 0.5.3 → 0.5.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ezbash +18 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2527bc75593299bb2b88c90440095fc2bcd4df5
4
- data.tar.gz: 3e088ed768428ce4bc950abcc819156ac44fc7c2
3
+ metadata.gz: c66ee05e1782e50715f28c01b604031f672f56b0
4
+ data.tar.gz: 30b92ba5ebd827a3a3f847783b51837e6d68da18
5
5
  SHA512:
6
- metadata.gz: a2ecfaf819b850c875f4b34ad541815ce1292a7839ebfe62b970e9c5680019016c35ff00fef1ebf51daca84e251353035fc8d48c432b65033fc93caead269a58
7
- data.tar.gz: f796c986194dfe66412cb9a8f4f37d06b69804e21bcb4a454c2b029e767faa9bedbe3a54a3376da590dfcd608618235db473f514a9e9265ae1c5ddb3f5e3dded
6
+ metadata.gz: c128d6d65c6e62ad0d244d3af33b5361f11c4e0e266cfc61c05da7d5c26029532ae226db74e1889461864d2ce7ef1c59fdb488e180f19fbea50c9ce9f2ccfab4
7
+ data.tar.gz: 4accadf689f006285d6b41d4863adb22177ae194c3a6379ba946ecab2cd83f849d5b33d3e959e7a8f879106b924fe72f84cd9a9e445cc699c13a92cc5f076193
data/bin/ezbash CHANGED
@@ -95,7 +95,7 @@ if osdar == 'darwin' then addbrew() end
95
95
  #Start Program
96
96
  puts ' '
97
97
  runOnce = false
98
- exitis = 0
98
+ exitis = 0
99
99
  while exitis == 0 do
100
100
  if runOnce == true then puts "\r" end
101
101
  print "Type 'help' to list possible commands. >> "
@@ -251,11 +251,22 @@ while exitis == 0 do
251
251
  print 'Please enter the name and location of the file you\'d like to edit (e.g. Documents/report.doc). >> '
252
252
  file = gets.chomp
253
253
  Kernel.system "nano #{file}"
254
- %x[nano #{file}]
255
- `nano #{file}`
256
254
  puts "\r"
257
255
  puts "I ran: 'nano #{file}'"
258
256
  =end
257
+ when "compile"
258
+ print 'Please enter the location of the c++ code you\'d like to compile (e.g. Projects/helloworld.cpp). '
259
+ code = gets.chomp
260
+ print 'Please enter the name you\'d like to give your compiled program. '
261
+ name = gets.chomp
262
+ Kernel.system "g++ -o #{name} #{code}"
263
+ puts "I ran: 'g++ -o #{name} #{code}'."
264
+ when "run c++ program"
265
+ print 'Please enter the folder your program is contained in (e.g. Documents, Projects/myfantsticproject, etc.). '
266
+ folder = gets.chomp
267
+ print 'Please enter the name of your compiled program (e.g. helloworld, test, etc.). '
268
+ program = gets.chomp
269
+ Kernel.system "#{folder}./#{program}"
259
270
  when 'help'
260
271
  puts "\t install: install new programs or 'packages' on your system"
261
272
  puts "\r"
@@ -279,6 +290,10 @@ while exitis == 0 do
279
290
  puts "\r"
280
291
  # puts "\t edit file: edits a text file in a bare-bones, quick editor (.rb, .html, .java, etc. count as text files)"
281
292
  # puts "\r"
293
+ puts "\t compile: compiles a c++ file (e.g. foo.cpp)"
294
+ puts "\r"
295
+ puts "\t run c++ program: runs a c++ program compiled with the aforementioned command"
296
+ puts "\r"
282
297
  puts "\t exit: exits ezbash"
283
298
  puts "\r"
284
299
  when 'exit'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezbash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logan Saunders