r_spec 0.3.1 → 1.0.0.beta3

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/.travis.yml DELETED
@@ -1,29 +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
- - 1.9.3
9
- - 2.0
10
- - 2.1
11
- - 2.2
12
- - 2.3.3
13
- - 2.4.0
14
- - ruby-head
15
- - jruby
16
- - jruby-head
17
- - rbx-2
18
- matrix:
19
- allow_failures:
20
- - rvm: rbx-2
21
- - rvm: jruby-head
22
- - rvm: ruby-head
23
- notifications:
24
- webhooks:
25
- urls:
26
- - https://webhooks.gitter.im/e/a44b19cc5cf6db25fa87
27
- on_success: change
28
- on_failure: always
29
- 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,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
data/Rakefile DELETED
@@ -1,20 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rake/testtask'
3
- require 'rubocop/rake_task'
4
-
5
- RuboCop::RakeTask.new
6
-
7
- Rake::TestTask.new do |t|
8
- t.verbose = true
9
- t.warning = true
10
- end
11
-
12
- namespace :test do
13
- task :coverage do
14
- ENV['COVERAGE'] = 'true'
15
- Rake::Task['test'].invoke
16
- end
17
- end
18
-
19
- task(:doc_stats) { ruby '-S yard stats' }
20
- task default: %i[test doc_stats rubocop]
data/VERSION.semver DELETED
@@ -1 +0,0 @@
1
- 0.3.1
data/bin/console DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'r_spec'
5
-
6
- require 'irb'
7
- 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,21 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRAwDgYDVQQDDAdjb250
3
- YWN0MRUwEwYKCZImiZPyLGQBGRYFY3lyaWwxFTATBgoJkiaJk/IsZAEZFgVlbWFp
4
- bDAeFw0xNTA3MzExMjExMDZaFw0xNjA3MzAxMjExMDZaMEAxEDAOBgNVBAMMB2Nv
5
- bnRhY3QxFTATBgoJkiaJk/IsZAEZFgVjeXJpbDEVMBMGCgmSJomT8ixkARkWBWVt
6
- YWlsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6hUEYoxnn1mtoaiK
7
- NiwjzVPqPgQCR9ZeYdWjLJ3UUG2h5Q6awJCnbaGr8LGGcKtveCDbOJRjtdKNuOTH
8
- O2FLTkf46nrMGiF+6/j//qh8o0EQHBRKIVMYkxZxZe4Fcqtdf1bWNMZuXeyoDjdt
9
- 4yiGfizbbTOu0gBf7Yrsv5DsL0a5CU/We7zxMfgGXCVb9PYkD+OWUMcTARYDKfYa
10
- nN9ECI7CFm/yXcsof/eIQA5EmJNmQnhx8B+8L6jDqQeSUAUrBZnC9CdloKOoqmEL
11
- weqM2g6LM932Ba74rEl4QlFRYDcs8kjr71UcvseHRCUkFr36j26OU8+gKelsTNdO
12
- 7OZNKQIDAQABo3kwdzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU
13
- LSJTN9h29D6bqOhp+vyvhyM0AF4wHgYDVR0RBBcwFYETY29udGFjdEBjeXJpbC5l
14
- bWFpbDAeBgNVHRIEFzAVgRNjb250YWN0QGN5cmlsLmVtYWlsMA0GCSqGSIb3DQEB
15
- BQUAA4IBAQArqCC1rUyGJlF0DF9ZhUOgggyROvO0/WroSI5zWgzdB8EU7RJpsDIV
16
- caGnpji7h0rQIGWQuJ6TL2fTFLfeGRFdIzRZwWC7TeXhcXngJHZxSjDBt2OpfM8A
17
- P5eElSQS9iJCetBGGMyt354PfgZkg3URaC+JA6mdEisdtEdo64ElnMsLg9shCqye
18
- JSR3BbejbyPVva0/MHKD+dR6RswlcM9KMiYOXQml7a/kH6huOHvVq9gj5xC2ih8W
19
- dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
20
- 0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
21
- -----END CERTIFICATE-----
@@ -1 +0,0 @@
1
- 2988d048456c0dcc53bd2c8c45d8fd0f7de49e1f2bb0a3aca0749671b4baa4376e44e25d05f9ee457fe024872155ce93c8fe5c5e03fdcd494962d69805c5fce3
@@ -1 +0,0 @@
1
- 541eb96ff91798d807dc5b0bd71dab3e5c17358bc0e5bca8784607b8de0c8e9532011e958e152fb4a22bc653d9af13bd5edaf0989ff77c7941004f03ad0f29be
@@ -1 +0,0 @@
1
- 9c58b303e8a3c03de72abb0ee0083cf4a83e71d3c3d783fc2d70c51e6e3a49cc281881da78a9ff326cf5462eace11bdb5acb5826228896e6b91abd437d859b17
@@ -1 +0,0 @@
1
- ad3c4000dcc528f6ddc033df570f41f031917894140b91722adab3d11af6bd818f7e94f6709b5bd4e9c0d4e4114f7639f9f386c8d39c113bd832a7bd866a54cd
data/lib/fix/it.rb DELETED
@@ -1,10 +0,0 @@
1
- # Namespace for the Fix framework.
2
- module Fix
3
- # Override Fix's It class.
4
- class It
5
- # @return [Class] The class of the described object.
6
- def described_class
7
- subject.is_a?(::Class) ? subject : subject.class
8
- end
9
- end
10
- end
data/lib/fix/on.rb DELETED
@@ -1,43 +0,0 @@
1
- # Namespace for the Fix framework.
2
- module Fix
3
- # Override Fix's On class.
4
- class On
5
- # Useful to perform side-effects, e.g., add something in to a database.
6
- #
7
- # @note To declare an instance variable, use the `let` helper instead.
8
- #
9
- # @param block [Proc] The block to call.
10
- #
11
- # @return [#object_id] The given block.
12
- def before(*)
13
- yield
14
- end
15
-
16
- # @param another_front_object [#object_id] Override the front object.
17
- # @param specs [Proc] A set of specs.
18
- #
19
- # @return [Array] List of results.
20
- def describe(another_front_object, *, &specs)
21
- o = On.new(another_front_object,
22
- results,
23
- challenges,
24
- helpers.dup,
25
- configuration)
26
-
27
- o.instance_eval(&specs)
28
- end
29
-
30
- # Override the implicit subject.
31
- #
32
- # @param block [Proc, nil] Another subject inside a block.
33
- #
34
- # @return [#object_id] The subject.
35
- def subject(&block)
36
- if block_given?
37
- @described = yield
38
- else
39
- super
40
- end
41
- end
42
- end
43
- end
data/pkg_checksum DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'digest/sha2'
4
-
5
- gemname = 'r_spec'.to_sym
6
- ARGV[0] = File.read('VERSION.semver').chomp if ARGV[0].nil?
7
- built_gem_path = "pkg/#{gemname}-#{ARGV[0]}.gem"
8
- checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
9
- checksum_path = "checksum/#{gemname}-#{ARGV[0]}.gem.sha512"
10
-
11
- File.open(checksum_path, 'w') { |f| f.write("#{checksum}\n") }
data/r_spec.gemspec DELETED
@@ -1,32 +0,0 @@
1
- Gem::Specification.new do |spec|
2
- spec.name = 'r_spec'
3
- spec.version = File.read('VERSION.semver').chomp
4
- spec.authors = ['Cyril Kato']
5
- spec.email = ['contact@cyril.email']
6
-
7
- spec.summary = 'Rspec clone with Fix.'
8
- spec.description = 'A small Rspec clone based on Fix specing framework.'
9
- spec.homepage = 'https://github.com/cyril/r_spec'
10
- spec.license = 'MIT'
11
-
12
- spec.files =
13
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
14
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
15
- spec.require_paths = ['lib']
16
-
17
- spec.add_dependency 'fix-expect', '~> 0.3.2'
18
- spec.add_dependency 'fix-its', '~> 0.5.1'
19
- spec.add_dependency 'fix-let', '~> 0.1.1'
20
- spec.add_dependency 'matchi-rspec', '~> 0.1.1'
21
-
22
- spec.add_development_dependency 'bundler', '~> 1.14'
23
- spec.add_development_dependency 'rake', '~> 12.0'
24
- spec.add_development_dependency 'yard', '~> 0.9'
25
- spec.add_development_dependency 'simplecov', '~> 0.14'
26
- spec.add_development_dependency 'rubocop', '~> 0.48'
27
- spec.add_development_dependency 'spectus', '~> 3.0'
28
-
29
- spec.cert_chain = ['certs/gem-cyril-public_cert.pem']
30
- private_key = File.expand_path('~/.ssh/gem-cyril-private_key.pem')
31
- spec.signing_key = private_key if File.exist?(private_key)
32
- end