sprig 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/sprig/seed/attribute.rb +1 -1
- data/lib/sprig/version.rb +1 -1
- metadata +67 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 467afaf41af6215b9da174e770e94265ae30774763a0b3f650086a56d15ecaea
|
4
|
+
data.tar.gz: 15ca2de82777633d207c659acef1bbd4aed1cfa0c4eb579a36ac8f74a12e9ae9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29ffd4703a02baed76c2b6c4f1a1a30d56eed668e7bdf9ae4da07902e6271196e6f846ec734c0cd1aa6f24b52b4bf222b61bb9e62cd6a5a65933deed0d55fa7a
|
7
|
+
data.tar.gz: 69cb476a52cec76ca0752ef562dad5d5ee4c260367d7d4d62ae30e1adadf346d5adb69670142e4ce285a048c652bcd1acda934ebb00125aaeac77d8a702f9531
|
data/lib/sprig/seed/attribute.rb
CHANGED
@@ -96,7 +96,7 @@ module Sprig
|
|
96
96
|
# Otherwise return the dynamic portion within the larger string.
|
97
97
|
string.clone.tap do |return_string|
|
98
98
|
matches.each do |match|
|
99
|
-
return_string.sub!(match[0], eval(match[1]))
|
99
|
+
return_string.sub!(match[0], eval(match[1]).to_s)
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end
|
data/lib/sprig/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lawson Kurtz
|
8
8
|
- Ryan Foster
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-02-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: appraisal
|
@@ -296,7 +296,7 @@ homepage: http://www.github.com/vigetlabs/sprig
|
|
296
296
|
licenses:
|
297
297
|
- MIT
|
298
298
|
metadata: {}
|
299
|
-
post_install_message:
|
299
|
+
post_install_message:
|
300
300
|
rdoc_options: []
|
301
301
|
require_paths:
|
302
302
|
- lib
|
@@ -311,81 +311,81 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
311
311
|
- !ruby/object:Gem::Version
|
312
312
|
version: '0'
|
313
313
|
requirements: []
|
314
|
-
rubyforge_project:
|
315
|
-
rubygems_version: 2.
|
316
|
-
signing_key:
|
314
|
+
rubyforge_project:
|
315
|
+
rubygems_version: 2.7.6
|
316
|
+
signing_key:
|
317
317
|
specification_version: 4
|
318
318
|
summary: Relational, environment-specific seeding for Rails apps.
|
319
319
|
test_files:
|
320
|
-
- spec/
|
321
|
-
- spec/
|
320
|
+
- spec/spec_helper.rb
|
321
|
+
- spec/sprig_shared_spec.rb
|
322
|
+
- spec/sprig_spec.rb
|
322
323
|
- spec/adapters/mongoid.yml
|
323
|
-
- spec/
|
324
|
-
- spec/
|
325
|
-
- spec/
|
324
|
+
- spec/adapters/mongoid.rb
|
325
|
+
- spec/adapters/active_record.rb
|
326
|
+
- spec/support/helpers/colored_text.rb
|
327
|
+
- spec/support/helpers/logger_mock.rb
|
328
|
+
- spec/support/shared_examples/a_logging_entity.rb
|
329
|
+
- spec/lib/sprig_spec.rb
|
330
|
+
- spec/lib/sprig/process_notifier_spec.rb
|
331
|
+
- spec/lib/sprig/seed/entry_spec.rb
|
332
|
+
- spec/lib/sprig/seed/record_spec.rb
|
333
|
+
- spec/lib/sprig/directive_list_spec.rb
|
334
|
+
- spec/lib/sprig/configuration_spec.rb
|
335
|
+
- spec/lib/sprig/parser/base_spec.rb
|
336
|
+
- spec/lib/sprig/directive_spec.rb
|
337
|
+
- spec/lib/sprig/source_spec.rb
|
338
|
+
- spec/lib/sprig/null_record_spec.rb
|
339
|
+
- spec/lib/generators/sprig/install_generator_spec.rb
|
326
340
|
- spec/fixtures/config/environments/production.rb
|
341
|
+
- spec/fixtures/config/environments/development.rb
|
327
342
|
- spec/fixtures/config/environments/test.rb
|
328
|
-
- spec/fixtures/
|
329
|
-
- spec/fixtures/models/
|
330
|
-
- spec/fixtures/models/active_record/tag.rb
|
331
|
-
- spec/fixtures/models/active_record/user.rb
|
343
|
+
- spec/fixtures/cassettes/google_spreadsheet_json_posts.yml
|
344
|
+
- spec/fixtures/models/mongoid/tag.rb
|
332
345
|
- spec/fixtures/models/mongoid/comment.rb
|
333
346
|
- spec/fixtures/models/mongoid/post.rb
|
334
|
-
- spec/fixtures/models/mongoid/tag.rb
|
335
347
|
- spec/fixtures/models/mongoid/user.rb
|
336
|
-
- spec/fixtures/
|
337
|
-
- spec/fixtures/
|
338
|
-
- spec/fixtures/
|
339
|
-
- spec/fixtures/
|
340
|
-
- spec/fixtures/seeds/shared/posts.csv
|
341
|
-
- spec/fixtures/seeds/shared/posts.json
|
342
|
-
- spec/fixtures/seeds/shared/posts.md
|
343
|
-
- spec/fixtures/seeds/shared/posts.yml
|
344
|
-
- spec/fixtures/seeds/shared/posts_delete_existing_by.yml
|
345
|
-
- spec/fixtures/seeds/shared/posts_find_existing_by_missing.yml
|
346
|
-
- spec/fixtures/seeds/shared/posts_find_existing_by_multiple.yml
|
347
|
-
- spec/fixtures/seeds/shared/posts_find_existing_by_single.yml
|
348
|
-
- spec/fixtures/seeds/shared/posts_missing_dependency.yml
|
349
|
-
- spec/fixtures/seeds/shared/posts_missing_record.yml
|
350
|
-
- spec/fixtures/seeds/shared/posts_partially_dynamic_value.yml
|
351
|
-
- spec/fixtures/seeds/shared/posts_with_cyclic_dependencies.yml
|
352
|
-
- spec/fixtures/seeds/shared/posts_with_files.yml
|
353
|
-
- spec/fixtures/seeds/shared/posts_with_habtm.yml
|
354
|
-
- spec/fixtures/seeds/shared/tags.yml
|
348
|
+
- spec/fixtures/models/active_record/tag.rb
|
349
|
+
- spec/fixtures/models/active_record/comment.rb
|
350
|
+
- spec/fixtures/models/active_record/post.rb
|
351
|
+
- spec/fixtures/models/active_record/user.rb
|
355
352
|
- spec/fixtures/seeds/staging/posts.yml
|
356
|
-
- spec/fixtures/seeds/test/
|
357
|
-
- spec/fixtures/seeds/test/
|
358
|
-
- spec/fixtures/seeds/test/
|
359
|
-
- spec/fixtures/seeds/test/legacy_posts.yml
|
353
|
+
- spec/fixtures/seeds/test/posts_delete_existing_by.yml
|
354
|
+
- spec/fixtures/seeds/test/posts_missing_record.yml
|
355
|
+
- spec/fixtures/seeds/test/posts.yml
|
360
356
|
- spec/fixtures/seeds/test/posts.csv
|
357
|
+
- spec/fixtures/seeds/test/invalid_users.yml
|
358
|
+
- spec/fixtures/seeds/test/posts_find_existing_by_single.yml
|
359
|
+
- spec/fixtures/seeds/test/tags.yml
|
360
|
+
- spec/fixtures/seeds/test/posts_with_cyclic_dependencies.yml
|
361
|
+
- spec/fixtures/seeds/test/posts_with_habtm.yml
|
362
|
+
- spec/fixtures/seeds/test/comments.yml
|
363
|
+
- spec/fixtures/seeds/test/posts_partially_dynamic_value.yml
|
364
|
+
- spec/fixtures/seeds/test/posts_find_existing_by_missing.yml
|
361
365
|
- spec/fixtures/seeds/test/posts.json
|
366
|
+
- spec/fixtures/seeds/test/files/cat.png
|
362
367
|
- spec/fixtures/seeds/test/posts.md
|
363
|
-
- spec/fixtures/seeds/test/posts.yml
|
364
|
-
- spec/fixtures/seeds/test/posts_delete_existing_by.yml
|
365
|
-
- spec/fixtures/seeds/test/posts_find_existing_by_missing.yml
|
366
|
-
- spec/fixtures/seeds/test/posts_find_existing_by_multiple.yml
|
367
|
-
- spec/fixtures/seeds/test/posts_find_existing_by_single.yml
|
368
368
|
- spec/fixtures/seeds/test/posts_missing_dependency.yml
|
369
|
-
- spec/fixtures/seeds/test/
|
370
|
-
- spec/fixtures/seeds/test/posts_partially_dynamic_value.yml
|
371
|
-
- spec/fixtures/seeds/test/posts_with_cyclic_dependencies.yml
|
369
|
+
- spec/fixtures/seeds/test/posts_find_existing_by_multiple.yml
|
372
370
|
- spec/fixtures/seeds/test/posts_with_files.yml
|
373
|
-
- spec/fixtures/seeds/test/
|
374
|
-
- spec/fixtures/seeds/
|
375
|
-
- spec/
|
376
|
-
- spec/
|
377
|
-
- spec/
|
378
|
-
- spec/
|
379
|
-
- spec/
|
380
|
-
- spec/
|
381
|
-
- spec/
|
382
|
-
- spec/
|
383
|
-
- spec/
|
384
|
-
- spec/
|
385
|
-
- spec/
|
386
|
-
- spec/
|
387
|
-
- spec/
|
388
|
-
- spec/
|
389
|
-
- spec/
|
390
|
-
- spec/
|
391
|
-
- spec/
|
371
|
+
- spec/fixtures/seeds/test/legacy_posts.yml
|
372
|
+
- spec/fixtures/seeds/shared/posts_delete_existing_by.yml
|
373
|
+
- spec/fixtures/seeds/shared/posts_missing_record.yml
|
374
|
+
- spec/fixtures/seeds/shared/posts.yml
|
375
|
+
- spec/fixtures/seeds/shared/posts.csv
|
376
|
+
- spec/fixtures/seeds/shared/invalid_users.yml
|
377
|
+
- spec/fixtures/seeds/shared/posts_find_existing_by_single.yml
|
378
|
+
- spec/fixtures/seeds/shared/tags.yml
|
379
|
+
- spec/fixtures/seeds/shared/posts_with_cyclic_dependencies.yml
|
380
|
+
- spec/fixtures/seeds/shared/posts_with_habtm.yml
|
381
|
+
- spec/fixtures/seeds/shared/comments.yml
|
382
|
+
- spec/fixtures/seeds/shared/posts_partially_dynamic_value.yml
|
383
|
+
- spec/fixtures/seeds/shared/posts_find_existing_by_missing.yml
|
384
|
+
- spec/fixtures/seeds/shared/posts.json
|
385
|
+
- spec/fixtures/seeds/shared/files/cat.png
|
386
|
+
- spec/fixtures/seeds/shared/posts.md
|
387
|
+
- spec/fixtures/seeds/shared/posts_missing_dependency.yml
|
388
|
+
- spec/fixtures/seeds/shared/posts_find_existing_by_multiple.yml
|
389
|
+
- spec/fixtures/seeds/shared/posts_with_files.yml
|
390
|
+
- spec/fixtures/seeds/shared/legacy_posts.yml
|
391
|
+
- spec/feature/configurations_spec.rb
|