dtr_to_rust 0.2.5 → 0.2.6

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: b0e88ee729d6b75560b0b721116d5d01a09b0461be73ce60f7866811ac852ddb
4
- data.tar.gz: ec23afaf87408739dc2e85a6c205dc70b58518a200c8aa7452d8cc65e867c3a7
3
+ metadata.gz: b65d1e7c39791951dc4d806995143fd2df7e819680f865afcda770031b9315a6
4
+ data.tar.gz: 44526fcab24e6c2d2a1daae54321d962b3d99281f076d670288d2adfe5065534
5
5
  SHA512:
6
- metadata.gz: b81c54febc129a193a215dd67fd29e88b6378d469752d39c3a3a258eb3d702230f48f92560938cf0ba176360ad13c2e05d1fa78e2802dc67bccd173875a72024
7
- data.tar.gz: 00ad6c66f66e8c162860db52d7518b1633e8ecf2877c0ccd3bc09bf0c28157fbdb1627b046039af04ca570828bf2cb6a6ecf8514a7aa5d32f7a8adf272bcfd13
6
+ metadata.gz: a2f2abf2a127d62c46b880774f49eeccf94dcbfd9ceda0f1e07698d046b843a51209bbac35f8924bea0b66bf31b88788076927686f6ec8e800d13a73f329e3ab
7
+ data.tar.gz: a9eb2c7dc8e95b98aa3fae998c59fe90199166c0e2a7b3ee8edfc4fbc5ddd55c03b90ade0a43abb1b89834127f68e0278f27a08fe92d407f05bc81b758299cc1
@@ -16,8 +16,12 @@ module DTRToRust
16
16
  end
17
17
 
18
18
  def handle_input(input)
19
- if (input.start_with?('"') && input[-1] == ('"'))
19
+ decorated_input = Common::InputInterpreter.interpret(input)
20
+
21
+ if decorated_input[:type] == 'string'
20
22
  "symbol_short!(#{input})"
23
+ elsif decorated_input[:needs_reference]
24
+ "&#{input}"
21
25
  else
22
26
  input
23
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtr_to_rust
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Durst