bastille 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .rbenv-*
6
+ .rspec
6
7
  .yardoc
7
8
  Gemfile.lock
8
9
  InstalledFiles
data/Gemfile.lock CHANGED
@@ -21,26 +21,26 @@ GEM
21
21
  cucumber (>= 1.1.1)
22
22
  rspec-expectations (>= 2.7.0)
23
23
  builder (3.2.0)
24
- childprocess (0.3.8)
24
+ childprocess (0.3.9)
25
25
  ffi (~> 1.0, >= 1.0.11)
26
- cucumber (1.2.1)
26
+ cucumber (1.2.3)
27
27
  builder (>= 2.1.2)
28
28
  diff-lcs (>= 1.1.3)
29
- gherkin (~> 2.11.0)
30
- json (>= 1.4.6)
29
+ gherkin (~> 2.11.6)
30
+ multi_json (~> 1.3)
31
31
  diff-lcs (1.2.1)
32
32
  fakeredis (0.4.2)
33
33
  redis (~> 3.0.0)
34
- faraday (0.8.6)
34
+ faraday (0.8.7)
35
35
  multipart-post (~> 1.1)
36
36
  faraday_middleware (0.9.0)
37
37
  faraday (>= 0.7.4, < 0.9)
38
- ffi (1.4.0)
38
+ ffi (1.6.0)
39
39
  gherkin (2.11.6)
40
40
  json (>= 1.7.6)
41
- gibberish (1.2.1)
42
- hashie (1.2.0)
43
- highline (1.6.15)
41
+ gibberish (1.2.2)
42
+ hashie (2.0.3)
43
+ highline (1.6.16)
44
44
  httparty (0.10.2)
45
45
  multi_json (~> 1.0)
46
46
  multi_xml (>= 0.5.2)
@@ -50,33 +50,39 @@ GEM
50
50
  plist
51
51
  rack
52
52
  sinatra
53
- multi_json (1.6.1)
53
+ multi_json (1.7.2)
54
54
  multi_xml (0.5.3)
55
55
  multipart-post (1.2.0)
56
56
  netrc (0.7.7)
57
- octokit (1.23.0)
57
+ octokit (1.24.0)
58
58
  addressable (~> 2.2)
59
59
  faraday (~> 0.8)
60
60
  faraday_middleware (~> 0.9)
61
- hashie (~> 1.2)
61
+ hashie (~> 2.0)
62
62
  multi_json (~> 1.3)
63
63
  netrc (~> 0.7.7)
64
64
  plist (3.1.0)
65
65
  rack (1.5.2)
66
- rack-protection (1.3.2)
66
+ rack-protection (1.5.0)
67
67
  rack
68
- redis (3.0.2)
68
+ redis (3.0.3)
69
69
  redis-namespace (1.2.1)
70
70
  redis (~> 3.0.0)
71
+ rspec (2.13.0)
72
+ rspec-core (~> 2.13.0)
73
+ rspec-expectations (~> 2.13.0)
74
+ rspec-mocks (~> 2.13.0)
75
+ rspec-core (2.13.1)
71
76
  rspec-expectations (2.13.0)
72
77
  diff-lcs (>= 1.1.3, < 2.0)
73
- sinatra (1.3.5)
74
- rack (~> 1.4)
75
- rack-protection (~> 1.3)
76
- tilt (~> 1.3, >= 1.3.3)
78
+ rspec-mocks (2.13.0)
79
+ sinatra (1.4.2)
80
+ rack (~> 1.5, >= 1.5.2)
81
+ rack-protection (~> 1.4)
82
+ tilt (~> 1.3, >= 1.3.4)
77
83
  system_timer (1.2.4)
78
84
  thor (0.17.0)
79
- tilt (1.3.3)
85
+ tilt (1.3.6)
80
86
 
81
87
  PLATFORMS
82
88
  ruby
@@ -86,4 +92,5 @@ DEPENDENCIES
86
92
  bastille!
87
93
  fakeredis
88
94
  mimic
95
+ rspec
89
96
  system_timer
data/bastille.gemspec CHANGED
@@ -30,4 +30,5 @@ Gem::Specification.new do |gem|
30
30
  gem.add_development_dependency 'aruba'
31
31
  gem.add_development_dependency 'mimic'
32
32
  gem.add_development_dependency 'fakeredis'
33
+ gem.add_development_dependency 'rspec'
33
34
  end
@@ -113,7 +113,7 @@ module Bastille
113
113
  contents = Base64.decode64(@response.body)
114
114
  contents = cipher.decrypt(contents)
115
115
  end
116
- @body ||= MultiJson.load(contents)
116
+ @body ||= MultiJson.load(contents) unless contents.empty?
117
117
  end
118
118
 
119
119
  def body=(body)
@@ -1,3 +1,3 @@
1
1
  module Bastille
2
- VERSION = "0.0.1"
2
+ VERSION = '0.0.2'
3
3
  end
@@ -0,0 +1,6 @@
1
+ RSpec.configure do |config|
2
+ config.treat_symbols_as_metadata_keys_with_true_values = true
3
+ config.run_all_when_everything_filtered = true
4
+ config.filter_run :focus
5
+ config.order = 'random'
6
+ end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: bastille
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ryan Moran
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-19 00:00:00.000000000 Z
12
+ date: 2013-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  version_requirements: !ruby/object:Gem::Requirement
@@ -203,6 +203,22 @@ dependencies:
203
203
  - !ruby/object:Gem::Version
204
204
  version: '0'
205
205
  none: false
206
+ - !ruby/object:Gem::Dependency
207
+ version_requirements: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ! '>='
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
212
+ none: false
213
+ name: rspec
214
+ type: :development
215
+ prerelease: false
216
+ requirement: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ! '>='
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
221
+ none: false
206
222
  description: KV Storage As a Service, LOLz
207
223
  email:
208
224
  - ryan.moran@gmail.com
@@ -238,6 +254,7 @@ files:
238
254
  - lib/bastille/space.rb
239
255
  - lib/bastille/store.rb
240
256
  - lib/bastille/version.rb
257
+ - spec/spec_helper.rb
241
258
  homepage: https://github.com/ryanmoran/bastille
242
259
  licenses: []
243
260
  post_install_message:
@@ -269,3 +286,4 @@ test_files:
269
286
  - features/support/server.rb
270
287
  - features/token.feature
271
288
  - features/vault.feature
289
+ - spec/spec_helper.rb