aaronp-zomg 1.0.2.20080828210656 → 1.0.2.20080830162937

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.
@@ -63,11 +63,11 @@ module ZOMG
63
63
  def visit_Attribute(o)
64
64
  attributes = []
65
65
  o.children.each { |name|
66
- name = name.accept(self).to_s
66
+ name = name.accept(self)
67
67
 
68
68
  # Reader
69
69
  attributes <<
70
- [:defn, :"get#{classify(name)}",
70
+ [:defn, name,
71
71
  [:scope, [:block, [:args],
72
72
  [:fcall, :raise, [:array,
73
73
  [:call, [:const, :NotImplementedError], :new]]
@@ -76,7 +76,7 @@ module ZOMG
76
76
  ]
77
77
  unless o.readonly
78
78
  attributes <<
79
- [:defn, :"set#{classify(name)}",
79
+ [:defn, :"#{name}=",
80
80
  [:scope, [:block, [:args, :_],
81
81
  [:fcall, :raise, [:array,
82
82
  [:call, [:const, :NotImplementedError], :new]]
@@ -24,7 +24,7 @@ module ZOMG
24
24
  [:scope,
25
25
  [:block,
26
26
  [:defn,
27
- :getAwesome,
27
+ :awesome,
28
28
  [:scope,
29
29
  [:block,
30
30
  [:args],
@@ -32,7 +32,7 @@ module ZOMG
32
32
  :raise,
33
33
  [:array, [:call, [:const, :NotImplementedError], :new]]]]]],
34
34
  [:defn,
35
- :setAwesome,
35
+ :awesome=,
36
36
  [:scope,
37
37
  [:block,
38
38
  [:args, :_],
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{zomg}
3
- s.version = "1.0.2.20080828210656"
3
+ s.version = "1.0.2.20080830162937"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Aaron Patterson"]
7
- s.date = %q{2008-08-28}
7
+ s.date = %q{2008-08-30}
8
8
  s.default_executable = %q{omfg}
9
9
  s.description = %q{ZOMG is an OMG IDL parser. ZOMG will generate a Ruby AST from an IDL AST, and will even generate ruby (by means of Ruby2Ruby). == FEATURES/PROBLEMS: * Parses IDL, generates Ruby * Ships with OMFG the Object Management File Generator * Ignores nested structs/unions * Treats out/inout parameters are DIY == SYNOPSIS: In code: ZOMG::IDL.parse(File.read(ARGV[0])).to_ruby Command line: $ omfg lol.idl > roflmao.rb}
10
10
  s.email = ["aaronp@rubyforge.org"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aaronp-zomg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2.20080828210656
4
+ version: 1.0.2.20080830162937
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-28 00:00:00 -07:00
12
+ date: 2008-08-30 00:00:00 -07:00
13
13
  default_executable: omfg
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency