pg_query 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZDIwYjU2NDI2Njk0OTU0ZGIyYzI5OTYzMDMzNGY2MTgxYzFiMGRiZQ==
5
- data.tar.gz: !binary |-
6
- Y2RjODU2MjQzM2ZiMzg4NDk3ZWNhMGFlNWMzZmNjMGM4M2YwMzRiZA==
2
+ SHA1:
3
+ metadata.gz: 436c39c88606860708a62a007c94e3681946a179
4
+ data.tar.gz: 6ca769bb0fd9e9533b31f0c8729c4c91cfa2035d
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZGU1MmQ4NDIwZTJmNWU2MGIyODZhNzhjMWE5NGNhMGIyNDRlMDliZGU1MDJi
10
- YTU1MDNlM2JlZDExZmZjNmVhY2ZhZGQyNWNkNTAwZmQ0YmJkZmNhNGZjZWU1
11
- Yjk5M2FlYmZmZTEzNjc0OWIxYjg1Y2JmY2U4NTc5NzE1OGUwOTQ=
12
- data.tar.gz: !binary |-
13
- OWE3MjQwZGE5NWNjYTQzNzAzMzVmY2E5MzcyZmU4YzdlNjJiMDgyZDlmNzk4
14
- YjRhM2M3NmQzY2M0MDE5ZTc0YWQzYWMxNjNlYzk4ZGQwZjJiNmJlNTViNDU4
15
- YWFhMjYwOGZjYWJiYzZlNjE4MDA1MTY3NjMwYjRjOGU0OWYyZTk=
6
+ metadata.gz: 38956a8035166579310f9e69ca40c71ce4dd648e298fb4f1bd2a90335e0e4b22e7d9d1c0461e2da7b86b3473f5139f2d64bd2f1451381d6bf33d4dcc1204caaf
7
+ data.tar.gz: 2ae516ad313a283e67d359dabcae0652d9e91cb0b86ac3d2ab7421d9305b501e6ccfc5895b74c6a5897106098f66c20419e1baada0845796600cbd32f85af6b3
@@ -1,4 +1,5 @@
1
1
  require 'mkmf'
2
+ require 'open-uri'
2
3
 
3
4
  workdir = Dir.pwd
4
5
  pgdir = File.join(workdir, "postgres")
@@ -8,7 +9,11 @@ pgdir = File.join(workdir, "postgres")
8
9
  # Note: We intentionally use a patched version that fixes bugs in outfuncs.c
9
10
  if !Dir.exists?(pgdir)
10
11
  unless File.exists?("#{workdir}/postgres.zip")
11
- system("curl https://codeload.github.com/pganalyze/postgres/zip/pg_query -o #{workdir}/postgres.zip") || raise("ERROR")
12
+ File.open("#{workdir}/postgres.zip", "wb") do |target_file|
13
+ open("https://codeload.github.com/pganalyze/postgres/zip/pg_query", "rb") do |read_file|
14
+ target_file.write(read_file.read)
15
+ end
16
+ end
12
17
  end
13
18
  system("unzip -q #{workdir}/postgres.zip -d #{workdir}") || raise("ERROR")
14
19
  system("mv #{workdir}/postgres-pg_query #{pgdir}") || raise("ERROR")
@@ -1,3 +1,3 @@
1
1
  class PgQuery
2
- VERSION = '0.2.6'
2
+ VERSION = '0.2.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Fittl
@@ -78,12 +78,12 @@ require_paths:
78
78
  - lib
79
79
  required_ruby_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ! '>='
81
+ - - '>='
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ! '>='
86
+ - - '>='
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []