seed_report 0.1.0 → 0.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
  SHA1:
3
- metadata.gz: f0210891a03688873cf2bc2e51cdfc580d4c0496
4
- data.tar.gz: 4354d6d758aca6d5e30cc6ed62bc1958c9601574
3
+ metadata.gz: b975180e7b04edee01234d95b3d5ebc98c36bf76
4
+ data.tar.gz: 885872b4a4fdf5b9a424cfd7bebcfa27fb7c2977
5
5
  SHA512:
6
- metadata.gz: d2b29e4dfec8aec157574f5a16040c2640535e630943759764d6a88c9dabdbcdd67c2f50fffe306e03aa90d1a0f7670d2698c101179ceae0c828100f42efb2c8
7
- data.tar.gz: b3e38b6d1d10c520fae7f3aa41ebd980792106319ed830639dab86e0035c68fc114d5fa8a38915448ef7b84cb9db8bf93da35de7c8bcd0b7c48bfa114689e910
6
+ metadata.gz: cfd31a7c910da20dddf52ce92355dfe3c2ef8a78f52a17eb6ffa88b9dcd56838865bddc7860162e6afb9dbf89b821d2fe58f727bc774318f659bc2b618fbca6e
7
+ data.tar.gz: 0b1891a361cac6c9a27a4983a0f52a40de7e7a1fab8222af8a58fbd9bfa3de0e0b2590d94c3640ff2c6e26fafc89d424cd0e37266e06061b326fcffa2fcb1756
@@ -1,3 +1,3 @@
1
1
  module SeedReport
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/seed_report.rb CHANGED
@@ -2,11 +2,11 @@ require "seed_report/version"
2
2
 
3
3
  module SeedReport
4
4
  class << self
5
- def report_growth(of_model:, &block)
6
- print "#{heading(of_model)} #{initial_count_display(of_model)}"
7
- initial_count = of_model.count
5
+ def for_model(model, &block)
6
+ print "#{heading(model)} #{initial_count_display(model)}"
7
+ initial_count = model.count
8
8
  block.call
9
- increase = of_model.count - initial_count
9
+ increase = model.count - initial_count
10
10
  puts final_count_display(increase)
11
11
  end
12
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seed_report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter