bozo-scripts 0.3.3 → 0.4.0

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODRjZTEyZTNmNDc2Mjk5ZjIwOTVjNGU2YWJiNzEyMjMxODBmYjBkNA==
4
+ NjA3NmRhYmIwYmI5ZWI0MjZlMTUwNGE4ZWFjM2QzYzVmMzkxZWNiZA==
5
5
  data.tar.gz: !binary |-
6
- ZTVlMmJiMWEzMTMxMWM5OWQyMjE1Y2Q3NGI2NzgwODEyYzVmMTczYg==
6
+ ZDA5ODczMWQ3M2Y2ZDcwMjQ2ZWU1MGU1YzgyNjIzZDZhNTRiMjRhYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTkwOGE5YTdkN2Y4MTlmODBlMDA0YWZmYTlmZGI3NjU2ZTZlODM4NTkzNjRk
10
- NjNjOGI2YWNkMzExMWUyMTY2NTgwYzM3ZTQ2ZjQ5YjdhZmQ4MzI4MGRhZDBk
11
- Y2FjYmEzNTA1OTY0MGVlMTEwNDM4M2JmYjI1ZWI3ZTA4NWY4Nzc=
9
+ NThiY2FmMzZmOTI1OTU4ZmQwMGFlNGQxNzdjM2E3NGY5ZDI0MjkyZjFlZDU3
10
+ ZDlkZjMyODljOTUxYmFjM2RiY2RhMmFkOTljNzk5OGQ2MDg5OTg4MmIyMGJh
11
+ Zjc1M2IyMDVkOGUxMWMxNGJjZTlkOWNiN2Q2MTQ2MmI3NTIxYmI=
12
12
  data.tar.gz: !binary |-
13
- NWJhZTBhMWZlOTlmMmI3YjkxNWFiZTE1YWRiNGE5ODNiYTBiNDcxMTA0Zjg5
14
- NWQ5N2ZlOTQ1M2I0ZWNjZTViNjdjNGIxMTFkNWY1ZjNhOTgwZDUxMzQ1OTJj
15
- ZTY2NmNjOWRjOWQ2MWNiNzg2NzJjODNhZGFiNmQ3YzI2NjJlZWI=
13
+ MDZlMzNkOTg3ZGVlMGZjYmQzNGVjY2Q3MmY4ZGI5MzdkYWUzYzE3N2NhMzdh
14
+ OTg1MWJjNjEwMmVjZWEyYmY2Zjk3YTI1MGFiNjg1ZWEwYzRkOTM0OWFkNzE0
15
+ YWFiNGQxNjgxYWI3NGRkYjE3ZGExZGY3NmNhNmM1NTg3MGI4OTk=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.4.0
@@ -0,0 +1,26 @@
1
+ require 'open-uri'
2
+
3
+ module Bozo::Tools
4
+ class Nuget
5
+
6
+ # Creates a new instance.
7
+ def initialize
8
+ @url = 'http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=nuget&DownloadId=697144&FileTime=130190897355830000&Build=20959'
9
+ end
10
+
11
+ # Sets the source url for the nuget tool to be retreived from
12
+ #
13
+ # @param [String] url
14
+ # A web server hosting the nuget tool
15
+ def source(url)
16
+ @url = url
17
+ end
18
+
19
+ # Retreives the nuget tool exe from the path
20
+ def retrieve(destination_path)
21
+ open(File.join(destination_path, 'nuget.exe'), 'wb') do |file|
22
+ file << open(@url).read
23
+ end
24
+ end
25
+ end
26
+ end
@@ -29,3 +29,4 @@ require 'bozo/test_runners/runit'
29
29
  require 'bozo/configuration'
30
30
  require 'bozo/erubis_templating_coordinator'
31
31
  require 'bozo/version'
32
+ require 'bozo/tools/nuget'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bozo-scripts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garry Shutler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-18 00:00:00.000000000 Z
12
+ date: 2015-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -115,6 +115,7 @@ files:
115
115
  - lib/bozo/test_runners/dotcover.rb
116
116
  - lib/bozo/test_runners/nunit.rb
117
117
  - lib/bozo/test_runners/runit.rb
118
+ - lib/bozo/tools/nuget.rb
118
119
  - lib/bozo/version.rb
119
120
  - lib/bozo_scripts.rb
120
121
  homepage: https://github.com/zopaUK/bozo-scripts
@@ -136,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
137
  version: '0'
137
138
  requirements: []
138
139
  rubyforge_project: bozo-scripts
139
- rubygems_version: 2.4.5
140
+ rubygems_version: 2.2.2
140
141
  signing_key:
141
142
  specification_version: 4
142
143
  summary: Zopa build system scripts