nutella_lib 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/util/mongo_persisted_hash.rb +3 -2
- data/nutella_lib.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 765a0c2fc65382113a15ad839affeb87c4505145
|
4
|
+
data.tar.gz: 7ba460e28b153b0fcbcebfcf877ba05cab1b3440
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdfb63346078769d289ce6c7474da8c880e05ba85d7f02c77ccac4eaef461b36cd7dc6c7b8b441da83f15478a466eaff7bebf4dfa76658d6fc46b7a5c8a8d34e
|
7
|
+
data.tar.gz: 4e888d402be3de03a4a55d5fd223079fe2565347b40d64a2932084002496c635181836b2b5b4af9a4d6844652b6b2128b8fa7d7e2675768b9b8d1e9466976472
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
nutella library for Ruby. Used mostly to create bots in Ruby.
|
6
6
|
|
7
7
|
# Getting started
|
8
|
-
Take a look at [basic-ruby-bot](https://github.com/nutella-framework/basic-ruby-bot) to see how to use nutella_lib
|
8
|
+
Take a look at [basic-ruby-bot](https://github.com/nutella-framework/basic-ruby-bot) to see how to use nutella_lib to build a bot.
|
9
9
|
|
10
10
|
# Docs
|
11
11
|
Check out the docs at [http://www.rubydoc.info/gems/nutella_lib](http://www.rubydoc.info/gems/nutella_lib)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.12
|
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'mongo'
|
2
|
-
require 'pstore'
|
3
2
|
|
4
3
|
# An hash that is automatically persisted to a MongoDB document.
|
5
4
|
# This class behaves *similarly* to a regular Hash but it persists every operation
|
@@ -62,7 +61,9 @@ class MongoPersistedHash
|
|
62
61
|
end
|
63
62
|
|
64
63
|
def to_h
|
65
|
-
load_hash
|
64
|
+
hash = load_hash
|
65
|
+
hash.delete '_id'
|
66
|
+
hash
|
66
67
|
end
|
67
68
|
|
68
69
|
def keys
|
data/nutella_lib.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: nutella_lib 0.4.
|
5
|
+
# stub: nutella_lib 0.4.12 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "nutella_lib"
|
9
|
-
s.version = "0.4.
|
9
|
+
s.version = "0.4.12"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Alessandro Gnoli"]
|
14
|
-
s.date = "2015-
|
14
|
+
s.date = "2015-05-01"
|
15
15
|
s.description = "Implements the nutella protocol and exposes it natively to ruby developers"
|
16
16
|
s.email = "tebemis@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nutella_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Gnoli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mqtt
|