js_obj 1.0.0 → 1.0.1

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 -4
  3. data/demo.rb +8 -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: 3e17eadaf01fe054057f8aad414905cf72ca2815
4
- data.tar.gz: 47ad4a0930688e8f67be7cebb129591610f91d59
3
+ metadata.gz: d135bf495930d6b49a466a633a13681fb4b5a913
4
+ data.tar.gz: ffdfc655fc6fb9ef720f7c2f0d39f231b3248592
5
5
  SHA512:
6
- metadata.gz: 8d5187cba0dedad566059f5904b647f0c60b350712e3edd6ee4ea40bccee273cfcad4c604f964159d8ad5b55d8f61e30b1f547f8590eeccf47ba9376c59da6aa
7
- data.tar.gz: 975705ea235fecb268e687079b67d198513ba410d45d8b1a30058475f21575372a907dfc55ca31f22968d695a64489dba07bbfd9af122f6340ce5b9a368f2d8e
6
+ metadata.gz: 408a1089128b0030e302d439c0dde9dc46fedac3953be35cdbdf9872a61f42baf4e829ebea83e00c2b8b3fbc5d1aa3f49b8645c30f05e8f08a44e2866c1737f0
7
+ data.tar.gz: 4ad8c7ab0e222cd2efa9342bbe3d47a241a416b780cc481bfd9de5dc29d411d74ca1c1e13ad626b2642a5967221b17fadf1380a4caecbcba87c85f6abd8928c8
data/README.md CHANGED
@@ -33,23 +33,26 @@ user = {
33
33
  }
34
34
  }
35
35
 
36
- # Get property
36
+ # Get Property
37
+
37
38
  puts user.id
38
39
  #=> 1001
39
-
40
- # Get property
41
40
  puts user.position.x
42
41
  #=> 10.5
43
42
 
44
43
  # Add property
44
+
45
45
  user.name = "user1"
46
46
  puts user.name
47
47
  #=> user1
48
48
 
49
- # Add property
50
49
  user.position.z = 9.8
51
50
  puts user.position.z
52
51
  #=> 9.8
52
+
53
+ # Usual way
54
+ puts user[:id]
55
+ #=> 1001
53
56
  ```
54
57
 
55
58
  ## Development
data/demo.rb CHANGED
@@ -8,20 +8,23 @@ user = {
8
8
  }
9
9
  }
10
10
 
11
- # Get property
11
+ # Get Property
12
+
12
13
  puts user.id
13
14
  #=> 1001
14
-
15
- # Get property
16
15
  puts user.position.x
17
16
  #=> 10.5
18
17
 
19
18
  # Add property
19
+
20
20
  user.name = "user1"
21
21
  puts user.name
22
22
  #=> user1
23
23
 
24
- # Add property
25
24
  user.position.z = 9.8
26
25
  puts user.position.z
27
- #=> 9.8
26
+ #=> 9.8
27
+
28
+ # Usual way
29
+ puts user[:id]
30
+ #=> 1001
@@ -1,3 +1,3 @@
1
1
  module JsObj
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Ota