json2val 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/bin/json2val.rb +13 -0
  3. metadata +58 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cce986b57dc68dc747428d20b4f888603c7655db
4
+ data.tar.gz: ac12d648dda5443abcc8f5a928e771bb7d1e3dce
5
+ SHA512:
6
+ metadata.gz: 608be419177bdba1851ff94db5b807425215b5521b782be0c69d8f5bf142f3148dab1070f7811232d10c1496f4b581095f2b0f9f91a89ec565e1e6c913c8a3db
7
+ data.tar.gz: d0fa1ba4506bf24802becd266f04519537f9e7abc84fbc60dca01011997eafb9662754979fe0fa8fef3c8178236e4525ed27517b57cc5bdc9bf8ee7e27c0720f
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Author : Mateusz Pawlowski <mateusz@generik.co.uk>
4
+ # License : GPLv2
5
+ #
6
+
7
+ require 'json'
8
+
9
+ a = JSON.parse(STDIN.read)
10
+ ARGV.each do |arg|
11
+ a = a[arg]
12
+ end
13
+ p a
metadata ADDED
@@ -0,0 +1,58 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: json2val
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Mateusz Pawlowski
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Extract values from json on commandline without funcky regexps
28
+ email: mateusz@generik.co.uk
29
+ executables:
30
+ - json2val.rb
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - bin/json2val.rb
35
+ homepage: http://www.generik.co.uk
36
+ licenses: []
37
+ metadata: {}
38
+ post_install_message:
39
+ rdoc_options: []
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ requirements: []
53
+ rubyforge_project:
54
+ rubygems_version: 2.0.3
55
+ signing_key:
56
+ specification_version: 4
57
+ summary: Commandline JSON value extractor
58
+ test_files: []