spice 0.5.0.beta.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ .DS_Store
1
2
  pkg/*
2
3
  examples/*
3
4
  doc/*
@@ -99,6 +99,7 @@ module Spice
99
99
  @host = default_host
100
100
  @port = default_port
101
101
  @scheme = default_scheme
102
+ @url_path = default_url_path
102
103
  @key_file = nil
103
104
  @client_name = nil
104
105
  @connection = nil
@@ -21,8 +21,8 @@ module Spice
21
21
  "#{@url}#{path}",
22
22
  build_headers(:GET, "#{@url_path}#{path}", headers)
23
23
  )
24
- # response
25
24
  response
25
+
26
26
  rescue => e
27
27
  e.response
28
28
  end
@@ -34,8 +34,7 @@ module Spice
34
34
  "#{@url}#{path}",
35
35
  JSON.generate(payload),
36
36
  build_headers(:POST, "#{@url_path}#{path}", headers, JSON.generate(payload))
37
- )
38
- response
37
+ )
39
38
  rescue => e
40
39
  e.response
41
40
  end
@@ -1,3 +1,3 @@
1
1
  module Spice
2
- VERSION = "0.5.0.beta.1"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -3,7 +3,6 @@ require 'spec_helper'
3
3
  module Spice
4
4
  describe Chef do
5
5
  describe '.connection' do
6
- before { }
7
6
  it "returns an instance of Spice::Connection" do
8
7
  Spice::Chef.connection.should be_an_instance_of(Spice::Connection)
9
8
  end
@@ -132,6 +132,10 @@ describe "Spice" do
132
132
  Spice.reset!
133
133
  Spice.scheme.should == "http"
134
134
  end
135
+ it "should reset Spice.url_path" do
136
+ Spice.reset!
137
+ Spice.url_path.should == ""
138
+ end
135
139
  it "should unset Spice.key_file" do
136
140
  Spice.reset!
137
141
  Spice.key_file.should be_nil
@@ -141,6 +145,7 @@ describe "Spice" do
141
145
  Spice.connection.should be_nil
142
146
  end
143
147
  end
148
+
144
149
  describe ".connect!" do
145
150
  it "should create a connection object" do
146
151
  Spice.connect!
@@ -20,13 +20,12 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_development_dependency "yard", "~> 0.6.4"
22
22
  s.add_development_dependency "rspec", "~> 2.5.0"
23
- s.add_development_dependency "cucumber", "~> 0.10.0"
24
23
  s.add_development_dependency "webmock", "~> 1.6.2"
25
24
  s.add_development_dependency "timecop", "~> 0.3.5"
26
25
  s.add_development_dependency "webmock", "~> 1.6.2"
27
26
 
28
27
  s.files = `git ls-files`.split("\n")
29
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
28
+ s.test_files = `git ls-files -- spec/*`.split("\n")
30
29
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
31
30
  s.require_paths = ["lib"]
32
31
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spice
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: 6
5
- version: 0.5.0.beta.1
4
+ prerelease:
5
+ version: 0.5.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dan Ryan
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-28 00:00:00 -04:00
14
- default_executable:
13
+ date: 2011-04-15 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rest-client
@@ -68,50 +67,39 @@ dependencies:
68
67
  version: 2.5.0
69
68
  type: :development
70
69
  version_requirements: *id005
71
- - !ruby/object:Gem::Dependency
72
- name: cucumber
73
- prerelease: false
74
- requirement: &id006 !ruby/object:Gem::Requirement
75
- none: false
76
- requirements:
77
- - - ~>
78
- - !ruby/object:Gem::Version
79
- version: 0.10.0
80
- type: :development
81
- version_requirements: *id006
82
70
  - !ruby/object:Gem::Dependency
83
71
  name: webmock
84
72
  prerelease: false
85
- requirement: &id007 !ruby/object:Gem::Requirement
73
+ requirement: &id006 !ruby/object:Gem::Requirement
86
74
  none: false
87
75
  requirements:
88
76
  - - ~>
89
77
  - !ruby/object:Gem::Version
90
78
  version: 1.6.2
91
79
  type: :development
92
- version_requirements: *id007
80
+ version_requirements: *id006
93
81
  - !ruby/object:Gem::Dependency
94
82
  name: timecop
95
83
  prerelease: false
96
- requirement: &id008 !ruby/object:Gem::Requirement
84
+ requirement: &id007 !ruby/object:Gem::Requirement
97
85
  none: false
98
86
  requirements:
99
87
  - - ~>
100
88
  - !ruby/object:Gem::Version
101
89
  version: 0.3.5
102
90
  type: :development
103
- version_requirements: *id008
91
+ version_requirements: *id007
104
92
  - !ruby/object:Gem::Dependency
105
93
  name: webmock
106
94
  prerelease: false
107
- requirement: &id009 !ruby/object:Gem::Requirement
95
+ requirement: &id008 !ruby/object:Gem::Requirement
108
96
  none: false
109
97
  requirements:
110
98
  - - ~>
111
99
  - !ruby/object:Gem::Version
112
100
  version: 1.6.2
113
101
  type: :development
114
- version_requirements: *id009
102
+ version_requirements: *id008
115
103
  description: Spice is a zesty Chef API wrapper. Its primary purpose is to let you easily integrate your apps with a Chef server easily. Spice provides support for the entire released Chef API
116
104
  email:
117
105
  - hi@iamdanryan.com
@@ -122,7 +110,6 @@ extensions: []
122
110
  extra_rdoc_files: []
123
111
 
124
112
  files:
125
- - .DS_Store
126
113
  - .document
127
114
  - .gitignore
128
115
  - .rspec
@@ -130,13 +117,9 @@ files:
130
117
  - CHANGELOG.md
131
118
  - Gemfile
132
119
  - LICENSE.txt
133
- - Notes.md
134
120
  - README.md
135
121
  - Rakefile
136
122
  - TODO.md
137
- - features/spice.feature
138
- - features/step_definitions/spice_steps.rb
139
- - features/support/env.rb
140
123
  - lib/spice.rb
141
124
  - lib/spice/authentication.rb
142
125
  - lib/spice/chef.rb
@@ -150,7 +133,6 @@ files:
150
133
  - lib/spice/role.rb
151
134
  - lib/spice/search.rb
152
135
  - lib/spice/version.rb
153
- - pkg/spice-0.0.1.alpha.1.gem
154
136
  - spec/spec_helper.rb
155
137
  - spec/spice/authentication_spec.rb
156
138
  - spec/spice/chef_spec.rb
@@ -172,7 +154,6 @@ files:
172
154
  - spec/support/respond_with_matcher.rb
173
155
  - spec/support/role_requests.rb
174
156
  - spice.gemspec
175
- has_rdoc: true
176
157
  homepage: http://github.com/danryan/spice
177
158
  licenses: []
178
159
 
@@ -190,20 +171,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
171
  required_rubygems_version: !ruby/object:Gem::Requirement
191
172
  none: false
192
173
  requirements:
193
- - - ">"
174
+ - - ">="
194
175
  - !ruby/object:Gem::Version
195
- version: 1.3.1
176
+ version: "0"
196
177
  requirements: []
197
178
 
198
179
  rubyforge_project: spice
199
- rubygems_version: 1.6.2
180
+ rubygems_version: 1.7.2
200
181
  signing_key:
201
182
  specification_version: 3
202
183
  summary: Chef API wrapper
203
184
  test_files:
204
- - features/spice.feature
205
- - features/step_definitions/spice_steps.rb
206
- - features/support/env.rb
207
185
  - spec/spec_helper.rb
208
186
  - spec/spice/authentication_spec.rb
209
187
  - spec/spice/chef_spec.rb
@@ -224,3 +202,4 @@ test_files:
224
202
  - spec/support/requests.rb
225
203
  - spec/support/respond_with_matcher.rb
226
204
  - spec/support/role_requests.rb
205
+ has_rdoc:
data/.DS_Store DELETED
Binary file
data/Notes.md DELETED
File without changes
@@ -1,9 +0,0 @@
1
- Feature: something something
2
- In order to something something
3
- A user something something
4
- something something something
5
-
6
- Scenario: something something
7
- Given inspiration
8
- When I create a sweet new gem
9
- Then everyone should see how awesome I am
File without changes
@@ -1,14 +0,0 @@
1
- require 'bundler'
2
- begin
3
- Bundler.setup(:default, :development)
4
- rescue Bundler::BundlerError => e
5
- $stderr.puts e.message
6
- $stderr.puts "Run `bundle install` to install missing gems"
7
- exit e.status_code
8
- end
9
-
10
- $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
11
- require 'spice'
12
-
13
- require 'rspec/expectations'
14
- require 'webmock/cucumber'