talk 2.3.7 → 2.3.8

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: ba013c3a9959cffe8437109544ac80fe0ba56656
4
- data.tar.gz: 9ecc6df80df26fbc85110f9fa8a73ce31b42003d
3
+ metadata.gz: 59c0dc88aa697bea2a670754aea278c75a038bb7
4
+ data.tar.gz: c3ae23d06ef4b82391f14d0f9bbc165ca269c8ea
5
5
  SHA512:
6
- metadata.gz: 97162e8d65b4b6946150b51958ebca5a50073b01e9f2aa89b2323818882dd273660b45073ba48ae8983b8f3520085505294754a13b4a838a69923fe28b7d2796
7
- data.tar.gz: 495194289d8326087d0bf98c3b504ac597647320abb54a4cb265f1f71e5236dd3b2767ce0f1e00f109902801881746ecc96a9e6ade0f9df6be041e0b969ae353
6
+ metadata.gz: efdaf71aeb85743d40399d5650ff112765c14569f88c9ac7bb70feb23e85f42faff39e1706f27404fbdd430def2c4232ff295ad7797374d683d6281a248e7c27
7
+ data.tar.gz: 7cb6e82cc2fd4687b92a66a9594c5dcf9afa17c6f258b7a3b5ac18e6ce8d4708d438aed5d0efe370a572ba0097ab68df2322fbd97a26f7a396b54d1ea87fdef7
data/CHANGELOG CHANGED
@@ -1,2 +1,3 @@
1
+ 2.3.8 - Fixes for C# and JS generator, from 2.2.7
1
2
  2.3.7 - Add C# generator
2
3
  2.3.6 - Fix crashes in JS generator
@@ -7,7 +7,7 @@ namespace com.acres4.common.protocol
7
7
  /**
8
8
  <%= method[:description] %>
9
9
  */
10
- public static readonly string <%= method[:name].sub(/^(\w)/) {|s| s.capitalize} %> = "<%= method[:name] %>";
10
+ public const string <%= method[:name].sub(/^(\w)/) {|s| s.capitalize} %> = "<%= method[:name] %>";
11
11
 
12
12
  <% end %>
13
13
  }
@@ -5,7 +5,7 @@ namespace <%= class_package(@current) %>
5
5
  public class <%= truncated_name(@current) %> : <%= rootclass %>
6
6
  {<% @current[:constant].each do |field| %>
7
7
  /** <%= field[:description] %> */
8
- public readonly static int <%= field[:name] %> = <%= field[:value].to_i %>;
8
+ public const int <%= field[:name] %> = <%= field[:value].to_i %>;
9
9
  <% end %>
10
10
  }
11
11
  }
@@ -5,6 +5,6 @@ namespace <%= class_package(@current) %>
5
5
  public class <%= truncated_name(@current) %>
6
6
  {
7
7
  <% @current[:term].each do |field| %>
8
- public readonly static string <%= field[:name] %> = "<%= field[:value] %>";<% end %>
8
+ public const string <%= field[:name] %> = "<%= field[:value] %>";<% end %>
9
9
  }
10
10
  }
@@ -42,12 +42,12 @@ def class_line(cls)
42
42
  out << "// " + cls[:name]
43
43
 
44
44
  fields = {}
45
-
46
- puts cls[:name]
47
- cls[:field].each do |field|
48
- mapped = mapped_name(cls[:name], field[:name], :field)
49
- fields[mapped] = {typeStack:field[:type]}
50
- fields[mapped][:canonicalName] = field[:name] unless mapped == field[:name]
45
+ unless cls[:field].nil? then
46
+ cls[:field].each do |field|
47
+ mapped = mapped_name(cls[:name], field[:name], :field)
48
+ fields[mapped] = {typeStack:field[:type]}
49
+ fields[mapped][:canonicalName] = field[:name] unless mapped == field[:name]
50
+ end
51
51
  end
52
52
 
53
53
  out << "TalkObject.addClass('#{cls[:name]}', #{fields.to_json}, '#{truncated_name(superclass(cls))}');"
@@ -1,3 +1,3 @@
1
1
  module Talk
2
- VERSION = "2.3.7"
2
+ VERSION = "2.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.7
4
+ version: 2.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Acres