bq_fake_view 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eeb82b2183f29098f53b27396436dcda0ea10c39
4
- data.tar.gz: 986185c275109248df72cdda972090ba48b20110
3
+ metadata.gz: 570b2afd35538c3b87e4caebb0773b43b86a1f2e
4
+ data.tar.gz: 3519d2fdfb3a6fa2765e3d66e073a1ef63b68a79
5
5
  SHA512:
6
- metadata.gz: 3dfaa4ccfee855850516051c8af3536a57ccdbdd77177321d706786d860156ba9c19083840129b8d5843a00cb072ed42c4e671afb16fb4bb74a45b4751d1aaf3
7
- data.tar.gz: 0832dec4a59c5f7f49c1394929545e3776a44ed14e26e60ba86a13fb07ca81f705af1310579a5d175714988d72e2653fab866a9de273fc9a09ec7ae52af23ba9
6
+ metadata.gz: 39cac2a85f4f117f37e92d8b52b0baa6154facfa04fc5835a8f5a133d93ba9f3bbb84e97abfc3519043694ea45929995f1cef47373102aa93c1a3f33adacfc45
7
+ data.tar.gz: f82f22f9082ad4e0c16a758355e7471c33050969fe56158f12ab8531a891af68b80ec5034c48995a01557852e90bdda1251b5403fa680bbccf86547aed72fb7d
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # BqFakeView
2
+ [![Gem Version](https://badge.fury.io/rb/bq_fake_view.svg)](https://badge.fury.io/rb/bq_fake_view)
3
+
2
4
  This gem create Static SQL View on Google Bigquery from Hash data.
3
5
 
4
6
  It is main purpose to create fake data for testing.
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "google-api-client", "~> 0.9.pre3"
21
+ spec.add_runtime_dependency "google-api-client", ">= 0.9"
22
22
  spec.add_runtime_dependency "activesupport", ">= 4"
23
23
  spec.add_development_dependency "bundler", "~> 1.11"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
@@ -51,7 +51,7 @@ class BqFakeView
51
51
  def cast_to_sql_value(value, type)
52
52
  case value
53
53
  when String
54
- %Q{"#{value.gsub(/"/, %q{\"})}"}
54
+ %Q{"#{value.gsub('\\', '\\\\\\\\').gsub(/"/, %q{\"})}"}
55
55
  when Numeric
56
56
  value.to_s
57
57
  when Time, Date
@@ -1,3 +1,3 @@
1
1
  class BqFakeView
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bq_fake_view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-08 00:00:00.000000000 Z
11
+ date: 2017-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.pre3
19
+ version: '0.9'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.pre3
26
+ version: '0.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.5.1
104
+ rubygems_version: 2.6.12
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: This gem create Static SQL View on Google Bigquery from Hash data