talk 2.3.5 → 2.3.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
  SHA1:
3
- metadata.gz: dd6c53088019afec7a1eaf4af18482e702b4ce64
4
- data.tar.gz: 6801ac23c0c3b5144ce9871e3a73be2ab1fe7ad4
3
+ metadata.gz: f1a5abbb15a585fc235b8447ce7811f92ca3b14b
4
+ data.tar.gz: aa468079200186fdef8d92913c903f4b9539a7b3
5
5
  SHA512:
6
- metadata.gz: cba3b142ddfdfb34d896bd8c238b9a77d2f3243c7761203a46d970a5770f24c68a9b94223a9cfc9474fe3df31f92d054b8735a219f6ce1b4017c17dd31e0d2c5
7
- data.tar.gz: cc85cc629abc26c1405d5332f53cc54d1e1b013332e897277e10f7281078fde2b3530b9258042a2ed669ffd96f93e2760e53954c61927bcab324c68a3177dd22
6
+ metadata.gz: 7ef638efe6c9b72b9b5a32d42b65af49a846a6122a1aeb42ece3e50872a9590397761933870c6aa14b3edd15118be7eb7f955e5c9de01c1f56d14f79b11d90cc
7
+ data.tar.gz: d940a4a534110ec594fe6f5072265364c0afdae689598f10d18dd2aa679e542bcfa3a9d6cb5c4ccb08cffd0a38ff8bf6063727e1b6114a60c8d26b1526a09508
data/CHANGELOG ADDED
@@ -0,0 +1 @@
1
+ 2.3.6 - Fix crashes in JS generator
@@ -42,6 +42,8 @@ def class_line(cls)
42
42
  out << "// " + cls[:name]
43
43
 
44
44
  fields = {}
45
+
46
+ puts cls[:name]
45
47
  cls[:field].each do |field|
46
48
  mapped = mapped_name(cls[:name], field[:name], :field)
47
49
  fields[mapped] = {typeStack:field[:type]}
@@ -863,7 +863,7 @@ TalkObject.method = function(protocolName, method)
863
863
 
864
864
  };
865
865
 
866
- <%= (@base[:class].map { |cls| class_line(cls) }).compact.join("\n") %>
867
- <%= (@base[:protocol].map { |proto| protocol_line(proto) }).compact.join("\n") %>
868
- <%= (@base[:glossary].map { |glossary| glossary_line(glossary) }).compact.join("\n") %>
869
- <%= (@base[:enumeration].map { |enumeration| enumeration_line(enumeration) }).compact.join("\n") %>
866
+ <%= (@base[:class].map { |cls| class_line(cls) rescue nil }).compact.join("\n") %>
867
+ <%= (@base[:protocol].map { |proto| protocol_line(proto) rescue nil }).compact.join("\n") %>
868
+ <%= (@base[:glossary].map { |glossary| glossary_line(glossary) rescue nil }).compact.join("\n") %>
869
+ <%= (@base[:enumeration].map { |enumeration| enumeration_line(enumeration) rescue nil }).compact.join("\n") %>
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Talk
2
- VERSION = "2.3.5"
2
+ VERSION = "2.3.6"
3
3
  end
data/talk.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.name = 'talk'
7
7
  s.executables << 'maketalk'
8
8
  s.version = Talk::VERSION
9
- s.date = '2014-06-12'
9
+ s.date = '2014-07-31'
10
10
  s.summary = "Compile-to-source protocol contract specification language"
11
11
  s.description = "A lightweight language for specifying protocol contracts. Compiles to source in Java, Javascript, ObjC and Ruby."
12
12
  s.authors = ["Jonas Acres"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.5
4
+ version: 2.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Acres
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-12 00:00:00.000000000 Z
11
+ date: 2014-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop
@@ -62,6 +62,7 @@ extra_rdoc_files: []
62
62
  files:
63
63
  - .gitignore
64
64
  - .travis.yml
65
+ - CHANGELOG
65
66
  - Gemfile
66
67
  - README.md
67
68
  - Rakefile