jsonom 0.1.0 → 0.1.1

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 +4 -4
  2. data/lib/jsonom/executioner.rb +10 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2e5d5d46376d0bf472f376436346733af6643f5
4
- data.tar.gz: 5d8b8b51370edc2ea4562e8fc3a2e427bd90b7a1
3
+ metadata.gz: c1c97a47fb0263bb8430e8b6185a4902069cb618
4
+ data.tar.gz: 05d042f2cfbeeee489db4c078cc9df65771d73e9
5
5
  SHA512:
6
- metadata.gz: 9bcbea1e61d9886ce667555e88ed936bc48ceb610956f10193ab988b76f4afe202b6ccd62308f885f25b6426528c0347d8d361e6e2a480c5bfef193cfe6c5b50
7
- data.tar.gz: c2b28f848ec0f2396d7890abd8e2cd72000e74502b8300f7f74026505a39e008e3e859e64459f48808ef2ad1329f00f75a128c4fafcff32b9e4539734916a4a3
6
+ metadata.gz: fbe89216a28483a51cccdfd71edb049ea7b89a567665ef744b67295045b62b9ff6a6ff22c9ffe45ebca1bbe54e66c913711c9c97e746a1e0779c1ff5a93c5275
7
+ data.tar.gz: d2de243a8ffc92a8a73d1bdb78cbb3e115a7549d3e46ac5d4f31705a30a9aaa206ec295aaaafb4f537ad14c21e6ced5659c7751bb771ec3cba084a80826113f9
@@ -12,6 +12,12 @@ module JSONom
12
12
  new(*args).execute
13
13
  end
14
14
 
15
+ def print_usage
16
+ puts <<-EOF
17
+ Usage: jsonom [filename] [propertyname]
18
+ EOF
19
+ end
20
+
15
21
  def execute
16
22
  opfile = nil
17
23
  opprop = nil
@@ -23,6 +29,10 @@ module JSONom
23
29
  opprop = @commands[index + 1]
24
30
  elsif(command =~ /\Adebug\_/)
25
31
  JSONParser.debug(opfile, opprop)
32
+ elsif(command == "help")
33
+ print_usage
34
+
35
+ exit 0
26
36
  end
27
37
  end
28
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonom
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
  - Kristofer Rye