r_spec 0.3.3 → 1.0.0.beta5

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.
@@ -1 +0,0 @@
1
- 2988d048456c0dcc53bd2c8c45d8fd0f7de49e1f2bb0a3aca0749671b4baa4376e44e25d05f9ee457fe024872155ce93c8fe5c5e03fdcd494962d69805c5fce3
@@ -1 +0,0 @@
1
- 541eb96ff91798d807dc5b0bd71dab3e5c17358bc0e5bca8784607b8de0c8e9532011e958e152fb4a22bc653d9af13bd5edaf0989ff77c7941004f03ad0f29be
@@ -1 +0,0 @@
1
- 9c58b303e8a3c03de72abb0ee0083cf4a83e71d3c3d783fc2d70c51e6e3a49cc281881da78a9ff326cf5462eace11bdb5acb5826228896e6b91abd437d859b17
@@ -1 +0,0 @@
1
- ad3c4000dcc528f6ddc033df570f41f031917894140b91722adab3d11af6bd818f7e94f6709b5bd4e9c0d4e4114f7639f9f386c8d39c113bd832a7bd866a54cd
@@ -1 +0,0 @@
1
- a84d0332166216081a39df15433e87daf2295c376a7e58c17bc3d36bc6aca82c0658b29b2de50e9c71196fd158854205c30123217225af713764a3db65e82a70
@@ -1 +0,0 @@
1
- f777e4bdccb8e62313f1e04a0012f952e55aae439f170549f9ef18b05e0e3b54831c045662603e98c8976c5b4ede20c3d47d75a1d17d02503ae9ce1bf55b9651
data/lib/fix/it.rb DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Namespace for the Fix framework.
4
- module Fix
5
- # Override Fix's It class.
6
- class It
7
- # @return [Class] The class of the described object.
8
- def described_class
9
- subject.is_a?(::Class) ? subject : subject.class
10
- end
11
- end
12
- end
data/lib/fix/on.rb DELETED
@@ -1,45 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Namespace for the Fix framework.
4
- module Fix
5
- # Override Fix's On class.
6
- class On
7
- # Useful to perform side-effects, e.g., add something in to a database.
8
- #
9
- # @note To declare an instance variable, use the `let` helper instead.
10
- #
11
- # @param block [Proc] The block to call.
12
- #
13
- # @return [#object_id] The given block.
14
- def before(*)
15
- yield
16
- end
17
-
18
- # @param another_front_object [#object_id] Override the front object.
19
- # @param specs [Proc] A set of specs.
20
- #
21
- # @return [Array] List of results.
22
- def describe(another_front_object, *, &specs)
23
- o = On.new(another_front_object,
24
- results,
25
- challenges,
26
- helpers.dup,
27
- configuration)
28
-
29
- o.instance_eval(&specs)
30
- end
31
-
32
- # Override the implicit subject.
33
- #
34
- # @param block [Proc, nil] Another subject inside a block.
35
- #
36
- # @return [#object_id] The subject.
37
- def subject(&block)
38
- if block_given?
39
- @described = yield
40
- else
41
- super
42
- end
43
- end
44
- end
45
- end
data/pkg_checksum DELETED
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'digest/sha2'
5
-
6
- gemname = 'r_spec'.to_sym
7
- ARGV[0] = File.read('VERSION.semver').chomp if ARGV[0].nil?
8
- built_gem_path = "pkg/#{gemname}-#{ARGV[0]}.gem"
9
- checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
10
- checksum_path = "checksum/#{gemname}-#{ARGV[0]}.gem.sha512"
11
-
12
- File.open(checksum_path, 'w') { |f| f.write("#{checksum}\n") }
data/r_spec.gemspec DELETED
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Gem::Specification.new do |spec|
4
- spec.name = 'r_spec'
5
- spec.version = File.read('VERSION.semver').chomp
6
- spec.authors = ['Cyril Kato']
7
- spec.email = ['contact@cyril.email']
8
-
9
- spec.summary = 'Rspec clone with Fix.'
10
- spec.description = 'A small Rspec clone based on Fix specing framework.'
11
- spec.homepage = 'https://github.com/cyril/r_spec'
12
- spec.license = 'MIT'
13
-
14
- spec.files =
15
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
16
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
17
- spec.require_paths = ['lib']
18
-
19
- spec.add_dependency 'fix-expect', '~> 0.3.5'
20
- spec.add_dependency 'fix-its', '~> 0.5.4'
21
- spec.add_dependency 'matchi-rspec', '~> 0.1.3'
22
-
23
- spec.add_development_dependency 'bundler', '~> 2.0'
24
- spec.add_development_dependency 'rake', '~> 12.3'
25
- spec.add_development_dependency 'rubocop', '~> 0.70'
26
- spec.add_development_dependency 'simplecov', '~> 0.16'
27
- spec.add_development_dependency 'spectus', '~> 3.0'
28
- spec.add_development_dependency 'yard', '~> 0.9'
29
- end