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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de4f8644930394f0f22aa90292f5f66ab813f884
4
- data.tar.gz: 5970911868f688dfe4ca101f73a1597786fdc1c9
3
+ metadata.gz: 9ad88768f1ae41076a9175f1e90174a0bdc80638
4
+ data.tar.gz: 2778476a2b04bb6eeb0f42ec7665153517385e10
5
5
  SHA512:
6
- metadata.gz: 2b82ed0ce07772d5242a96c2a31a81eab5333969db7944f676a3114d26b8fc79cfa2c6977463032c2c10c5a5de37c53049a06b189de15ef92503a666bac7cd89
7
- data.tar.gz: 0d99474b5a6c08d1d1a35ad55e1d05f1d029f380c5e2ae447ce88a776a2dd4827954ac384cc49f504bb2b2dc76ed0c3e8b834ebdf62e3ca781bc699a7559c5bf
6
+ metadata.gz: f0fe6936a7c608dae8c010d31b36152d336900895fc7fee47bdcab6899fd0e6954f6210b8524a45e708fc570e382dd305a5fb7a97b99dfc406822c5a91d2d4cf
7
+ data.tar.gz: 954402549203c09e2a541ed673b615380ad7c6abd2571acfb192ef7dd82a4c8bd27a92b2cf434b7119e175203c2500fe36de5335f33ad4433de06a36161ffdc6
@@ -1,5 +1,5 @@
1
1
  class Jbuilder
2
2
  module Jpartial
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.1.1'.freeze
4
4
  end
5
5
  end
@@ -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 by Jbuilder. "\
29
- 'Please choose another name to define you partial'
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.0
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: '0'
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: '0'
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: '0'
78
+ version: 1.9.3
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="