jbuilder-jpartial 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jbuilder/jpartial/version.rb +1 -1
- data/lib/jbuilder/jpartial.rb +2 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ad88768f1ae41076a9175f1e90174a0bdc80638
|
4
|
+
data.tar.gz: 2778476a2b04bb6eeb0f42ec7665153517385e10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0fe6936a7c608dae8c010d31b36152d336900895fc7fee47bdcab6899fd0e6954f6210b8524a45e708fc570e382dd305a5fb7a97b99dfc406822c5a91d2d4cf
|
7
|
+
data.tar.gz: 954402549203c09e2a541ed673b615380ad7c6abd2571acfb192ef7dd82a4c8bd27a92b2cf434b7119e175203c2500fe36de5335f33ad4433de06a36161ffdc6
|
data/lib/jbuilder/jpartial.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
require 'jbuilder'
|
2
2
|
|
3
|
-
require 'jbuilder/jpartial/version'
|
4
|
-
|
5
3
|
# Top level Jbuilder class
|
6
4
|
class Jbuilder
|
7
5
|
def json
|
@@ -25,8 +23,8 @@ class Jbuilder
|
|
25
23
|
def self.jpartial(name, &block)
|
26
24
|
Jbuilder.class_eval do
|
27
25
|
if method_defined?(name) || private_method_defined?(name)
|
28
|
-
raise DangerousMethodName, "The method `##{name}` is already defined
|
29
|
-
|
26
|
+
raise DangerousMethodName, "The method `##{name}` is already defined"\
|
27
|
+
' by Jbuilder. Please choose another name to define your partial'
|
30
28
|
else
|
31
29
|
define_method(name, &block)
|
32
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jbuilder-jpartial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- M. Simon Borg
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
75
75
|
requirements:
|
76
76
|
- - ">="
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
78
|
+
version: 1.9.3
|
79
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - ">="
|