sixarm_ruby_fab 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/sixarm_ruby_fab/text.rb +14 -1
- data/test/sixarm_ruby_fab_test/text_test.rb +12 -0
- metadata +17 -17
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 149899722939c58e768bb13639ad1c7b8f48d503c0a292245e5dbee7016336d3
|
4
|
+
data.tar.gz: 1380189a1f336cd5e8429e90bf270cfe532f1131433b280eab695655514cb7e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e4b9de5cce0be3cdef0ad3e4e508db64f02726f19e7038ac14162df8963b2192a609307cad6cccfdeceb6aec4f2b0c4045a8608a45322490432b269c0d458b3
|
7
|
+
data.tar.gz: aa99154666a854a0dd3cf1e9cc1c01a16d020b89fb177f4171167f3bf4c6ebffce4c0057ee407a54fd86efcc43c22e30b1eceefdb81bd9243cfefb4c31c455b3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/sixarm_ruby_fab/text.rb
CHANGED
@@ -31,7 +31,20 @@ class Fab
|
|
31
31
|
(options[:chars] || NOTE_CHARS).sample(options[:size] || rand(1..200)).join.strip
|
32
32
|
end
|
33
33
|
|
34
|
-
# Fab a random
|
34
|
+
# Fab a random title.
|
35
|
+
#
|
36
|
+
# Options:
|
37
|
+
#
|
38
|
+
# * chars: NOTE_CHARS
|
39
|
+
# * size: rand(10..50) [actual size may be less because we strip the string]
|
40
|
+
#
|
41
|
+
# @returns [String] a random name
|
42
|
+
#
|
43
|
+
def title(options = {})
|
44
|
+
(options[:chars] || NOTE_CHARS).sample(options[:size] || rand(10..50)).join.strip
|
45
|
+
end
|
46
|
+
|
47
|
+
# Fab a random description.
|
35
48
|
#
|
36
49
|
# Options:
|
37
50
|
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sixarm_ruby_fab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SixArm
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 5.11.
|
70
|
+
version: 5.11.1
|
71
71
|
- - "<"
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '6'
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
requirements:
|
78
78
|
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: 5.11.
|
80
|
+
version: 5.11.1
|
81
81
|
- - "<"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '6'
|
@@ -107,7 +107,7 @@ dependencies:
|
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 12.3.
|
110
|
+
version: 12.3.0
|
111
111
|
- - "<"
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '13'
|
@@ -117,7 +117,7 @@ dependencies:
|
|
117
117
|
requirements:
|
118
118
|
- - ">="
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 12.3.
|
120
|
+
version: 12.3.0
|
121
121
|
- - "<"
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '13'
|
@@ -127,7 +127,7 @@ dependencies:
|
|
127
127
|
requirements:
|
128
128
|
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 0.
|
130
|
+
version: 0.14.1
|
131
131
|
- - "<"
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '2'
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
requirements:
|
138
138
|
- - ">="
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0.
|
140
|
+
version: 0.14.1
|
141
141
|
- - "<"
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: '2'
|
@@ -147,7 +147,7 @@ dependencies:
|
|
147
147
|
requirements:
|
148
148
|
- - ">="
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version: 4.6.
|
150
|
+
version: 4.6.1
|
151
151
|
- - "<"
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '5'
|
@@ -157,7 +157,7 @@ dependencies:
|
|
157
157
|
requirements:
|
158
158
|
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
|
-
version: 4.6.
|
160
|
+
version: 4.6.1
|
161
161
|
- - "<"
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '5'
|
@@ -167,7 +167,7 @@ dependencies:
|
|
167
167
|
requirements:
|
168
168
|
- - ">="
|
169
169
|
- !ruby/object:Gem::Version
|
170
|
-
version: 2.
|
170
|
+
version: 2.10.0
|
171
171
|
- - "<"
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '3'
|
@@ -177,7 +177,7 @@ dependencies:
|
|
177
177
|
requirements:
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 2.
|
180
|
+
version: 2.10.0
|
181
181
|
- - "<"
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: '3'
|
@@ -187,7 +187,7 @@ dependencies:
|
|
187
187
|
requirements:
|
188
188
|
- - ">="
|
189
189
|
- !ruby/object:Gem::Version
|
190
|
-
version: 4.
|
190
|
+
version: 4.7.3
|
191
191
|
- - "<"
|
192
192
|
- !ruby/object:Gem::Version
|
193
193
|
version: '5'
|
@@ -197,7 +197,7 @@ dependencies:
|
|
197
197
|
requirements:
|
198
198
|
- - ">="
|
199
199
|
- !ruby/object:Gem::Version
|
200
|
-
version: 4.
|
200
|
+
version: 4.7.3
|
201
201
|
- - "<"
|
202
202
|
- !ruby/object:Gem::Version
|
203
203
|
version: '5'
|
@@ -207,7 +207,7 @@ dependencies:
|
|
207
207
|
requirements:
|
208
208
|
- - ">="
|
209
209
|
- !ruby/object:Gem::Version
|
210
|
-
version: 3.
|
210
|
+
version: 3.3.0
|
211
211
|
- - "<"
|
212
212
|
- !ruby/object:Gem::Version
|
213
213
|
version: '4'
|
@@ -217,7 +217,7 @@ dependencies:
|
|
217
217
|
requirements:
|
218
218
|
- - ">="
|
219
219
|
- !ruby/object:Gem::Version
|
220
|
-
version: 3.
|
220
|
+
version: 3.3.0
|
221
221
|
- - "<"
|
222
222
|
- !ruby/object:Gem::Version
|
223
223
|
version: '4'
|
@@ -227,7 +227,7 @@ dependencies:
|
|
227
227
|
requirements:
|
228
228
|
- - ">="
|
229
229
|
- !ruby/object:Gem::Version
|
230
|
-
version: 0.
|
230
|
+
version: 0.52.1
|
231
231
|
- - "<"
|
232
232
|
- !ruby/object:Gem::Version
|
233
233
|
version: '1'
|
@@ -237,7 +237,7 @@ dependencies:
|
|
237
237
|
requirements:
|
238
238
|
- - ">="
|
239
239
|
- !ruby/object:Gem::Version
|
240
|
-
version: 0.
|
240
|
+
version: 0.52.1
|
241
241
|
- - "<"
|
242
242
|
- !ruby/object:Gem::Version
|
243
243
|
version: '1'
|
metadata.gz.sig
CHANGED
Binary file
|