collins_shell 0.2.16 → 0.2.17
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.
- data/VERSION +1 -1
- data/collins_shell.gemspec +2 -2
- data/lib/collins_shell/asset.rb +6 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.17
|
data/collins_shell.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "collins_shell"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.17"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Blake Matheny"]
|
12
|
-
s.date = "2012-12-
|
12
|
+
s.date = "2012-12-18"
|
13
13
|
s.description = "Provides basic CLI for interacting with Collins API"
|
14
14
|
s.email = "bmatheny@tumblr.com"
|
15
15
|
s.executables = ["collins-shell"]
|
data/lib/collins_shell/asset.rb
CHANGED
@@ -131,6 +131,7 @@ module CollinsShell
|
|
131
131
|
use_tag_option
|
132
132
|
use_selector_option
|
133
133
|
method_option :json, :type => :boolean, :default => false, :desc => 'Encode as JSON value. Only works for arrays and hashes.'
|
134
|
+
method_option :dimension, :type => :numeric, :default => -1, :desc => 'Data dimension, must be a number'
|
134
135
|
def set_attribute key, value
|
135
136
|
batch_selector_operation Hash[
|
136
137
|
:remote => options.remote,
|
@@ -144,7 +145,11 @@ module CollinsShell
|
|
144
145
|
if options.json then
|
145
146
|
value = JSON.dump(eval(value))
|
146
147
|
end
|
147
|
-
|
148
|
+
dimension = nil
|
149
|
+
if options.dimension >= 0 then
|
150
|
+
dimension = options.dimension
|
151
|
+
end
|
152
|
+
client.set_attribute!(asset, key, value, dimension)
|
148
153
|
end
|
149
154
|
end
|
150
155
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: collins_shell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.17
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: collins_client
|
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
184
|
version: '0'
|
185
185
|
segments:
|
186
186
|
- 0
|
187
|
-
hash: -
|
187
|
+
hash: -728758615218698730
|
188
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
189
|
none: false
|
190
190
|
requirements:
|