bato 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +2 -2
  3. data/bin/bato +12 -10
  4. data/lib/bato/bersiyon.rb +1 -1
  5. data/lib/bato/core_ext/class.rb +1 -1
  6. data/mga_halimbawa/{agapan.bato → agapan.bt} +0 -0
  7. data/mga_halimbawa/{alyas.bato → alyas.bt} +0 -0
  8. data/mga_halimbawa/{batotris.rb → batotris.bt} +0 -0
  9. data/mga_halimbawa/{bilang.bato → bilang.bt} +0 -0
  10. data/mga_halimbawa/{dapat.bato → dapat.bt} +0 -0
  11. data/mga_halimbawa/{habang.bato → habang.bt} +0 -0
  12. data/mga_halimbawa/{ihinto.bato → ihinto.bt} +0 -0
  13. data/mga_halimbawa/{kontrol-sa-pagiikot.bato → kontrol-sa-pagiikot.bt} +0 -0
  14. data/mga_halimbawa/{kumusta_mundo.bato → kumusta_mundo.bt} +0 -0
  15. data/mga_halimbawa/{magbibigay.bato → magbibigay.bt} +0 -0
  16. data/mga_halimbawa/{maliban_na.bato → maliban_na.bt} +0 -0
  17. data/mga_halimbawa/{modyul.bato → modyul.bt} +0 -0
  18. data/mga_halimbawa/{nakatukoy.bato → nakatukoy.bt} +0 -0
  19. data/mga_halimbawa/{ngunit_kapag.bato → ngunit_kapag.bt} +0 -0
  20. data/mga_halimbawa/{o_ang.bato → o_ang.bt} +0 -0
  21. data/mga_halimbawa/{pamamaraan-sa-pagkakamali.bato → pamamaraan-sa-pagkakamali.bt} +0 -0
  22. data/mga_halimbawa/{pangalan.bato → pangalan.bt} +0 -0
  23. data/mga_halimbawa/{panguri.bato → panguri.bt} +0 -0
  24. data/mga_halimbawa/{panuntunan.bato → panuntunan.bt} +0 -0
  25. data/mga_halimbawa/{para_sa.bato → para_sa.bt} +0 -0
  26. data/mga_halimbawa/{pibonasyi.bato → pibonasyi.bt} +0 -0
  27. data/mga_halimbawa/{siguraduhin.bato → siguraduhin.bt} +0 -0
  28. data/mga_halimbawa/{tanggalin.bato → tanggalin.bt} +0 -0
  29. data/mga_halimbawa/{timebomb.bato → timebomb.bt} +0 -0
  30. data/spec/bato/tagatala_spec.rb +0 -1
  31. data/spec/spec_helper.rb +0 -1
  32. metadata +27 -27
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: e0af351f99cfb3448d817d493510a34e488fe690f78287919b2dc4135d5f1af6
4
- data.tar.gz: 7f32c985adac8183048303538855ec39fedf3f860617d080e7ea14661a046136
2
+ SHA1:
3
+ metadata.gz: fdef7b16053a9a7406ace655f09a5f4f6fa4108d
4
+ data.tar.gz: 9d8c5613e1af7dc187a71d72ad3cd56802db8243
5
5
  SHA512:
6
- metadata.gz: 8d0066c438ed51b3fc1fbea595071e769f52ecda08ab6cf2b8eed6da02180654c0eb36ae883423515dd746d7b807d9d044aef774f545ea88497721434a2b311c
7
- data.tar.gz: 5c20bbcf8e25aebacc062eec0c6a71695962cd1dc0bd2eea5cbb40b3822eb35e3a7c219ce305a795536910732e05802fa8ff28d85eba910f770b5f26da5222e0
6
+ metadata.gz: 5a6d76320fef80eded1c8286c291e6b071ca3c6664cda0a7c5f4f1f4dd0249c15e13cce906c5054d03e0c34f2257d21307646d14eea58e3cb2509298a3518f93
7
+ data.tar.gz: 9a98f1db501b6ce59f4b21fb4f887c3aa84936ddfdd13dc125d9325a04266ea7d59ca643f43ae8dbf79933a2eefc88e093040b84266091f6896a67a36d89d6c6
data/README.md CHANGED
@@ -18,7 +18,7 @@ Ang kadahilanang ginamit ang pangalang 'bato' ay dahil ang Ruby ay isang uri ng
18
18
 
19
19
  ## Ang unang program
20
20
 
21
- Gumawa ng isang file na kamusta_mundo.bato na may mga sumusunod na nilalaman
21
+ Gumawa ng isang file na `kamusta_mundo.bt` na may mga sumusunod na nilalaman
22
22
 
23
23
  kapag 1 > 0
24
24
  mag_print "Kumusta mundo!"
@@ -28,7 +28,7 @@ Gumawa ng isang file na kamusta_mundo.bato na may mga sumusunod na nilalaman
28
28
 
29
29
  at pa-andarin ang program sa pamamagitan ng
30
30
 
31
- bato kamusta_mundo.bato
31
+ bato kamusta_mundo.bt
32
32
 
33
33
  ## Sintaks
34
34
 
data/bin/bato CHANGED
@@ -2,18 +2,20 @@
2
2
  require 'bato/tagatala'
3
3
  require 'rubygems'
4
4
 
5
- if pangalan_ng_file = ARGV[0]
6
- tagatala = Bato::Tagatala.new
7
- kodigo = File.read pangalan_ng_file, encoding: 'utf-8'
8
- ruby_kodigo = tagatala.sa_ruby kodigo
9
- raise 'Ang pinakamababang kinakailangan bersiyon ng Ruby ay 2.4' if
10
- Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.4')
11
- eval ruby_kodigo
12
- else
5
+ if ARGV[0].nil?
13
6
  puts <<-EOS
14
7
  Hindi tinukoy ang file. Ang tamang sintaks ay:
15
8
 
16
- bato file.bato
9
+ bato file.bt
17
10
  EOS
18
-
11
+ else
12
+ ARGV.each do |file|
13
+ next unless file
14
+ tagatala = Bato::Tagatala.new
15
+ kodigo = File.read file, encoding: 'utf-8'
16
+ ruby_kodigo = tagatala.sa_ruby kodigo
17
+ raise 'Ang pinakamababang kinakailangan bersiyon ng Ruby ay 2.4' if
18
+ Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3')
19
+ eval ruby_kodigo
20
+ end
19
21
  end
data/lib/bato/bersiyon.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bato
2
- BERSIYON = '0.0.10'.freeze
2
+ BERSIYON = '0.0.11'.freeze
3
3
  end
@@ -1,4 +1,4 @@
1
1
  class Class
2
2
  alias gumawa new
3
3
  alias kumatawan new
4
- end
4
+ end
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
@@ -1,4 +1,3 @@
1
-
2
1
  require 'spec_helper'
3
2
 
4
3
  isalaysay_ang 'Tagatala' do
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  # This file was generated by the `rspec --init` command. Conventionally, all
3
2
  # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
4
3
  # Require this file using `require "spec_helper"` to ensure that it is only
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Bryan Juliano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-11 00:00:00.000000000 Z
11
+ date: 2018-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby2ruby
@@ -98,30 +98,30 @@ files:
98
98
  - lib/bato/core_ext/string.rb
99
99
  - lib/bato/ruby_parser_patches.rb
100
100
  - lib/bato/tagatala.rb
101
- - mga_halimbawa/agapan.bato
102
- - mga_halimbawa/alyas.bato
103
- - mga_halimbawa/batotris.rb
104
- - mga_halimbawa/bilang.bato
105
- - mga_halimbawa/dapat.bato
106
- - mga_halimbawa/habang.bato
107
- - mga_halimbawa/ihinto.bato
108
- - mga_halimbawa/kontrol-sa-pagiikot.bato
109
- - mga_halimbawa/kumusta_mundo.bato
110
- - mga_halimbawa/magbibigay.bato
111
- - mga_halimbawa/maliban_na.bato
112
- - mga_halimbawa/modyul.bato
113
- - mga_halimbawa/nakatukoy.bato
114
- - mga_halimbawa/ngunit_kapag.bato
115
- - mga_halimbawa/o_ang.bato
116
- - mga_halimbawa/pamamaraan-sa-pagkakamali.bato
117
- - mga_halimbawa/pangalan.bato
118
- - mga_halimbawa/panguri.bato
119
- - mga_halimbawa/panuntunan.bato
120
- - mga_halimbawa/para_sa.bato
121
- - mga_halimbawa/pibonasyi.bato
122
- - mga_halimbawa/siguraduhin.bato
123
- - mga_halimbawa/tanggalin.bato
124
- - mga_halimbawa/timebomb.bato
101
+ - mga_halimbawa/agapan.bt
102
+ - mga_halimbawa/alyas.bt
103
+ - mga_halimbawa/batotris.bt
104
+ - mga_halimbawa/bilang.bt
105
+ - mga_halimbawa/dapat.bt
106
+ - mga_halimbawa/habang.bt
107
+ - mga_halimbawa/ihinto.bt
108
+ - mga_halimbawa/kontrol-sa-pagiikot.bt
109
+ - mga_halimbawa/kumusta_mundo.bt
110
+ - mga_halimbawa/magbibigay.bt
111
+ - mga_halimbawa/maliban_na.bt
112
+ - mga_halimbawa/modyul.bt
113
+ - mga_halimbawa/nakatukoy.bt
114
+ - mga_halimbawa/ngunit_kapag.bt
115
+ - mga_halimbawa/o_ang.bt
116
+ - mga_halimbawa/pamamaraan-sa-pagkakamali.bt
117
+ - mga_halimbawa/pangalan.bt
118
+ - mga_halimbawa/panguri.bt
119
+ - mga_halimbawa/panuntunan.bt
120
+ - mga_halimbawa/para_sa.bt
121
+ - mga_halimbawa/pibonasyi.bt
122
+ - mga_halimbawa/siguraduhin.bt
123
+ - mga_halimbawa/tanggalin.bt
124
+ - mga_halimbawa/timebomb.bt
125
125
  - spec/bato/tagatala_spec.rb
126
126
  - spec/spec_helper.rb
127
127
  homepage: https://github.com/jjuliano/bato
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  requirements: []
146
146
  rubyforge_project:
147
- rubygems_version: 2.7.3
147
+ rubygems_version: 2.5.2
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Ang Bato ay isang programming language sa wikang Filipino