phrase_assembler 1.1.0 → 1.1.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.
@@ -35,7 +35,21 @@ class PACompositeProxy < PAAutomateProxy
35
35
  return end_proxy.to_s(options)
36
36
  end
37
37
  else
38
- return super(sym, *args, &block)
38
+ proxy = super(sym, *args, &block)
39
+ if proxy.data.is_a? String
40
+ return proxy.to_s({})
41
+ else
42
+ return proxy
43
+ end
44
+ end
45
+ end
46
+
47
+ def [](index)
48
+ proxy = super(index)
49
+ if proxy.data.is_a? String
50
+ return proxy.data.to_s
51
+ else
52
+ return proxy
39
53
  end
40
54
  end
41
55
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phrase_assembler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Lovro \xC5\xBDmak, Radan Skori\xC4\x87, Drap"