swivel 0.0.157 → 0.0.160
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/bin/swivel +8 -0
- data/lib/swivel.rb +1 -1
- metadata +2 -2
data/bin/swivel
CHANGED
|
@@ -112,6 +112,14 @@ ARGV.options do |opts|
|
|
|
112
112
|
|
|
113
113
|
opts.separator ''
|
|
114
114
|
|
|
115
|
+
opts.on '-S', '--site=<site>', String,
|
|
116
|
+
'Override the site string used. Ambiguous what happens if you use this with the --key option.',
|
|
117
|
+
'OPTIONAL' do |v|
|
|
118
|
+
config.site = v
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
opts.separator ''
|
|
122
|
+
|
|
115
123
|
opts.on_tail '-?', '--help',
|
|
116
124
|
"Show this help message." do
|
|
117
125
|
puts opts
|
data/lib/swivel.rb
CHANGED
|
@@ -691,7 +691,7 @@ module Swivel
|
|
|
691
691
|
# set in ~/.swivelrc.
|
|
692
692
|
|
|
693
693
|
def initialize options = Hash.new
|
|
694
|
-
@config = Config
|
|
694
|
+
@config = Config::DEFAULT_CONFIG
|
|
695
695
|
@config.merge! options
|
|
696
696
|
@headers = options[:headers] || Hash.new
|
|
697
697
|
@headers.merge! 'Accept' => 'application/xml'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: swivel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.160
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- huned
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2008-01-
|
|
12
|
+
date: 2008-01-23 00:00:00 -08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|