ugc 0.9.6 → 0.9.7
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -0
- data/lib/ugc/helpers/format.rb +2 -1
- data/lib/ugc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a7d0b81779198129a1eb060f788f766c37a6f52a
|
|
4
|
+
data.tar.gz: 92c62c7644e1f427d1e33789e5c1b4d6ad37c0ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e94bba3fa4df8886e7cb95e1a85c8a0d9fc578c325aa757021596abe29b25f1105866c17a0ec07fe5efbbbb7edfee73f2f5ef6c6453e533c1621d8447e727e4d
|
|
7
|
+
data.tar.gz: 73dc8ec5e52bc0ca51ef5182c7a7d514f2b7a6b4d5da473de36d69a5498ed6f4490f260f0550aff8e23f1dac167c8d155072482908372d40cbad1470d3ebb7b1
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -178,6 +178,10 @@ If you specify column names in your query, you will be unable to reference the r
|
|
|
178
178
|
|
|
179
179
|
## Release notes
|
|
180
180
|
|
|
181
|
+
### 0.9.7
|
|
182
|
+
* Bug Fixes
|
|
183
|
+
1. allow headers to vary during paging
|
|
184
|
+
|
|
181
185
|
### 0.9.6
|
|
182
186
|
* Bug Fixes
|
|
183
187
|
1. url encode url for curl
|
data/lib/ugc/helpers/format.rb
CHANGED
|
@@ -15,6 +15,7 @@ end
|
|
|
15
15
|
|
|
16
16
|
def format_collection(collection, headers=nil)
|
|
17
17
|
if collection && collection.size > 0
|
|
18
|
+
save_headers = headers ? headers.clone : nil
|
|
18
19
|
save_response collection.response
|
|
19
20
|
metadata = collection_metadata collection, headers
|
|
20
21
|
table border: $settings.table_border? do
|
|
@@ -35,7 +36,7 @@ def format_collection(collection, headers=nil)
|
|
|
35
36
|
end
|
|
36
37
|
end
|
|
37
38
|
if collection.cursor && agree('Next Page? (Y/N)') {|q| q.default = 'Y'}
|
|
38
|
-
format_collection(collection.next_page,
|
|
39
|
+
format_collection(collection.next_page, save_headers)
|
|
39
40
|
end
|
|
40
41
|
else
|
|
41
42
|
puts "0 results"
|
data/lib/ugc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ugc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Ganyo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-08-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|