fog-google 0.0.7 → 0.0.9

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: 0511793f96bfb19f9b6aeb03d9255aa75e9e80bc
4
- data.tar.gz: 11cad15a2d43d83bf7610a46868ecadba74035b5
3
+ metadata.gz: cfe32657e08c69f437902b4c0feb5f6d2e33d05b
4
+ data.tar.gz: 7fe5ac8dabc4e1a9212366adb69c8dc8ea807f49
5
5
  SHA512:
6
- metadata.gz: 8dbfd29a46fadd9e640e0e9cca7c8bda8c7e213ada72badfff8f2e7f55ae3e25382efa6213590461745060d8918997fa8ec52128583a4c3cc950aff5236bd02f
7
- data.tar.gz: 15b829e415184704289d27260d23472cc1a73907ac0afbb8cab6cc568a5042a92d80b3a77dfa2bc8848096b02819d42e289581ab4affcb01593a5730e5361e86
6
+ metadata.gz: 7461ec6b05ecd82581f9b4d2093cd575aff80c76d636e9ee7de0547e962f65891e0b7d8b1f8ba4b2b0e366b85a2f7a59f73a6bc5edaed99193cf591db864f28a
7
+ data.tar.gz: ad4a8413e66ce02c1f8ffac2d5c28e896d5478920847d2b220974f8fb45e4e7c4b10bb459cb2ab280fbe17127289f22a88648aeec6eadc4012ea39b3296a13e8
@@ -28,6 +28,16 @@ module Fog
28
28
  service(:storage, 'Storage')
29
29
  service(:sql, 'SQL')
30
30
 
31
+ # CGI.escape, but without special treatment on spaces
32
+ def self.escape(str,extra_exclude_chars = '')
33
+ # '-' is a special character inside a regex class so it must be first or last.
34
+ # Add extra excludes before the final '-' so it always remains trailing, otherwise
35
+ # an unwanted range is created by mistake.
36
+ str.gsub(/([^a-zA-Z0-9_.#{extra_exclude_chars}-]+)/) do
37
+ '%' + $1.unpack('H2' * $1.bytesize).join('%').upcase
38
+ end
39
+ end
40
+
31
41
  class Mock
32
42
  def self.etag
33
43
  hex(32)
@@ -5,7 +5,7 @@ module Fog
5
5
  recognizes :app_name, :app_version, :google_client_email, :google_key_location, :google_key_string,
6
6
  :google_client, :google_json_key_location, :google_json_key_string
7
7
 
8
- GOOGLE_DNS_API_VERSION = 'v1beta1'
8
+ GOOGLE_DNS_API_VERSION = 'v1'
9
9
  GOOGLE_DNS_BASE_URL = 'https://www.googleapis.com/dns/'
10
10
  GOOGLE_DNS_API_SCOPE_URLS = %w(https://www.googleapis.com/auth/ndev.clouddns.readwrite)
11
11
 
@@ -32,7 +32,7 @@ module Fog
32
32
  :host => "#{target_bucket_name}.#{@host}",
33
33
  :method => 'PUT',
34
34
  :parser => Fog::Parsers::Storage::Google::CopyObject.new,
35
- :path => CGI.escape(target_object_name)
35
+ :path => Fog::Google.escape(target_object_name)
36
36
  })
37
37
  end
38
38
  end
@@ -32,7 +32,7 @@ module Fog
32
32
  :host => "#{bucket_name}.#{@host}",
33
33
  :idempotent => true,
34
34
  :method => 'PUT',
35
- :path => CGI.escape(object_name)
35
+ :path => Fog::Google.escape(object_name)
36
36
  })
37
37
  end
38
38
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Google
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  require "helpers/integration_test_helper"
2
2
 
3
3
  class TestRegions < FogIntegrationTest
4
- NAMES = %w(asia-east1 europe-west1 us-central1)
4
+ NAMES = %w(asia-east1 europe-west1 us-central1 us-central2)
5
5
 
6
6
  def setup
7
7
  @subject = Fog::Compute[:google].regions
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Welch
@@ -10,180 +10,180 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-07-06 00:00:00.000000000 Z
13
+ date: 2015-09-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fog-core
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ">="
19
+ - - '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ">="
26
+ - - '>='
27
27
  - !ruby/object:Gem::Version
28
28
  version: '0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: fog-json
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ">="
33
+ - - '>='
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ">="
40
+ - - '>='
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: fog-xml
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
47
+ - - '>='
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ">="
54
+ - - '>='
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: google-api-client
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - "~>"
61
+ - - ~>
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0.6'
64
- - - ">="
64
+ - - '>='
65
65
  - !ruby/object:Gem::Version
66
66
  version: 0.6.2
67
67
  type: :development
68
68
  prerelease: false
69
69
  version_requirements: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - "~>"
71
+ - - ~>
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0.6'
74
- - - ">="
74
+ - - '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: 0.6.2
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: rake
79
79
  requirement: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
81
+ - - '>='
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  type: :development
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ">="
88
+ - - '>='
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: shindo
93
93
  requirement: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ">="
95
+ - - '>='
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  type: :development
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ">="
102
+ - - '>='
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: minitest
107
107
  requirement: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ">="
109
+ - - '>='
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  type: :development
113
113
  prerelease: false
114
114
  version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ">="
116
+ - - '>='
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  - !ruby/object:Gem::Dependency
120
120
  name: pry
121
121
  requirement: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ">="
123
+ - - '>='
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  type: :development
127
127
  prerelease: false
128
128
  version_requirements: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ">="
130
+ - - '>='
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: vcr
135
135
  requirement: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ">="
137
+ - - '>='
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  type: :development
141
141
  prerelease: false
142
142
  version_requirements: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - ">="
144
+ - - '>='
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: webmock
149
149
  requirement: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - ">="
151
+ - - '>='
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
156
  version_requirements: !ruby/object:Gem::Requirement
157
157
  requirements:
158
- - - ">="
158
+ - - '>='
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  - !ruby/object:Gem::Dependency
162
162
  name: coveralls
163
163
  requirement: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - ">="
165
+ - - '>='
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  type: :development
169
169
  prerelease: false
170
170
  version_requirements: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - ">="
172
+ - - '>='
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
175
  - !ruby/object:Gem::Dependency
176
176
  name: rubocop
177
177
  requirement: !ruby/object:Gem::Requirement
178
178
  requirements:
179
- - - ">="
179
+ - - '>='
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  type: :development
183
183
  prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - ">="
186
+ - - '>='
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  description: |-
@@ -197,10 +197,10 @@ executables: []
197
197
  extensions: []
198
198
  extra_rdoc_files: []
199
199
  files:
200
- - ".gitignore"
201
- - ".rubocop.yml"
202
- - ".ruby-gemset"
203
- - ".travis.yml"
200
+ - .gitignore
201
+ - .rubocop.yml
202
+ - .ruby-gemset
203
+ - .travis.yml
204
204
  - CONTRIBUTING.md
205
205
  - CONTRIBUTORS.md
206
206
  - Gemfile
@@ -608,17 +608,17 @@ require_paths:
608
608
  - lib
609
609
  required_ruby_version: !ruby/object:Gem::Requirement
610
610
  requirements:
611
- - - ">="
611
+ - - '>='
612
612
  - !ruby/object:Gem::Version
613
613
  version: '0'
614
614
  required_rubygems_version: !ruby/object:Gem::Requirement
615
615
  requirements:
616
- - - ">="
616
+ - - '>='
617
617
  - !ruby/object:Gem::Version
618
618
  version: '0'
619
619
  requirements: []
620
620
  rubyforge_project:
621
- rubygems_version: 2.2.2
621
+ rubygems_version: 2.0.14
622
622
  signing_key:
623
623
  specification_version: 4
624
624
  summary: Module for the 'fog' gem to support Google.
@@ -652,4 +652,3 @@ test_files:
652
652
  - test/integration/factories/target_pools_factory.rb
653
653
  - test/integration/factories/url_maps_factory.rb
654
654
  - test/integration/test_authentication.rb
655
- has_rdoc: