dsl-python 0.21.0 → 0.21.1

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: d283abe3337a500dfb1f48ce1ad5f70dc9f3240d0f71cfc849a3e44263f05f52
4
- data.tar.gz: 46ace9246375b35df8c1e14991fa24c0b87453b4324b4cdb7df96bc52f0dbbad
3
+ metadata.gz: de10c25aa6b4cb7ba9ed43aa5322cd776ac04bced5a8fdd8a33dd2d064b77aae
4
+ data.tar.gz: de9cb499d571faea33dd41ce1f865594f49428eb127a63dfea57466a206c1b9d
5
5
  SHA512:
6
- metadata.gz: 8e927692c4185435682f232c8181a9df5919cea7735606dfb2ac5cdceb79bef599f5bc5476e35837727e6d20739e1705a765d6f6149aaab9265fa1fd40e109cd
7
- data.tar.gz: fc5419c36c4adb8af36c4fe4ac95e87e24fc867f0b243e424a2301fe09a9a09e99486599673c1668f89c559042082a3f6fdff90fabe10079300b80e9d38e62ad
6
+ metadata.gz: 48657b7eb16bea79959ad5fb276b3002c2464d3791d7604db342900c66502e26521bb868693c76cef6d58c16365606027cc4c82b32985ac4121493846f08d4b7
7
+ data.tar.gz: 28bc551641f957b791adedce5c446f5e40790a1dc83d68f1d0951759301bc3f5668bfb22efebe095a6bb02de5adc6d148d723d422a293a8810c017f0de4f66e1
@@ -5,15 +5,13 @@ require_relative "../repl/zen"
5
5
  $main_binding = binding
6
6
 
7
7
  def import(filename)
8
- filename.to_s
8
+ return Dsl::Python.show_zen if filename.to_s == "this"
9
+ return Dsl::Python.show_zen(ofuscate: true) if filename.to_s == "that"
10
+
9
11
  dirbase = File.dirname($main_filepath)
10
12
  filepath = File.join(dirbase, filename + ".py")
11
13
 
12
- if filename.to_s == "this"
13
- Dsl::Python.show_zen
14
- elsif filename.to_s == "that"
15
- Dsl::Python.show_zen(ofuscate: true)
16
- elsif File.exist? filepath
14
+ if File.exist? filepath
17
15
 
18
16
  content = File.read(filepath)
19
17
  eval(content, $main_binding)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Dsl
4
4
  module Python
5
- VERSION = "0.21.0"
5
+ VERSION = "0.21.1"
6
6
  end
7
7
  end
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dsl-python
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Vargas Ruiz