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.
@@ -54,7 +54,7 @@ Hash.class_eval do
54
54
  paramaters << paramater_string
55
55
  }
56
56
 
57
- return "?"+paramaters.join("&")
57
+ return "?&"+paramaters.join("&")
58
58
  end
59
59
 
60
60
 
@@ -1,3 +1,3 @@
1
1
  module ExcelData
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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
@@ -61,3 +61,15 @@ Connecting to database specified by database.yml
61
61
  Connecting to database specified by database.yml
62
62
   (0.5ms) begin transaction
63
63
   (0.0ms) rollback transaction
64
+ Connecting to database specified by database.yml
65
+  (0.4ms) begin transaction
66
+  (0.0ms) rollback transaction
67
+ Connecting to database specified by database.yml
68
+  (0.3ms) begin transaction
69
+  (0.0ms) rollback transaction
70
+ Connecting to database specified by database.yml
71
+  (0.4ms) begin transaction
72
+  (0.1ms) rollback transaction
73
+ Connecting to database specified by database.yml
74
+  (0.3ms) begin transaction
75
+  (0.0ms) rollback transaction
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.0
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