mongopipe 1.3 → 1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in mongopipe.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Stephen Blum
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,42 @@
1
+ # PubNub MongoDB Pipe
2
+
3
+ Stream data inserted into MongoDB directly to your iPhone App.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'mongopipe'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install mongopipe
18
+
19
+ ## Usage
20
+
21
+ ```ruby
22
+ MongoPubNubPipe::Connect.new(
23
+ :puts_usage => true,
24
+ :publish_key => 'demo', ## YOUR PUBLISH KEY
25
+ :subscribe_key => 'demo', ## YOUR SUBSCRIBE KEY
26
+ :db => 'test',
27
+ :collection => 'cap_collection',
28
+ :callback => lambda{ |doc|
29
+ ## Optional Callback Called on Doc Insert
30
+ ## Remove :callback if you don't need it.
31
+ puts(doc)
32
+ }
33
+ ).pipe()
34
+ ```
35
+
36
+ ## Contributing
37
+
38
+ 1. Fork it
39
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
40
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
41
+ 4. Push to the branch (`git push origin my-new-feature`)
42
+ 5. Create new Pull Request
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
File without changes
@@ -0,0 +1,3 @@
1
+ module Mongopipe
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/mongopipe/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.add_dependency "pubnub"
6
+ gem.add_dependency "mongo"
7
+
8
+ gem.authors = ["Stephen Blum"]
9
+ gem.email = ["help@pubnub.com"]
10
+ gem.description = "MongoDB Pipe powered by PubNub."
11
+ gem.summary = "Pipe MongoDB Document Data directly to your Mobile App."
12
+ gem.homepage = "https://github.com/stephenlb/pubnub-mongo-pipe"
13
+
14
+ gem.files = `git ls-files`.split($\)
15
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
+ gem.name = "mongopipe"
18
+ gem.require_paths = ["lib"]
19
+ gem.version = "1.4"
20
+ end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongopipe
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.3'
4
+ version: '1.4'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - PubNub
8
+ - Stephen Blum
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-01 00:00:00.000000000 Z
12
+ date: 2013-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pubnub
@@ -44,15 +44,22 @@ dependencies:
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
46
  description: MongoDB Pipe powered by PubNub.
47
- email: help@pubnub.com
47
+ email:
48
+ - help@pubnub.com
48
49
  executables: []
49
50
  extensions: []
50
51
  extra_rdoc_files: []
51
52
  files:
52
- - mongopipe.rb
53
+ - .gitignore
54
+ - Gemfile
55
+ - LICENSE
56
+ - README.md
57
+ - Rakefile
58
+ - lib/mongopipe.rb
59
+ - lib/mongopipe/version.rb
60
+ - mongopipe.gemspec
53
61
  homepage: https://github.com/stephenlb/pubnub-mongo-pipe
54
- licenses:
55
- - MIT
62
+ licenses: []
56
63
  post_install_message:
57
64
  rdoc_options: []
58
65
  require_paths: