skipjack 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +30 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/Guardfile +29 -0
- data/LICENSE +22 -0
- data/LICENSE.txt +22 -0
- data/README.md +50 -0
- data/Rakefile +7 -0
- data/lib/skipjack/fsharp.rb +44 -0
- data/lib/skipjack/version.rb +3 -0
- data/lib/skipjack.rb +6 -0
- data/skipjack.gemspec +26 -0
- data/spec/helpers.rb +60 -0
- data/spec/lib/skipjack/fsharp_spec.rb +103 -0
- data/spec/spec_helper.rb +91 -0
- metadata +134 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e4033894cd022ca99f6cc2bce186122bcc8365b9
|
4
|
+
data.tar.gz: 4e9da2a6c2acb659f01d0d84398873566314aae4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5d5e1eacdb8c9bc0604befc9d049dad05a4934b7b0bd6a7f997a05c7aeaaad3aad3d765e250dbd2d0b4c69490737dff01d03a5edeca974dae511b01f99e3f97b
|
7
|
+
data.tar.gz: 4566ed52a8e07a58d6311e5fefc9bd183fd57f7ef0272be38f6def7f1e478fbdd9fee0317ad927297d7c3b569e1cf1e570e9019d497105f86106f55d3810c0c5
|
data/.gitignore
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/test/tmp/
|
9
|
+
/test/version_tmp/
|
10
|
+
/tmp/
|
11
|
+
Gemfile.lock
|
12
|
+
|
13
|
+
## Documentation cache and generated files:
|
14
|
+
/.yardoc/
|
15
|
+
/_yardoc/
|
16
|
+
/doc/
|
17
|
+
/rdoc/
|
18
|
+
|
19
|
+
## Environment normalisation:
|
20
|
+
/.bundle/
|
21
|
+
/lib/bundler/man/
|
22
|
+
|
23
|
+
# for a library or gem, you might want to ignore these files since the code is
|
24
|
+
# intended to run in multiple environments; otherwise, check them in:
|
25
|
+
# Gemfile.lock
|
26
|
+
# .ruby-version
|
27
|
+
# .ruby-gemset
|
28
|
+
|
29
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
30
|
+
.rvmrc
|
data/.rspec
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
2
|
+
require "guard/rspec/dsl"
|
3
|
+
watch(%r{^spec/.+_spec\.rb$})
|
4
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
5
|
+
watch('spec/spec_helper.rb') { "spec" }
|
6
|
+
watch(%r{^spec/.*\.rb}) { "spec" }
|
7
|
+
|
8
|
+
|
9
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
10
|
+
|
11
|
+
# Feel free to open issues for suggestions and improvements
|
12
|
+
|
13
|
+
# RSpec files
|
14
|
+
#rspec = dsl.rspec
|
15
|
+
#watch(rspec.spec_helper) { rspec.spec_dir }
|
16
|
+
#watch(rspec.spec_support) { rspec.spec_dir }
|
17
|
+
#watch(rspec.spec_files)
|
18
|
+
|
19
|
+
## Ruby files
|
20
|
+
#ruby = dsl.ruby
|
21
|
+
#dsl.watch_spec_files_for(ruby.lib_files)
|
22
|
+
|
23
|
+
|
24
|
+
## Turnip features and steps
|
25
|
+
#watch(%r{^spec/acceptance/(.+)\.feature$})
|
26
|
+
#watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
27
|
+
#Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
28
|
+
#end
|
29
|
+
end
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Peter Strøiman
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Peter Strøiman
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# Skipjack
|
2
|
+
|
3
|
+
Rake commands for building .NET code
|
4
|
+
|
5
|
+
Read about the motivation for Skipjack in [this blog post][1]
|
6
|
+
|
7
|
+
## Why Skipjack?
|
8
|
+
|
9
|
+
Skipjack is a temporary name given so I can concentrate on the functionality
|
10
|
+
and defer finding a good name until complete.
|
11
|
+
|
12
|
+
But since Skipjack is also the name of an encryption algorithm, I would prefer
|
13
|
+
to find a different, unambiguous name.
|
14
|
+
|
15
|
+
The name was inspired by another gem, Albacore, which is an existing gem also
|
16
|
+
aiming at building .NET projects using Rake. Both Albacore and Skipjack are
|
17
|
+
names for types of tuna.
|
18
|
+
|
19
|
+
The primary difference between the two gems is that Albacore works as a wrapper
|
20
|
+
for msbuild, at least for the actual compilation tasks, where you tell it to
|
21
|
+
build msbuild projects (mostly .csproj files generated by Visual Studio).
|
22
|
+
Skipjack skips msbuild entirely and calls the compiler tools directly.
|
23
|
+
|
24
|
+
## Installation
|
25
|
+
|
26
|
+
Add this line to your application's Gemfile:
|
27
|
+
|
28
|
+
gem 'skipjack'
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
$ bundle
|
33
|
+
|
34
|
+
Or install it yourself as:
|
35
|
+
|
36
|
+
$ gem install skipjack
|
37
|
+
|
38
|
+
## Usage
|
39
|
+
|
40
|
+
TODO: Write usage instructions here
|
41
|
+
|
42
|
+
## Contributing
|
43
|
+
|
44
|
+
1. Fork it
|
45
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
46
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
47
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
48
|
+
5. Create new Pull Request
|
49
|
+
|
50
|
+
[1]: http://stroiman.com/software/dotnet/liberate-yourself-from-vs-project-files/
|
data/Rakefile
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
module Skipjack
|
2
|
+
class FSharpCompiler
|
3
|
+
attr_reader :target
|
4
|
+
attr_accessor :output_folder, :output_file
|
5
|
+
|
6
|
+
def initialize *args
|
7
|
+
@args = *args
|
8
|
+
yield self if block_given?
|
9
|
+
end
|
10
|
+
|
11
|
+
def target=(val)
|
12
|
+
raise "Invalid target: #{val}" unless %w(exe winexe library module).include? val.to_s
|
13
|
+
@target = val
|
14
|
+
end
|
15
|
+
|
16
|
+
def source_files=(val)
|
17
|
+
@source_files = val
|
18
|
+
end
|
19
|
+
|
20
|
+
def source_files
|
21
|
+
@source_files ||= []
|
22
|
+
end
|
23
|
+
|
24
|
+
def create_task
|
25
|
+
Rake::Task::define_task *@args do |t|
|
26
|
+
if t.application.windows?
|
27
|
+
compiler = "fsc"
|
28
|
+
else
|
29
|
+
compiler = "fsharpc"
|
30
|
+
end
|
31
|
+
|
32
|
+
out = output_folder ? "--out:#{output_folder}/#{output_file}" : "--out:#{output_file}"
|
33
|
+
src = source_files.join(" ")
|
34
|
+
cmd = "#{compiler} #{out} --target:#{target.to_s} #{src}"
|
35
|
+
raise "Error executing command" unless Kernel.system cmd
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def fsc *args, &block
|
42
|
+
c = Skipjack::FSharpCompiler.new *args, &block
|
43
|
+
c.create_task
|
44
|
+
end
|
data/lib/skipjack.rb
ADDED
data/skipjack.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'skipjack/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "skipjack"
|
8
|
+
spec.version = Skipjack::VERSION
|
9
|
+
spec.authors = ["Peter Strøiman"]
|
10
|
+
spec.email = ["peter@stroiman.com"]
|
11
|
+
spec.description = %q{A collection of Rake commands for compiling .NET code wihtout dependency to project files or msbuils scripts.}
|
12
|
+
spec.summary = %q{Build .NET code with Rake}
|
13
|
+
spec.homepage = "https://github.com/PeteProgrammer/skipjack"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rspec", "~> 3.1"
|
23
|
+
spec.add_development_dependency "guard"
|
24
|
+
spec.add_development_dependency "guard-rspec"
|
25
|
+
spec.add_dependency "rake"
|
26
|
+
end
|
data/spec/helpers.rb
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
module Helpers
|
2
|
+
def invoke_fsc_task &block
|
3
|
+
task = fsc :build, &block
|
4
|
+
task.invoke
|
5
|
+
end
|
6
|
+
|
7
|
+
def expect_system_call
|
8
|
+
expect(Kernel).to receive(:system) do |args|
|
9
|
+
result = yield args
|
10
|
+
if result.nil? then
|
11
|
+
true
|
12
|
+
else
|
13
|
+
result
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def expect_compiler_call
|
19
|
+
expect_system_call do |cmd|
|
20
|
+
options = parse_cmd cmd
|
21
|
+
yield options
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def expect_no_system_call
|
26
|
+
expect(Kernel).to_not receive(:system)
|
27
|
+
end
|
28
|
+
|
29
|
+
class CompilerOptions
|
30
|
+
attr_accessor :executable, :target, :out
|
31
|
+
attr_writer :source_files
|
32
|
+
|
33
|
+
def initialize
|
34
|
+
yield self if block_given?
|
35
|
+
end
|
36
|
+
|
37
|
+
def source_files
|
38
|
+
@source_files ||= []
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def parse_cmd cmd
|
43
|
+
args = cmd.split
|
44
|
+
executable = args[0]
|
45
|
+
args.shift
|
46
|
+
|
47
|
+
CompilerOptions.new do |c|
|
48
|
+
c.executable = executable
|
49
|
+
/--target:(\w*)/.match(cmd) do |m|
|
50
|
+
c.target = m[1]
|
51
|
+
end
|
52
|
+
|
53
|
+
%r{--out:([\w\./]*)}.match(cmd) do |m|
|
54
|
+
c.out = m[1]
|
55
|
+
end
|
56
|
+
|
57
|
+
c.source_files = args.select { |f| f[0] != '-' }
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
describe 'fsharp' do
|
2
|
+
before :each do |example|
|
3
|
+
@app = Rake::Application.new
|
4
|
+
Rake.application = @app
|
5
|
+
|
6
|
+
# mock if we are running windows or not
|
7
|
+
windows = example.metadata[:windows]
|
8
|
+
windows = true if windows.nil?
|
9
|
+
allow(@app).to receive("windows?").and_return windows
|
10
|
+
|
11
|
+
allow(Kernel).to receive(:system).and_return true
|
12
|
+
end
|
13
|
+
|
14
|
+
context "when a task is not executed" do
|
15
|
+
it "does not call the system" do
|
16
|
+
expect_no_system_call
|
17
|
+
@task = fsc :build
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "command line args" do
|
22
|
+
before :each do
|
23
|
+
expect_compiler_call { |opts| @opts = opts }
|
24
|
+
end
|
25
|
+
|
26
|
+
let :options do
|
27
|
+
invoke_fsc_task do |t|
|
28
|
+
@setup.call(t) if @setup
|
29
|
+
end
|
30
|
+
@opts
|
31
|
+
end
|
32
|
+
|
33
|
+
describe "called executable" do
|
34
|
+
subject { options.executable }
|
35
|
+
|
36
|
+
context "when running on windows", windows: true do
|
37
|
+
it { should eq "fsc" }
|
38
|
+
end
|
39
|
+
|
40
|
+
context "when running on non-windows", windows: false do
|
41
|
+
it { should eq "fsharpc" }
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe "--target: argument" do
|
46
|
+
before do |ex|
|
47
|
+
@setup = lambda do |t|
|
48
|
+
t.target = ex.metadata[:target]
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
subject { options.target }
|
53
|
+
|
54
|
+
context "when target = :library", target: :library do
|
55
|
+
it { should eq "library" }
|
56
|
+
end
|
57
|
+
|
58
|
+
context "when target = :exe", target: :exe do
|
59
|
+
it { should eq "exe" }
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
describe "source files" do
|
64
|
+
it "contains the passed sources" do
|
65
|
+
sources = ["source1.fs", "source2.fs"]
|
66
|
+
@setup = lambda do |t|
|
67
|
+
t.source_files = sources
|
68
|
+
end
|
69
|
+
expect(options.source_files).to eq(sources)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe "output" do
|
74
|
+
it "sets the output file" do
|
75
|
+
@setup = lambda do |t|
|
76
|
+
t.output_folder = "f"
|
77
|
+
t.output_file = "p.exe"
|
78
|
+
end
|
79
|
+
expect(options.out).to eq("f/p.exe")
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
context "when folder not specified" do
|
84
|
+
it "sets the output file" do
|
85
|
+
@setup = lambda do |t|
|
86
|
+
t.output_file = "p.exe"
|
87
|
+
end
|
88
|
+
expect(options.out).to eq("p.exe")
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
describe "target type" do
|
94
|
+
it "fails when using invalid target option" do
|
95
|
+
op = lambda do
|
96
|
+
invoke_fsc_task do |t|
|
97
|
+
t.target = :invalid_option
|
98
|
+
end
|
99
|
+
end
|
100
|
+
expect(op).to raise_error
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
require 'skipjack'
|
2
|
+
require 'rake'
|
3
|
+
require_relative 'helpers'
|
4
|
+
|
5
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
6
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
7
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
8
|
+
# file to always be loaded, without a need to explicitly require it in any files.
|
9
|
+
#
|
10
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
11
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
12
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
13
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
14
|
+
# a separate helper file that requires the additional dependencies and performs
|
15
|
+
# the additional setup, and require it from the spec files that actually need it.
|
16
|
+
#
|
17
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
18
|
+
# users commonly want.
|
19
|
+
#
|
20
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
21
|
+
RSpec.configure do |config|
|
22
|
+
config.include Helpers
|
23
|
+
# rspec-expectations config goes here. You can use an alternate
|
24
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
25
|
+
# assertions if you prefer.
|
26
|
+
config.expect_with :rspec do |expectations|
|
27
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
28
|
+
# and `failure_message` of custom matchers include text for helper methods
|
29
|
+
# defined using `chain`, e.g.:
|
30
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
31
|
+
# # => "be bigger than 2 and smaller than 4"
|
32
|
+
# ...rather than:
|
33
|
+
# # => "be bigger than 2"
|
34
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
35
|
+
end
|
36
|
+
|
37
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
38
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
39
|
+
config.mock_with :rspec do |mocks|
|
40
|
+
mocks.verify_partial_doubles = true
|
41
|
+
end
|
42
|
+
|
43
|
+
# The settings below are suggested to provide a good initial experience
|
44
|
+
# with RSpec, but feel free to customize to your heart's content.
|
45
|
+
=begin
|
46
|
+
# These two settings work together to allow you to limit a spec run
|
47
|
+
# to individual examples or groups you care about by tagging them with
|
48
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
49
|
+
# get run.
|
50
|
+
config.filter_run :focus
|
51
|
+
config.run_all_when_everything_filtered = true
|
52
|
+
|
53
|
+
# Limits the available syntax to the non-monkey patched syntax that is recommended.
|
54
|
+
# For more details, see:
|
55
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
56
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
57
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
58
|
+
config.disable_monkey_patching!
|
59
|
+
|
60
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
61
|
+
# be too noisy due to issues in dependencies.
|
62
|
+
config.warnings = true
|
63
|
+
|
64
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
65
|
+
# file, and it's useful to allow more verbose output when running an
|
66
|
+
# individual spec file.
|
67
|
+
if config.files_to_run.one?
|
68
|
+
# Use the documentation formatter for detailed output,
|
69
|
+
# unless a formatter has already been configured
|
70
|
+
# (e.g. via a command-line flag).
|
71
|
+
config.default_formatter = 'doc'
|
72
|
+
end
|
73
|
+
|
74
|
+
# Print the 10 slowest examples and example groups at the
|
75
|
+
# end of the spec run, to help surface which specs are running
|
76
|
+
# particularly slow.
|
77
|
+
config.profile_examples = 10
|
78
|
+
|
79
|
+
# Run specs in random order to surface order dependencies. If you find an
|
80
|
+
# order dependency and want to debug it, you can fix the order by providing
|
81
|
+
# the seed, which is printed after each run.
|
82
|
+
# --seed 1234
|
83
|
+
config.order = :random
|
84
|
+
|
85
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
86
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
87
|
+
# test failures related to randomization by passing the same `--seed` value
|
88
|
+
# as the one that triggered the failure.
|
89
|
+
Kernel.srand config.seed
|
90
|
+
=end
|
91
|
+
end
|
metadata
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: skipjack
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Peter Strøiman
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-01-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.1'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: guard
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard-rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: A collection of Rake commands for compiling .NET code wihtout dependency
|
84
|
+
to project files or msbuils scripts.
|
85
|
+
email:
|
86
|
+
- peter@stroiman.com
|
87
|
+
executables: []
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- .gitignore
|
92
|
+
- .rspec
|
93
|
+
- .travis.yml
|
94
|
+
- Gemfile
|
95
|
+
- Guardfile
|
96
|
+
- LICENSE
|
97
|
+
- LICENSE.txt
|
98
|
+
- README.md
|
99
|
+
- Rakefile
|
100
|
+
- lib/skipjack.rb
|
101
|
+
- lib/skipjack/fsharp.rb
|
102
|
+
- lib/skipjack/version.rb
|
103
|
+
- skipjack.gemspec
|
104
|
+
- spec/helpers.rb
|
105
|
+
- spec/lib/skipjack/fsharp_spec.rb
|
106
|
+
- spec/spec_helper.rb
|
107
|
+
homepage: https://github.com/PeteProgrammer/skipjack
|
108
|
+
licenses:
|
109
|
+
- MIT
|
110
|
+
metadata: {}
|
111
|
+
post_install_message:
|
112
|
+
rdoc_options: []
|
113
|
+
require_paths:
|
114
|
+
- lib
|
115
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - '>='
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
requirements: []
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 2.0.6
|
128
|
+
signing_key:
|
129
|
+
specification_version: 4
|
130
|
+
summary: Build .NET code with Rake
|
131
|
+
test_files:
|
132
|
+
- spec/helpers.rb
|
133
|
+
- spec/lib/skipjack/fsharp_spec.rb
|
134
|
+
- spec/spec_helper.rb
|