mongify 0.1.2 → 0.1.3
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/CHANGELOG.rdoc +9 -0
- data/Gemfile.lock +22 -24
- data/README.rdoc +20 -2
- data/lib/mongify.rb +2 -1
- data/lib/mongify/cli/application.rb +4 -1
- data/lib/mongify/cli/options.rb +2 -0
- data/lib/mongify/database/base_connection.rb +2 -2
- data/lib/mongify/database/column.rb +88 -13
- data/lib/mongify/database/no_sql_connection.rb +17 -0
- data/lib/mongify/exceptions.rb +18 -4
- data/lib/mongify/progressbar.rb +270 -0
- data/lib/mongify/status.rb +44 -11
- data/lib/mongify/translation/process.rb +54 -40
- data/lib/mongify/ui.rb +8 -0
- data/lib/mongify/version.rb +1 -1
- data/mongify.gemspec +1 -1
- data/spec/mongify/database/base_connection_spec.rb +2 -2
- data/spec/mongify/database/column_spec.rb +67 -6
- data/spec/mongify/database/no_sql_connection_spec.rb +14 -0
- data/spec/mongify/status_spec.rb +35 -0
- data/spec/mongify/translation/process_spec.rb +31 -4
- data/spec/mongify/ui_spec.rb +6 -0
- metadata +13 -9
data/spec/mongify/ui_spec.rb
CHANGED
@@ -58,6 +58,12 @@ describe Mongify::UI do
|
|
58
58
|
@out.string.should == "WARNING: hello\n"
|
59
59
|
end
|
60
60
|
|
61
|
+
context "terminal_helper" do
|
62
|
+
it "should return a HighLine class" do
|
63
|
+
@ui.terminal_helper.should be_a_kind_of HighLine
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
61
67
|
context "abort" do
|
62
68
|
it "should abort program execution" do
|
63
69
|
Kernel.should_receive(:abort)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrew Kalek
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-21 00:00:00 -05:00
|
19
19
|
default_executable: mongify
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -112,18 +112,19 @@ dependencies:
|
|
112
112
|
type: :runtime
|
113
113
|
version_requirements: *id006
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
|
-
name:
|
115
|
+
name: highline
|
116
116
|
prerelease: false
|
117
117
|
requirement: &id007 !ruby/object:Gem::Requirement
|
118
118
|
none: false
|
119
119
|
requirements:
|
120
120
|
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
hash:
|
122
|
+
hash: 13
|
123
123
|
segments:
|
124
|
-
-
|
125
|
-
-
|
126
|
-
|
124
|
+
- 1
|
125
|
+
- 6
|
126
|
+
- 1
|
127
|
+
version: 1.6.1
|
127
128
|
type: :runtime
|
128
129
|
version_requirements: *id007
|
129
130
|
- !ruby/object:Gem::Dependency
|
@@ -291,6 +292,7 @@ files:
|
|
291
292
|
- lib/mongify/database/sql_connection.rb
|
292
293
|
- lib/mongify/database/table.rb
|
293
294
|
- lib/mongify/exceptions.rb
|
295
|
+
- lib/mongify/progressbar.rb
|
294
296
|
- lib/mongify/status.rb
|
295
297
|
- lib/mongify/translation.rb
|
296
298
|
- lib/mongify/translation/printer.rb
|
@@ -313,6 +315,7 @@ files:
|
|
313
315
|
- spec/mongify/database/no_sql_connection_spec.rb
|
314
316
|
- spec/mongify/database/sql_connection_spec.rb
|
315
317
|
- spec/mongify/database/table_spec.rb
|
318
|
+
- spec/mongify/status_spec.rb
|
316
319
|
- spec/mongify/translation/printer_spec.rb
|
317
320
|
- spec/mongify/translation/process_spec.rb
|
318
321
|
- spec/mongify/translation_spec.rb
|
@@ -386,6 +389,7 @@ test_files:
|
|
386
389
|
- spec/mongify/database/no_sql_connection_spec.rb
|
387
390
|
- spec/mongify/database/sql_connection_spec.rb
|
388
391
|
- spec/mongify/database/table_spec.rb
|
392
|
+
- spec/mongify/status_spec.rb
|
389
393
|
- spec/mongify/translation/printer_spec.rb
|
390
394
|
- spec/mongify/translation/process_spec.rb
|
391
395
|
- spec/mongify/translation_spec.rb
|