r_spec 0.3.2 → 1.0.0.beta4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.ruby-version
3
- /.yardoc
4
- /Gemfile.lock
5
- /_yardoc/
6
- /coverage/
7
- /doc/
8
- /pkg/
9
- /spec/reports/
10
- /tmp/
11
- *.gem
data/.rubocop.yml DELETED
@@ -1 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
data/.rubocop_todo.yml DELETED
@@ -1,28 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2019-04-13 00:48:40 +0200 using RuboCop version 0.67.2.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 1
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: EnforcedStyle.
12
- # SupportedStyles: when_needed, always, never
13
- Style/FrozenStringLiteralComment:
14
- Exclude:
15
- - 'test/test_before.rb'
16
-
17
- # Offense count: 9
18
- Style/MixinUsage:
19
- Exclude:
20
- - 'test/test_before.rb'
21
- - 'test/test_described_class.rb'
22
- - 'test/test_embedded_context_blocks.rb'
23
- - 'test/test_embedded_describe_blocks.rb'
24
- - 'test/test_let.rb'
25
- - 'test/test_something.rb'
26
- - 'test/test_subject.rb'
27
- - 'test/test_the_answer.rb'
28
- - 'test/test_with_is_expected.rb'
data/.travis.yml DELETED
@@ -1,26 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
- script: 'bundle exec rake test:coverage --trace'
5
- before_install:
6
- - gem install bundler
7
- rvm:
8
- - 2.3.3
9
- - 2.4.0
10
- - 2.5.0
11
- - 2.6.2
12
- - ruby-head
13
- - jruby-head
14
- - rbx-3
15
- matrix:
16
- allow_failures:
17
- - rvm: ruby-head
18
- - rvm: jruby-head
19
- - rvm: rbx-3
20
- notifications:
21
- webhooks:
22
- urls:
23
- - https://webhooks.gitter.im/e/a44b19cc5cf6db25fa87
24
- on_success: change
25
- on_failure: always
26
- on_start: never
data/.yardopts DELETED
@@ -1 +0,0 @@
1
- - README.md
data/CODE_OF_CONDUCT.md DELETED
@@ -1,13 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
-
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
-
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
-
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
-
13
- This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec
data/Rakefile DELETED
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rake/testtask'
5
- require 'rubocop/rake_task'
6
-
7
- RuboCop::RakeTask.new
8
-
9
- Rake::TestTask.new do |t|
10
- t.verbose = true
11
- t.warning = true
12
- end
13
-
14
- namespace :test do
15
- task :coverage do
16
- ENV['COVERAGE'] = 'true'
17
- Rake::Task['test'].invoke
18
- end
19
- end
20
-
21
- task(:doc_stats) { ruby '-S yard stats' }
22
- task default: %i[test doc_stats rubocop]
data/VERSION.semver DELETED
@@ -1 +0,0 @@
1
- 0.3.2
data/bin/console DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'r_spec'
6
-
7
- require 'irb'
8
- IRB.start
data/bin/setup DELETED
@@ -1,5 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
@@ -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
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.67'
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