roboed 1.0.0 → 1.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1138b3a0dd5b374c50c4bf2457133c70572422c9
4
- data.tar.gz: 7691498e95290e60caeb15593a8b9364b38738a6
3
+ metadata.gz: 593653d9e0c9a5944054011b2dece3fd096bd628
4
+ data.tar.gz: 86c79a16bb03581267df7deb2f8373daba469ee2
5
5
  SHA512:
6
- metadata.gz: 89020722bc7df1b3290c8636ab2e8d8a9383d6081af7acce43a667477425ce921235f5cc55b0e478f320aa63e96645bd5eb8cb622ee9b7a9d70e595f7cfc15bf
7
- data.tar.gz: 8858c586847798b599824515113e9bd239c7886971bae41c95603cfbd90b91d4d70ff5c2fa312a4460902907fdbc0f01b17d064954585958b1083a60d44cb47d
6
+ metadata.gz: 8cdbd16800ec026a9a522f462a94271d9799e1c18f7d86a86feacb22262b5ea02ac1882ff7c8e1766c2e195b44480e881d73eb47774c5bc0ed9851dfce6de6e7
7
+ data.tar.gz: b3e9276350860064681b304fce8d6e4a0cc89ed093ff84f9805a22e0fa8f63aba5e3d120d1d9d64f0c9ae18c48ee0434d2ea436371b7ea6545d8b98bc8ccf21d
data/bin/roboed ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'robo_ed'
5
+
6
+ if ARGV.include?('--say')
7
+ question = (ARGV - ['--say']).join(' ')
8
+ answer = RoboEd.ask(question)
9
+
10
+ puts "🔊\t#{answer}"
11
+ `say #{answer}`
12
+ else
13
+ puts RoboEd.ask(ARGV.join(' '))
14
+ end
@@ -1,3 +1,3 @@
1
1
  module RoboEd
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
data/lib/robo_ed.rb CHANGED
@@ -5,7 +5,7 @@ module RoboEd
5
5
  ENDPOINT = 'http://www.ed.conpet.gov.br/mod_perl/bot_gateway.cgi?server=0.0.0.0%3A8085&charset_post=utf-8&charset=utf-8&pure=1&js=0&tst=1&msg='
6
6
  TRUE_VALUES = [true, 1, '1', 't', 'T', 'true', 'TRUE']
7
7
 
8
- @@strip_tags = true
8
+ @@strip_tags = false
9
9
 
10
10
  def self.strip_tags
11
11
  @@strip_tags
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roboed
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugo Demiglio
@@ -13,10 +13,12 @@ dependencies: []
13
13
  description: Talk with Robô Ed.
14
14
  email:
15
15
  - hugodemiglio@gmail.com
16
- executables: []
16
+ executables:
17
+ - roboed
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
21
+ - bin/roboed
20
22
  - lib/robo_ed.rb
21
23
  - lib/robo_ed/version.rb
22
24
  homepage: https://github.com/formaweb/roboed