js_obj 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -5
  3. data/demo.rb +7 -5
  4. data/lib/js_obj/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc7fad58fc276beb3b52ad93338988801ffaf90b
4
- data.tar.gz: 7617cc15f87aced2cdab0c501dd3f707cece9b48
3
+ metadata.gz: 0fb1bd7902d821e464fe6bbe45ff5b1230e9b317
4
+ data.tar.gz: ebd69df40dc4f07b8eab4682b517b6511d690532
5
5
  SHA512:
6
- metadata.gz: 2a9e8894697f228d4f1b5235dc6072e659e09fa14ae7ce2b659cae427a79de36f27ae8e6b411bd5a54629017ceffd6f62689d953ac979bb35647b5bc1030d657
7
- data.tar.gz: 0f3989066af46a68d463c43e3dda825fd6e89e533ff0d211fda4a7dd5d6547654688a37f18531c6120f8689c25e40aeff5336a1358e6daf9d293991b8ac2f4b5
6
+ metadata.gz: a4113c3ca76736b32dea42587dea202138a2bfaf4a46ec861c1414b52f466d792e87a3dba730987f6c1f478c36e82e17d0150e2be3ee16ae752f3d3532fe067c
7
+ data.tar.gz: 9c0c46289e3fcbfa9583c1f6bcc3578884b98f09a92e4f4cff47576466d1a2cf48aaf0b0158db22e2a7a3363cce52ff7c92eda6f731ebedc36fd8039412f131d
data/README.md CHANGED
@@ -33,19 +33,21 @@ user = {
33
33
  }
34
34
 
35
35
  # Get
36
- puts user.id #=> 1001
37
- puts user.position.x #=> 10.5
36
+ p user.id #=> 1001
37
+ p user.position.x #=> 10.5
38
38
 
39
39
  # Set
40
+ p user.name #=> "user1"
40
41
  user.name = "Jason"
41
- puts user.name #=> "Jason"
42
+ p user.name #=> "Jason"
42
43
 
43
44
  # Add
45
+ p defined? user.position.z #=> nil
44
46
  user.position.z = 9.8
45
- puts user.position.z #=> 9.8
47
+ p user.position.z #=> 9.8
46
48
 
47
49
  # Usual way
48
- puts user[:id] #=> 1001
50
+ p user[:id] #=> 1001
49
51
 
50
52
  ```
51
53
 
data/demo.rb CHANGED
@@ -10,16 +10,18 @@ user = {
10
10
  }
11
11
 
12
12
  # Get
13
- puts user.id #=> 1001
14
- puts user.position.x #=> 10.5
13
+ p user.id #=> 1001
14
+ p user.position.x #=> 10.5
15
15
 
16
16
  # Set
17
+ p user.name #=> "user1"
17
18
  user.name = "Jason"
18
- puts user.name #=> "Jason"
19
+ p user.name #=> "Jason"
19
20
 
20
21
  # Add
22
+ p defined? user.position.z #=> nil
21
23
  user.position.z = 9.8
22
- puts user.position.z #=> 9.8
24
+ p user.position.z #=> 9.8
23
25
 
24
26
  # Usual way
25
- puts user[:id] #=> 1001
27
+ p user[:id] #=> 1001
@@ -1,3 +1,3 @@
1
1
  module JsObj
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_obj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Ota