univedo-shell 0.2.0 → 0.3.0

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: 510f5a1b976b2cd543c245c88ea29ebeeeec2cf4
4
- data.tar.gz: 15a8c1f41deefd6063490b7e9e04bef240c204e0
3
+ metadata.gz: 1a549d77bbddc37cb8a19d1397be9fdc0efbe009
4
+ data.tar.gz: 3eb3fecaa80436fd522183bd81a903c050e38161
5
5
  SHA512:
6
- metadata.gz: f43623ad8a664385491b5cc670cc66e5aaa8e7f479ef08c11d1760a3269f1a55785f441bfe6336fb56613411085a2afb5ed01236a6385e9c39220002fec45e7a
7
- data.tar.gz: 839c2b94e34d5fe1f1bdec9c51516910d953503e0b397a159682ceff79d20fc673ab392bbf24313cfbeb1fb70edebaae0bfc64da0ebd7aa59f2cab482a2f51a3
6
+ metadata.gz: 145c2ace2fb65cf675cc466748d34aef2c686ff2fedcd40996e6edfabbe689435b1afb88c34f32c58d7ade530d00280b93c9b4907d278b7e8413d2b7c358e8d1
7
+ data.tar.gz: f3ab6a2b4f0b318a5aca30494e83ad435d6362060a83e9d1cfc9b4ecbefce617733fabe320914601a3be219ebdac9212af2f2e09a7e655356017a42802d32380
data/bin/univedo-shell CHANGED
@@ -21,7 +21,7 @@ end
21
21
 
22
22
  options = {}
23
23
  op = OptionParser.new do |opts|
24
- opts.banner = "Usage: univedo-shell [options] <url> <perspective>"
24
+ opts.banner = "Usage: univedo-shell [options] <url> <bucket> <perspective>"
25
25
 
26
26
  opts.on "-u", "--uts [UTS]", "Send UTS file to server" do |path|
27
27
  options[:uts] = path
@@ -34,11 +34,12 @@ op = OptionParser.new do |opts|
34
34
  end
35
35
  op.parse!
36
36
 
37
- if ARGV.count != 2
37
+ if ARGV.count != 3
38
38
  puts op
39
39
  exit 1
40
40
  end
41
41
  options[:url] = ARGV.shift
42
+ options[:bucket] = ARGV.shift
42
43
  options[:perspective] = ARGV.shift
43
44
 
44
45
 
@@ -46,7 +47,8 @@ options[:perspective] = ARGV.shift
46
47
  # Univedo connection
47
48
  #################################
48
49
 
49
- session = Runivedo::Session.new options[:url], username: "marvin"
50
+ connection = Runivedo::Connection.new options[:url]
51
+ session = connection.get_session(options[:bucket], {})
50
52
  puts "Connected."
51
53
  session.apply_uts(File.read(options[:uts])) if options[:uts]
52
54
  perspective = session.get_perspective(options[:perspective])
data/lib/univedo-shell.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module UnivedoShell
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.add_dependency "coolline", "~> 0.4"
21
21
  spec.add_dependency "coderay", "~> 1.1"
22
22
  spec.add_dependency "terminal-table", "~> 1.4"
23
- spec.add_dependency "runivedo", "~> 0.2.0"
23
+ spec.add_dependency "runivedo", "~> 0.3.0"
24
24
  spec.add_dependency "term-ansicolor", "~> 1.3"
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.6"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: univedo-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Clemente
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-16 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coolline
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.0
61
+ version: 0.3.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.2.0
68
+ version: 0.3.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: term-ansicolor
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  requirements: []
146
146
  rubyforge_project:
147
- rubygems_version: 2.2.2
147
+ rubygems_version: 2.4.1
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Simple SQL shell for debugging univedo.