excel-data 0.1.0 → 0.1.1
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/excel-data/cor_ext.rb +1 -1
- data/lib/excel-data/version.rb +1 -1
- data/test/cor_ext_test.rb +10 -1
- data/test/dummy/log/test.log +12 -0
- data/test/iqy_test.rb +0 -0
- metadata +3 -1
data/lib/excel-data/cor_ext.rb
CHANGED
data/lib/excel-data/version.rb
CHANGED
data/test/cor_ext_test.rb
CHANGED
@@ -19,6 +19,15 @@ class CoreExtTest < Test::Unit::TestCase
|
|
19
19
|
def test_format_excel_on_time
|
20
20
|
assert_equal("3/25/13 5:02 PM","41358.71".parse_excel_date.format_excel)
|
21
21
|
end
|
22
|
+
def test_to_excel_param_on_hash
|
23
|
+
hash = {
|
24
|
+
scraper:["scraper","this is which scraper you want:"],
|
25
|
+
t:["timeframe","Enter default timeframe:"],
|
26
|
+
p:["profile","Enter default profile:"],
|
27
|
+
tq:["query","Enter query"]
|
28
|
+
}
|
22
29
|
|
23
|
-
|
30
|
+
excel_param = '?&scraper=["scraper","this is which scraper you want:"]&t=["timeframe","Enter default timeframe:"]&p=["profile","Enter default profile:"]&tq=["query","Enter query"]'
|
31
|
+
assert_equal(excel_param,hash.to_excel_param)
|
32
|
+
end
|
24
33
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -61,3 +61,15 @@ Connecting to database specified by database.yml
|
|
61
61
|
Connecting to database specified by database.yml
|
62
62
|
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
63
63
|
[1m[35m (0.0ms)[0m rollback transaction
|
64
|
+
Connecting to database specified by database.yml
|
65
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
66
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
67
|
+
Connecting to database specified by database.yml
|
68
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
69
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
70
|
+
Connecting to database specified by database.yml
|
71
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
72
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
73
|
+
Connecting to database specified by database.yml
|
74
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
75
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
data/test/iqy_test.rb
ADDED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: excel-data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- test/dummy/README.rdoc
|
110
110
|
- test/dummy/script/rails
|
111
111
|
- test/excel-data_test.rb
|
112
|
+
- test/iqy_test.rb
|
112
113
|
- test/test_helper.rb
|
113
114
|
homepage: http://github.com/noahpryor/excel-data
|
114
115
|
licenses: []
|
@@ -170,4 +171,5 @@ test_files:
|
|
170
171
|
- test/dummy/README.rdoc
|
171
172
|
- test/dummy/script/rails
|
172
173
|
- test/excel-data_test.rb
|
174
|
+
- test/iqy_test.rb
|
173
175
|
- test/test_helper.rb
|