yao 0.2.1 → 0.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a43847afb896259ec838b7c1868c57657092a245
4
- data.tar.gz: 60410d2891988b2acb4894e8cbffd09b81e007f5
3
+ metadata.gz: d3d8d77a253364476ed886f96b9866b169870223
4
+ data.tar.gz: 95ee3a1bd9c3c4f241acd8b39eb65146cffba553
5
5
  SHA512:
6
- metadata.gz: e2a41e0532be69ffeef29dc41a86106217dc2b364e66bc3de22cc84c888ec01386f70b916f37b93d0d1f664b7a1fe7bef188e08c3acf82a41697ea8c8c9dfc68
7
- data.tar.gz: 1ccf43b776c2319282165759adcb01c1445f459dc50ff5f4204265d1b919757e2ea887b82ed870b493742323f2c7310098c7873832617fb171119bc242b3c1b7
6
+ metadata.gz: a62445345b8c370c1b3d6893f5936f51c1fc3a210c430a2b638b05c96e58a7fd0c78ab8384999067599b1b281956dbc23f88efa2dc40846507d83069f3a97410
7
+ data.tar.gz: 711c40e3e7ace2a0a39fa82eeb7a1987e03e45bbe8562aee73dd5843151000b14ab9b814b5af9dd424d9a2d4d56966396c0dd4f042a5339679bec6fd3a5f34a6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
+ ## v0.2.2
2
+
3
+ * Fix `resources_name_in_json` method caching again by @pyama86
4
+
1
5
  ## v0.2.1
2
6
 
3
7
  * Fix `resources_name_in_json` is still remaining by @pyama86
4
8
  * Add `Yao::Server.start` by @pyama86
5
9
 
6
- See more: (v0.2.0...v0.2.1)[https://github.com/yaocloud/yao/compare/v0.2.0...v0.2.1]
10
+ See more: [v0.2.0...v0.2.1](https://github.com/yaocloud/yao/compare/v0.2.0...v0.2.1)
@@ -130,9 +130,12 @@ module Yao::Resources
130
130
  end
131
131
 
132
132
  private
133
+ def resource_name_in_json
134
+ @_resource_name_in_json ||= resource_name.sub(/^os-/, "").tr("-", "_")
135
+ end
136
+
133
137
  def resource_from_json(json)
134
- @resource_name_in_json ||= resource_name.sub(/^os-/, "").tr("-", "_")
135
- json[@resource_name_in_json]
138
+ json[resource_name_in_json]
136
139
  end
137
140
 
138
141
  def resources_from_json(json)
data/lib/yao/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yao
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yao
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
  - Uchio, KONDO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-16 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json