nrser 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nrser/env/path.rb +325 -0
- data/lib/nrser/env.rb +12 -0
- data/lib/nrser/errors/attr_error.rb +73 -0
- data/lib/nrser/errors/count_error.rb +19 -0
- data/lib/nrser/errors/nicer_error.rb +110 -0
- data/lib/nrser/errors/value_error.rb +72 -0
- data/lib/nrser/errors.rb +23 -6
- data/lib/nrser/functions/enumerable.rb +9 -2
- data/lib/nrser/functions/path.rb +3 -1
- data/lib/nrser/functions/string.rb +28 -11
- data/lib/nrser/functions/text/indentation.rb +16 -4
- data/lib/nrser/mean_streak/document.rb +151 -0
- data/lib/nrser/mean_streak.rb +95 -0
- data/lib/nrser/refinements/array.rb +6 -0
- data/lib/nrser/refinements/string.rb +6 -0
- data/lib/nrser/rspex/example_group/describe_instance.rb +24 -0
- data/lib/nrser/rspex/example_group/describe_instance_method.rb +20 -0
- data/lib/nrser/rspex/example_group/describe_setup.rb +22 -0
- data/lib/nrser/rspex/example_group/describe_spec_file.rb +127 -0
- data/lib/nrser/rspex/example_group/describe_use_case.rb +18 -0
- data/lib/nrser/rspex/example_group/describe_when.rb +25 -0
- data/lib/nrser/rspex/example_group/describe_x.rb +100 -0
- data/lib/nrser/rspex/example_group.rb +270 -0
- data/lib/nrser/rspex/format.rb +174 -0
- data/lib/nrser/rspex.rb +31 -395
- data/lib/nrser/types/paths.rb +2 -3
- data/lib/nrser/types.rb +5 -1
- data/lib/nrser/version.rb +1 -1
- data/lib/nrser.rb +3 -1
- data/spec/nrser/env/path/insert_spec.rb +65 -0
- data/spec/nrser/env/path_spec.rb +12 -0
- metadata +99 -8
metadata
CHANGED
@@ -1,15 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nrser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nrser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: hamster
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: semantic_logger
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.2'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '4.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: awesome_print
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.8'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.8'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pastel
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.7.2
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.7.2
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: commonmarker
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.17.7
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.17.7
|
13
83
|
- !ruby/object:Gem::Dependency
|
14
84
|
name: bundler
|
15
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,33 +143,33 @@ dependencies:
|
|
73
143
|
- !ruby/object:Gem::Version
|
74
144
|
version: 0.9.12
|
75
145
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
146
|
+
name: github-markup
|
77
147
|
requirement: !ruby/object:Gem::Requirement
|
78
148
|
requirements:
|
79
149
|
- - "~>"
|
80
150
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
151
|
+
version: '1.6'
|
82
152
|
type: :development
|
83
153
|
prerelease: false
|
84
154
|
version_requirements: !ruby/object:Gem::Requirement
|
85
155
|
requirements:
|
86
156
|
- - "~>"
|
87
157
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
158
|
+
version: '1.6'
|
89
159
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
160
|
+
name: yard-commonmarker
|
91
161
|
requirement: !ruby/object:Gem::Requirement
|
92
162
|
requirements:
|
93
163
|
- - "~>"
|
94
164
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
165
|
+
version: 0.3.0
|
96
166
|
type: :development
|
97
167
|
prerelease: false
|
98
168
|
version_requirements: !ruby/object:Gem::Requirement
|
99
169
|
requirements:
|
100
170
|
- - "~>"
|
101
171
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
172
|
+
version: 0.3.0
|
103
173
|
- !ruby/object:Gem::Dependency
|
104
174
|
name: pry
|
105
175
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,7 +215,13 @@ files:
|
|
145
215
|
- README.md
|
146
216
|
- lib/nrser.rb
|
147
217
|
- lib/nrser/collection.rb
|
218
|
+
- lib/nrser/env.rb
|
219
|
+
- lib/nrser/env/path.rb
|
148
220
|
- lib/nrser/errors.rb
|
221
|
+
- lib/nrser/errors/attr_error.rb
|
222
|
+
- lib/nrser/errors/count_error.rb
|
223
|
+
- lib/nrser/errors/nicer_error.rb
|
224
|
+
- lib/nrser/errors/value_error.rb
|
149
225
|
- lib/nrser/ext.rb
|
150
226
|
- lib/nrser/ext/enumerable.rb
|
151
227
|
- lib/nrser/ext/pathname.rb
|
@@ -188,6 +264,8 @@ files:
|
|
188
264
|
- lib/nrser/functions/tree/map_tree.rb
|
189
265
|
- lib/nrser/functions/tree/transform.rb
|
190
266
|
- lib/nrser/logger.rb
|
267
|
+
- lib/nrser/mean_streak.rb
|
268
|
+
- lib/nrser/mean_streak/document.rb
|
191
269
|
- lib/nrser/message.rb
|
192
270
|
- lib/nrser/meta.rb
|
193
271
|
- lib/nrser/meta/class_attrs.rb
|
@@ -209,6 +287,15 @@ files:
|
|
209
287
|
- lib/nrser/refinements/symbol.rb
|
210
288
|
- lib/nrser/refinements/types.rb
|
211
289
|
- lib/nrser/rspex.rb
|
290
|
+
- lib/nrser/rspex/example_group.rb
|
291
|
+
- lib/nrser/rspex/example_group/describe_instance.rb
|
292
|
+
- lib/nrser/rspex/example_group/describe_instance_method.rb
|
293
|
+
- lib/nrser/rspex/example_group/describe_setup.rb
|
294
|
+
- lib/nrser/rspex/example_group/describe_spec_file.rb
|
295
|
+
- lib/nrser/rspex/example_group/describe_use_case.rb
|
296
|
+
- lib/nrser/rspex/example_group/describe_when.rb
|
297
|
+
- lib/nrser/rspex/example_group/describe_x.rb
|
298
|
+
- lib/nrser/rspex/format.rb
|
212
299
|
- lib/nrser/rspex/shared_examples.rb
|
213
300
|
- lib/nrser/temp/unicode_math.rb
|
214
301
|
- lib/nrser/temp/where.rb
|
@@ -239,6 +326,8 @@ files:
|
|
239
326
|
- lib/nrser/version.rb
|
240
327
|
- spec/nrser/collection/each_spec.rb
|
241
328
|
- spec/nrser/collection/map_spec.rb
|
329
|
+
- spec/nrser/env/path/insert_spec.rb
|
330
|
+
- spec/nrser/env/path_spec.rb
|
242
331
|
- spec/nrser/errors/abstract_method_error_spec.rb
|
243
332
|
- spec/nrser/functions/binding/template_spec.rb
|
244
333
|
- spec/nrser/functions/enumerable/find_all_map_spec.rb
|
@@ -325,6 +414,8 @@ summary: basic ruby utils i use in a lot of stuff.
|
|
325
414
|
test_files:
|
326
415
|
- spec/nrser/collection/each_spec.rb
|
327
416
|
- spec/nrser/collection/map_spec.rb
|
417
|
+
- spec/nrser/env/path/insert_spec.rb
|
418
|
+
- spec/nrser/env/path_spec.rb
|
328
419
|
- spec/nrser/errors/abstract_method_error_spec.rb
|
329
420
|
- spec/nrser/functions/binding/template_spec.rb
|
330
421
|
- spec/nrser/functions/enumerable/find_all_map_spec.rb
|