jsend_wrapper-rails 0.3.0 → 0.3.1

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: 65b82f8d69ba8c681020317593c93089a66bf379
4
- data.tar.gz: 616622f35a647af91e5b7f08387fc638233a7fbd
3
+ metadata.gz: 595e037630a2625db30b88eef87c2527cc2c568b
4
+ data.tar.gz: 24c5581c69fa89beef3934d8e9ccf6db67da1d80
5
5
  SHA512:
6
- metadata.gz: 1893b976e66fe45eba2df5ffa00baec24807ebf694dbb7d2be4399a6ae212ea6473dd45974579b0d6763d4cc24b3f35010f7feeb3a03d7cee1075b283986db36
7
- data.tar.gz: 0cdfdc93ee754abadd4abf5696f2db39df02284de7bdf6d91c8a63a53ce4ba5e2aa4b1efe8af67d2f312286137a8728d106a173285ce57de9666b6a57e5ac3c0
6
+ metadata.gz: e3cd16e861c3d4b986542ae5d9298f78305e043da48134e98ce1a4e926ee9dfa1ad8cf557b71872a4eadcdab34b190e74f09b42e1b56b0a218481480ffb37b57
7
+ data.tar.gz: ff339af35ec687208ccda0e01be7c1657ffccd23eded174eb2624e3a129037d1ef9e8d310fa62504270b9172e1a6784a1e7b4b9cd44cdc02f4daabb0c1ca4765
@@ -0,0 +1,20 @@
1
+ # jsend_wrapper-rails: Wrap JSON views in JSend containers
2
+ # Copyright (C) 2014 Jon Sangster
3
+ #
4
+ # This program is free software: you can redistribute it and/or modify
5
+ # it under the terms of the GNU General Public License as published by
6
+ # the Free Software Foundation, either version 3 of the License, or
7
+ # (at your option) any later version.
8
+ #
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU General Public License
15
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
+ if defined? Rails
17
+ require 'jsend_wrapper/rails/railtie'
18
+ else
19
+ $stderr.puts 'WARN: Rails is not defined! jsend_wrapper-rails cannot load.'
20
+ end
@@ -13,8 +13,6 @@
13
13
  #
14
14
  # You should have received a copy of the GNU General Public License
15
15
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- if defined? Rails
17
- require 'jsend_wrapper/rails/railtie'
18
- else
19
- $stderr.puts 'WARN: Rails is not defined! jsend_wrapper-rails cannot load.'
20
- end
16
+
17
+ # For people who don't get rubygem.org's naming scheme
18
+ require 'jsend_wrapper/rails'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsend_wrapper-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Sangster
@@ -93,6 +93,7 @@ files:
93
93
  - README.md
94
94
  - Rakefile
95
95
  - lib/jsend_wrapper-rails.rb
96
+ - lib/jsend_wrapper/rails.rb
96
97
  - lib/jsend_wrapper/rails/railtie.rb
97
98
  - lib/jsend_wrapper/rails/render_option.rb
98
99
  - lib/jsend_wrapper/rails/template_handler.rb