discourse-fonts 0.0.8 → 0.0.11

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: 38f13c9220bbfd23c2803750e13b8d83ef53c26c8f8a9e3bb7a3090a22452b17
4
- data.tar.gz: 0b2e46a1451d1d88a826ce806d1326f8b88445c86bc2830c01077dca0a6b7fbc
3
+ metadata.gz: a8b0dda6379e28d3d8578dfcdb9609331197f3a38f9132d4c7099c8a75d67071
4
+ data.tar.gz: 17654b7cc1bf00ee5d6b54a47d3ca55763d30d728c5b8aaafe28cb493257c784
5
5
  SHA512:
6
- metadata.gz: 948e3f23c749d1c8c66a52fd39d5407b973109970a23c850857eadb39aa2df2945fdf3fcabbf59642b5bc6edec37047bfa039bbcaf1a8341635060e34a06c744
7
- data.tar.gz: 74ac922d390c47a3e095740d6728c873bd3deefc0719eeb898cbd3471797f53cb99aa16d7cc362cd7782097562c3361febfd7ab5baf0114073d071c150bbc6fd
6
+ metadata.gz: 5f7e7beddd10ee1291a385b6ca3951adaac167a249d6d090892d38bae4a3f28b94de517b5e9444b5e2adecfd3d9480934489cbe4e8d883c07f0c21b3473daefd
7
+ data.tar.gz: 901073481555ea4cbae9237712883fa6b6ff714dc985dcce914508cbe4148ea2e1d5c605689dce9d591aa62e2436a2ce39af3a7c414ba3066b55b61602777e81
@@ -1,197 +1,258 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DiscourseFonts
4
- VERSION = "0.0.8"
4
+ VERSION = "0.0.11"
5
5
 
6
6
  def self.path_for_fonts
7
7
  File.expand_path("../../vendor/assets/fonts", __FILE__)
8
8
  end
9
9
 
10
10
  def self.fonts
11
- @fonts ||= [
12
- {
13
- name: "Arial",
14
- stack: "Arial, sans-serif",
15
- },
16
- {
17
- name: "System",
18
- stack: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif",
19
- },
20
- {
21
- name: "Open Sans",
22
- stack: "Open Sans, Arial, sans-serif",
23
- variants: [
24
- { filename: "OpenSans-Regular.ttf", format: "truetype", weight: 400 },
25
- { filename: "OpenSans-Bold.ttf", format: "truetype", weight: 700 }
26
- ]
27
- },
28
- {
29
- name: "Oxanium",
30
- stack: "Oxanium, Arial, sans-serif",
31
- variants: [
32
- { filename: "oxanium-regular.woff2", format: "woff2", weight: 400 },
33
- { filename: "oxanium-bold.woff2", format: "woff2", weight: 700 }
34
- ]
35
- },
36
- {
37
- name: "Roboto",
38
- stack: "Roboto, Arial, sans-serif",
39
- variants: [
40
- { filename: "Roboto-Regular.ttf", format: "truetype", weight: 400 },
41
- { filename: "Roboto-Bold.ttf", format: "truetype", weight: 700 }
42
- ]
43
- },
44
- {
45
- name: "Lato",
46
- stack: "Lato, Arial, sans-serif",
47
- variants: [
48
- { filename: "Lato-Regular.ttf", format: "truetype", weight: 400 },
49
- { filename: "Lato-Bold.ttf", format: "truetype", weight: 700 }
50
- ]
51
- },
52
- {
53
- name: "NotoSansJP",
54
- stack: "NotoSansJP, Arial, sans-serif",
55
- variants: [
56
- { filename: "NotoSansJP-Regular.otf", weight: 400 },
57
- { filename: "NotoSansJP-Bold.otf", weight: 700 }
58
- ]
59
- },
60
- {
61
- name: "Montserrat",
62
- stack: "Montserrat, Arial, sans-serif",
63
- variants: [
64
- { filename: "Montserrat-Regular.ttf", format: "truetype", weight: 400 },
65
- { filename: "Montserrat-Bold.ttf", format: "truetype", weight: 700 }
66
- ]
67
- },
68
- {
69
- name: "RobotoCondensed",
70
- stack: "RobotoCondensed, Arial, sans-serif",
71
- variants: [
72
- { filename: "RobotoCondensed-Regular.ttf", format: "truetype", weight: 400 },
73
- { filename: "RobotoCondensed-Bold.ttf", format: "truetype", weight: 700 }
74
- ]
75
- },
76
- {
77
- name: "SourceSansPro",
78
- stack: "SourceSansPro, Arial, sans-serif",
79
- variants: [
80
- { filename: "SourceSansPro-Regular.ttf", format: "truetype", weight: 400 },
81
- { filename: "SourceSansPro-Bold.ttf", format: "truetype", weight: 700 }
82
- ]
83
- },
84
- {
85
- name: "Oswald",
86
- stack: "Oswald, Arial, sans-serif",
87
- variants: [
88
- { filename: "Oswald-Regular.ttf", format: "truetype", weight: 400 },
89
- { filename: "Oswald-Bold.ttf", format: "truetype", weight: 700 }
90
- ]
91
- },
92
- {
93
- name: "Raleway",
94
- stack: "Raleway, Arial, sans-serif",
95
- variants: [
96
- { filename: "Raleway-Regular.ttf", format: "truetype", weight: 400 },
97
- { filename: "Raleway-Bold.ttf", format: "truetype", weight: 700 }
98
- ]
99
- },
100
- {
101
- name: "RobotoMono",
102
- stack: "RobotoMono, Arial, sans-serif",
103
- variants: [
104
- { filename: "RobotoMono-Regular.ttf", format: "truetype", weight: 400 },
105
- { filename: "RobotoMono-Bold.ttf", format: "truetype", weight: 700 }
106
- ]
107
- },
108
- {
109
- name: "Poppins",
110
- stack: "Poppins, Arial, sans-serif",
111
- variants: [
112
- { filename: "Poppins-Regular.ttf", format: "truetype", weight: 400 },
113
- { filename: "Poppins-Bold.ttf", format: "truetype", weight: 700 }
114
- ]
115
- },
116
- {
117
- name: "NotoSans",
118
- stack: "NotoSans, Arial, sans-serif",
119
- variants: [
120
- { filename: "NotoSans-Regular.ttf", format: "truetype", weight: 400 },
121
- { filename: "NotoSans-Bold.ttf", format: "truetype", weight: 700 }
122
- ]
123
- },
124
- {
125
- name: "RobotoSlab",
126
- stack: "RobotoSlab, Arial, sans-serif",
127
- variants: [
128
- { filename: "RobotoSlab-Regular.ttf", format: "truetype", weight: 400 },
129
- { filename: "RobotoSlab-Bold.ttf", format: "truetype", weight: 700 }
130
- ]
131
- },
132
- {
133
- name: "Merriweather",
134
- stack: "Merriweather, Arial, sans-serif",
135
- variants: [
136
- { filename: "Merriweather-Regular.ttf", format: "truetype", weight: 400 },
137
- { filename: "Merriweather-Bold.ttf", format: "truetype", weight: 700 }
138
- ]
139
- },
140
- {
141
- name: "Ubuntu",
142
- stack: "Ubuntu, Arial, sans-serif",
143
- variants: [
144
- { filename: "Ubuntu-Regular.ttf", format: "truetype", weight: 400 },
145
- { filename: "Ubuntu-Bold.ttf", format: "truetype", weight: 700 }
146
- ]
147
- },
148
- {
149
- name: "PTSans",
150
- stack: "PTSans, Arial, sans-serif",
151
- variants: [
152
- { filename: "PTSans-Regular.ttf", format: "truetype", weight: 400 },
153
- { filename: "PTSans-Bold.ttf", format: "truetype", weight: 700 }
154
- ]
155
- },
156
- {
157
- name: "PlayfairDisplay",
158
- stack: "PlayfairDisplay, Arial, sans-serif",
159
- variants: [
160
- { filename: "PlayfairDisplay-Regular.ttf", format: "truetype", weight: 400 },
161
- { filename: "PlayfairDisplay-Bold.ttf", format: "truetype", weight: 700 }
162
- ]
163
- },
164
- {
165
- name: "Nunito",
166
- stack: "Nunito, Arial, sans-serif",
167
- variants: [
168
- { filename: "Nunito-Regular.ttf", format: "truetype", weight: 400 },
169
- { filename: "Nunito-Bold.ttf", format: "truetype", weight: 700 }
170
- ]
171
- },
172
- {
173
- name: "Lora",
174
- stack: "Lora, Arial, sans-serif",
175
- variants: [
176
- { filename: "Lora-Regular.ttf", format: "truetype", weight: 400 },
177
- { filename: "Lora-Bold.ttf", format: "truetype", weight: 700 }
178
- ]
179
- },
180
- {
181
- name: "Mukta",
182
- stack: "Mukta, Arial, sans-serif",
183
- variants: [
184
- { filename: "Mukta-Regular.ttf", format: "truetype", weight: 400 },
185
- { filename: "Mukta-Bold.ttf", format: "truetype", weight: 700 }
186
- ]
187
- },
188
- {
189
- name: "Helvetica",
190
- stack: "Helvetica, Arial, sans-serif"
191
- }
192
- ].map do |font|
193
- font[:key] = font[:name].underscore.tr(" ", "_")
194
- font
195
- end
11
+ @fonts ||=
12
+ [
13
+ { name: "Arial", stack: "Arial, sans-serif" },
14
+ {
15
+ name: "System",
16
+ stack:
17
+ "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif"
18
+ },
19
+ {
20
+ name: "Open Sans",
21
+ stack: "Open Sans, Arial, sans-serif",
22
+ variants: [
23
+ {
24
+ filename: "OpenSans-Regular.ttf",
25
+ format: "truetype",
26
+ weight: 400
27
+ },
28
+ { filename: "OpenSans-Bold.ttf", format: "truetype", weight: 700 }
29
+ ]
30
+ },
31
+ {
32
+ name: "Oxanium",
33
+ stack: "Oxanium, Arial, sans-serif",
34
+ variants: [
35
+ { filename: "oxanium-regular.woff2", format: "woff2", weight: 400 },
36
+ { filename: "oxanium-bold.woff2", format: "woff2", weight: 700 }
37
+ ]
38
+ },
39
+ {
40
+ name: "Roboto",
41
+ stack: "Roboto, Arial, sans-serif",
42
+ variants: [
43
+ { filename: "Roboto-Regular.ttf", format: "truetype", weight: 400 },
44
+ { filename: "Roboto-Bold.ttf", format: "truetype", weight: 700 }
45
+ ]
46
+ },
47
+ {
48
+ name: "Lato",
49
+ stack: "Lato, Arial, sans-serif",
50
+ variants: [
51
+ { filename: "Lato-Regular.ttf", format: "truetype", weight: 400 },
52
+ { filename: "Lato-Bold.ttf", format: "truetype", weight: 700 }
53
+ ]
54
+ },
55
+ {
56
+ name: "Inter",
57
+ stack: "Inter, Arial, sans-serif",
58
+ variants: [{ filename: "Inter.ttf", format: "truetype", weight: 400 }]
59
+ },
60
+ {
61
+ name: "NotoSansJP",
62
+ stack: "NotoSansJP, Arial, sans-serif",
63
+ variants: [
64
+ { filename: "NotoSansJP-Regular.otf", weight: 400 },
65
+ { filename: "NotoSansJP-Bold.otf", weight: 700 }
66
+ ]
67
+ },
68
+ {
69
+ name: "Montserrat",
70
+ stack: "Montserrat, Arial, sans-serif",
71
+ variants: [
72
+ {
73
+ filename: "Montserrat-Regular.ttf",
74
+ format: "truetype",
75
+ weight: 400
76
+ },
77
+ { filename: "Montserrat-Bold.ttf", format: "truetype", weight: 700 }
78
+ ]
79
+ },
80
+ {
81
+ name: "RobotoCondensed",
82
+ stack: "RobotoCondensed, Arial, sans-serif",
83
+ variants: [
84
+ {
85
+ filename: "RobotoCondensed-Regular.ttf",
86
+ format: "truetype",
87
+ weight: 400
88
+ },
89
+ {
90
+ filename: "RobotoCondensed-Bold.ttf",
91
+ format: "truetype",
92
+ weight: 700
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ name: "SourceSansPro",
98
+ stack: "SourceSansPro, Arial, sans-serif",
99
+ variants: [
100
+ {
101
+ filename: "SourceSansPro-Regular.ttf",
102
+ format: "truetype",
103
+ weight: 400
104
+ },
105
+ {
106
+ filename: "SourceSansPro-Bold.ttf",
107
+ format: "truetype",
108
+ weight: 700
109
+ }
110
+ ]
111
+ },
112
+ {
113
+ name: "Oswald",
114
+ stack: "Oswald, Arial, sans-serif",
115
+ variants: [
116
+ { filename: "Oswald-Regular.ttf", format: "truetype", weight: 400 },
117
+ { filename: "Oswald-Bold.ttf", format: "truetype", weight: 700 }
118
+ ]
119
+ },
120
+ {
121
+ name: "Raleway",
122
+ stack: "Raleway, Arial, sans-serif",
123
+ variants: [
124
+ {
125
+ filename: "Raleway-Regular.ttf",
126
+ format: "truetype",
127
+ weight: 400
128
+ },
129
+ { filename: "Raleway-Bold.ttf", format: "truetype", weight: 700 }
130
+ ]
131
+ },
132
+ {
133
+ name: "RobotoMono",
134
+ stack: "RobotoMono, Arial, sans-serif",
135
+ variants: [
136
+ {
137
+ filename: "RobotoMono-Regular.ttf",
138
+ format: "truetype",
139
+ weight: 400
140
+ },
141
+ { filename: "RobotoMono-Bold.ttf", format: "truetype", weight: 700 }
142
+ ]
143
+ },
144
+ {
145
+ name: "Poppins",
146
+ stack: "Poppins, Arial, sans-serif",
147
+ variants: [
148
+ {
149
+ filename: "Poppins-Regular.ttf",
150
+ format: "truetype",
151
+ weight: 400
152
+ },
153
+ { filename: "Poppins-Bold.ttf", format: "truetype", weight: 700 }
154
+ ]
155
+ },
156
+ {
157
+ name: "NotoSans",
158
+ stack: "NotoSans, Arial, sans-serif",
159
+ variants: [
160
+ {
161
+ filename: "NotoSans-Regular.ttf",
162
+ format: "truetype",
163
+ weight: 400
164
+ },
165
+ { filename: "NotoSans-Bold.ttf", format: "truetype", weight: 700 }
166
+ ]
167
+ },
168
+ {
169
+ name: "RobotoSlab",
170
+ stack: "RobotoSlab, Arial, sans-serif",
171
+ variants: [
172
+ {
173
+ filename: "RobotoSlab-Regular.ttf",
174
+ format: "truetype",
175
+ weight: 400
176
+ },
177
+ { filename: "RobotoSlab-Bold.ttf", format: "truetype", weight: 700 }
178
+ ]
179
+ },
180
+ {
181
+ name: "Merriweather",
182
+ stack: "Merriweather, Arial, sans-serif",
183
+ variants: [
184
+ {
185
+ filename: "Merriweather-Regular.ttf",
186
+ format: "truetype",
187
+ weight: 400
188
+ },
189
+ {
190
+ filename: "Merriweather-Bold.ttf",
191
+ format: "truetype",
192
+ weight: 700
193
+ }
194
+ ]
195
+ },
196
+ {
197
+ name: "Ubuntu",
198
+ stack: "Ubuntu, Arial, sans-serif",
199
+ variants: [
200
+ { filename: "Ubuntu-Regular.ttf", format: "truetype", weight: 400 },
201
+ { filename: "Ubuntu-Bold.ttf", format: "truetype", weight: 700 }
202
+ ]
203
+ },
204
+ {
205
+ name: "PTSans",
206
+ stack: "PTSans, Arial, sans-serif",
207
+ variants: [
208
+ { filename: "PTSans-Regular.ttf", format: "truetype", weight: 400 },
209
+ { filename: "PTSans-Bold.ttf", format: "truetype", weight: 700 }
210
+ ]
211
+ },
212
+ {
213
+ name: "PlayfairDisplay",
214
+ stack: "PlayfairDisplay, Arial, sans-serif",
215
+ variants: [
216
+ {
217
+ filename: "PlayfairDisplay-Regular.ttf",
218
+ format: "truetype",
219
+ weight: 400
220
+ },
221
+ {
222
+ filename: "PlayfairDisplay-Bold.ttf",
223
+ format: "truetype",
224
+ weight: 700
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ name: "Nunito",
230
+ stack: "Nunito, Arial, sans-serif",
231
+ variants: [
232
+ { filename: "Nunito-Regular.ttf", format: "truetype", weight: 400 },
233
+ { filename: "Nunito-Bold.ttf", format: "truetype", weight: 700 }
234
+ ]
235
+ },
236
+ {
237
+ name: "Lora",
238
+ stack: "Lora, Arial, sans-serif",
239
+ variants: [
240
+ { filename: "Lora-Regular.ttf", format: "truetype", weight: 400 },
241
+ { filename: "Lora-Bold.ttf", format: "truetype", weight: 700 }
242
+ ]
243
+ },
244
+ {
245
+ name: "Mukta",
246
+ stack: "Mukta, Arial, sans-serif",
247
+ variants: [
248
+ { filename: "Mukta-Regular.ttf", format: "truetype", weight: 400 },
249
+ { filename: "Mukta-Bold.ttf", format: "truetype", weight: 700 }
250
+ ]
251
+ },
252
+ { name: "Helvetica", stack: "Helvetica, Arial, sans-serif" }
253
+ ].map do |font|
254
+ font[:key] = font[:name].underscore.tr(" ", "_")
255
+ font
256
+ end
196
257
  end
197
258
  end
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discourse-fonts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bianca Nenciu
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-11 00:00:00.000000000 Z
11
+ date: 2024-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.4.1
33
+ version: '3.9'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.4.1
40
+ version: '3.9'
41
41
  description: Bundle of fonts which can be used to customize the look of Discourse
42
42
  email: bianca.nenciu@discourse.org
43
43
  executables: []
@@ -45,6 +45,7 @@ extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
47
  - lib/discourse_fonts.rb
48
+ - vendor/assets/fonts/Inter.ttf
48
49
  - vendor/assets/fonts/Lato-Bold.ttf
49
50
  - vendor/assets/fonts/Lato-Regular.ttf
50
51
  - vendor/assets/fonts/Lora-Bold.ttf
@@ -91,7 +92,7 @@ homepage: https://github.com/discourse/discourse-fonts
91
92
  licenses:
92
93
  - MIT
93
94
  metadata: {}
94
- post_install_message:
95
+ post_install_message:
95
96
  rdoc_options: []
96
97
  require_paths:
97
98
  - lib
@@ -99,15 +100,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
100
  requirements:
100
101
  - - ">="
101
102
  - !ruby/object:Gem::Version
102
- version: 2.5.0
103
+ version: 3.3.0
103
104
  required_rubygems_version: !ruby/object:Gem::Requirement
104
105
  requirements:
105
106
  - - ">="
106
107
  - !ruby/object:Gem::Version
107
108
  version: '0'
108
109
  requirements: []
109
- rubygems_version: 3.1.4
110
- signing_key:
110
+ rubygems_version: 3.5.22
111
+ signing_key:
111
112
  specification_version: 4
112
113
  summary: Bundle of customizable Discourse fonts
113
114
  test_files: []