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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2a451bb75a9f2b2b04daafc72e40c2a92340d155
4
- data.tar.gz: eb289195cee146a5b58709e215e2cc10e9c7916d
2
+ SHA256:
3
+ metadata.gz: 467afaf41af6215b9da174e770e94265ae30774763a0b3f650086a56d15ecaea
4
+ data.tar.gz: 15ca2de82777633d207c659acef1bbd4aed1cfa0c4eb579a36ac8f74a12e9ae9
5
5
  SHA512:
6
- metadata.gz: 3978471e61ded01e7372b921c996d20434c91e012cd1157be3c2e1c9e46de827478c33382289d5476fcff399d47ad63fca3a88b2274e38e687e7d8b128869820
7
- data.tar.gz: 16d1051e32a5d2c090f501c517bc7b87a20975c82b72713937fd75a009f95d1cdbaed62722eac150cc404cdce9f1626ae17d0071b7d71bfa287cd00be78dd16a
6
+ metadata.gz: 29ffd4703a02baed76c2b6c4f1a1a30d56eed668e7bdf9ae4da07902e6271196e6f846ec734c0cd1aa6f24b52b4bf222b61bb9e62cd6a5a65933deed0d55fa7a
7
+ data.tar.gz: 69cb476a52cec76ca0752ef562dad5d5ee4c260367d7d4d62ae30e1adadf346d5adb69670142e4ce285a048c652bcd1acda934ebb00125aaeac77d8a702f9531
@@ -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
@@ -4,7 +4,7 @@ module Sprig
4
4
  VERSION = [
5
5
  0, # major
6
6
  3, # minor
7
- 0 # patch
7
+ 1 # patch
8
8
  ].join('.')
9
9
  #:nocov:
10
10
  end
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.0
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: 2018-02-13 00:00:00.000000000 Z
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.5.1
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/adapters/active_record.rb
321
- - spec/adapters/mongoid.rb
320
+ - spec/spec_helper.rb
321
+ - spec/sprig_shared_spec.rb
322
+ - spec/sprig_spec.rb
322
323
  - spec/adapters/mongoid.yml
323
- - spec/feature/configurations_spec.rb
324
- - spec/fixtures/cassettes/google_spreadsheet_json_posts.yml
325
- - spec/fixtures/config/environments/development.rb
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/models/active_record/comment.rb
329
- - spec/fixtures/models/active_record/post.rb
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/seeds/shared/comments.yml
337
- - spec/fixtures/seeds/shared/files/cat.png
338
- - spec/fixtures/seeds/shared/invalid_users.yml
339
- - spec/fixtures/seeds/shared/legacy_posts.yml
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/comments.yml
357
- - spec/fixtures/seeds/test/files/cat.png
358
- - spec/fixtures/seeds/test/invalid_users.yml
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/posts_missing_record.yml
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/posts_with_habtm.yml
374
- - spec/fixtures/seeds/test/tags.yml
375
- - spec/lib/generators/sprig/install_generator_spec.rb
376
- - spec/lib/sprig/configuration_spec.rb
377
- - spec/lib/sprig/directive_list_spec.rb
378
- - spec/lib/sprig/directive_spec.rb
379
- - spec/lib/sprig/null_record_spec.rb
380
- - spec/lib/sprig/parser/base_spec.rb
381
- - spec/lib/sprig/process_notifier_spec.rb
382
- - spec/lib/sprig/seed/entry_spec.rb
383
- - spec/lib/sprig/seed/record_spec.rb
384
- - spec/lib/sprig/source_spec.rb
385
- - spec/lib/sprig_spec.rb
386
- - spec/spec_helper.rb
387
- - spec/sprig_shared_spec.rb
388
- - spec/sprig_spec.rb
389
- - spec/support/helpers/colored_text.rb
390
- - spec/support/helpers/logger_mock.rb
391
- - spec/support/shared_examples/a_logging_entity.rb
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