Skip to content

Commit e0a687f

Browse files
authored
Merge pull request #6 from cropio/FCS-72
FCS-72 - Marked UnitsLocalizator as public
2 parents 3cb9616 + 233c519 commit e0a687f

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

Sources/units-swift/UnitsLocalizator.swift

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,240 +7,240 @@
77

88
import Foundation
99

10-
class UnitsLocalizator: Localizator {
10+
public class UnitsLocalizator: Localizator {
1111
// MARK: Area
12-
var ha: Localization {
12+
public var ha: Localization {
1313
return .init(
1414
short: self.localized("ha"),
1515
full: self.localized("ha_full")
1616
)
1717
}
18-
var acre: Localization {
18+
public var acre: Localization {
1919
return .init(
2020
short: self.localized("acre"),
2121
full: self.localized("acre_full")
2222
)
2323
}
24-
var decare: Localization {
24+
public var decare: Localization {
2525
return .init(
2626
short: self.localized("decare"),
2727
full: self.localized("decare_full")
2828
)
2929
}
3030

3131
// MARK: Length
32-
var `in`: Localization {
32+
public var `in`: Localization {
3333
return .init(
3434
short: self.localized("in"),
3535
full: self.localized("in_full")
3636
)
3737
}
38-
var ft: Localization {
38+
public var ft: Localization {
3939
return .init(
4040
short: self.localized("ft"),
4141
full: self.localized("ft_full")
4242
)
4343
}
44-
var mile: Localization {
44+
public var mile: Localization {
4545
return .init(
4646
short: self.localized("mile"),
4747
full: self.localized("mile_full")
4848
)
4949
}
50-
var mm: Localization {
50+
public var mm: Localization {
5151
return .init(
5252
short: self.localized("mm"),
5353
full: self.localized("mm_full")
5454
)
5555
}
56-
var cm: Localization {
56+
public var cm: Localization {
5757
return .init(
5858
short: self.localized("cm"),
5959
full: self.localized("cm_full")
6060
)
6161
}
62-
var m: Localization {
62+
public var m: Localization {
6363
return .init(
6464
short: self.localized("m"),
6565
full: self.localized("m_full")
6666
)
6767
}
68-
var km: Localization {
68+
public var km: Localization {
6969
return .init(
7070
short: self.localized("km"),
7171
full: self.localized("km_full")
7272
)
7373
}
7474

7575
// MARK: Weight
76-
var pound: Localization {
76+
public var pound: Localization {
7777
return .init(
7878
short: self.localized("pound"),
7979
full: self.localized("pound_full")
8080
)
8181
}
82-
var kg: Localization {
82+
public var kg: Localization {
8383
return .init(
8484
short: self.localized("kg"),
8585
full: self.localized("kg_full")
8686
)
8787
}
88-
var centner: Localization {
88+
public var centner: Localization {
8989
return .init(
9090
short: self.localized("centner"),
9191
full: self.localized("centner_full")
9292
)
9393
}
94-
var ton: Localization {
94+
public var ton: Localization {
9595
return .init(
9696
short: self.localized("ton"),
9797
full: self.localized("ton_full")
9898
)
9999
}
100100

101101
// MARK: Liquids
102-
var pint: Localization {
102+
public var pint: Localization {
103103
return .init(
104104
short: self.localized("pint"),
105105
full: self.localized("pint_full")
106106
)
107107
}
108-
var liter: Localization {
108+
public var liter: Localization {
109109
return .init(
110110
short: self.localized("liter"),
111111
full: self.localized("liter_full")
112112
)
113113
}
114-
var bushel: Localization {
114+
public var bushel: Localization {
115115
return .init(
116116
short: self.localized("bushel"),
117117
full: self.localized("bushel_full")
118118
)
119119
}
120-
var quart: Localization {
120+
public var quart: Localization {
121121
return .init(
122122
short: self.localized("quart"),
123123
full: self.localized("quart_full")
124124
)
125125
}
126-
var americanGallon: Localization {
126+
public var americanGallon: Localization {
127127
return .init(
128128
short: self.localized("american_gallon"),
129129
full: self.localized("american_gallon_full")
130130
)
131131
}
132-
var britishGallon: Localization {
132+
public var britishGallon: Localization {
133133
return .init(
134134
short: self.localized("british_gallon"),
135135
full: self.localized("british_gallon_full")
136136
)
137137
}
138138

139139
// MARK: Temperature
140-
var celsius: Localization {
140+
public var celsius: Localization {
141141
return .init(
142142
short: self.localized("celsius"),
143143
full: self.localized("celsius_full")
144144
)
145145
}
146-
var fahrenheit: Localization {
146+
public var fahrenheit: Localization {
147147
return .init(
148148
short: self.localized("fahrenheit"),
149149
full: self.localized("fahrenheit_full")
150150
)
151151
}
152152

153153
// MARK: Productivity
154-
var bushelPerAcre: Localization {
154+
public var bushelPerAcre: Localization {
155155
return .init(
156156
short: self.localized("bushel_per_acre"),
157157
full: self.localized("bushel_per_acre_full")
158158
)
159159
}
160-
var usTonPerAcre: Localization {
160+
public var usTonPerAcre: Localization {
161161
return .init(
162162
short: self.localized("us_ton_per_acre"),
163163
full: self.localized("us_ton_per_acre_full")
164164
)
165165
}
166-
var tonPerHa: Localization {
166+
public var tonPerHa: Localization {
167167
return .init(
168168
short: self.localized("ton_per_ha"),
169169
full: self.localized("ton_per_ha_full")
170170
)
171171
}
172-
var centnerPerHa: Localization {
172+
public var centnerPerHa: Localization {
173173
return .init(
174174
short: self.localized("centner_per_ha"),
175175
full: self.localized("centner_per_ha_full")
176176
)
177177
}
178-
var kgPerDecare: Localization {
178+
public var kgPerDecare: Localization {
179179
return .init(
180180
short: self.localized("kg_per_decare"),
181181
full: self.localized("kg_per_decare_full")
182182
)
183183
}
184184

185185
// MARK: Speed
186-
var mPerSec: Localization {
186+
public var mPerSec: Localization {
187187
return .init(
188188
short: self.localized("m_per_sec"),
189189
full: self.localized("m_per_sec_full")
190190
)
191191
}
192-
var milePerHour: Localization {
192+
public var milePerHour: Localization {
193193
return .init(
194194
short: self.localized("mile_per_hour"),
195195
full: self.localized("mile_per_hour_full")
196196
)
197197
}
198-
var kmPerHour: Localization {
198+
public var kmPerHour: Localization {
199199
return .init(
200200
short: self.localized("km_per_hour"),
201201
full: self.localized("km_per_hour_full")
202202
)
203203
}
204204

205205
// MARK: FuelConsumption
206-
var americanPintPerAcre: Localization {
206+
public var americanPintPerAcre: Localization {
207207
return .init(
208208
short: self.localized("american_pint_per_acre"),
209209
full: self.localized("american_pint_per_acre_full")
210210
)
211211
}
212-
var americanQuart: Localization {
212+
public var americanQuart: Localization {
213213
return .init(
214214
short: self.localized("american_quart"),
215215
full: self.localized("american_quart_full")
216216
)
217217
}
218-
var literPerHa: Localization {
218+
public var literPerHa: Localization {
219219
return .init(
220220
short: self.localized("liter_per_ha"),
221221
full: self.localized("liter_per_ha_full")
222222
)
223223
}
224224

225-
var milePerUsGallon: Localization {
225+
public var milePerUsGallon: Localization {
226226
return .init(
227227
short: self.localized("mile_per_us_gallon"),
228228
full: self.localized("mile_per_us_gallon_full")
229229
)
230230
}
231-
var kmPerLiter: Localization {
231+
public var kmPerLiter: Localization {
232232
return .init(
233233
short: self.localized("km_per_liter"),
234234
full: self.localized("km_per_liter_full")
235235
)
236236
}
237-
var literPer100km: Localization {
237+
public var literPer100km: Localization {
238238
return .init(
239239
short: self.localized("liter_per_100km"),
240240
full: self.localized("liter_per_100km_full")
241241
)
242242
}
243-
var milePerUkGallon: Localization {
243+
public var milePerUkGallon: Localization {
244244
return .init(
245245
short: self.localized("mile_per_uk_gallon"),
246246
full: self.localized("mile_per_uk_gallon_full")

units-swift.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'units-swift'
11-
s.version = '1.0.3'
11+
s.version = '1.0.4'
1212
s.summary = 'Library for converting units of measurement'
1313
s.description = 'This library can convert units of measurement for agro systems'
1414

0 commit comments

Comments
 (0)