polyrex-createobject 0.5.2 → 0.5.4

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: 0d96239f31ca767d2918a3b4e51cc8226d3a37fb
4
- data.tar.gz: 033619c8b37010dba8e942f24ce2af43a4c824e4
3
+ metadata.gz: b76e2cf3418301290b726a502ffd7c015ed026a8
4
+ data.tar.gz: 3a1ec50deb3bd71520810390fc83ec9c2f158c91
5
5
  SHA512:
6
- metadata.gz: 162409886d4a29b01863f3526cc10843d6b709c415c004714d06f199e18657537896916f36a295ad50f9d027435d7d28a4b8d5088fd5d495f9a4b36c7c441287
7
- data.tar.gz: 5c4fce288c1d697adfd43e82c38ee6a2a2e71f23afff68590576c55972db356ce2644ae5b09dcc9b3192d4c63f4a635be137b8da115f48bc25d162ba2efc8e5a
6
+ metadata.gz: e1e39b4c2a3b7b7bfd0ea80c794f98f3e9a546c2ce16000271f4b0489a1840e34b2c933eb8f7798ca6b5bad1a470e3edd54b9b16162cf6081c993442dba58a3c
7
+ data.tar.gz: 1a90a16e5d01d2c49c52bbfe64e7309796b6bb00964af5d99610af38af6f241f9c93ee0a977a74f6a325f70abb557122049dd23472a6a7d2f7b1cac5b460903f
checksums.yaml.gz.sig CHANGED
Binary file
@@ -13,7 +13,7 @@ class PolyrexCreateObject
13
13
  attr_reader :obj
14
14
 
15
15
 
16
- def initialize(schema, id='1')
16
+ def initialize(schema, id: '1')
17
17
 
18
18
  @@id = id
19
19
 
@@ -33,7 +33,7 @@ class PolyrexCreateObject
33
33
 
34
34
  new_parent = create_node(@parent_node, @schema, h, id).element('records')
35
35
 
36
- obj = @obj.new
36
+ obj = @obj.new
37
37
  obj.record = new_parent
38
38
  obj.instance_variable_set(:@schema, @schema[/\\/(.*$)/,1])
39
39
 
@@ -126,7 +126,6 @@ class PolyrexCreateObject
126
126
 
127
127
  buffer = PolyrexSchema.new(child_schema[/^[^\/]+/]).to_s
128
128
  record = Rexle.new buffer
129
-
130
129
  if id then
131
130
  @@id.succ!
132
131
  else
@@ -146,9 +145,9 @@ class PolyrexCreateObject
146
145
  field = summary.element(field_name.strip)
147
146
  field.text = params[field_name.strip.to_sym]
148
147
  end
149
-
150
148
  parent_node.add record.root
151
149
 
150
+
152
151
  end # end of define_method :create_node
153
152
 
154
153
  define_method cname do |h, id=nil, &blk|
@@ -158,8 +157,7 @@ class PolyrexCreateObject
158
157
  new_parent = create_node(@parent_node, local_schema, h, id)\
159
158
  .element('records')
160
159
 
161
- obj = klass.new
162
-
160
+ obj = klass.new
163
161
  def obj.record=(node)
164
162
  @parent_node = node
165
163
  end
@@ -219,4 +217,4 @@ class PolyrexCreateObject
219
217
  return klass
220
218
  end
221
219
 
222
- end
220
+ end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-createobject
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  f3O5lCaUfMDZbRHRyvXjy/4PFRQKLr6ZLbpQN+dWceS6/82/5xWEL/7Bo/86R5xN
32
32
  JL6pGH//inbMWQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-06-27 00:00:00.000000000 Z
34
+ date: 2014-07-25 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: polyrex-schema
@@ -72,7 +72,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 2.1.2
75
+ version: 2.1.0
76
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - ">="
metadata.gz.sig CHANGED
Binary file