rbhive 0.2.95 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/rbhive.gemspec ADDED
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rbhive/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rbhive"
8
+ spec.version = RBHive::VERSION
9
+ spec.authors = ["Forward3D","KolobocK"]
10
+ spec.description = "Simple gem for executing Hive queries and collecting the results"
11
+ spec.summary = "Simple gem for executing Hive queries"
12
+ spec.email = ["andy@forward.co.uk","kolobock@gmail.com", "developers@forward3d.com"]
13
+ spec.homepage = %q{http://github.com/forward3d/rbhive}
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency('thrift', '>= 0.9.0')
22
+ spec.add_dependency('thin', '~> 1.5.1')
23
+ spec.add_dependency('json')
24
+ end
metadata CHANGED
@@ -1,63 +1,87 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rbhive
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 95
9
- version: 0.2.95
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
12
- - Forward Internet Group
7
+ authors:
8
+ - Forward3D
9
+ - KolobocK
13
10
  autorequire:
14
11
  bindir: bin
15
12
  cert_chain: []
16
-
17
- date: 2010-12-07 00:00:00 +00:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
13
+ date: 2013-10-23 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
21
16
  name: thrift
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 0.9.0
23
+ type: :runtime
22
24
  prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- - 4
30
- - 0
31
- version: 0.4.0
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 0.9.0
31
+ - !ruby/object:Gem::Dependency
32
+ name: thin
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: 1.5.1
32
39
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: json
36
40
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- version: "0"
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 1.5.1
47
+ - !ruby/object:Gem::Dependency
48
+ name: json
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
44
55
  type: :runtime
45
- version_requirements: *id002
46
- description: Simple lib for executing Hive queries
47
- email: andy@forward.co.uk
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ description: Simple gem for executing Hive queries and collecting the results
64
+ email:
65
+ - andy@forward.co.uk
66
+ - kolobock@gmail.com
67
+ - developers@forward3d.com
48
68
  executables: []
49
-
50
69
  extensions: []
51
-
52
70
  extra_rdoc_files: []
53
-
54
- files:
71
+ files:
72
+ - .gitignore
73
+ - LICENSE
74
+ - README.md
55
75
  - lib/rbhive.rb
56
76
  - lib/rbhive/connection.rb
57
- - lib/rbhive/table_schema.rb
58
- - lib/rbhive/result_set.rb
59
77
  - lib/rbhive/explain_result.rb
78
+ - lib/rbhive/result_set.rb
60
79
  - lib/rbhive/schema_definition.rb
80
+ - lib/rbhive/t_c_l_i_connection.rb
81
+ - lib/rbhive/t_c_l_i_result_set.rb
82
+ - lib/rbhive/t_c_l_i_schema_definition.rb
83
+ - lib/rbhive/table_schema.rb
84
+ - lib/rbhive/version.rb
61
85
  - lib/thrift/facebook_service.rb
62
86
  - lib/thrift/fb303_constants.rb
63
87
  - lib/thrift/fb303_types.rb
@@ -67,41 +91,38 @@ files:
67
91
  - lib/thrift/hive_service_types.rb
68
92
  - lib/thrift/queryplan_constants.rb
69
93
  - lib/thrift/queryplan_types.rb
70
- - lib/thrift/reflection_limited_constants.rb
71
- - lib/thrift/reflection_limited_types.rb
94
+ - lib/thrift/sasl_client_transport.rb
72
95
  - lib/thrift/serde_constants.rb
73
96
  - lib/thrift/serde_types.rb
97
+ - lib/thrift/t_c_l_i_service.rb
98
+ - lib/thrift/t_c_l_i_service_constants.rb
99
+ - lib/thrift/t_c_l_i_service_types.rb
74
100
  - lib/thrift/thrift_hive.rb
75
101
  - lib/thrift/thrift_hive_metastore.rb
76
- has_rdoc: true
77
- homepage: http://github.com/forward/rbhive
78
- licenses: []
79
-
102
+ - rbhive.gemspec
103
+ homepage: http://github.com/forward3d/rbhive
104
+ licenses:
105
+ - MIT
80
106
  post_install_message:
81
107
  rdoc_options: []
82
-
83
- require_paths:
108
+ require_paths:
84
109
  - lib
85
- required_ruby_version: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- segments:
90
- - 0
91
- version: "0"
92
- required_rubygems_version: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- segments:
97
- - 0
98
- version: "0"
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
99
122
  requirements: []
100
-
101
123
  rubyforge_project:
102
- rubygems_version: 1.3.6
124
+ rubygems_version: 1.8.25
103
125
  signing_key:
104
126
  specification_version: 3
105
- summary: Simple lib for executing Hive queries
127
+ summary: Simple gem for executing Hive queries
106
128
  test_files: []
107
-
@@ -1,8 +0,0 @@
1
- #
2
- # Autogenerated by Thrift
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require File.join(File.dirname(__FILE__), *%w[reflection_limited_types])
8
-
@@ -1,150 +0,0 @@
1
- #
2
- # Autogenerated by Thrift
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
-
8
- module TTypeTag
9
- T_VOID = 1
10
- T_BOOL = 2
11
- T_BYTE = 3
12
- T_I16 = 6
13
- T_I32 = 8
14
- T_I64 = 10
15
- T_DOUBLE = 4
16
- T_STRING = 11
17
- T_STRUCT = 12
18
- T_MAP = 13
19
- T_SET = 14
20
- T_LIST = 15
21
- T_ENUM = 101
22
- T_NOT_REFLECTED = 102
23
- VALUE_MAP = {1 => "T_VOID", 2 => "T_BOOL", 3 => "T_BYTE", 6 => "T_I16", 8 => "T_I32", 10 => "T_I64", 4 => "T_DOUBLE", 11 => "T_STRING", 12 => "T_STRUCT", 13 => "T_MAP", 14 => "T_SET", 15 => "T_LIST", 101 => "T_ENUM", 102 => "T_NOT_REFLECTED"}
24
- VALID_VALUES = Set.new([T_VOID, T_BOOL, T_BYTE, T_I16, T_I32, T_I64, T_DOUBLE, T_STRING, T_STRUCT, T_MAP, T_SET, T_LIST, T_ENUM, T_NOT_REFLECTED]).freeze
25
- end
26
-
27
- class SimpleType
28
- include ::Thrift::Struct, ::Thrift::Struct_Union
29
- TTYPE = 1
30
- NAME = 2
31
-
32
- FIELDS = {
33
- TTYPE => {:type => ::Thrift::Types::I32, :name => 'ttype', :enum_class => TTypeTag},
34
- NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
35
- }
36
-
37
- def struct_fields; FIELDS; end
38
-
39
- def validate
40
- unless @ttype.nil? || TTypeTag::VALID_VALUES.include?(@ttype)
41
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field ttype!')
42
- end
43
- end
44
-
45
- ::Thrift::Struct.generate_accessors self
46
- end
47
-
48
- class ContainerType
49
- include ::Thrift::Struct, ::Thrift::Struct_Union
50
- TTYPE = 1
51
- SUBTYPE1 = 2
52
- SUBTYPE2 = 3
53
-
54
- FIELDS = {
55
- TTYPE => {:type => ::Thrift::Types::I32, :name => 'ttype', :enum_class => TTypeTag},
56
- SUBTYPE1 => {:type => ::Thrift::Types::STRUCT, :name => 'subtype1', :class => SimpleType},
57
- SUBTYPE2 => {:type => ::Thrift::Types::STRUCT, :name => 'subtype2', :class => SimpleType, :optional => true}
58
- }
59
-
60
- def struct_fields; FIELDS; end
61
-
62
- def validate
63
- unless @ttype.nil? || TTypeTag::VALID_VALUES.include?(@ttype)
64
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field ttype!')
65
- end
66
- end
67
-
68
- ::Thrift::Struct.generate_accessors self
69
- end
70
-
71
- class ThriftType
72
- include ::Thrift::Struct, ::Thrift::Struct_Union
73
- IS_CONTAINER = 1
74
- SIMPLE_TYPE = 2
75
- CONTAINER_TYPE = 3
76
-
77
- FIELDS = {
78
- IS_CONTAINER => {:type => ::Thrift::Types::BOOL, :name => 'is_container'},
79
- SIMPLE_TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'simple_type', :class => SimpleType, :optional => true},
80
- CONTAINER_TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'container_type', :class => ContainerType, :optional => true}
81
- }
82
-
83
- def struct_fields; FIELDS; end
84
-
85
- def validate
86
- end
87
-
88
- ::Thrift::Struct.generate_accessors self
89
- end
90
-
91
- class Argument
92
- include ::Thrift::Struct, ::Thrift::Struct_Union
93
- KEY = 1
94
- NAME = 2
95
- TYPE = 3
96
-
97
- FIELDS = {
98
- KEY => {:type => ::Thrift::Types::I16, :name => 'key'},
99
- NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
100
- TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'type', :class => ThriftType}
101
- }
102
-
103
- def struct_fields; FIELDS; end
104
-
105
- def validate
106
- end
107
-
108
- ::Thrift::Struct.generate_accessors self
109
- end
110
-
111
- class Method
112
- include ::Thrift::Struct, ::Thrift::Struct_Union
113
- NAME = 1
114
- RETURN_TYPE = 2
115
- ARGUMENTS = 3
116
-
117
- FIELDS = {
118
- NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
119
- RETURN_TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'return_type', :class => ThriftType},
120
- ARGUMENTS => {:type => ::Thrift::Types::LIST, :name => 'arguments', :element => {:type => ::Thrift::Types::STRUCT, :class => Argument}}
121
- }
122
-
123
- def struct_fields; FIELDS; end
124
-
125
- def validate
126
- end
127
-
128
- ::Thrift::Struct.generate_accessors self
129
- end
130
-
131
- class Service
132
- include ::Thrift::Struct, ::Thrift::Struct_Union
133
- NAME = 1
134
- METHODS = 2
135
- FULLY_REFLECTED = 3
136
-
137
- FIELDS = {
138
- NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
139
- METHODS => {:type => ::Thrift::Types::LIST, :name => 'methods', :element => {:type => ::Thrift::Types::STRUCT, :class => Method}},
140
- FULLY_REFLECTED => {:type => ::Thrift::Types::BOOL, :name => 'fully_reflected'}
141
- }
142
-
143
- def struct_fields; FIELDS; end
144
-
145
- def validate
146
- end
147
-
148
- ::Thrift::Struct.generate_accessors self
149
- end
150
-