fake_sns 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b861362c289a1a7af6b1dd8ed47872649f7ef1da
4
- data.tar.gz: 7b6df23053532af553969b5361283bee879a1bd0
3
+ metadata.gz: f7ee25d3164e85ff5a4fcf4ad5002293fc61137f
4
+ data.tar.gz: 28a8dc1d79018fb669e4a935f5079ef8a5e1b7b6
5
5
  SHA512:
6
- metadata.gz: 569e6d605977f0ffaf5fb17fc71a4ba1ad4eb36b27ffc3844a916fa075ee500ee0887f4bd9d3f02dbc7d0dde2d5960166cc9d3b2691db28c8e8d37c36fb56673
7
- data.tar.gz: 9426de77b344c2553a915dcac25230bdd3234dd8670a813b48b6bf59e5952f9a42900cd0bc145289b0f4b0c56249f649a624bff10d3737208fce4483f0523d57
6
+ metadata.gz: 0481806ac3b03bc6b88d4a52998202c44152c27e2b1e1bbedda12c0a185d43ea343c2c445465445699bfd89d5536a01e36169c94a999ffb705dfc1e2d20855d3
7
+ data.tar.gz: eee801999500fc8576f124a9a984e1fe029a86e47d96d4bfcc85aceba3b57026386f89fd37eede10591ac5e124542bf8ef68672b02f99295c85c9e45327196da
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --color
2
2
  --format documentation
3
+ --require spec_helper
data/fake_sns.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ #coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'fake_sns/version'
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency "virtus", "~> 1.0"
22
22
  spec.add_dependency "verbose_hash_fetch"
23
23
  spec.add_dependency "faraday", "~> 0.8"
24
- spec.add_dependency "aws-sdk", "~> 1.30"
24
+ spec.add_dependency 'aws-sdk', '~> 1.30'
25
25
 
26
26
  spec.add_development_dependency "bundler"
27
27
  spec.add_development_dependency "rake"
@@ -1,3 +1,5 @@
1
+ require_relative 'list_subscriptions'
2
+
1
3
  module FakeSNS
2
4
  module Actions
3
5
  class ListSubscriptionsByTopic < ListSubscriptions
@@ -1,3 +1,3 @@
1
1
  module FakeSNS
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,8 +1,7 @@
1
- require "spec_helper"
2
1
  require "sinatra/base"
3
2
  require 'json_expressions/rspec'
4
3
 
5
- describe "Drain messages", :sqs do
4
+ RSpec.describe "Drain messages", :sqs do
6
5
 
7
6
  it "works for SQS" do
8
7
  topic = sns.topics.create("my-topic")
@@ -1,6 +1,4 @@
1
- require "spec_helper"
2
-
3
- describe "Publishing" do
1
+ RSpec.describe "Publishing" do
4
2
 
5
3
  let(:existing_topic) { sns.topics.create("my-topic") }
6
4
 
@@ -1,6 +1,4 @@
1
- require "spec_helper"
2
-
3
- describe "Replacing the data" do
1
+ RSpec.describe "Replacing the data" do
4
2
 
5
3
  it "works by submitting new YAML" do
6
4
  topic = sns.topics.create("my-topic")
@@ -1,6 +1,4 @@
1
- require "spec_helper"
2
-
3
- describe "Subscribing", :sqs do
1
+ RSpec.describe "Subscribing", :sqs do
4
2
 
5
3
  it "lists subscriptions globally" do
6
4
  topic = sns.topics.create("my-topic")
@@ -1,6 +1,4 @@
1
- require "spec_helper"
2
-
3
- describe "Topics" do
1
+ RSpec.describe "Topics" do
4
2
 
5
3
  it "rejects invalid characters in topic names" do
6
4
  expect {
data/spec/spec_helper.rb CHANGED
@@ -39,10 +39,7 @@ end
39
39
 
40
40
  RSpec.configure do |config|
41
41
 
42
- config.treat_symbols_as_metadata_keys_with_true_values = true
43
- config.expect_with :rspec do |rspec|
44
- rspec.syntax = :expect
45
- end
42
+ config.disable_monkey_patching!
46
43
 
47
44
  config.before(:each) { $fake_sns.start }
48
45
  config.after(:suite) { $fake_sns.stop }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fake_sns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - iain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra