sssummary 0.0.3 → 0.0.4

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/lib/Sssummary.rb CHANGED
@@ -34,7 +34,7 @@ class Sssummary
34
34
  @input_file = get_input_file(options)
35
35
  @options[:import_separator] ||= "\t"
36
36
  @options[:output_separator] ||= "\t"
37
- @options[:db_name] ||= 'db1'
37
+ @options[:db_name] ||= 'sssummary'
38
38
  @options[:table_name] ||= 't'
39
39
  end
40
40
 
@@ -1,3 +1,3 @@
1
1
  class Sssummary
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -43,8 +43,8 @@ describe 'Sssummary' do
43
43
 
44
44
  exit_status.should == 0
45
45
  output.should == File.read('spec/test_file/test_result.tsv').to_s
46
- File.exist?('db1.db').should be_true
47
- File.delete('db1.db')
46
+ File.exist?('sssummary.db').should be_true
47
+ File.delete('sssummary.db')
48
48
  end
49
49
 
50
50
  it 'dbfileの保存場所を指定した場合、その保存場所にdbfileが作成されること' do
@@ -57,8 +57,8 @@ describe 'Sssummary' do
57
57
 
58
58
  exit_status.should == 0
59
59
  output.should == File.read('spec/test_file/test_result.tsv').to_s
60
- File.exist?('spec/test_file/db1.db').should be_true
61
- File.delete('spec/test_file/db1.db')
60
+ File.exist?('spec/test_file/sssummary.db').should be_true
61
+ File.delete('spec/test_file/sssummary.db')
62
62
  end
63
63
 
64
64
  it 'dbfileの保存場所が不正だった場合、エラーが発生すること' do
@@ -80,8 +80,8 @@ describe 'Sssummary' do
80
80
 
81
81
  exit_status.should == 0
82
82
  output.should == File.read('spec/test_file/test_result.tsv').to_s
83
- File.exist?('db1.db').should be_true
84
- File.delete('db1.db')
83
+ File.exist?('sssummary.db').should be_true
84
+ File.delete('sssummary.db')
85
85
  end
86
86
 
87
87
  it 'db名を指定した場合、指定されたdb名になること' do
@@ -213,7 +213,7 @@ describe 'Sssummary' do
213
213
 
214
214
  exit_status.should == 0
215
215
  output.should == File.read('spec/test_file/test_result.tsv').to_s
216
- File.exist?('db1.db').should be_false
216
+ File.exist?('sssummary.db').should be_false
217
217
  end
218
218
 
219
219
  it 'leave-databaseオプションを指定した場合、実行後にdbファイルが削除されていないこと' do
@@ -225,8 +225,8 @@ describe 'Sssummary' do
225
225
 
226
226
  exit_status.should == 0
227
227
  output.should == File.read('spec/test_file/test_result.tsv').to_s
228
- File.exist?('db1.db').should be_true
229
- File.delete('db1.db')
228
+ File.exist?('sssummary.db').should be_true
229
+ File.delete('sssummary.db')
230
230
  end
231
231
 
232
232
  it 'ignore-headerオプションを指定しない場合、ヘッダーはインポートされること' do
@@ -1,5 +1,5 @@
1
1
  options : {:file=>"spec/test_file/test.tsv", :verbose=>true}
2
- created Database at #pwd#/db1.db
2
+ created Database at #pwd#/sssummary.db
3
3
  create table sql : CREATE TABLE t (c1 text,c2 text,c3 text);
4
4
  insert sql : INSERT INTO t VALUES(?,?,?);
5
5
  sql : select * from t order by c1
@@ -14,4 +14,4 @@ result :
14
14
  2013/07/01 23:11 600 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25
15
15
  2013/07/01 23:11 890 Mozilla/5.0 (Linux; U; Android 3.2.1; ja-jp; Transformer TF101 Build/HTK75) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13
16
16
 
17
- drop Database at #pwd#/db1.db
17
+ drop Database at #pwd#/sssummary.db
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sssummary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-15 00:00:00.000000000 Z
12
+ date: 2013-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3
@@ -59,7 +59,7 @@ files:
59
59
  - bin/sssummary
60
60
  - lib/Sssummary.rb
61
61
  - lib/sssummary/version.rb
62
- - spec/sssammary_spec.rb
62
+ - spec/sssummary_spec.rb
63
63
  - spec/test_file/test.csv
64
64
  - spec/test_file/test.tsv
65
65
  - spec/test_file/test_column_names.tsv
@@ -101,7 +101,7 @@ signing_key:
101
101
  specification_version: 3
102
102
  summary: A client library for summarize data by sql on the shell
103
103
  test_files:
104
- - spec/sssammary_spec.rb
104
+ - spec/sssummary_spec.rb
105
105
  - spec/test_file/test.csv
106
106
  - spec/test_file/test.tsv
107
107
  - spec/test_file/test_column_names.tsv