slack-smart-bot 1.6.1 → 1.6.2

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
  SHA256:
3
- metadata.gz: 0e81ed53db87bdccab438f126b87a2e7abd2d1b0ca9d79cdbbc4990209f18501
4
- data.tar.gz: 259e6f186089d98bc641d1a604c89c88b09f396e99a0ff5f8c782f317dd46b72
3
+ metadata.gz: c58734c44f90b171c957d0f48c6c2c6353278d39666676667c774557fb8625a0
4
+ data.tar.gz: 4a4799485e58730145388bbc1772c842d3abaed0135c5bc4b1337d2dad91bc58
5
5
  SHA512:
6
- metadata.gz: 73c128f5ee9cf8c457832c54ae99875519dc3d636d0ef41476df1ce034d4216b061c8fdafa5d3c40c9c6cb7932ac49dc22cde3d2094f18807e9d3760dc54bdc8
7
- data.tar.gz: 556582c4bf0c62fe655be834fa7b7a315b136c877f44af5e55daad164387c1d82a6a89349c380db3f86195aaff3b6356f0957e15f36cdbb5b7dae0d15e709c0a
6
+ metadata.gz: f8b9c2d19aff0aad05b3a594b050999d72ed354861e303ea9dc32fff00816042ee838bc7ce33045e418e2f51e3193912bd1599e8743aed9746d79b69da671a1d
7
+ data.tar.gz: eaeaad86fea1bdfd9dad6d7e70ef649b593deab8f1a9099c8c3d89d6a53d6ee5280ce5bef267311a18a85cb4b98a700ebc20d592df288a30a07227cdadc2b2f1
@@ -101,14 +101,14 @@ class SlackSmartBot
101
101
  eval(\"require \'nice_http\'\" , bindme' + serialt + ')
102
102
 
103
103
  file_input_repl = File.open(\"' + Dir.pwd + '/repl/' + @channel_id + '/' + session_name + '.input\", \"r\")
104
+ if File.exist?(\"./.smart-bot-repl\")
105
+ begin
106
+ eval(File.read(\"./.smart-bot-repl\"), bindme' + serialt + ')
107
+ rescue Exception => resp_repl
108
+ end
109
+ end
104
110
  while true do
105
111
  sleep 0.2
106
- if File.exist?(\"./.smart-bot-repl\")
107
- begin
108
- eval(File.read(\"./.smart-bot-repl\"), bindme' + serialt + ')
109
- rescue Exception => resp_repl
110
- end
111
- end
112
112
  code_to_run_repl = file_input_repl.read
113
113
  if code_to_run_repl.to_s!=''
114
114
  if code_to_run_repl.to_s.match?(/^quit$/i) or
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-smart-bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Ruiz