dev 2.1.84 → 2.1.85

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tasks/setup.rb +18 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e264eee7acd86f9160296679065d948e1e80399
4
- data.tar.gz: 413d11cbe3a121f391d809d032148755dbf6781e
3
+ metadata.gz: 3e224c446e4ac8d1844a35ca44ef52cf2c1ad475
4
+ data.tar.gz: be26fd3407da167a6ac8967daf0fd5231fe21e5a
5
5
  SHA512:
6
- metadata.gz: e5e674370c314f8f9471902922c78fa6507729c0a2987d11dcf38bf463e2a4e50fda12a1f024c5c953f14587e143b7147405fdaa095450303cab2b6bbb7912b1
7
- data.tar.gz: d6f7c8bbd66745aa55c35867371eeed275091599feab0be542ef44b2bc1d7a3aa7afc791f55bb5b3eac31f94fb24bab4ed0e28cbe686a0511169260e1c78c4c9
6
+ metadata.gz: 83ed824d821434381e7c3a3c9a0f85b60ecc8fa09a6df736dfbedcd017337082e392c0187c44e66c0986039e400b6a05bfaeef85327d2e402e6e7a7fa0addd72
7
+ data.tar.gz: bba2ae326698b4dda9589d2749a9c2e810dc9017aeb4f24c1ccea151a5cdc9c510a142a49eb64462681e9799d932381224c2a1c13604ff0b2442c306e1e86bf5
@@ -142,4 +142,22 @@ class Setup < Array
142
142
  end
143
143
  log_debug_info("Setup")
144
144
  end
145
+
146
+ def self.setupStandardClassLib(name,language)
147
+ projectExtension="csproj"
148
+ projectExtension="fsproj" if(language=="F#")
149
+ FileUtils.mkdir(name)if(!Dir.exists?(name))
150
+ if(!File.exists?("#{name}/#{name}.#{projectExtension}"))
151
+ Dir.chdir(name) do
152
+ puts `dotnet new classlib -lang #{language}`
153
+ end
154
+ end
155
+ FileUtils.mkdir("#{name}.Test")if(!Dir.exists?("#{name}.Test"))
156
+ if(!File.exists?("#{name}.Test/#{name}.Test.#{projectExtension}"))
157
+ Dir.chdir("#{name}.Test") do
158
+ puts `dotnet new nunit -lang #{language}`
159
+ puts `dotnet add reference ../#{name}/#{name}.#{projectExtension}`
160
+ end
161
+ end
162
+ end
145
163
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.84
4
+ version: 2.1.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-09 00:00:00.000000000 Z
11
+ date: 2018-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.5.1
159
+ rubygems_version: 2.6.14.1
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: dev