fwi 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eae98e13b6ec9a8846176fa727bbb962397b1c5f
4
- data.tar.gz: 7352bb31bed27f0a41cc332f59276bc57bf35b70
3
+ metadata.gz: f3b629c26f6de53dcada43907b1f5bd35ad3fdb8
4
+ data.tar.gz: b01d3b6214332bd3256b166fe0b8b898c2dcc643
5
5
  SHA512:
6
- metadata.gz: 675e87dea63eb8189a13de38e72b00b85c14bbfe84d83463c56f13272671bce276aa4bf558152294d596a96f4f9f8590e9cdc9c9666956de41612f59db1022ea
7
- data.tar.gz: a2a3deb6e44f6d372b9ec90bcd2f45aff0fc5dd33f9a9e93f8fb11910432aa56f631020b1f1ff8f608547a3efd1a72f4bf65f847f05b44e4557c5be03dc79645
6
+ metadata.gz: f03f6db426aecbfc0c6aa0514e46983c7aad1ee259126d29de9eaa23a08185a97dc471351ec7671d8f39b3f02e5d4d024a9512e7ee8efee9a30ee8aa3103ca9a
7
+ data.tar.gz: 682943fd84c6e43c68d7a0adc6f3309afa45dcff59eec280c37de6f5e896f21bebe12171dc9e8527dce8562a506a18b9f7f7f09b7779d88d513e27b5dc78db27
data/fwi.gemspec CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fwi"
6
- spec.version = "1.1.0"
6
+ spec.version = "1.2.0"
7
7
  spec.authors = ["Jaci Brunning"]
8
8
  spec.email = ["jaci.brunning@gmail.com"]
9
9
 
@@ -100,15 +100,16 @@ module Generator
100
100
  def gen_for_ns parent, name, ns, str, indent
101
101
  is_root = name == "<root>"
102
102
  has_parent = parent != "<root>"
103
- unless has_parent
104
- append str, indent, "var #{name} = {};" unless is_root
105
- else
106
- append str, indent, "#{parent}.#{name} = {};" unless is_root
107
- end
108
103
 
109
104
  fqn_ns = name
110
105
  fqn_ns = parent + "." + fqn_ns if has_parent
111
106
 
107
+ unless has_parent
108
+ append str, indent, "var #{name} = FWI.util.exports().#{fqn_ns} || {};" unless is_root
109
+ else
110
+ append str, indent, "#{fqn_ns} = FWI.util.exports().#{fqn_ns} || {};" unless is_root
111
+ end
112
+
112
113
  unless is_root
113
114
  append(str, indent, "FWI.util.exports().#{fqn_ns} = #{fqn_ns};")
114
115
  end
@@ -137,7 +138,7 @@ module Generator
137
138
  append str, indent, "};"
138
139
  end
139
140
 
140
- if is_root
141
+ if is_root && element[:type] != :namespace
141
142
  append(str, indent, "FWI.util.exports().#{fqn} = #{fqn};")
142
143
  end
143
144
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fwi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaci Brunning