yinx 0.1.2 → 0.1.3

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: c3d50270eff9d41faf3804c51e7a163ab4cf9b46
4
- data.tar.gz: d76bee9201f2dcf15d2c6bf9342297801ea53f88
3
+ metadata.gz: 880a04045c8e6c8440578512ed8ab6275859e117
4
+ data.tar.gz: 7adab8f487351c63c2d86d0c66f3b410bd8b31e7
5
5
  SHA512:
6
- metadata.gz: '03548f9afc2b66ecbcee8c3133d665a5b471254dd459817f0b521f58002e2fa59c71779401988f42ac238af4461ef441642bd1c57e58c5268f4d2ce10fba94c5'
7
- data.tar.gz: 34508d43d8c78bee83f3f6041a6e6549b395114a20b29af9da3d313c99109932b26d263b80d233ed1f0cb341f392ac6c41aa30da167b72ccce6b37f6ac014c5a
6
+ metadata.gz: b5153da461f91c61e8e658296637e74730ea575947d55d3cfd4ab08ad94920a9824fe5e3163062b3704701f1537925ef0b33fd856ce7b5715cd51163be7dcd4b
7
+ data.tar.gz: 9dd463d49b5a73dca6c7428151c9eb473e78b6ba4c1653f1a19d7446225d39c23647c6d9701634618f1c195b75ecd7281e949c60e6bf4c4d36813819803f7cfe
@@ -5,12 +5,11 @@ class NoteMeta
5
5
  [:updated, :created, :title, :notebookGuid, :guid, :contentLength, :tagGuids].each do |method|
6
6
  define_method method do
7
7
  iv_name = "@#{method}"
8
- value = instance_variable_get iv_name
9
- unless value
8
+ unless instance_variable_defined? iv_name
10
9
  value = instance_variable_get("@meta").send method
11
10
  instance_variable_set iv_name, value
12
11
  end
13
- value
12
+ instance_variable_get iv_name
14
13
  end
15
14
  end
16
15
 
data/lib/yinx/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yinx
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yinx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ken