jsend-rails 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/jsend-rails/test/matchers.rb +1 -1
- data/lib/jsend-rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9af2a28b937c60f342ef085f4a01158aeecf80c
|
4
|
+
data.tar.gz: 0a3a2a8e890e47cecc0e303ee7ede2cfb34b09d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7f90ec1f2642f83ff272ef66b183043fc22b842eede42c1dfe7f5176206d0084b89cbd97cc3fbb544f92cd02d88e56e99296db2e24d732b80dc8955c9756429
|
7
|
+
data.tar.gz: a107799f8f04c1b70da942645de813ab3481e545d1601e9309ab6247cb8d1518bb710c5ec1b9277c503fc998d7d62a13de107d726c4a637e5988677b150260e3
|
data/README.md
CHANGED
@@ -14,7 +14,7 @@ In a controller:
|
|
14
14
|
render_jsend(:fail => thing.errors)
|
15
15
|
end
|
16
16
|
rescue Exception => e
|
17
|
-
render_jsend(:error => e.message, :code => 12345, :data => ['other', 'stuff])
|
17
|
+
render_jsend(:error => e.message, :code => 12345, :data => ['other', 'stuff'])
|
18
18
|
end
|
19
19
|
|
20
20
|
Valid statuses are `:success`, `:fail` and `:error`. You can pass either the status itself (which implies an empty data
|
@@ -7,7 +7,7 @@ module JSend
|
|
7
7
|
module Matchers
|
8
8
|
RSpec::Matchers.define :be_json do
|
9
9
|
match do |response|
|
10
|
-
response.content_type =~ /^application\/json/
|
10
|
+
response.content_type.to_s =~ /^application\/json/
|
11
11
|
end
|
12
12
|
failure_message do |response|
|
13
13
|
"Response should have application/json content type"
|
data/lib/jsend-rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsend-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Moseley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -53,7 +53,7 @@ files:
|
|
53
53
|
- lib/jsend-rails/test/matchers.rb
|
54
54
|
- lib/jsend-rails/test/response.rb
|
55
55
|
- lib/jsend-rails/version.rb
|
56
|
-
homepage: http://github.com/
|
56
|
+
homepage: http://github.com/bcm/jsend-rails
|
57
57
|
licenses: []
|
58
58
|
metadata: {}
|
59
59
|
post_install_message:
|