sycl 1.4 → 1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/sycl +1 -1
- data/lib/sycl.rb +7 -1
- metadata +6 -6
data/bin/sycl
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# sycl - command line YAML manipulation tool using Sycl library
|
|
3
3
|
# Andrew Ho (ho@groupon.com)
|
|
4
4
|
#
|
|
5
|
-
# Copyright (c) 2012, Groupon, Inc.
|
|
5
|
+
# Copyright (c) 2012-2013, Groupon, Inc.
|
|
6
6
|
# All rights reserved.
|
|
7
7
|
#
|
|
8
8
|
# Redistribution and use in source and binary forms, with or without
|
data/lib/sycl.rb
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
#
|
|
6
6
|
# == License
|
|
7
7
|
#
|
|
8
|
-
# Copyright (c) 2012, Groupon, Inc.
|
|
8
|
+
# Copyright (c) 2012-2013, Groupon, Inc.
|
|
9
9
|
# All rights reserved.
|
|
10
10
|
#
|
|
11
11
|
# Redistribution and use in source and binary forms, with or without
|
|
@@ -585,6 +585,12 @@ module Sycl
|
|
|
585
585
|
other_key = other_keys.shift
|
|
586
586
|
if self_key != other_key
|
|
587
587
|
return self_key <=> other_key
|
|
588
|
+
elsif other.is_a?(Hash) && self[self_key] != other[other_key]
|
|
589
|
+
if self[self_ key].respond_to?(:<=>)
|
|
590
|
+
return self[self_key] <=> other[other_key]
|
|
591
|
+
else
|
|
592
|
+
return self[self_key].to_s <=> other[other_key].to_s
|
|
593
|
+
end
|
|
588
594
|
end
|
|
589
595
|
end
|
|
590
596
|
end
|
metadata
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sycl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 5
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: "1.
|
|
8
|
+
- 5
|
|
9
|
+
version: "1.5"
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Andrew Ho
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2013-07-
|
|
17
|
+
date: 2013-07-18 00:00:00 +00:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies: []
|
|
20
20
|
|
|
@@ -31,8 +31,8 @@ files:
|
|
|
31
31
|
- bin/sycl
|
|
32
32
|
has_rdoc: true
|
|
33
33
|
homepage: https://github.com/groupon/sycl
|
|
34
|
-
licenses:
|
|
35
|
-
|
|
34
|
+
licenses:
|
|
35
|
+
- New-BSD
|
|
36
36
|
post_install_message:
|
|
37
37
|
rdoc_options: []
|
|
38
38
|
|