td 0.10.71 → 0.10.72

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 756988829cba729420d255670f1b7db27c7f3bc3
4
+ data.tar.gz: ccf55b0be4c0ee2fd934ad822034336ad33a80da
5
+ SHA512:
6
+ metadata.gz: 87c00a05581a54d35b4db41969a74156e5c522dbb3285dc9c615a4619e33dc6efd715f8c58b72ed82d19a841d80967be641933b93b0ab12c7af0292ca51b5faa
7
+ data.tar.gz: 735d45002439d770e565521033c9f470e846b93a4a3d904048c50fdb12f7b93c0c792787ea535aae923c1bc28adc2571b7672a0d3c36003dd23e332b4314e525
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ == 2013-02-27 version 0.10.72
2
+
3
+ * Add -q(--query) option to query subcommand
4
+ * Hide password input on Windows
5
+ * 'td help sample' is now available
6
+
1
7
  == 2013-02-05 version 0.10.71
2
8
 
3
9
  * bulk_import:upload_parts: improved retry algorithm to use exponential wait time
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ def version
14
14
  end
15
15
 
16
16
  task "jar" do
17
- system('./build/update-td.sh')
17
+ system('./build/update-td-bulk-import-java.sh')
18
18
  end
19
19
 
20
20
  def project_root_path(path)
@@ -0,0 +1,38 @@
1
+ #!/bin/bash
2
+ cd "$(dirname $0)"
3
+ chrev="$1"
4
+
5
+ if [ -d td-bulk-import-java/.git ];then
6
+ rm -rf td-bulk-import-java/*
7
+ cd td-bulk-import-java
8
+ git checkout . || exit 1
9
+ git pull || exit 1
10
+ else
11
+ rm -rf td-bulk-import-java/
12
+ git clone git@github.com:treasure-data/td-bulk-import-java.git td-bulk-import-java || exit 1
13
+ cd td-bulk-import-java
14
+ fi
15
+ git checkout master
16
+
17
+ if [ -n "$chrev" ];then
18
+ git checkout $chrev
19
+ fi
20
+
21
+ revname="$(git show --pretty=format:'%H %ad' | head -n 1)"
22
+ vername="0.1.2-SNAPSHOT"
23
+
24
+ mvn package -Dmaven.test.skip=true || exit 1
25
+ cp target/td-bulk-import-${vername}.jar ../../java/td-bulk-import-${vername}.jar
26
+
27
+ if [ -n "$chrev" ];then
28
+ git checkout master
29
+ fi
30
+
31
+ cd ../../
32
+
33
+ echo "$revname" > java/td-bulk-import-java.version
34
+
35
+ echo ""
36
+ echo "git commit ./java -m \"updated td-bulk-import-java $revname\""
37
+ git commit ./java/td-bulk-import-${vername}.jar ./java/td-bulk-import-java.version -m "updated td-bulk-import-java $revname" || exit 1
38
+
@@ -0,0 +1 @@
1
+ 95b0662ffcf4f2407c6044478abd288a98be448d Sat Feb 23 22:43:05 2013 +0900
@@ -1,3 +1,4 @@
1
+ require 'td/helpers'
1
2
 
2
3
  module TreasureData
3
4
  module Command
@@ -50,10 +51,8 @@ module Command
50
51
 
51
52
  3.times do
52
53
  begin
53
- system "stty -echo" # TODO termios
54
54
  print "Password (typing will be hidden): "
55
- password = STDIN.gets || ""
56
- password = password[0..-2] # strip \n
55
+ password = get_password
57
56
  rescue Interrupt
58
57
  $stderr.print "\ncanceled."
59
58
  exit 1
@@ -98,6 +97,38 @@ module Command
98
97
  $stderr.puts "Storage: #{a.storage_size_string}"
99
98
  end
100
99
 
100
+ private
101
+
102
+ if Helpers.on_windows?
103
+ require 'Win32API'
104
+
105
+ def get_char
106
+ Win32API.new('msvcrt', '_getch', [], 'L').Call
107
+ rescue Exception
108
+ Win32API.new('crtdll', '_getch', [], 'L').Call
109
+ end
110
+
111
+ def get_password
112
+ password = ''
113
+
114
+ while c = get_char
115
+ break if c == 13 || c == 10 # CR or NL
116
+ if c == 127 || c == 8 # 128: backspace, 8: delete
117
+ password.slice!(-1, 1)
118
+ else
119
+ password << c.chr
120
+ end
121
+ end
122
+
123
+ password
124
+ end
125
+ else
126
+ def get_password
127
+ system "stty -echo" # TODO termios
128
+ password = STDIN.gets || ""
129
+ password[0..-2] # strip \n
130
+ end
131
+ end
101
132
  end
102
133
  end
103
134
 
@@ -408,7 +408,105 @@ module Command
408
408
  }
409
409
  end
410
410
 
411
+ def bulk_import_upload_parts2(op)
412
+ upload_opts = upload_parts2_config(op)
413
+ prepare_opts = prepare_parts2_config(op)
414
+
415
+ # java command
416
+ javacmd = 'java'
417
+
418
+ # make jvm options
419
+ jvm_opts = []
420
+ jvm_opts << "-Xmx1024m" # TODO
421
+
422
+ # find java/*.jar and td.jar
423
+ base_path = File.expand_path('../../..', File.dirname(__FILE__)) # TODO
424
+ libjars = Dir.glob("#{base_path}/java/**/*.jar")
425
+ found = libjars.find { |path| File.basename(path) =~ /^td-bulk-import/ }
426
+ td_command_jar = libjars.delete(found)
427
+
428
+ # make application options
429
+ app_opts = []
430
+ app_opts << "-cp \"#{td_command_jar}\""
431
+
432
+ # make system properties
433
+ sysprops = []
434
+ sysprops.concat(upload_parts2_sysprops(opts))
435
+ sysprops.concat(prepare_parts2_sysprops(opts))
436
+
437
+ # make application arguments
438
+ app_args << 'com.treasure_data.tools.BulkImportTool'
439
+ app_args << 'upload_parts'
440
+ app_args << files
441
+
442
+ command = "#{javacmd} #{jvm_opts.join(' ')} #{app_opts.join(' ')} #{sysprops.join(' ')} #{app_args.join(' ')}"
443
+
444
+ exec command
445
+ end
446
+
411
447
  def bulk_import_prepare_parts2(op)
448
+ opts = prepare_parts2_config(op)
449
+
450
+ # java command
451
+ javacmd = 'java'
452
+
453
+ # make jvm options
454
+ jvm_opts = []
455
+ jvm_opts << "-Xmx1024m" # TODO
456
+
457
+ # find java/*.jar and td.jar
458
+ base_path = File.expand_path('../../..', File.dirname(__FILE__)) # TODO
459
+ libjars = Dir.glob("#{base_path}/java/**/*.jar")
460
+ found = libjars.find { |path| File.basename(path) =~ /^td-bulk-import/ }
461
+ td_command_jar = libjars.delete(found)
462
+
463
+ # make application options
464
+ app_opts = []
465
+ app_opts << "-cp \"#{td_command_jar}\""
466
+
467
+ # make system properties
468
+ sysprops = []
469
+ sysprops.concat(prepare_parts2_sysprops(opts))
470
+
471
+ # make application arguments
472
+ app_args = []
473
+ app_args << 'com.treasure_data.tools.BulkImportTool'
474
+ app_args << 'prepare_parts'
475
+ app_args << files
476
+
477
+ # TODO consider parameters including spaces; don't use join(' ')
478
+ command = "#{javacmd} #{jvm_opts.join(' ')} #{app_opts.join(' ')} #{sysprops.join(' ')} #{app_args.join(' ')}"
479
+
480
+ exec command
481
+ end
482
+
483
+ private
484
+ def prepare_parts2_sysprops(opts)
485
+ sysprops = []
486
+ sysprops << "-Dtd.bulk_import.prepare_parts.format=#{opts[0]}"
487
+ sysprops << "-Dtd.bulk_import.prepare_parts.columns=#{opts[1]}" if opts[1]
488
+ sysprops << "-Dtd.bulk_import.prepare_parts.column-types=#{opts[2]}" if opts[2]
489
+ sysprops << "-Dtd.bulk_import.prepare_parts.column-header=#{opts[3]}" if opts[3]
490
+ sysprops << "-Dtd.bulk_import.prepare_parts.time-column=#{opts[4]}"
491
+ sysprops << "-Dtd.bulk_import.prepare_parts.time-value=#{opts[5].to_s}" if opts[5]
492
+ sysprops << "-Dtd.bulk_import.prepare_parts.split-size=#{opts[6]}"
493
+ sysprops << "-Dtd.bulk_import.prepare_parts.output-dir=#{opts[7]}"
494
+ sysprops
495
+ end
496
+
497
+ private
498
+ def upload_parts2_sysprops(opts)
499
+ sysprops = []
500
+ sysprops << "td.bulk_import.upload_parts.parallel=#{opts[0]}"
501
+ sysprops << "td.bulk_import.upload_parts.auto-perform=#{opts[1]}"
502
+ sysprops << "td.bulk_import.upload_parts.auto-commit=#{opts[2]}"
503
+ sysprops << "td.bulk_import.upload_parts.retrycount=10"
504
+ sysprops << "td.bulk_import.upload_parts.waitsec=1"
505
+ sysprops
506
+ end
507
+
508
+ private
509
+ def prepare_parts2_config(op)
412
510
  format = 'csv'
413
511
  columns = nil
414
512
  column_types = nil
@@ -461,44 +559,26 @@ module Command
461
559
  exit 1
462
560
  end
463
561
 
464
- # java command
465
- javacmd = 'java'
466
-
467
- # make jvm options
468
- jvm_opts = []
469
- jvm_opts << "-Xmx1024m" # TODO
470
-
471
- # find java/*.jar and td.jar
472
- base_path = File.expand_path('../../..', File.dirname(__FILE__)) # TODO
473
- libjars = Dir.glob("#{base_path}/java/**/*.jar")
474
- found = libjars.find { |path| File.basename(path) =~ /^td-/ }
475
- td_command_jar = libjars.delete(found)
476
-
477
- # make application options
478
- app_opts = []
479
- app_opts << "-cp \"#{td_command_jar}\""
480
-
481
- # make system properties
482
- sysprops = []
483
- sysprops << "-Dtd.bulk_import.prepare_parts.format=#{format}"
484
- sysprops << "-Dtd.bulk_import.prepare_parts.columns=#{columns}" if columns
485
- sysprops << "-Dtd.bulk_import.prepare_parts.column-types=#{column_types}" if column_types
486
- sysprops << "-Dtd.bulk_import.prepare_parts.column-header=#{has_header}" if has_header
487
- sysprops << "-Dtd.bulk_import.prepare_parts.time-column=#{time_column}"
488
- sysprops << "-Dtd.bulk_import.prepare_parts.time-value=#{time_value.to_s}" if time_value
489
- sysprops << "-Dtd.bulk_import.prepare_parts.split-size=#{split_size_kb}"
490
- sysprops << "-Dtd.bulk_import.prepare_parts.output-dir=#{outdir}"
562
+ return [ format, columns, column_types, has_header, time_column, time_value, split_size_kb, outdir ]
563
+ end
491
564
 
492
- # make application arguments
493
- app_args = []
494
- app_args << 'com.treasure_data.tools.BulkImportTool'
495
- app_args << 'prepare_parts'
496
- app_args << files
565
+ private
566
+ def upload_parts2_config(op)
567
+ auto_perform = true
568
+ auto_commit = false
569
+ paraallel = 2
497
570
 
498
- # TODO consider parameters including spaces; don't use join(' ')
499
- command = "#{javacmd} #{jvm_opts.join(' ')} #{app_opts.join(' ')} #{sysprops.join(' ')} #{app_args.join(' ')}"
571
+ op.on('--auto-perform', 'perform bulk import job automatically', TrueClass) {|b|
572
+ auto_perform = b
573
+ }
574
+ op.on('--auto-commit', 'perform bulk import job automatically', FalseClass) {|b|
575
+ auto_perform = b
576
+ }
577
+ op.on('--parallel NUM', 'perform uploading in parallel (default: 2; max 8)', Integer) {|i|
578
+ parallel = i
579
+ }
500
580
 
501
- exec command
581
+ return [ auto_perform, auto_commit, parallel ]
502
582
  end
503
583
 
504
584
  private
@@ -236,6 +236,7 @@ module List
236
236
  add_list 'bulk_import:prepare_parts2', %w[files_], 'Convert files into part file format', 'bulk_import:prepare_parts2 logs/*.csv --format csv --columns time,uid,price,count --column-types long,string,long,int --time-column "time" -o parts/'
237
237
  add_list 'bulk_import:upload_part', %w[name id path.msgpack.gz], 'Upload or re-upload a file into a bulk import session', 'bulk_import:upload_part logs_201201 01h data-201201-01.msgpack.gz'
238
238
  add_list 'bulk_import:upload_parts', %w[name files_], 'Upload or re-upload files into a bulk import session', 'bulk_import:upload_parts parts/* --parallel 4'
239
+ add_list 'bulk_import:upload_parts2', %w[name files_], 'Upload or re-upload files into a bulk import session', 'bulk_import:upload_parts parts/* --parallel 4'
239
240
  add_list 'bulk_import:delete_part', %w[name id], 'Delete a uploaded file from a bulk import session', 'bulk_import:delete_part logs_201201 01h'
240
241
  add_list 'bulk_import:delete_parts', %w[name ids_], 'Delete uploaded files from a bulk import session', 'bulk_import:delete_parts logs_201201 01h 02h 03h'
241
242
  add_list 'bulk_import:perform', %w[name], 'Start to validate and convert uploaded files', 'bulk_import:perform logs_201201'
@@ -264,7 +265,8 @@ module List
264
265
  add_list 'sched:history', %w[name max?], 'Show history of scheduled queries', 'sched sched1 --page 1'
265
266
  add_list 'sched:run', %w[name time], 'Run scheduled queries for the specified time', 'sched:run sched1 "2013-01-01 00:00:00" -n 6'
266
267
 
267
- add_list 'query', %w[sql], 'Issue a query', 'query -d example_db -w -r rset1 "select count(*) from table1"'
268
+ add_list 'query', %w[sql?], 'Issue a query', 'query -d example_db -w -r rset1 "select count(*) from table1"',
269
+ 'query -d example_db -w -r rset1 -q query.txt'
268
270
 
269
271
  add_list 'job:show', %w[job_id], 'Show status and result of a job', 'job 1461'
270
272
  add_list 'job:status', %w[job_id], 'Show status progress of a job', 'job:status 1461'
@@ -375,6 +377,7 @@ module List
375
377
 
376
378
  add_alias 'apikey', 'apikey:show'
377
379
  add_alias 'server', 'server:status'
380
+ add_alias 'sample', 'sample:apache'
378
381
 
379
382
  add_alias 's', 'status'
380
383
 
@@ -14,6 +14,7 @@ module Command
14
14
  result_ask_password = false
15
15
  priority = nil
16
16
  retry_limit = nil
17
+ query = nil
17
18
 
18
19
  op.on('-g', '--org ORGANIZATION', "issue the query under this organization") {|s|
19
20
  org = s
@@ -54,6 +55,9 @@ module Command
54
55
  op.on('-R', '--retry COUNT', 'automatic retrying count', Integer) {|i|
55
56
  retry_limit = i
56
57
  }
58
+ op.on('-q', '--query PATH', 'use file instead of inline query') {|s|
59
+ query = File.open(s) { |f| f.read.strip }
60
+ }
57
61
 
58
62
  sql = op.cmd_parse
59
63
 
@@ -64,6 +68,13 @@ module Command
64
68
 
65
69
  if sql == '-'
66
70
  sql = STDIN.read
71
+ elsif sql.nil?
72
+ sql = query
73
+ end
74
+
75
+ unless sql
76
+ $stderr.puts "<sql> argument or -q,--query PATH option is required."
77
+ exit 1
67
78
  end
68
79
 
69
80
  if result_url
@@ -51,6 +51,7 @@ Additional commands:
51
51
  status # show scheds, jobs, tables and results
52
52
  apikey # show/set API key
53
53
  server # show status of the Treasure Data server
54
+ sample # create a sample log file
54
55
  help # show help messages
55
56
 
56
57
  Type 'td help COMMAND' for more information on a specific command.
data/lib/td/helpers.rb ADDED
@@ -0,0 +1,9 @@
1
+ module TreasureData
2
+ module Helpers
3
+ module_function
4
+
5
+ def on_windows?
6
+ RUBY_PLATFORM =~ /mswin32|mingw32/
7
+ end
8
+ end
9
+ end
data/lib/td/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module TreasureData
2
2
 
3
- VERSION = '0.10.71'
3
+ VERSION = '0.10.72'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: td
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.71
5
- prerelease:
4
+ version: 0.10.72
6
5
  platform: ruby
7
6
  authors:
8
7
  - Treasure Data, Inc.
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-05 00:00:00.000000000 Z
11
+ date: 2013-02-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: msgpack
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: yajl-ruby
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,23 +41,20 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: hirb
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: 0.4.5
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: 0.4.5
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: parallel
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: td-client
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: td-logger
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ~>
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ~>
108
95
  - !ruby/object:Gem::Version
@@ -110,7 +97,6 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rake
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ~>
116
102
  - !ruby/object:Gem::Version
@@ -118,7 +104,6 @@ dependencies:
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ~>
124
109
  - !ruby/object:Gem::Version
@@ -126,7 +111,6 @@ dependencies:
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: rspec
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
115
  - - ~>
132
116
  - !ruby/object:Gem::Version
@@ -134,7 +118,6 @@ dependencies:
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
122
  - - ~>
140
123
  - !ruby/object:Gem::Version
@@ -142,7 +125,6 @@ dependencies:
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: simplecov
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
129
  - - ~>
148
130
  - !ruby/object:Gem::Version
@@ -150,7 +132,6 @@ dependencies:
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
136
  - - ~>
156
137
  - !ruby/object:Gem::Version
@@ -168,7 +149,7 @@ files:
168
149
  - README.rdoc
169
150
  - Rakefile
170
151
  - bin/td
171
- - build/update-td.sh
152
+ - build/update-td-bulk-import-java.sh
172
153
  - data/sample_apache.json
173
154
  - data/sample_apache_gen.rb
174
155
  - dist/exe.rake
@@ -181,8 +162,8 @@ files:
181
162
  - dist/resources/pkg/PackageInfo.erb
182
163
  - dist/resources/pkg/postinstall
183
164
  - dist/resources/pkg/td
184
- - java/td-0.1.1.jar
185
- - java/td_java.version
165
+ - java/td-bulk-import-0.1.2-SNAPSHOT.jar
166
+ - java/td-bulk-import-java.version
186
167
  - lib/td.rb
187
168
  - lib/td/command/account.rb
188
169
  - lib/td/command/acl.rb
@@ -214,6 +195,7 @@ files:
214
195
  - lib/td/config.rb
215
196
  - lib/td/distribution.rb
216
197
  - lib/td/file_reader.rb
198
+ - lib/td/helpers.rb
217
199
  - lib/td/version.rb
218
200
  - spec/file_reader/filter_spec.rb
219
201
  - spec/file_reader/io_filter_spec.rb
@@ -226,27 +208,26 @@ files:
226
208
  - td.gemspec
227
209
  homepage: http://treasure-data.com/
228
210
  licenses: []
211
+ metadata: {}
229
212
  post_install_message:
230
213
  rdoc_options: []
231
214
  require_paths:
232
215
  - lib
233
216
  required_ruby_version: !ruby/object:Gem::Requirement
234
- none: false
235
217
  requirements:
236
- - - ! '>='
218
+ - - '>='
237
219
  - !ruby/object:Gem::Version
238
220
  version: '0'
239
221
  required_rubygems_version: !ruby/object:Gem::Requirement
240
- none: false
241
222
  requirements:
242
- - - ! '>='
223
+ - - '>='
243
224
  - !ruby/object:Gem::Version
244
225
  version: '0'
245
226
  requirements: []
246
227
  rubyforge_project:
247
- rubygems_version: 1.8.23
228
+ rubygems_version: 2.0.0
248
229
  signing_key:
249
- specification_version: 3
230
+ specification_version: 4
250
231
  summary: CLI to manage data on Treasure Data, the Hadoop-based cloud data warehousing
251
232
  test_files:
252
233
  - spec/file_reader/filter_spec.rb
data/build/update-td.sh DELETED
@@ -1,37 +0,0 @@
1
- #!/bin/bash
2
- cd "$(dirname $0)"
3
- chrev="$1"
4
-
5
- if [ -d td-java/.git ];then
6
- rm -rf td-java/*
7
- cd td-java
8
- git checkout . || exit 1
9
- git pull || exit 1
10
- else
11
- rm -rf td-java/
12
- git clone git@github.com:treasure-data/td-java.git td-java || exit 1
13
- cd td-java
14
- fi
15
- git checkout master
16
-
17
- if [ -n "$chrev" ];then
18
- git checkout $chrev
19
- fi
20
-
21
- revname="$(git show --pretty=format:'%H %ad' | head -n 1)"
22
-
23
- mvn package -Dmaven.test.skip=true || exit 1
24
- cp target/td-0.1.1.jar ../../java/td-0.1.1.jar
25
-
26
- if [ -n "$chrev" ];then
27
- git checkout master
28
- fi
29
-
30
- cd ../../
31
-
32
- echo "$revname" > java/td_java.version
33
-
34
- echo ""
35
- echo "git commit ./java -m \"updated td-java $revname\""
36
- git commit ./java/td-0.1.1.jar ./java/td_java.version -m "updated td-java $revname" || exit 1
37
-
data/java/td_java.version DELETED
@@ -1 +0,0 @@
1
- 19238aa12ef2b06cc07f4dc5cd008d35da1aa358 Tue Jan 22 21:46:12 2013 +0900