dotnet_project 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa99b12d441070169d5be7c9363174d936be4306924f7d72a0e694f15f392c30
4
- data.tar.gz: 307c115068d7ec94263be0297c44ad5da6a7c6d6da2d40fa9ba723cbd0e584d9
3
+ metadata.gz: 2f7b15012f67685685b1c213247204bbec05d9de04a076cac6c5e563b2b18f82
4
+ data.tar.gz: 62aea18b051d8c8c3e0c5e4fcac92cc03364375c3b4b3bb7b6092ae76e62fb08
5
5
  SHA512:
6
- metadata.gz: 4926f66597534f384428ee86df29606449afa64e566d5db3c462a79544fc65b8c171cddb7c897730ebf584252c4e9426414a92db26705039abec77835ac8d637
7
- data.tar.gz: 81fb50e0e550c210770804be2e174db451d3866df4ba205831b154c1542bea1670ec43b7608ec65c9f41908fdfeb37aaeca5f070fc9ccc8dc503a754475cc190
6
+ metadata.gz: acb5e51272742bd7b6825078773c055e75a863e3342d927785a4f1b2582f7902f4d04f0cc0695ccc4326ec539a71baffc533fda07c22f9977fbd71897af43aa2
7
+ data.tar.gz: d2d0ea3eb860660d06393e5d00228023aa07884ce4af2a994bd204927d1bc33fac0692b737fcdc6bf780edbebf914080feed0656ad38bd93207bffbcf55ac8fe
data/lib/.gitignore ADDED
@@ -0,0 +1,290 @@
1
+ ## Ignore Visual Studio temporary files, build results, and
2
+ ## files generated by popular Visual Studio add-ons.
3
+ ##
4
+ ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5
+
6
+ packages/
7
+
8
+ # User-specific files
9
+ *.suo
10
+ *.user
11
+ *.userosscache
12
+ *.sln.docstates
13
+
14
+ # User-specific files (MonoDevelop/Xamarin Studio)
15
+ *.userprefs
16
+
17
+ # Build results
18
+ [Dd]ebug/
19
+ [Dd]ebugPublic/
20
+ [Rr]elease/
21
+ [Rr]eleases/
22
+ x64/
23
+ x86/
24
+ bld/
25
+ [Bb]in/
26
+ [Oo]bj/
27
+ [Ll]og/
28
+
29
+ # Visual Studio 2015 cache/options directory
30
+ .vs/
31
+ # Uncomment if you have tasks that create the project's static files in wwwroot
32
+ #wwwroot/
33
+
34
+ # MSTest test Results
35
+ [Tt]est[Rr]esult*/
36
+ [Bb]uild[Ll]og.*
37
+
38
+ # NUNIT
39
+ *.VisualState.xml
40
+ TestResult.xml
41
+
42
+ # Build Results of an ATL Project
43
+ [Dd]ebugPS/
44
+ [Rr]eleasePS/
45
+ dlldata.c
46
+
47
+ # .NET Core
48
+ project.lock.json
49
+ project.fragment.lock.json
50
+ artifacts/
51
+ **/Properties/launchSettings.json
52
+
53
+ *_i.c
54
+ *_p.c
55
+ *_i.h
56
+ *.ilk
57
+ *.meta
58
+ *.obj
59
+ *.pch
60
+ *.pdb
61
+ *.pgc
62
+ *.pgd
63
+ *.rsp
64
+ *.sbr
65
+ *.tlb
66
+ *.tli
67
+ *.tlh
68
+ *.tmp
69
+ *.tmp_proj
70
+ *.log
71
+ *.vspscc
72
+ *.vssscc
73
+ .builds
74
+ *.pidb
75
+ *.svclog
76
+ *.scc
77
+
78
+ # Chutzpah Test files
79
+ _Chutzpah*
80
+
81
+ # Visual C++ cache files
82
+ ipch/
83
+ *.aps
84
+ *.ncb
85
+ *.opendb
86
+ *.opensdf
87
+ *.sdf
88
+ *.cachefile
89
+ *.VC.db
90
+ *.VC.VC.opendb
91
+
92
+ # Visual Studio profiler
93
+ *.psess
94
+ *.vsp
95
+ *.vspx
96
+ *.sap
97
+
98
+ # TFS 2012 Local Workspace
99
+ $tf/
100
+
101
+ # Guidance Automation Toolkit
102
+ *.gpState
103
+
104
+ # ReSharper is a .NET coding add-in
105
+ _ReSharper*/
106
+ *.[Rr]e[Ss]harper
107
+ *.DotSettings.user
108
+
109
+ # JustCode is a .NET coding add-in
110
+ .JustCode
111
+
112
+ # TeamCity is a build add-in
113
+ _TeamCity*
114
+
115
+ # DotCover is a Code Coverage Tool
116
+ *.dotCover
117
+
118
+ # Visual Studio code coverage results
119
+ *.coverage
120
+ *.coveragexml
121
+
122
+ # NCrunch
123
+ _NCrunch_*
124
+ .*crunch*.local.xml
125
+ nCrunchTemp_*
126
+
127
+ # MightyMoose
128
+ *.mm.*
129
+ AutoTest.Net/
130
+
131
+ # Web workbench (sass)
132
+ .sass-cache/
133
+
134
+ # Installshield output folder
135
+ [Ee]xpress/
136
+
137
+ # DocProject is a documentation generator add-in
138
+ DocProject/buildhelp/
139
+ DocProject/Help/*.HxT
140
+ DocProject/Help/*.HxC
141
+ DocProject/Help/*.hhc
142
+ DocProject/Help/*.hhk
143
+ DocProject/Help/*.hhp
144
+ DocProject/Help/Html2
145
+ DocProject/Help/html
146
+
147
+ # Click-Once directory
148
+ publish/
149
+
150
+ # Publish Web Output
151
+ *.[Pp]ublish.xml
152
+ *.azurePubxml
153
+ # TODO: Comment the next line if you want to checkin your web deploy settings
154
+ # but database connection strings (with potential passwords) will be unencrypted
155
+ *.pubxml
156
+ *.publishproj
157
+
158
+ # Microsoft Azure Web App publish settings. Comment the next line if you want to
159
+ # checkin your Azure Web App publish settings, but sensitive information contained
160
+ # in these scripts will be unencrypted
161
+ PublishScripts/
162
+
163
+ # NuGet Packages
164
+ *.nupkg
165
+ # The packages folder can be ignored because of Package Restore
166
+ **/packages/*
167
+ # except build/, which is used as an MSBuild target.
168
+ !**/packages/build/
169
+ # Uncomment if necessary however generally it will be regenerated when needed
170
+ #!**/packages/repositories.config
171
+ # NuGet v3's project.json files produces more ignorable files
172
+ *.nuget.props
173
+ *.nuget.targets
174
+
175
+ # Microsoft Azure Build Output
176
+ csx/
177
+ *.build.csdef
178
+
179
+ # Microsoft Azure Emulator
180
+ ecf/
181
+ rcf/
182
+
183
+ # Windows Store app package directories and files
184
+ AppPackages/
185
+ BundleArtifacts/
186
+ Package.StoreAssociation.xml
187
+ _pkginfo.txt
188
+
189
+ # Visual Studio cache files
190
+ # files ending in .cache can be ignored
191
+ *.[Cc]ache
192
+ # but keep track of directories ending in .cache
193
+ !*.[Cc]ache/
194
+
195
+ # Others
196
+ ClientBin/
197
+ ~$*
198
+ *~
199
+ *.dbmdl
200
+ *.dbproj.schemaview
201
+ *.jfm
202
+ *.pfx
203
+ *.publishsettings
204
+ orleans.codegen.cs
205
+
206
+ # Since there are multiple workflows, uncomment next line to ignore bower_components
207
+ # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
208
+ #bower_components/
209
+
210
+ # RIA/Silverlight projects
211
+ Generated_Code/
212
+
213
+ # Backup & report files from converting an old project file
214
+ # to a newer Visual Studio version. Backup files are not needed,
215
+ # because we have git ;-)
216
+ _UpgradeReport_Files/
217
+ Backup*/
218
+ UpgradeLog*.XML
219
+ UpgradeLog*.htm
220
+
221
+ # SQL Server files
222
+ *.mdf
223
+ *.ldf
224
+ *.ndf
225
+
226
+ # Business Intelligence projects
227
+ *.rdl.data
228
+ *.bim.layout
229
+ *.bim_*.settings
230
+
231
+ # Microsoft Fakes
232
+ FakesAssemblies/
233
+
234
+ # GhostDoc plugin setting file
235
+ *.GhostDoc.xml
236
+
237
+ # Node.js Tools for Visual Studio
238
+ .ntvs_analysis.dat
239
+ node_modules/
240
+
241
+ # Typescript v1 declaration files
242
+ typings/
243
+
244
+ # Visual Studio 6 build log
245
+ *.plg
246
+
247
+ # Visual Studio 6 workspace options file
248
+ *.opt
249
+
250
+ # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
251
+ *.vbw
252
+
253
+ # Visual Studio LightSwitch build output
254
+ **/*.HTMLClient/GeneratedArtifacts
255
+ **/*.DesktopClient/GeneratedArtifacts
256
+ **/*.DesktopClient/ModelManifest.xml
257
+ **/*.Server/GeneratedArtifacts
258
+ **/*.Server/ModelManifest.xml
259
+ _Pvt_Extensions
260
+
261
+ # Paket dependency manager
262
+ .paket/paket.exe
263
+ paket-files/
264
+
265
+ # FAKE - F# Make
266
+ .fake/
267
+
268
+ # JetBrains Rider
269
+ .idea/
270
+ *.sln.iml
271
+
272
+ # CodeRush
273
+ .cr/
274
+
275
+ # Python Tools for Visual Studio (PTVS)
276
+ __pycache__/
277
+ *.pyc
278
+
279
+ # Cake - Uncomment if you are using it
280
+ # tools/**
281
+ # !tools/packages.config
282
+
283
+ # Telerik's JustMock configuration file
284
+ *.jmconfig
285
+
286
+ # BizTalk build output
287
+ *.btp.cs
288
+ *.btm.cs
289
+ *.odx.cs
290
+ *.xsd.cs
@@ -0,0 +1,12 @@
1
+ image : microsoft/dotnet:latest
2
+
3
+ build:
4
+ stage: build
5
+ script:
6
+ - dotnet build NAME.sln --configuration Release
7
+
8
+ test:
9
+ stage: test
10
+ script:
11
+ - dotnet test NAME.sln --configuration Release
12
+
@@ -1,5 +1,7 @@
1
1
  require 'rake/clean'
2
2
  CLOBBER.include('**/bin','**/obj')
3
+ GITIGNORE=IO.read('lib/.gitignore')
4
+ GITLABCIYML=IO.read('lib/.gitlab-ci.yml')
3
5
 
4
6
  class DotNetProject
5
7
  def initialize(name,type,language)
@@ -28,7 +30,7 @@ class DotNetProject
28
30
 
29
31
  def setup
30
32
  if(@type=="classlib")
31
- FileUtils.mkdir(@name)if(!Dir.exists?(@name))
33
+ FileUtils.mkdir(@name)if(!Dir.exist?(@name))
32
34
  if(!File.exist?("#{@name}/#{@name}.#{projectExtension}"))
33
35
  Dir.chdir(@name) do
34
36
  puts `dotnet new classlib -lang #{@language}`
@@ -48,6 +50,14 @@ class DotNetProject
48
50
  puts `dotnet sln #{name}.sln add #{name}/#{name}.#{projectExtension}`
49
51
  puts `dotnet sln #{name}.sln add #{name}.Test/#{name}.Test.#{projectExtension}`
50
52
  end
53
+
54
+ if(!File.exist?('.gitignore'))
55
+ File.open('.gitignore','w'){|f| f.write(GITIGNORE)}
56
+ end
57
+
58
+ if(!File.exist?('.gitlab-ci.yml'))
59
+ File.open('.gitlab-ci.yml','w'){|f| GITLABCIYML.gsub("NAME",name)}
60
+ end
51
61
  end
52
62
 
53
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotnet_project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
@@ -16,6 +16,8 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - lib/.gitignore
20
+ - lib/.gitlab-ci.yml
19
21
  - lib/dotnet_project.rb
20
22
  homepage: https://rubygems.org/gems/dotnet_project
21
23
  licenses: