nsisam 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.7.3
@@ -12,12 +12,15 @@ module NSISam
12
12
  attr_reader :host, :port
13
13
 
14
14
  def initialize(host="localhost", port="8888")
15
- WebMock.allow_net_connect!
16
15
  @storage = {}
17
16
  @host = host
18
17
  @port = port
19
18
  end
20
19
 
20
+ def allow_net
21
+ WebMock.allow_net_connect!
22
+ end
23
+
21
24
  def download_link_for_file(key)
22
25
  "http://#{@host}:#{@port}/file/#{key}"
23
26
  end
data/nsisam.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "nsisam"
8
- s.version = "0.7.2"
8
+ s.version = "0.7.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Douglas Camata"]
@@ -4,6 +4,7 @@ require 'net/http'
4
4
  describe "NSISam::FakeClient" do
5
5
  before :all do
6
6
  @nsisam = NSISam::FakeClient.new
7
+ @nsisam.allow_net
7
8
  end
8
9
 
9
10
  it "can store a value" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nsisam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -188,7 +188,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
188
188
  version: '0'
189
189
  segments:
190
190
  - 0
191
- hash: -333567177505630667
191
+ hash: -1940775223437121320
192
192
  required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements: