recordx 0.2.1 → 0.2.2

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: 96463e5c2dfa4ae8f1dbad4385b555e255b558a2
4
- data.tar.gz: 4b5010f5e1bf33857635bad23bf82a386ba0f2f3
3
+ metadata.gz: fdd155a6c9d5f0d57fb0eb706d6e9e7c2ed21c37
4
+ data.tar.gz: 5b45ac16de048507b45e149ef1e751d49e0c0f76
5
5
  SHA512:
6
- metadata.gz: 5c27966aa0f125873a0b787d84dcea8965c890424503a68b62de9dfd4f8776de8b797b86cc921b9dc87c141bddfed0dca117e00d5f154dbe3621d1b4aa5ad88b
7
- data.tar.gz: 6abafca674ceb3774a850dfaa3e3c0cbd10418f89de4362453229b077d2428d7dd2b78110521d4d84d4e5b38cc21f8a00a8750c69a4fe345e1cee49883eb139f
6
+ metadata.gz: 2b5f2e988ac9832656c671d0b477402f2b641366afa7e02e68604eaf75e67708fa1a94d39014f51e7d477886fca3ca0866aa7379bde56b2ab81eb876d81f4894
7
+ data.tar.gz: 1ca87a2c099f9e9901269757791a9737ab8913ce589d33d231a0bd8ad2c9181730f10e0cbb0cd6ee923798047ce009f164803ee35f9224a30a8a3d832ea6c5b4
checksums.yaml.gz.sig CHANGED
@@ -1 +1 @@
1
- hi�~<z�B1 �@�;q8lɠ; �lV�?m+�{_(9*Bb�����S~2���J �����+���7Lz=��yIHc�!���T^�����/0��+}�/U�n�I��b�s�`T�|�N � ����:ϰ���M]B>�N��_?��u�H�����hmX+#}J�<��MM?N���m�.NO�;jY���s Ϲſ ,W�������< %�
1
+ Gq���F�8(��'D��ـ�V����TE�?�շ�����+2���<��c����]��V^������[S���<�w�0���Ԟ�ww �t�<�� U�*�!�8gl4wWǟ��( z��[Dvr'��� �����s��|ɨ܉Vyc%G��dA�:�S�����M錃����x-�-�@��ݻ�#�����%��Jap�;Y�� ]ѣ��h/�u=���@��wHaoLY Vɛ�ka$4�����~�*ކ��?
data.tar.gz.sig CHANGED
Binary file
data/lib/recordx.rb CHANGED
@@ -93,8 +93,9 @@ class RecordX
93
93
  if (reserved_keywords - exceptions).include? name.to_sym then
94
94
  raise "recordx: reserved keyword *#{name}* can't be used as a field name"
95
95
  end
96
-
96
+
97
97
  self.instance_eval %Q{
98
+
98
99
  def #{name}=(s)
99
100
  @#{name} = s.to_s
100
101
  unless @h[:#{name}] == s.to_s then
@@ -107,11 +108,10 @@ class RecordX
107
108
  @#{name}
108
109
  end
109
110
 
110
- @#{name} = <<EOF
111
- #{val}
112
- EOF
113
- }
114
-
111
+ }
112
+
113
+ self.method((name + '=').to_sym).call val
114
+
115
115
  end
116
116
 
117
- end
117
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recordx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file