spice 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -14,7 +14,7 @@ Of course, You can always grab the source from http://github.com/danryan/spice.
14
14
 
15
15
  Spice has four configuration variables:
16
16
 
17
- Spice.server_url # default: http://localhost:4000
17
+ Spice.server_url # default: http://localhost:4000
18
18
  Spice.chef_version # default: 0.10.4. Should be set to the version you have
19
19
  Spice.client_name # default: nil. Must be set to a valid admin Chef client
20
20
  Spice.key_file # default: nil. Must be set to a file path
@@ -25,7 +25,7 @@ To connect to a Chef server at https://chef.example.com:5000 with the "admin" AP
25
25
  Spice.client_name = "admin"
26
26
  Spice.key_file = "/path/to/keyfile.pem"
27
27
 
28
- Say you had a Chef server v0.10.4 (or Chef solo) running locally on port 4000 over HTTP, you only need to set your `client_name` and `key_file` path:
28
+ Say you had a Chef server v0.10.4 running locally on port 4000 over HTTP, you only need to set your `client_name` and `key_file` path:
29
29
 
30
30
  Spice.client_name = "admin"
31
31
  Spice.key_file = "/path/to/keyfile.pem"
@@ -49,7 +49,7 @@ If you want to reset your config to their default values:
49
49
 
50
50
  ### Deprecation notice
51
51
 
52
- Explicitly setting a `host`, `port`, and `scheme` value has been deprecated in favor of setting a single variable, `server_url`, which matches the format of Chef's client config parameter, chef_server_url. The old way of defining `host`, `port`, and `scheme` are still currently available but will be removed from future versions.
52
+ Explicitly setting a `host`, `port`, and `scheme` value has been deprecated in favor of setting a single variable, `server_url`, which matches the format of Chef's client config parameter, `chef_server_url`. The old way of defining `host`, `port`, and `scheme` are still currently available but will be removed from future versions.
53
53
 
54
54
  ## Usage
55
55
 
@@ -72,12 +72,8 @@ Create a new role called "awesome":
72
72
  Make the client "sweet" an admin:
73
73
 
74
74
  Spice.connection.put("/clients/sweet", :admin => true)
75
-
76
- Scope out [the official Chef API docs](http://wiki.opscode.com/display/chef/Server+API) for a full list of wicked awesome things you can do.
77
-
78
- ### High-level use
79
75
 
80
- TODO
76
+ Read the wiki for more examples.
81
77
 
82
78
 
83
79
  ### Contributors
@@ -7,6 +7,7 @@ module Spice
7
7
  def initialize(options={})
8
8
  endpoint = URI.parse(options[:server_url])
9
9
  @server_url = options[:server_url]
10
+ @host = endpoint.host
10
11
  @port = endpoint.port
11
12
  @scheme = endpoint.scheme
12
13
  @url_path = endpoint.path
data/lib/spice/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Spice
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-09-08 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70276879512400 !ruby/object:Gem::Requirement
16
+ requirement: &70342421558340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70276879512400
24
+ version_requirements: *70342421558340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rest-client
27
- requirement: &70276879511900 !ruby/object:Gem::Requirement
27
+ requirement: &70342421557840 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.6.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70276879511900
35
+ version_requirements: *70342421557840
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: mixlib-authentication
38
- requirement: &70276879511440 !ruby/object:Gem::Requirement
38
+ requirement: &70342421557380 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.1.4
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70276879511440
46
+ version_requirements: *70342421557380
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: yajl-ruby
49
- requirement: &70276879510980 !ruby/object:Gem::Requirement
49
+ requirement: &70342421556920 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.8.3
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70276879510980
57
+ version_requirements: *70342421556920
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &70276879510520 !ruby/object:Gem::Requirement
60
+ requirement: &70342421556460 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 2.6.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70276879510520
68
+ version_requirements: *70342421556460
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: webmock
71
- requirement: &70276879510060 !ruby/object:Gem::Requirement
71
+ requirement: &70342421556000 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.6.2
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70276879510060
79
+ version_requirements: *70342421556000
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: timecop
82
- requirement: &70276879509600 !ruby/object:Gem::Requirement
82
+ requirement: &70342421555540 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.3.5
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70276879509600
90
+ version_requirements: *70342421555540
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: guard
93
- requirement: &70276879509140 !ruby/object:Gem::Requirement
93
+ requirement: &70342421555080 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 0.6.2
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70276879509140
101
+ version_requirements: *70342421555080
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: guard-rspec
104
- requirement: &70276879508680 !ruby/object:Gem::Requirement
104
+ requirement: &70342421554620 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 0.4.2
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70276879508680
112
+ version_requirements: *70342421554620
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: guard-spork
115
- requirement: &70276879508200 !ruby/object:Gem::Requirement
115
+ requirement: &70342421554160 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 0.2.1
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70276879508200
123
+ version_requirements: *70342421554160
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: spork
126
- requirement: &70276879507740 !ruby/object:Gem::Requirement
126
+ requirement: &70342421553700 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 0.9.0.rc8
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70276879507740
134
+ version_requirements: *70342421553700
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: rb-fsevent
137
- requirement: &70276879507280 !ruby/object:Gem::Requirement
137
+ requirement: &70342421553240 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: 0.4.3.1
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70276879507280
145
+ version_requirements: *70342421553240
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: growl
148
- requirement: &70276879506820 !ruby/object:Gem::Requirement
148
+ requirement: &70342421552760 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,7 +153,7 @@ dependencies:
153
153
  version: 1.0.3
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *70276879506820
156
+ version_requirements: *70342421552760
157
157
  description: Spice is a zesty Chef API wrapper. Its primary purpose is to let you
158
158
  easily integrate your apps with a Chef server easily. Spice provides support for
159
159
  the entire released Chef API
@@ -224,7 +224,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
224
224
  version: '0'
225
225
  segments:
226
226
  - 0
227
- hash: 3721453362787661200
227
+ hash: 1230082242022539867
228
228
  required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  none: false
230
230
  requirements:
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  version: '0'
234
234
  segments:
235
235
  - 0
236
- hash: 3721453362787661200
236
+ hash: 1230082242022539867
237
237
  requirements: []
238
238
  rubyforge_project: spice
239
239
  rubygems_version: 1.8.8