rspec-forward 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b3205b7050cdf8f0bef33291f5015b5e345757ea3ebfa39338f370e7bdcb071
4
- data.tar.gz: 473a350e1c4f61586f7804d23a29c854045a96c5ce7848d0350c80d007132514
3
+ metadata.gz: cd8ed2ce0a3d5bdac14a3391dcadcfeb9f2a3adfe84b8e54b0f45c2d499d4858
4
+ data.tar.gz: ac84a53d06fca6bd1ad011ef967d0f314e21d8fa71155a6452c7c8b21ef0fe88
5
5
  SHA512:
6
- metadata.gz: a0682f9ce361a22f8b9115d1edee289f09b0c5dd4d87591f361690fc065505db1d38492805291ccad5486a0eb616e6430f5387e6781f98b73a89a6c0aecdbbfb
7
- data.tar.gz: 0b14a346a42976da92a7f7534aae05edab58d1b25633ddf3cb34b71f5ccaef6e738e6ff11026f8325d613b8da485858d1a617616f1fe047a8aad13f539ea8a1e
6
+ metadata.gz: 4f779b3c1eec8e2732a8af0a45ee34baf4dbd9a83f1c7acbbcf8a1d1d84f15ededae37235ccc244becc9332c2acd1c65c2d0914a3f9f0543a02b3394b6d8a730
7
+ data.tar.gz: fef5b0306011c86b72065d9a76af420e1eb47178016fb5ccebb73c69d1375bf55730669021fc6fe757a7a834af73b804541ff4567805a3760a965bd33fab5710
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.0.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-forward (0.1.4)
4
+ rspec-forward (0.1.5)
5
5
  rspec-mocks (~> 3.10)
6
6
 
7
7
  GEM
@@ -9,9 +9,9 @@ GEM
9
9
  specs:
10
10
  coderay (1.1.3)
11
11
  diff-lcs (1.4.4)
12
- ffi (1.15.0)
13
- formatador (0.2.5)
14
- guard (2.16.2)
12
+ ffi (1.15.3)
13
+ formatador (0.3.0)
14
+ guard (2.17.0)
15
15
  formatador (>= 0.2.4)
16
16
  listen (>= 2.7, < 4.0)
17
17
  lumberjack (>= 1.0.12, < 2.0)
@@ -25,7 +25,7 @@ GEM
25
25
  guard (~> 2.1)
26
26
  guard-compat (~> 1.1)
27
27
  rspec (>= 2.99.0, < 4.0)
28
- listen (3.4.1)
28
+ listen (3.5.1)
29
29
  rb-fsevent (~> 0.10, >= 0.10.3)
30
30
  rb-inotify (~> 0.9, >= 0.9.10)
31
31
  lumberjack (1.2.8)
@@ -34,26 +34,26 @@ GEM
34
34
  notiffany (0.1.3)
35
35
  nenv (~> 0.1)
36
36
  shellany (~> 0.0)
37
- pry (0.14.0)
37
+ pry (0.14.1)
38
38
  coderay (~> 1.1)
39
39
  method_source (~> 1.0)
40
40
  rake (12.3.3)
41
- rb-fsevent (0.10.4)
41
+ rb-fsevent (0.11.0)
42
42
  rb-inotify (0.10.1)
43
43
  ffi (~> 1.0)
44
44
  rspec (3.10.0)
45
45
  rspec-core (~> 3.10.0)
46
46
  rspec-expectations (~> 3.10.0)
47
47
  rspec-mocks (~> 3.10.0)
48
- rspec-core (3.10.0)
48
+ rspec-core (3.10.1)
49
49
  rspec-support (~> 3.10.0)
50
- rspec-expectations (3.10.0)
50
+ rspec-expectations (3.10.1)
51
51
  diff-lcs (>= 1.2.0, < 2.0)
52
52
  rspec-support (~> 3.10.0)
53
- rspec-mocks (3.10.0)
53
+ rspec-mocks (3.10.2)
54
54
  diff-lcs (>= 1.2.0, < 2.0)
55
55
  rspec-support (~> 3.10.0)
56
- rspec-support (3.10.0)
56
+ rspec-support (3.10.2)
57
57
  shellany (0.0.1)
58
58
  thor (1.1.0)
59
59
 
@@ -68,4 +68,4 @@ DEPENDENCIES
68
68
  rspec-forward!
69
69
 
70
70
  BUNDLED WITH
71
- 2.1.4
71
+ 2.2.3
data/Guardfile CHANGED
@@ -4,7 +4,7 @@
4
4
  GUARD_OPTIONS = {
5
5
  failed_mode: :keep,
6
6
  cmd: "rspec --order rand:$RANDOM",
7
- title: "RSpec",
7
+ title: "RSpec"
8
8
  }.freeze
9
9
 
10
10
  guard :rspec, GUARD_OPTIONS do
@@ -15,11 +15,11 @@ guard :rspec, GUARD_OPTIONS do
15
15
  watch(%r{^lib/(.+)\.rb$}) do |m|
16
16
  "spec/#{m[1]}_spec.rb"
17
17
  end
18
-
18
+
19
19
  watch("spec/spec_helper.rb") do
20
20
  "spec"
21
21
  end
22
-
22
+
23
23
  watch(%r{^spec/support/(.+)\.rb$}) do
24
24
  "spec"
25
25
  end
data/README.md CHANGED
@@ -59,7 +59,7 @@ Add.call(3, 5) # => 8
59
59
  ```
60
60
 
61
61
  Gem `rspec-forward` adds matcher `forward_to_instance` to verify if the
62
- call using Class Methods is properly building the instance of the calss and
62
+ call using Class Methods is properly building the instance of the class and
63
63
  forwarding the method call to expected instance method.
64
64
 
65
65
  ```ruby
@@ -87,10 +87,10 @@ If you would rather not use the old, deprecated
87
87
 
88
88
  ```ruby
89
89
  describe ".call" do
90
- let(:object) { described_class }
90
+ let(:klass) { described_class }
91
91
 
92
92
  it "passes arguments to instance" do
93
- expect(object)
93
+ expect(klass)
94
94
  .to forward_to_instance(:call)
95
95
  .with_2_args
96
96
  end
@@ -104,15 +104,13 @@ it { should forward_to_instance(:call).with_no_args }
104
104
  it { should forward_to_instance(:call).with_1_arg }
105
105
  it { should forward_to_instance(:call).with_2_args }
106
106
  it { should forward_to_instance(:call).with_3_args }
107
- # ...
108
-
109
107
  it { should forward_to_instance(:call).with_named(:foo, :bar) }
110
108
  it { should forward_to_instance(:call).with_1_arg_and_named(:foo) }
111
109
  it { should forward_to_instance(:call).with_2_args_and_named(:foo) }
112
110
  it { should forward_to_instance(:call).with_3_args_and_named(:foo, :bar) }
113
111
  ```
114
112
 
115
- TODO: Explain `forward_to_instance_build(...)`
113
+ **TODO**: Explain `forward_to_instance_build(...)`
116
114
 
117
115
  ## Development
118
116
 
@@ -122,7 +120,7 @@ After checking out the repo, run `bundle install` to install dependencies. Then,
122
120
  ## Contributing
123
121
 
124
122
  Bug reports and pull requests are welcome on GitHub at
125
- https://github.com/adlugopolski/rspec-forward.
123
+ https://github.com/marzdrel/rspec-forward.
126
124
 
127
125
  ## License
128
126
 
@@ -132,4 +130,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
132
130
 
133
131
  Everyone interacting in the RSpec::Forward project's codebases, issue
134
132
  trackers, chat rooms and mailing lists is expected to follow the [code of
135
- conduct](https://github.com/adlugopolski/rspec-forward/blob/master/CODE_OF_CONDUCT.md).
133
+ conduct](https://github.com/marzdrel/rspec-forward/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -3,11 +3,13 @@ require "rspec/core/rake_task"
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
- task :default => :spec
6
+ task default: :spec
7
7
 
8
+ # rubocop:disable Security/Eval
8
9
  def gemspec
9
- @gemspec ||= eval(File.read("rspec-forward.gemspec"), binding, ".gemspec")
10
+ @_gemspec ||= eval(File.read("rspec-forward.gemspec"), binding, ".gemspec")
10
11
  end
12
+ # rubocop:enable Security/Eval
11
13
 
12
14
  desc "Validate the gemspec"
13
15
  task :gemspec do
@@ -15,7 +17,7 @@ task :gemspec do
15
17
  end
16
18
 
17
19
  desc "Build the gem"
18
- task :gem => :gemspec do
20
+ task gem: :gemspec do
19
21
  sh "gem build #{gemspec.name}.gemspec"
20
22
 
21
23
  FileUtils.mkdir_p "pkg"
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module Forward
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -3,16 +3,16 @@ require_relative "lib/rspec/forward/version"
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "rspec-forward"
5
5
  spec.version = RSpec::Forward::VERSION
6
- spec.authors= ["Aleksader Długopolski"]
7
- spec.email = ["ad@dotpro.org"]
6
+ spec.authors = ["Marz Drel"]
7
+ spec.email = ["marzdrel@dotpro.org"]
8
8
 
9
9
  spec.summary = <<~TXT.gsub(/[[:space:]]+/, " ").strip
10
- Set of RSpec matchers for checking class method to instnace
10
+ Set of RSpec matchers for checking class method to instance
11
11
  method forwarding.
12
12
  TXT
13
13
 
14
14
  spec.description = <<~TXT.gsub(/[[:space:]]+/, " ").strip
15
- Set of RSpec matchers for checking class method to instnace
15
+ Set of RSpec matchers for checking class method to instance
16
16
  method forwarding.
17
17
  TXT
18
18
 
@@ -23,16 +23,16 @@ Gem::Specification.new do |spec|
23
23
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
24
24
 
25
25
  # spec.metadata["homepage_uri"] = spec.homepage
26
- spec.metadata["source_code_uri"] =
27
- "https://github.com/adlugopolski/rspec-forward"
26
+ spec.metadata["source_code_uri"] =
27
+ "https://github.com/marzdrel/rspec-forward"
28
28
 
29
- spec.metadata["changelog_uri"] =
30
- "https://github.com/adlugopolski/rspec-forward/blob/master/CHANGELOG.md"
29
+ spec.metadata["changelog_uri"] =
30
+ "https://github.com/marzdrel/rspec-forward/blob/master/CHANGELOG.md"
31
31
 
32
32
  # Specify which files should be added to the gem when it is released.
33
33
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
34
34
 
35
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
35
+ spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
36
36
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
37
37
  end
38
38
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-forward
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
- - Aleksader Długopolski
8
- autorequire:
7
+ - Marz Drel
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-14 00:00:00.000000000 Z
11
+ date: 2021-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-mocks
@@ -52,15 +52,16 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.7'
55
- description: Set of RSpec matchers for checking class method to instnace method forwarding.
55
+ description: Set of RSpec matchers for checking class method to instance method forwarding.
56
56
  email:
57
- - ad@dotpro.org
57
+ - marzdrel@dotpro.org
58
58
  executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
63
  - ".rspec"
64
+ - ".ruby-version"
64
65
  - ".travis.yml"
65
66
  - CODE_OF_CONDUCT.md
66
67
  - Gemfile
@@ -77,13 +78,13 @@ files:
77
78
  - lib/rspec/forward/forward_to_instance_build.rb
78
79
  - lib/rspec/forward/version.rb
79
80
  - rspec-forward.gemspec
80
- homepage:
81
+ homepage:
81
82
  licenses:
82
83
  - MIT
83
84
  metadata:
84
- source_code_uri: https://github.com/adlugopolski/rspec-forward
85
- changelog_uri: https://github.com/adlugopolski/rspec-forward/blob/master/CHANGELOG.md
86
- post_install_message:
85
+ source_code_uri: https://github.com/marzdrel/rspec-forward
86
+ changelog_uri: https://github.com/marzdrel/rspec-forward/blob/master/CHANGELOG.md
87
+ post_install_message:
87
88
  rdoc_options: []
88
89
  require_paths:
89
90
  - lib
@@ -98,8 +99,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  - !ruby/object:Gem::Version
99
100
  version: '0'
100
101
  requirements: []
101
- rubygems_version: 3.1.4
102
- signing_key:
102
+ rubygems_version: 3.2.3
103
+ signing_key:
103
104
  specification_version: 4
104
- summary: Set of RSpec matchers for checking class method to instnace method forwarding.
105
+ summary: Set of RSpec matchers for checking class method to instance method forwarding.
105
106
  test_files: []