skipjack 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: d5fcc6d5aff0dad590340067dc7a1bd195ad41a5
4
- data.tar.gz: 1ce0cb7e4b1ac954d416b6771a2fc0dc629f69b7
3
+ metadata.gz: 8ac824197e7b24e78c48c34b43ca34532256872c
4
+ data.tar.gz: 1e49ea7379dec6ffefc7af5f05886bb4af9086a1
5
5
  SHA512:
6
- metadata.gz: 072b51ee79024a50ff7ff26e7b455c618da47cbed3a4959436bd5f2182310d789d4e6c312dd490ff3f37c3018b3324ec47eeae5da3473914422c802bf1fa050f
7
- data.tar.gz: f7ffeba7239c2affe10da9d276a2b46130a89c4021c3e095ffa6b29e576df6c6b1f6907ab7d66db5081b75514c24b3d717a0852f3fc46ae5931e249148f184aa
6
+ metadata.gz: 9071f87f59786e70bd10fbbb82c18aaad84600b3951ee5ba3d2860d436350386150d033eaa7c03f9b4e121ef89645b49377af75af2fbdea8415e2a6076ac1efb
7
+ data.tar.gz: fed10103fcd2ece9cf5d33d1ddd72923dad38a1b2e4349e6b18b5deb7e9e69f76e43b8cfd75b9ff0998b1403b9a851a91190e6b9575ac023726070da9ef6a969
@@ -36,6 +36,11 @@ module Skipjack
36
36
  local_refs << ref if copy_local
37
37
  end
38
38
 
39
+ def add_argument arg
40
+ @added_arguments ||= []
41
+ @added_arguments << arg
42
+ end
43
+
39
44
  def create_file_task *args
40
45
  dependencies = source_files
41
46
  file_task = Rake::FileTask::define_task *args do |t|
@@ -55,6 +60,7 @@ module Skipjack
55
60
  opts = []
56
61
  opts << "--out:#{t.name}"
57
62
  opts << "--target:#{target.to_s}"
63
+ @added_arguments.each { |a| opts << a } if @added_arguments
58
64
  references.each { |r| opts << "--reference:#{r}" }
59
65
  if resident
60
66
  opts << "--resident"
@@ -1,3 +1,3 @@
1
1
  module Skipjack
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -72,6 +72,19 @@ describe 'fsharp' do
72
72
  end
73
73
  end
74
74
 
75
+ describe "additional arguments" do
76
+ it "allows the caller to add extra arguments" do
77
+ args = ""
78
+ expect_system_call do |a|
79
+ args = a
80
+ end
81
+ task = fsc "dummy.exe" do |t|
82
+ t.add_argument "--extra"
83
+ end
84
+ task.invoke
85
+ expect(args).to match(/ --extra\b/)
86
+ end
87
+ end
75
88
  describe "--target: argument" do
76
89
  describe "output file is an .dll file" do
77
90
  before do |ex|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skipjack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Strøiman