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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3f3c4c95b7204dc1733fc3fa6ba21f0bd022346
4
- data.tar.gz: 5e2590483389c6a2b4ed057c270eafadf8a99c11
3
+ metadata.gz: e9af2a28b937c60f342ef085f4a01158aeecf80c
4
+ data.tar.gz: 0a3a2a8e890e47cecc0e303ee7ede2cfb34b09d7
5
5
  SHA512:
6
- metadata.gz: 84a725e414b24eb2bd34c6484976307e642e5fe5169dade029fee007ede7f0da200807c80385379d379ac9d5df0b86d183c748cde4fd3016788de81b855d0bb6
7
- data.tar.gz: c1c92dd23a7fe5628db70254af843b6045a4aefb4189dc3bfa4e812e98d0331348ab050d6b957a3e2ba548febc80bf517806a01d97339547f1aac846b31dfd4d
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"
@@ -1,5 +1,5 @@
1
1
  module JSend
2
2
  module Rails
3
- VERSION = "1.2.2"
3
+ VERSION = "1.2.3"
4
4
  end
5
5
  end
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.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-09-05 00:00:00.000000000 Z
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/utahstreetlabs/jsend-rails
56
+ homepage: http://github.com/bcm/jsend-rails
57
57
  licenses: []
58
58
  metadata: {}
59
59
  post_install_message: