toji 2.27.0 → 2.28.0

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
  SHA256:
3
- metadata.gz: 453b31c828544fff48101dfcce3af029716f60942dd65ace4479986b9eba3e1e
4
- data.tar.gz: f4bc7eb3e5d629af1eaa108cd5b265141c35706438bc70d696d6589c7101b37d
3
+ metadata.gz: 6cda96af7ffc4f7a23008d79c90d52884c71e67d8a3d3683269b1874ded680f7
4
+ data.tar.gz: 9eb861ccf09457e313671029474dffb284f5495373fe747f1a414805fce9b3bf
5
5
  SHA512:
6
- metadata.gz: 06f8999490f170a9d473a960a6c488a91c4ad96444ee2af8ee522f533b1eff3b497c3ef05e168b6d1cbd90e2750cdc539e04b72142c002cecddffcda70aaf6fa
7
- data.tar.gz: fe4df8232b25e245e488b3d39608b40559703ad2028cdf4dd13bdf838cc3bb423f86842a1b9c6664bf1ecd23c5ff508a2e08390003265f805a732259abb2200c
6
+ metadata.gz: aaf3b8f3a3300f8b12027f8e34168fa25d5ad3e7ae3a3ac5ad8563be7a8eba2040b627e7ff6790213ecb61fe45a3a4aca48c0503246327d9b6458135c62b679e
7
+ data.tar.gz: 3396b4ead3b1532cdabbc7654bd1493b42d674444ff5094e0bf652e0f632070d56cd6100c3acd888eb063831ab33da72b8b0ab7988fb4f71a8c7a59ae14e8bd6
@@ -1064,6 +1064,7 @@ module Example
1064
1064
  attr_accessor :room_dry_temp
1065
1065
  attr_accessor :room_wet_temp
1066
1066
  attr_accessor :room_relative_humidity
1067
+ attr_accessor :room_preset_temp
1067
1068
  attr_accessor :note
1068
1069
 
1069
1070
  def self.create(args)
@@ -1076,6 +1077,7 @@ module Example
1076
1077
  s.room_dry_temp = args[:room_dry_temp]
1077
1078
  s.room_wet_temp = args[:room_wet_temp]
1078
1079
  s.room_relative_humidity = args[:room_relative_humidity]
1080
+ s.room_preset_temp = args[:room_preset_temp]
1079
1081
  s.note = args[:note]
1080
1082
  }
1081
1083
  end
@@ -1105,6 +1107,7 @@ module Example
1105
1107
  attr_accessor :room_dry_temp
1106
1108
  attr_accessor :room_wet_temp
1107
1109
  attr_accessor :room_relative_humidity
1110
+ attr_accessor :room_preset_temp
1108
1111
  attr_accessor :baume
1109
1112
  attr_accessor :acid
1110
1113
  attr_accessor :warmings
@@ -1120,6 +1123,7 @@ module Example
1120
1123
  s.room_dry_temp = args[:room_dry_temp]
1121
1124
  s.room_wet_temp = args[:room_wet_temp]
1122
1125
  s.room_relative_humidity = args[:room_relative_humidity]
1126
+ s.room_preset_temp = args[:room_preset_temp]
1123
1127
  s.baume = args[:baume]
1124
1128
  s.acid = args[:acid]
1125
1129
  s.warmings = [args[:warmings]].flatten.compact
@@ -1155,9 +1159,11 @@ module Example
1155
1159
  attr_accessor :room_dry_temp
1156
1160
  attr_accessor :room_wet_temp
1157
1161
  attr_accessor :room_relative_humidity
1162
+ attr_accessor :room_preset_temp
1158
1163
  attr_accessor :baume
1159
1164
  attr_accessor :acid
1160
1165
  attr_accessor :amino_acid
1166
+ attr_accessor :glucose
1161
1167
  attr_accessor :alcohol
1162
1168
  attr_accessor :warmings
1163
1169
  attr_accessor :note
@@ -1172,6 +1178,7 @@ module Example
1172
1178
  s.room_dry_temp = args[:room_dry_temp]
1173
1179
  s.room_wet_temp = args[:room_wet_temp]
1174
1180
  s.room_relative_humidity = args[:room_relative_humidity]
1181
+ s.room_preset_temp = args[:room_preset_temp]
1175
1182
  if args[:baume]
1176
1183
  s.baume = args[:baume]
1177
1184
  else
@@ -1179,6 +1186,7 @@ module Example
1179
1186
  end
1180
1187
  s.acid = args[:acid]
1181
1188
  s.amino_acid = args[:amino_acid]
1189
+ s.glucose = args[:glucose]
1182
1190
  s.alcohol = args[:alcohol]
1183
1191
  s.warmings = [args[:warmings]].flatten.compact
1184
1192
  s.note = args[:note]
@@ -18,6 +18,7 @@ module Toji
18
18
  :room_psychrometry,
19
19
  :room_relative_humidity_from_dry_and_wet,
20
20
  :room_relative_humidity,
21
+ :room_preset_temp,
21
22
 
22
23
  :note,
23
24
  ].freeze
@@ -47,6 +48,7 @@ module Toji
47
48
  # @dynamic room_dry_temp
48
49
  # @dynamic room_wet_temp
49
50
  # @dynamic room_relative_humidity
51
+ # @dynamic room_preset_temp
50
52
  # @dynamic note
51
53
 
52
54
  # 乾湿差
@@ -8,18 +8,20 @@ module Toji
8
8
  :baume,
9
9
  :nihonshudo,
10
10
  :display_baume,
11
- :acid,
12
- :amino_acid,
13
11
  :alcohol,
14
12
  :bmd,
13
+ :acid,
14
+ :amino_acid,
15
+ :glucose,
15
16
  :warmings,
16
17
  ]).freeze
17
18
 
18
19
  # @dynamic baume
19
20
  # @dynamic nihonshudo
21
+ # @dynamic alcohol
20
22
  # @dynamic acid
21
23
  # @dynamic amino_acid
22
- # @dynamic alcohol
24
+ # @dynamic glucose
23
25
  # @dynamic warmings
24
26
 
25
27
  def moromi_day
@@ -63,6 +63,17 @@ module Toji
63
63
  val.nan? ? 0.0 : val
64
64
  end
65
65
 
66
+ def rices(&block)
67
+ Enumerator.new do|y|
68
+ kojis&.each {|koji|
69
+ y << koji
70
+ }
71
+ kakes&.each {|kake|
72
+ y << kake
73
+ }
74
+ end.each(&block)
75
+ end
76
+
66
77
  def ingredients(&block)
67
78
  Enumerator.new do|y|
68
79
  kojis&.each {|koji|
data/lib/toji/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Toji
2
- VERSION = "2.27.0"
2
+ VERSION = "2.28.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toji
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.27.0
4
+ version: 2.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshida Tetsuya
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-29 00:00:00.000000000 Z
11
+ date: 2021-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport