rbsx 0.0.1 → 0.0.2

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8aa24cd951d393c487724cbb25509342a70b63f
4
- data.tar.gz: eab5718d3de05a94a3b201c3676af014ab56b041
3
+ metadata.gz: 079da0f7d67f6bb68f4f44ae7315a667da1bf41e
4
+ data.tar.gz: 2d140fa5de0cbdca0c8d9c8524493eb91938abcd
5
5
  SHA512:
6
- metadata.gz: 07d360ca4d54cd45d468bfc446aa2969a23a34beadca21572a4dfeae1a12f8197421cd2691f9eb9ce813999f74845f3b4d6dd6e1c33d5867f7d9d0d2ab23bcca
7
- data.tar.gz: 034ee24d343cd56c7bc1545070e089cf663b7f417563fd568eaaa15e06b72c7ec97ab715b398544d35c03212da9f3f54303d344f645d1da85743b996ff69bbb9
6
+ metadata.gz: e24f1a80a80b210c1429b8fe8a196f01a17abde7c1247f5cc99514f839a80e6b8b51d9f2d562496abeff508808a69a1583896d18ce3d0bc74abb675f01286c48
7
+ data.tar.gz: 6fcebcb0c952a2e4df79208d1a0b1721d04e5294bd0393b63b8d52c6c3d1d68fb08a5dfdc44323c6b37ac9f877d698de8622352a7cb0b29fdcd91dcebdc25b1f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.0.2
2
+
3
+ - Allow overriding of `sx_path` when instantiating: `Rbsx.new(sx_path: "/sx/path")`
4
+
1
5
  # 0.0.1
2
6
 
3
7
  - Initial version
data/lib/rbsx.rb CHANGED
@@ -8,8 +8,8 @@ module Rbsx
8
8
 
9
9
  mattr_accessor :sx_path
10
10
 
11
- def self.new
12
- Client.new(sx_path: self.sx_path)
11
+ def self.new(sx_path: Rbsx.sx_path)
12
+ Client.new(sx_path: sx_path)
13
13
  end
14
14
 
15
15
  def self.configure(&block)
data/lib/rbsx/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rbsx
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/spec/rbsx_spec.rb CHANGED
@@ -27,6 +27,16 @@ describe Rbsx do
27
27
  and_return(client)
28
28
  expect(described_class.new).to eq client
29
29
  end
30
+
31
+ context "sx_path is given" do
32
+ it "overrides the default" do
33
+ Rbsx.sx_path = "/old/sx"
34
+ client = double(Rbsx::Client)
35
+ allow(Rbsx::Client).to receive(:new).with(sx_path: "/sx/path").
36
+ and_return(client)
37
+ expect(described_class.new(sx_path: "/sx/path")).to eq client
38
+ end
39
+ end
30
40
  end
31
41
 
32
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbsx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2014-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport