logirel 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/.semver CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 5
4
+ :patch: 6
5
5
  :special: ""
@@ -84,6 +84,13 @@ module Logirel
84
84
  to_package.each{ |p| nuget_task p }
85
85
 
86
86
  build_dep.push "nugets"
87
+
88
+ if BoolQ.new("Create 'push to nuget server'-task?").exec then
89
+ pushes = { :depends => [:"env:release"].concat(to_package.collect { |p| :"#{p[:ruby_key]}_nuget_push" }) }
90
+ append_to_file BUILD_FILE, "task :publish#{ inject_dependency pushes }\n"
91
+ to_package.each { |p| nugetpush_task p }
92
+ end
93
+
87
94
  end
88
95
 
89
96
  if BoolQ.new("Setup default task?") then
@@ -7,6 +7,7 @@ require 'logirel/tasks/core'
7
7
  ncover
8
8
  nuget
9
9
  nuspec
10
+ nugetpush
10
11
  nunit
11
12
  output
12
13
  xunit
@@ -22,6 +22,7 @@ assemblyinfo #{inject_task_name opts, 'assemblyinfo' }#{ inject_dependency opts
22
22
  asm.com_visible = false
23
23
  asm.copyright = PROJECTS[:#{k}][:copyright]
24
24
  asm.output_file = File.join(FOLDERS[:src], 'SharedAssemblyInfo.cs')
25
+ asm.namespaces = "System", "System.Reflection", "System.Runtime.InteropServices", "System.Security"
25
26
  end
26
27
 
27
28
  EOF
@@ -0,0 +1,19 @@
1
+ module Logirel::Tasks
2
+ def nugetpush_task proj_meta, opts={}
3
+
4
+ k = proj_meta[:ruby_key]
5
+
6
+ append_to_file BUILD_FILE, <<-EOF, :verbose => false
7
+
8
+ desc "publishes (pushes) the nuget package '#{proj_meta[:title]}'"
9
+ nugetpush #{ inject_task_name opts, k + "_nuget_push" }#{ inject_dependency opts } do |nuget|
10
+ nuget.command = "\#{COMMANDS[:nuget]}"
11
+ nuget.package = "\#{File.join(FOLDERS[:nuget], PROJECTS[:#{k}][:nuget_key] + "." + BUILD_VERSION + '.nupkg')}"
12
+ # nuget.apikey = "...."
13
+ nuget.source = URIS[:nuget_offical]
14
+ nuget.create_only = false
15
+ end
16
+
17
+ EOF
18
+ end
19
+ end
@@ -41,5 +41,6 @@ COMMANDS = {
41
41
  }
42
42
 
43
43
  URIS = {
44
- :nuget_offical => "http://packages.nuget.org/v1/"
44
+ :nuget_offical => "http://packages.nuget.org/v1/",
45
+ :nuget_symbolsource => "http://nuget.gw.symbolsource.org/Public/Nuget"
45
46
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logirel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-11 00:00:00.000000000Z
12
+ date: 2011-08-12 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &23442324 !ruby/object:Gem::Requirement
16
+ requirement: &21979092 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.6.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *23442324
24
+ version_requirements: *21979092
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: memoize
27
- requirement: &23442036 !ruby/object:Gem::Requirement
27
+ requirement: &21978708 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *23442036
35
+ version_requirements: *21978708
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: devver-construct
38
- requirement: &23441652 !ruby/object:Gem::Requirement
38
+ requirement: &21978300 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *23441652
46
+ version_requirements: *21978300
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: albacore
49
- requirement: &23441136 !ruby/object:Gem::Requirement
49
+ requirement: &21977784 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.2.7
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *23441136
57
+ version_requirements: *21977784
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: semver2
60
- requirement: &23439984 !ruby/object:Gem::Requirement
60
+ requirement: &21975516 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 2.0.0
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *23439984
68
+ version_requirements: *21975516
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
- requirement: &23439648 !ruby/object:Gem::Requirement
71
+ requirement: &21975192 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.0.14
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *23439648
79
+ version_requirements: *21975192
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: thor
82
- requirement: &23439348 !ruby/object:Gem::Requirement
82
+ requirement: &21974832 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.14.6
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *23439348
90
+ version_requirements: *21974832
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: uuidtools
93
- requirement: &23438868 !ruby/object:Gem::Requirement
93
+ requirement: &21974472 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 2.1.2
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *23438868
101
+ version_requirements: *21974472
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: nokogiri
104
- requirement: &23438388 !ruby/object:Gem::Requirement
104
+ requirement: &21974124 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 1.4.4
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *23438388
112
+ version_requirements: *21974124
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rubyzip
115
- requirement: &23437752 !ruby/object:Gem::Requirement
115
+ requirement: &21973608 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,7 +120,7 @@ dependencies:
120
120
  version: 0.9.4
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *23437752
123
+ version_requirements: *21973608
124
124
  description: ! "The gem works by having as its dependencies \n everything you need
125
125
  to get started with OSS and proprietary .Net coding.\n The aim of the gem is to
126
126
  allow developers to get up and running quickly\n and provide a nice way of converting
@@ -152,6 +152,7 @@ files:
152
152
  - lib/logirel/tasks/msbuild.rb
153
153
  - lib/logirel/tasks/ncover.rb
154
154
  - lib/logirel/tasks/nuget.rb
155
+ - lib/logirel/tasks/nugetpush.rb
155
156
  - lib/logirel/tasks/nunit.rb
156
157
  - lib/logirel/tasks/nuspec.rb
157
158
  - lib/logirel/tasks/output.rb