ocean-rails 3.0.0 → 3.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
  SHA1:
3
- metadata.gz: cc7467eadc1b9e6c22b723afecd1491ba0b10d44
4
- data.tar.gz: 4cef310262cab2869e58f4619af7a036afe38d4f
3
+ metadata.gz: 6cc5dc4be08f61d82e7257188c0b43a9f7b92003
4
+ data.tar.gz: b6d6ac63a74cac60c4135809712bdfe029524eff
5
5
  SHA512:
6
- metadata.gz: 1700913d9e5606c7f963ba2d1395dd04dedaf026bac96d946a2792198c42ba69fcfce5b63a84fd30f5336e78490f00080a6bd20c37e34cbc95f709b722687657
7
- data.tar.gz: 7e99f72e82b949b08eb7bf961fbedbe6a071c1a6a33733cce9e59b6efa15e8e73ee30e2eb5c09767febdb9cd59033287071a32cdefcbf4b7dda89fa3a8d86f66
6
+ metadata.gz: 21de7027c4e5bda8ec2997a827af0f7e410f12d5e24db5052138dc7410ac3d264da9d3ee390cd14849a9fea1a7ec43af39f184e82758417d8b8745c8e38fefc5
7
+ data.tar.gz: da59e85eeeb42fa80793b3488c785da70b4dd458cb57c7a612ac78ab75a38cbdb7cfbf632395e06b3015bf208001bc21150669566acbee09ca41cb32e0f629c1
data/lib/ocean-rails.rb CHANGED
@@ -41,7 +41,7 @@ end
41
41
  #
42
42
  def permit_with(status, user_id: 123, creator_uri: "https://api.example.com/v1/api_users/#{user_id}",
43
43
  right: nil, group_names: [])
44
- Api.stub(:permitted?).
44
+ allow(Api).to receive(:permitted?).
45
45
  and_return(double(:status => status,
46
46
  :body => {'authentication' =>
47
47
  {'user_id' => user_id,
@@ -57,7 +57,7 @@ end
57
57
  # given status and a body containing a standard API error with the given error messages.
58
58
  #
59
59
  def deny_with(status, *error_messages)
60
- Api.stub(:permitted?).
60
+ allow(Api).to receive(:permitted?).
61
61
  and_return(double(:status => status,
62
62
  :body => {'_api_error' => error_messages}))
63
63
  end
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-28 00:00:00.000000000 Z
11
+ date: 2014-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -140,16 +140,16 @@ dependencies:
140
140
  name: rspec-rails
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 2.99.0
145
+ version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 2.99.0
152
+ version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: webmock
155
155
  requirement: !ruby/object:Gem::Requirement