sixarm_ruby_fab 2.1.0 → 2.2.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: 75cc2812246cbd6ea7621271a8f3cd455b324044cb6f31a33941ecab3fe72b3a
4
- data.tar.gz: 7c480a9b8af6488f1090edc96a0a352da92d68bf3ad46d6f80c26932f68bead3
3
+ metadata.gz: 149899722939c58e768bb13639ad1c7b8f48d503c0a292245e5dbee7016336d3
4
+ data.tar.gz: 1380189a1f336cd5e8429e90bf270cfe532f1131433b280eab695655514cb7e3
5
5
  SHA512:
6
- metadata.gz: d4c73785a3e6fc86e9441b9b6199fed2a8031f77805f9b15c2f0a12bc08a387d4a09505c839bd1d63032a62acb764fe11b5361d6e18da57c69730edaffb863c6
7
- data.tar.gz: 769809562020355a732e2cc7742e80ba1a0f8c3ea31801721ed391302ebc5e0ddbc4911990dcc50596eefa0f25d4236ae3eab07250ad8f0310c2a046564fc8ca
6
+ metadata.gz: 3e4b9de5cce0be3cdef0ad3e4e508db64f02726f19e7038ac14162df8963b2192a609307cad6cccfdeceb6aec4f2b0c4045a8608a45322490432b269c0d458b3
7
+ data.tar.gz: aa99154666a854a0dd3cf1e9cc1c01a16d020b89fb177f4171167f3bf4c6ebffce4c0057ee407a54fd86efcc43c22e30b1eceefdb81bd9243cfefb4c31c455b3
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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 note.
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
  #
@@ -29,6 +29,18 @@ describe Fab do
29
29
 
30
30
  end
31
31
 
32
+ describe "#title" do
33
+
34
+ before do
35
+ @x = fab.title
36
+ end
37
+
38
+ it "is a string" do
39
+ @x.must_be_kind_of String
40
+ end
41
+
42
+ end
43
+
32
44
  describe "#description" do
33
45
 
34
46
  before do
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.1.0
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.3
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.3
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.1
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.1
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.16.1
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.16.1
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.2
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.2
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.12.0
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.12.0
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.8.1
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.8.1
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.4.0
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.4.0
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.57.2
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.57.2
240
+ version: 0.52.1
241
241
  - - "<"
242
242
  - !ruby/object:Gem::Version
243
243
  version: '1'
metadata.gz.sig CHANGED
Binary file