rabl 0.11.8 → 0.12.0

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: b439f70f7961cc5628e6c50d459a81c90fdaee2e
4
- data.tar.gz: afad5d0e094bcd451836d4259b000f9005c064a4
3
+ metadata.gz: b72882a63fe203d4d8872d9bcfa7c7953f36307c
4
+ data.tar.gz: 222b8fa39482e8e9cf8ab300b829f901db848b96
5
5
  SHA512:
6
- metadata.gz: a36b30e99c2c4ca01fa854c3df4cffea66d7f5105605daf5a830a5a7d605d732773cf6ff4df61fb6abddad49babe85c8e7a5d000f752c05a76da6ecce36b4165
7
- data.tar.gz: 2e84dd02306eb127ca1f194df81db1af946eded722ff7ff72e7385bf5556fb23dd8300a01f2b7d4edf4cd3a220170a9eb07cd9e13e94cbee4ec438481af417c8
6
+ metadata.gz: 09aaedb278117f2779e358347fbc36145e874fc55ae2593b3ee4e5d4b551162354e49d7ee63b55d0e05815094f012804ee969e3812c9b9588157a9e84c7e05c3
7
+ data.tar.gz: 8ece511b3d348487a85f89323820b053153e13f2868b308fbf3692428bebc367542de22e12de68a6b92aa1ae4afc6ab726eecadb8c8b6faf8c44e4bfcd106e07
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.12.0 (February 13th, 2016)
4
+
5
+ * Compatibility with ruby 2.3.0 (@vmeyet)
6
+
3
7
  ## 0.11.8 (January 10th, 2016)
4
8
 
5
9
  * Check that the Rails module has the .version method before invocation (@caldwecr)
@@ -199,7 +199,7 @@ module Rabl
199
199
  # Evaluate conditions given a symbol/proc/lambda/variable to evaluate
200
200
  def call_condition_proc(condition, object)
201
201
  # This will evaluate lambda, proc & symbol and call it with 1 argument
202
- return condition.to_proc.call(object) if condition.respond_to?(:to_proc)
202
+ return condition.to_proc.call(object) if condition.is_a?(Proc) || condition.is_a?(Symbol)
203
203
  # Else we send directly the object
204
204
  condition
205
205
  end
@@ -1,3 +1,3 @@
1
1
  module Rabl
2
- VERSION = "0.11.8"
2
+ VERSION = "0.12.0"
3
3
  end
@@ -353,5 +353,10 @@ context "Rabl::Builder" do
353
353
  scope = Rabl::Builder.new(ArbObj.new)
354
354
  scope.send(:resolve_condition, { :if => nil })
355
355
  end.equals(nil)
356
+
357
+ asserts "that it can use a hash variable on if condition and return true" do
358
+ scope = Rabl::Builder.new(ArbObj.new)
359
+ scope.send(:resolve_condition, { :if => { some: 'data' } })
360
+ end.equals(nil)
356
361
  end
357
362
  end
metadata CHANGED
@@ -1,139 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.8
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Esquenazi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.3.14
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
26
  version: 2.3.14
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: riot
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.12.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.12.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rr
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.0.2
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.0.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: tilt
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: oj
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: msgpack
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: 0.4.5
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: 0.4.5
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: bson
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.7.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ~>
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.7.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: plist
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  description: General ruby templating with json, bson, xml and msgpack support
@@ -143,8 +143,8 @@ executables: []
143
143
  extensions: []
144
144
  extra_rdoc_files: []
145
145
  files:
146
- - ".gitignore"
147
- - ".travis.yml"
146
+ - .gitignore
147
+ - .travis.yml
148
148
  - CHANGELOG.md
149
149
  - CONTRIBUTING.md
150
150
  - Gemfile
@@ -458,12 +458,12 @@ require_paths:
458
458
  - lib
459
459
  required_ruby_version: !ruby/object:Gem::Requirement
460
460
  requirements:
461
- - - ">="
461
+ - - '>='
462
462
  - !ruby/object:Gem::Version
463
463
  version: '0'
464
464
  required_rubygems_version: !ruby/object:Gem::Requirement
465
465
  requirements:
466
- - - ">="
466
+ - - '>='
467
467
  - !ruby/object:Gem::Version
468
468
  version: '0'
469
469
  requirements: []
@@ -496,3 +496,4 @@ test_files:
496
496
  - test/template_test.rb
497
497
  - test/teststrap.rb
498
498
  - test/xml_test.rb
499
+ has_rdoc: