Magma 0.2.2 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/magma.rb +10 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a505ab1a3a43701dff52b4fd84c25fa6227e861
4
- data.tar.gz: 4ebb35fc1c8bdf45595d702c4e4b7f316bd99fba
3
+ metadata.gz: 47fdc0519bc4adcd36351f976b567d34c904d6d5
4
+ data.tar.gz: f2858514011fc8d90ac6a26ebfcb5845583dd5d8
5
5
  SHA512:
6
- metadata.gz: ae50cf1cf93da0a9da7234cf160e493067618359181f61bf949a51e064565fec21d4ce7c55954ff5195f7595884443065dd6e3026201f9d637b9bfc732021ee8
7
- data.tar.gz: 7efbcb19deb3216f197f54bd7b6ca29871b0a863f8551b9a4bea710b7ff4cf6a6b729d296c79c34370370fe5b6e6b9aaefe505660facc628abf43bb92755d799
6
+ metadata.gz: 0856a6151537cefcdc557040eaa7ef076196fb3f1021b72593f77fbb968f43c921e9e103f5d4f48ea7277c406ac1e0d6c09c850ec4d79ede297b09ca697ebeb4
7
+ data.tar.gz: ca3b17b12ef9ef4c59a5ab01f515b69aafecebafb963c3076f635e93620d4ef8fd148b936da047f587bd0c1dbf3b823d579244ee62e71e298b3f652b1a412fe8
@@ -1,5 +1,5 @@
1
1
  def magmaversion
2
- return '0.1'
2
+ return '0.2.5'
3
3
  end
4
4
  def magtutor
5
5
  tutorline=<<-'FINISH'
@@ -8,13 +8,13 @@ def magtutor
8
8
  =============1. Setup=============
9
9
  To start up Magma in a Ruby script, add a line to the top of the script, like this:
10
10
  require "magma"; #< Semicolon unnessary, but helps in .min.rb files
11
- After that line, we must test magma. Check the value of the Magma? environment variable to do so. If the value returned is true, then magma is ready. If the value returned is nil, then Magma has an error, and is not ready. Use this code to get a boolean (true or false) value for if Magma is ready:
11
+ After that line, we must test magma. Check the value of the Magma? environment variable to do so. If the value returned is true, then magma is ready. If the value returned is nil, then Magma has an error, and is not ready. Use this code to get a boolean (true or false) value for if Magma is ready:
12
12
  if (ENV["magma?"]==true) then;return true; else; return false; end
13
13
  Now that we know that magma is ready, we can start! Proceed to part 2.
14
14
  =============2. CommandLine========
15
- It is important to know that Magma is completely Ruby code. But using Magma, you can run shell scripts! Using magma, you can execute shell script commands, and see and check their outcomes. A built-in object called CommandLine exists when Magma is ready. This object contains methods for accessing command line info. Try running this:
15
+ It is important to know that Magma is completely Ruby code. But using Magma, you can run shell scripts! Using magma, you can execute shell script commands, and see and check their outcomes. A built-in object called CommandLine exists when Magma is ready. This object contains methods for accessing command line info. Try running this:
16
16
  CommandLine.execute('ls')
17
- If you are familiar with the Unix ls command, remember that it lists all files in the current directory. When running the code above, you will see the files, in Ruby! It will also return the files, [but in an unorganized string, which can be organized into an array later]. Also, if you would like to find what Command Line Viewer program (aka Command Prompt, Mac Terminal, iTerm, etc) the user is running, use this command:
17
+ If you are familiar with the Unix ls command, remember that it lists all files in the current directory. When running the code above, you will see the files, in Ruby! It will also return the files, [but in an unorganized string, which can be organized into an array later]. Also, if you would like to find what Command Line Viewer program (aka Command Prompt, Mac Terminal, iTerm, etc) the user is running, use this command:
18
18
  CommandLine.program()
19
19
 
20
20
 
@@ -46,4 +46,9 @@ module Bedrock
46
46
  def commandline
47
47
  return Commandline
48
48
  end
49
- end
49
+ end
50
+
51
+
52
+
53
+ puts "Now running MagTutor (Magma Tutorial) version 0.2.5 20%... 50%... 70%... DONE";
54
+ magtutor; puts "\n\n\n\n\n
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Magma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ThinkLikeGeek