jazor 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jazor (0.1.7)
4
+ jazor (0.1.8)
5
5
  json
6
6
  term-ansicolor
7
7
 
data/bin/jazor CHANGED
@@ -95,12 +95,13 @@ begin
95
95
 
96
96
  (ARGV.length > 0 ? ARGV[0..ARGV.length] : [nil]).each do |expression|
97
97
  result = Jazor::evaluate(obj, expression)
98
+ Jazor::LOG.debug("Expression (#{expression}) returns a #{result.class}")
98
99
 
99
100
  if options[:sort] && result.respond_to?(:sort)
100
101
  result = if result.respond_to?(:keys) && result.respond_to?(:values)
101
102
  Hash[result.sort]
102
103
  else
103
- result.sort{ |a,b| a.to_s <=> b.to_s }
104
+ result.sort { |a,b| a.to_s <=> b.to_s }
104
105
  end
105
106
  end
106
107
 
@@ -25,9 +25,7 @@ module Jazor
25
25
  end
26
26
 
27
27
  def self.evaluate(obj, expression)
28
- result = expression.nil? ? obj : obj.instance_eval(expression)
29
- Jazor::LOG.debug("Expression (#{expression}) returns a #{result.class}")
30
- result
28
+ expression.nil? ? obj : obj.instance_eval(expression)
31
29
  end
32
30
 
33
31
  def self.colorize(input)
@@ -1,6 +1,6 @@
1
1
  module Jazor
2
2
  NAME = "jazor"
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  AUTHOR = "Michael Paul Thomas Conigliaro"
5
5
  AUTHOR_EMAIL = "mike [at] conigliaro [dot] org"
6
6
  DESCRIPTION = "Jazor (JSON razor) is a simple command line JSON parsing tool."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jazor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-26 00:00:00.000000000 Z
12
+ date: 2013-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -124,15 +124,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
124
  - - ! '>='
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
+ segments:
128
+ - 0
129
+ hash: 3487832012086739087
127
130
  required_rubygems_version: !ruby/object:Gem::Requirement
128
131
  none: false
129
132
  requirements:
130
133
  - - ! '>='
131
134
  - !ruby/object:Gem::Version
132
135
  version: '0'
136
+ segments:
137
+ - 0
138
+ hash: 3487832012086739087
133
139
  requirements: []
134
140
  rubyforge_project: jazor
135
- rubygems_version: 1.8.23
141
+ rubygems_version: 1.8.24
136
142
  signing_key:
137
143
  specification_version: 3
138
144
  summary: Jazor (JSON razor) is a simple command line JSON parsing tool.
@@ -140,4 +146,3 @@ test_files:
140
146
  - test/test.json
141
147
  - test/test_jazor_cli.rb
142
148
  - test/test_jazor_lib.rb
143
- has_rdoc: