much-not-given 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d795380909d1c4a3987964b0930acd43a5cd84f0687edbe2bb15c4c8003cc86
4
- data.tar.gz: a0e762f7aa66106ca6bc559b386670f49dc1e7688f792de3c2df801e0943422f
3
+ metadata.gz: bdd4c1afd840a118ef42170a43ce4fa10e271625d3d1d2f83ffdd8a10ada612e
4
+ data.tar.gz: 9d5d7a22cb5afc78ac8750f279e84adbf2a5353b4e220efc6b2f37af8fd5e8c5
5
5
  SHA512:
6
- metadata.gz: e8e253a6d832b900ec4c6e375988590996d1709b502a2197b93f7b25a2d8d402fcc14a46422c7b14ca9af3143c9fe060516df21374e8d27419307343b6cd679f
7
- data.tar.gz: bd80c9ab94d7e1daf05e8a35ad4edaace66db8bfcee3161ecaf62e6ea7befb11937eb35bc20a3bbeab235d687f4d0ec8565f17b690506c4ec8ee508721695a88
6
+ metadata.gz: 3db2f1ec4e6ddd5a80bd829d8af04edca0505fd61aef4549bc1e037e2e3258addcfee7575bbe5b101c0ac3a0904371dd95a126248041715be15489e7ebaba371
7
+ data.tar.gz: 6a9caaf1cc572968da649ebf792c66a8db2c9c8796fcd114415b32e758a4640a8a6f78b9daf9d4a9e4546b8765134556700500743339dd48394743a86ae632c0
@@ -1,16 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "much-not-given/version"
4
- require "much-plugin"
4
+ require "much-mixin"
5
5
 
6
6
  module MuchNotGiven
7
- include MuchPlugin
7
+ include MuchMixin
8
8
 
9
- plugin_class_methods do
9
+ mixin_class_methods do
10
10
  def not_given
11
11
  @not_given ||=
12
12
  begin
13
- Class.new {
13
+ Class.new{
14
14
  def initialize(receiver_name)
15
15
  @receiver_name = receiver_name
16
16
  end
@@ -38,7 +38,7 @@ module MuchNotGiven
38
38
  super
39
39
  end
40
40
  end
41
- }.new(self.inspect)
41
+ }.new(inspect)
42
42
  end
43
43
  end
44
44
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuchNotGiven
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -1,6 +1,6 @@
1
+ # -*- encoding: utf-8 -*-
1
2
  # frozen_string_literal: true
2
3
 
3
- # -*- encoding: utf-8 -*-
4
4
  lib = File.expand_path("../lib", __FILE__)
5
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
  require "much-not-given/version"
@@ -15,14 +15,16 @@ Gem::Specification.new do |gem|
15
15
  gem.homepage = "https://github.com/redding/much-not-given"
16
16
  gem.license = "MIT"
17
17
 
18
- gem.files = `git ls-files | grep "^[^.]"`.split($/)
18
+ gem.files = `git ls-files | grep "^[^.]"`.split($INPUT_RECORD_SEPARATOR)
19
+
19
20
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
20
21
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
21
22
  gem.require_paths = ["lib"]
22
23
 
23
24
  gem.required_ruby_version = "~> 2.5"
24
25
 
25
- gem.add_development_dependency("assert", ["~> 2.19.0"])
26
+ gem.add_development_dependency("assert", ["~> 2.19.2"])
27
+ gem.add_development_dependency("much-style-guide", ["~> 0.6.0"])
26
28
 
27
- gem.add_dependency("much-plugin", ["~> 0.2.3"])
29
+ gem.add_dependency("much-mixin", ["~> 0.2.4"])
28
30
  end
@@ -6,30 +6,30 @@ require "much-not-given"
6
6
  module MuchNotGiven
7
7
  class UnitTests < Assert::Context
8
8
  desc "MuchNotGiven"
9
- subject { unit_module }
9
+ subject{ unit_module }
10
10
 
11
- let(:unit_module) { MuchNotGiven }
11
+ let(:unit_module){ MuchNotGiven }
12
12
 
13
- should "inlcude MuchPlugin" do
14
- assert_that(unit_module).includes(MuchPlugin)
13
+ should "inlcude MuchMixin" do
14
+ assert_that(unit_module).includes(MuchMixin)
15
15
  end
16
16
  end
17
17
 
18
18
  class ReceiverTests < UnitTests
19
19
  desc "reciver"
20
- subject { receiver_class }
20
+ subject{ receiver_class }
21
21
 
22
- let(:receiver_class) {
22
+ let(:receiver_class) do
23
23
  Class.new do
24
24
  include MuchNotGiven
25
25
  end
26
- }
26
+ end
27
27
 
28
- let(:value1) {
28
+ let(:value1) do
29
29
  Factory.public_send(
30
- [:integer, :string, :float, :data, :time, :path, :boolean].sample
30
+ [:integer, :string, :float, :time, :path, :boolean].sample,
31
31
  )
32
- }
32
+ end
33
33
 
34
34
  should have_imeths :not_given, :not_given?, :given?
35
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: much-not-given
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-01-04 00:00:00.000000000 Z
12
+ date: 2021-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: assert
@@ -17,28 +17,42 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 2.19.0
20
+ version: 2.19.2
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 2.19.0
27
+ version: 2.19.2
28
28
  - !ruby/object:Gem::Dependency
29
- name: much-plugin
29
+ name: much-style-guide
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 0.2.3
34
+ version: 0.6.0
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: 0.6.0
42
+ - !ruby/object:Gem::Dependency
43
+ name: much-mixin
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: 0.2.4
35
49
  type: :runtime
36
50
  prerelease: false
37
51
  version_requirements: !ruby/object:Gem::Requirement
38
52
  requirements:
39
53
  - - "~>"
40
54
  - !ruby/object:Gem::Version
41
- version: 0.2.3
55
+ version: 0.2.4
42
56
  description: Add "not given" default values to your objects.
43
57
  email:
44
58
  - kelly@kellyredding.com
@@ -78,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
92
  - !ruby/object:Gem::Version
79
93
  version: '0'
80
94
  requirements: []
81
- rubygems_version: 3.1.2
95
+ rubygems_version: 3.2.4
82
96
  signing_key:
83
97
  specification_version: 4
84
98
  summary: Add "not given" default values to your objects.