jr-cli 0.3.0 → 0.3.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: bf4bfddefb27afc5dbc464a2ae44bbc536dadd0d
4
- data.tar.gz: 3af064b0674b03eccd4ea025f4d70e956e75e8ad
3
+ metadata.gz: a2442d68bf0d7ae265d19dddfd2254a05a3d7da4
4
+ data.tar.gz: f3c6eb02168b7d9f0610b311c80b664212a328de
5
5
  SHA512:
6
- metadata.gz: 31956edb39542e71796909a3b3c5c817f1b2073f1c98573deaf5ddc5a3835041e5708daeee7495dd0639db64cb7bd8f421f85b36e294c2522f32095b453ba915
7
- data.tar.gz: 64e5a7e4249d42a2567e57f664d28427454c7c5ec0e9b1407903a7db9bc50463238807c74b7f0fd1903b98006044d51d4dda26ef7e0f6a17f99b613f36757c77
6
+ metadata.gz: dadf8e4b869090d35222ef185e8b6408712ec677a488ea17bbd32cbcabe8982c32de577f51e3cf581a94dddd9d23b5009aba272d8760f213bb2f6499d0c598fa
7
+ data.tar.gz: c1eed8b3f7804b65934b5a87405dfdf35de2c39ee0139c849b9b73b50dac667ad367adaa6c381de0004373770b65f3a3e3d155bea701a5805c37d465b6e9efff
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.1 (2015-08-29)
2
+
3
+ * Any `Enumerable` object except for `Hash` is enumerated
4
+
1
5
  ## 0.3.0 (2015-08-28)
2
6
 
3
7
  * Add `--raw-input` option
data/Guardfile CHANGED
@@ -24,6 +24,8 @@ guard :test do
24
24
  end
25
25
 
26
26
  guard "cucumber" do
27
+ watch('bin/jr') { "features" }
28
+
27
29
  watch(%r{^lib/.+\.rb$}) { "features" }
28
30
 
29
31
  watch(%r{^features/.+\.feature$})
data/bin/jr CHANGED
@@ -76,7 +76,7 @@ print_json = ->(data) do
76
76
  end
77
77
  end
78
78
 
79
- if result.is_a? Array or result.kind_of? Enumerator
79
+ if result.is_a? Enumerable and !result.is_a? Hash
80
80
  result.each do |data|
81
81
  print_json.call data
82
82
  end
@@ -350,3 +350,23 @@ Feature: JSON processing
350
350
  "03"
351
351
 
352
352
  """
353
+
354
+ Scenario: Enumerate Range object.
355
+ When I run `jr --null-input '1..3'`
356
+ Then the output should contain exactly:
357
+ """
358
+ 1
359
+ 2
360
+ 3
361
+
362
+ """
363
+
364
+ Scenario: Hash is not enumerated.
365
+ When I run `jr --null-input '{foo: "FOO"}'`
366
+ Then the output should contain exactly:
367
+ """
368
+ {
369
+ "foo": "FOO"
370
+ }
371
+
372
+ """
@@ -1,5 +1,5 @@
1
1
  module Jr
2
2
  module Cli
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jr-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuya Takeyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-27 00:00:00.000000000 Z
11
+ date: 2015-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yajl-ruby