bixby-common 0.3.15 → 0.3.16
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/Gemfile.lock +19 -19
- data/LICENSE +21 -0
- data/VERSION +1 -1
- data/bixby-common.gemspec +22 -19
- data/lib/{bixby_common → bixby-common}/command_response.rb +1 -1
- data/lib/{bixby_common → bixby-common}/util/log.rb +1 -1
- data/lib/bixby-common.rb +28 -1
- data/test/helper.rb +1 -1
- metadata +22 -21
- data/lib/bixby_common.rb +0 -28
- /data/lib/{bixby_common → bixby-common}/api/json_request.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/api/json_response.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/bixby.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/command_spec.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/exception/bundle_not_found.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/exception/command_exception.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/exception/command_not_found.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/exception/encryption_error.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/util/crypto_util.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/util/debug.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/util/hashify.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/util/http_client.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/util/jsonify.rb +0 -0
- /data/lib/{bixby_common → bixby-common}/util/log/filtering_layout.rb +0 -0
data/Gemfile.lock
CHANGED
|
@@ -44,43 +44,43 @@ GIT
|
|
|
44
44
|
GEM
|
|
45
45
|
remote: https://rubygems.org/
|
|
46
46
|
specs:
|
|
47
|
-
addressable (2.3.
|
|
47
|
+
addressable (2.3.5)
|
|
48
48
|
ansi (1.4.3)
|
|
49
49
|
awesome_print (1.1.0)
|
|
50
50
|
bouncy-castle-java (1.5.0147)
|
|
51
51
|
coderay (1.0.9)
|
|
52
52
|
colorize (0.5.8)
|
|
53
53
|
columnize (0.3.6)
|
|
54
|
-
crack (0.4.
|
|
54
|
+
crack (0.4.1)
|
|
55
55
|
safe_yaml (~> 0.9.0)
|
|
56
56
|
curb (0.8.4)
|
|
57
|
-
debugger (1.6.
|
|
57
|
+
debugger (1.6.1)
|
|
58
58
|
columnize (>= 0.3.1)
|
|
59
59
|
debugger-linecache (~> 1.2.0)
|
|
60
|
-
debugger-ruby_core_source (~> 1.2.
|
|
60
|
+
debugger-ruby_core_source (~> 1.2.3)
|
|
61
61
|
debugger-linecache (1.2.0)
|
|
62
62
|
debugger-pry (0.1.1)
|
|
63
63
|
debugger (~> 1)
|
|
64
64
|
pry (>= 0.9.9)
|
|
65
|
-
debugger-ruby_core_source (1.2.
|
|
65
|
+
debugger-ruby_core_source (1.2.3)
|
|
66
66
|
ffi (1.9.0)
|
|
67
67
|
ffi (1.9.0-java)
|
|
68
68
|
formatador (0.2.4)
|
|
69
69
|
git (1.2.5)
|
|
70
70
|
growl (1.0.3)
|
|
71
|
-
guard (1.8.
|
|
71
|
+
guard (1.8.2)
|
|
72
72
|
formatador (>= 0.2.4)
|
|
73
73
|
listen (>= 1.0.0)
|
|
74
74
|
lumberjack (>= 1.0.2)
|
|
75
75
|
pry (>= 0.9.10)
|
|
76
76
|
thor (>= 0.14.6)
|
|
77
77
|
hirb (0.7.1)
|
|
78
|
-
httpclient (2.3.
|
|
78
|
+
httpclient (2.3.4.1)
|
|
79
79
|
jruby-openssl (0.8.8)
|
|
80
80
|
bouncy-castle-java (>= 1.5.0147)
|
|
81
81
|
json (1.8.0)
|
|
82
82
|
json (1.8.0-java)
|
|
83
|
-
listen (1.2.
|
|
83
|
+
listen (1.2.3)
|
|
84
84
|
rb-fsevent (>= 0.9.3)
|
|
85
85
|
rb-inotify (>= 0.9)
|
|
86
86
|
rb-kqueue (>= 0.2)
|
|
@@ -88,14 +88,14 @@ GEM
|
|
|
88
88
|
logging (1.8.1)
|
|
89
89
|
little-plugger (>= 1.1.3)
|
|
90
90
|
multi_json (>= 1.3.6)
|
|
91
|
-
lumberjack (1.0.
|
|
91
|
+
lumberjack (1.0.4)
|
|
92
92
|
metaclass (0.0.1)
|
|
93
|
-
method_source (0.8.
|
|
94
|
-
minitest (4.7.
|
|
93
|
+
method_source (0.8.2)
|
|
94
|
+
minitest (4.7.5)
|
|
95
95
|
mocha (0.14.0)
|
|
96
96
|
metaclass (~> 0.0.1)
|
|
97
|
-
multi_json (1.7.
|
|
98
|
-
oj (2.1.
|
|
97
|
+
multi_json (1.7.9)
|
|
98
|
+
oj (2.1.4)
|
|
99
99
|
pry (0.9.12.2)
|
|
100
100
|
coderay (~> 1.0.5)
|
|
101
101
|
method_source (~> 0.8)
|
|
@@ -106,18 +106,18 @@ GEM
|
|
|
106
106
|
slop (~> 3.4)
|
|
107
107
|
spoon (~> 0.0)
|
|
108
108
|
rack (1.5.2)
|
|
109
|
-
rake (10.0
|
|
109
|
+
rake (10.1.0)
|
|
110
110
|
rb-fchange (0.0.6)
|
|
111
111
|
ffi
|
|
112
112
|
rb-fsevent (0.9.3)
|
|
113
|
-
rb-inotify (0.9.
|
|
113
|
+
rb-inotify (0.9.1)
|
|
114
114
|
ffi (>= 0.5.0)
|
|
115
115
|
rb-kqueue (0.2.0)
|
|
116
116
|
ffi (>= 0.5.0)
|
|
117
117
|
rcov (1.0.0)
|
|
118
118
|
rdoc (4.0.1)
|
|
119
119
|
json (~> 1.4)
|
|
120
|
-
safe_yaml (0.9.
|
|
120
|
+
safe_yaml (0.9.5)
|
|
121
121
|
simplecov-console (0.1.1)
|
|
122
122
|
colorize
|
|
123
123
|
hirb
|
|
@@ -125,17 +125,17 @@ GEM
|
|
|
125
125
|
simplecov-html (0.7.1)
|
|
126
126
|
single_test (0.5.2)
|
|
127
127
|
rake (> 0.9)
|
|
128
|
-
slop (3.4.
|
|
128
|
+
slop (3.4.6)
|
|
129
129
|
spoon (0.0.4)
|
|
130
130
|
ffi
|
|
131
131
|
test-unit (2.5.5)
|
|
132
132
|
thor (0.18.1)
|
|
133
133
|
turn (0.9.6)
|
|
134
134
|
ansi
|
|
135
|
-
webmock (1.
|
|
135
|
+
webmock (1.13.0)
|
|
136
136
|
addressable (>= 2.2.7)
|
|
137
137
|
crack (>= 0.3.2)
|
|
138
|
-
yard (0.8.
|
|
138
|
+
yard (0.8.7)
|
|
139
139
|
|
|
140
140
|
PLATFORMS
|
|
141
141
|
java
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
The MIT License (MIT)
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2013 Pixelcop Research, Inc.
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
7
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
8
|
+
the Software without restriction, including without limitation the rights to
|
|
9
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
10
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
11
|
+
subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
18
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
19
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
20
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
21
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.16
|
data/bixby-common.gemspec
CHANGED
|
@@ -5,38 +5,41 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "bixby-common"
|
|
8
|
-
s.version = "0.3.
|
|
8
|
+
s.version = "0.3.16"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Chetan Sarva"]
|
|
12
|
-
s.date = "2013-
|
|
12
|
+
s.date = "2013-08-13"
|
|
13
13
|
s.description = "Bixby Common files/libs"
|
|
14
14
|
s.email = "chetan@pixelcop.net"
|
|
15
|
+
s.extra_rdoc_files = [
|
|
16
|
+
"LICENSE"
|
|
17
|
+
]
|
|
15
18
|
s.files = [
|
|
16
19
|
".document",
|
|
17
20
|
"Gemfile",
|
|
18
21
|
"Gemfile.lock",
|
|
22
|
+
"LICENSE",
|
|
19
23
|
"Rakefile",
|
|
20
24
|
"VERSION",
|
|
21
25
|
"bixby-common.gemspec",
|
|
22
26
|
"lib/bixby-common.rb",
|
|
23
|
-
"lib/
|
|
24
|
-
"lib/
|
|
25
|
-
"lib/
|
|
26
|
-
"lib/
|
|
27
|
-
"lib/
|
|
28
|
-
"lib/
|
|
29
|
-
"lib/
|
|
30
|
-
"lib/
|
|
31
|
-
"lib/
|
|
32
|
-
"lib/
|
|
33
|
-
"lib/
|
|
34
|
-
"lib/
|
|
35
|
-
"lib/
|
|
36
|
-
"lib/
|
|
37
|
-
"lib/
|
|
38
|
-
"lib/
|
|
39
|
-
"lib/bixby_common/util/log/filtering_layout.rb",
|
|
27
|
+
"lib/bixby-common/api/json_request.rb",
|
|
28
|
+
"lib/bixby-common/api/json_response.rb",
|
|
29
|
+
"lib/bixby-common/bixby.rb",
|
|
30
|
+
"lib/bixby-common/command_response.rb",
|
|
31
|
+
"lib/bixby-common/command_spec.rb",
|
|
32
|
+
"lib/bixby-common/exception/bundle_not_found.rb",
|
|
33
|
+
"lib/bixby-common/exception/command_exception.rb",
|
|
34
|
+
"lib/bixby-common/exception/command_not_found.rb",
|
|
35
|
+
"lib/bixby-common/exception/encryption_error.rb",
|
|
36
|
+
"lib/bixby-common/util/crypto_util.rb",
|
|
37
|
+
"lib/bixby-common/util/debug.rb",
|
|
38
|
+
"lib/bixby-common/util/hashify.rb",
|
|
39
|
+
"lib/bixby-common/util/http_client.rb",
|
|
40
|
+
"lib/bixby-common/util/jsonify.rb",
|
|
41
|
+
"lib/bixby-common/util/log.rb",
|
|
42
|
+
"lib/bixby-common/util/log/filtering_layout.rb",
|
|
40
43
|
"test/bixby_common_test.rb",
|
|
41
44
|
"test/command_response_test.rb",
|
|
42
45
|
"test/command_spec_test.rb",
|
|
@@ -24,7 +24,7 @@ class CommandResponse
|
|
|
24
24
|
#
|
|
25
25
|
# @return [JsonResponse]
|
|
26
26
|
def to_json_response
|
|
27
|
-
return JsonResponse.new((status == 0 ? "success" : "fail"), nil, self)
|
|
27
|
+
return JsonResponse.new((status == 0 ? "success" : "fail"), nil, self.to_hash)
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def initialize(params = nil)
|
data/lib/bixby-common.rb
CHANGED
|
@@ -1 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
# TODO temp fix to make sure we use oj
|
|
3
|
+
require "oj"
|
|
4
|
+
require "multi_json"
|
|
5
|
+
|
|
6
|
+
require "bixby-common/bixby"
|
|
7
|
+
|
|
8
|
+
module Bixby
|
|
9
|
+
|
|
10
|
+
autoload :CommandResponse, "bixby-common/command_response"
|
|
11
|
+
autoload :CommandSpec, "bixby-common/command_spec"
|
|
12
|
+
|
|
13
|
+
autoload :JsonRequest, "bixby-common/api/json_request"
|
|
14
|
+
autoload :JsonResponse, "bixby-common/api/json_response"
|
|
15
|
+
|
|
16
|
+
autoload :BundleNotFound, "bixby-common/exception/bundle_not_found"
|
|
17
|
+
autoload :CommandNotFound, "bixby-common/exception/command_not_found"
|
|
18
|
+
autoload :CommandException, "bixby-common/exception/command_exception"
|
|
19
|
+
autoload :EncryptionError, "bixby-common/exception/encryption_error"
|
|
20
|
+
|
|
21
|
+
autoload :CryptoUtil, "bixby-common/util/crypto_util"
|
|
22
|
+
autoload :HttpClient, "bixby-common/util/http_client"
|
|
23
|
+
autoload :Jsonify, "bixby-common/util/jsonify"
|
|
24
|
+
autoload :Hashify, "bixby-common/util/hashify"
|
|
25
|
+
autoload :Log, "bixby-common/util/log"
|
|
26
|
+
autoload :Debug, "bixby-common/util/debug"
|
|
27
|
+
|
|
28
|
+
end
|
data/test/helper.rb
CHANGED
|
@@ -27,7 +27,7 @@ require 'mocha/setup'
|
|
|
27
27
|
|
|
28
28
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
29
29
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
30
|
-
require '
|
|
30
|
+
require 'bixby-common'
|
|
31
31
|
|
|
32
32
|
Dir.glob(File.dirname(__FILE__) + "/../lib/**/*.rb").each{ |f| require f }
|
|
33
33
|
|
metadata
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
name: bixby-common
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.3.
|
|
5
|
+
version: 0.3.16
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Chetan Sarva
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-08-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: multi_json
|
|
@@ -383,32 +383,33 @@ description: Bixby Common files/libs
|
|
|
383
383
|
email: chetan@pixelcop.net
|
|
384
384
|
executables: []
|
|
385
385
|
extensions: []
|
|
386
|
-
extra_rdoc_files:
|
|
386
|
+
extra_rdoc_files:
|
|
387
|
+
- LICENSE
|
|
387
388
|
files:
|
|
388
389
|
- .document
|
|
389
390
|
- Gemfile
|
|
390
391
|
- Gemfile.lock
|
|
392
|
+
- LICENSE
|
|
391
393
|
- Rakefile
|
|
392
394
|
- VERSION
|
|
393
395
|
- bixby-common.gemspec
|
|
394
396
|
- lib/bixby-common.rb
|
|
395
|
-
- lib/
|
|
396
|
-
- lib/
|
|
397
|
-
- lib/
|
|
398
|
-
- lib/
|
|
399
|
-
- lib/
|
|
400
|
-
- lib/
|
|
401
|
-
- lib/
|
|
402
|
-
- lib/
|
|
403
|
-
- lib/
|
|
404
|
-
- lib/
|
|
405
|
-
- lib/
|
|
406
|
-
- lib/
|
|
407
|
-
- lib/
|
|
408
|
-
- lib/
|
|
409
|
-
- lib/
|
|
410
|
-
- lib/
|
|
411
|
-
- lib/bixby_common/util/log/filtering_layout.rb
|
|
397
|
+
- lib/bixby-common/api/json_request.rb
|
|
398
|
+
- lib/bixby-common/api/json_response.rb
|
|
399
|
+
- lib/bixby-common/bixby.rb
|
|
400
|
+
- lib/bixby-common/command_response.rb
|
|
401
|
+
- lib/bixby-common/command_spec.rb
|
|
402
|
+
- lib/bixby-common/exception/bundle_not_found.rb
|
|
403
|
+
- lib/bixby-common/exception/command_exception.rb
|
|
404
|
+
- lib/bixby-common/exception/command_not_found.rb
|
|
405
|
+
- lib/bixby-common/exception/encryption_error.rb
|
|
406
|
+
- lib/bixby-common/util/crypto_util.rb
|
|
407
|
+
- lib/bixby-common/util/debug.rb
|
|
408
|
+
- lib/bixby-common/util/hashify.rb
|
|
409
|
+
- lib/bixby-common/util/http_client.rb
|
|
410
|
+
- lib/bixby-common/util/jsonify.rb
|
|
411
|
+
- lib/bixby-common/util/log.rb
|
|
412
|
+
- lib/bixby-common/util/log/filtering_layout.rb
|
|
412
413
|
- test/bixby_common_test.rb
|
|
413
414
|
- test/command_response_test.rb
|
|
414
415
|
- test/command_spec_test.rb
|
|
@@ -431,7 +432,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
431
432
|
requirements:
|
|
432
433
|
- - ! '>='
|
|
433
434
|
- !ruby/object:Gem::Version
|
|
434
|
-
hash:
|
|
435
|
+
hash: 3750030930207905689
|
|
435
436
|
segments:
|
|
436
437
|
- 0
|
|
437
438
|
version: '0'
|
data/lib/bixby_common.rb
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# TODO temp fix to make sure we use oj
|
|
3
|
-
require "oj"
|
|
4
|
-
require "multi_json"
|
|
5
|
-
|
|
6
|
-
require "bixby_common/bixby"
|
|
7
|
-
|
|
8
|
-
module Bixby
|
|
9
|
-
|
|
10
|
-
autoload :CommandResponse, "bixby_common/command_response"
|
|
11
|
-
autoload :CommandSpec, "bixby_common/command_spec"
|
|
12
|
-
|
|
13
|
-
autoload :JsonRequest, "bixby_common/api/json_request"
|
|
14
|
-
autoload :JsonResponse, "bixby_common/api/json_response"
|
|
15
|
-
|
|
16
|
-
autoload :BundleNotFound, "bixby_common/exception/bundle_not_found"
|
|
17
|
-
autoload :CommandNotFound, "bixby_common/exception/command_not_found"
|
|
18
|
-
autoload :CommandException, "bixby_common/exception/command_exception"
|
|
19
|
-
autoload :EncryptionError, "bixby_common/exception/encryption_error"
|
|
20
|
-
|
|
21
|
-
autoload :CryptoUtil, "bixby_common/util/crypto_util"
|
|
22
|
-
autoload :HttpClient, "bixby_common/util/http_client"
|
|
23
|
-
autoload :Jsonify, "bixby_common/util/jsonify"
|
|
24
|
-
autoload :Hashify, "bixby_common/util/hashify"
|
|
25
|
-
autoload :Log, "bixby_common/util/log"
|
|
26
|
-
autoload :Debug, "bixby_common/util/debug"
|
|
27
|
-
|
|
28
|
-
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|