evertils-common 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +8 -0
- data/lib/evertils/common.rb +1 -1
- data/lib/evertils/common/entity/note.rb +1 -1
- data/lib/evertils/common/entity/notebook.rb +1 -0
- data/lib/evertils/common/entity/tag.rb +3 -1
- data/lib/evertils/common/{evernote.rb → simplequeries.rb} +4 -6
- data/lib/evertils/common/version.rb +1 -1
- metadata +3 -4
- data/lib/evertils/common/results_helper.rb +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02dd9b8ab4a87dc43530c8f3901a3635167ce8be
|
4
|
+
data.tar.gz: c56c21729320d0c0ce03b2c47079476330ba1325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12cbf17aec809a6f401c63d8fdd0a1f7ec0a66b5de8303abed2b08df8c1ee8be1a83d82e460ac49795c7212b456e9b43df2afd39b9081b82249bdad4660ad524
|
7
|
+
data.tar.gz: 125c61ce993770a8aba0b9a8e9336c3984fe6ccfe4462251cfd7c767d96d64280aeb65f0bcea136ccc5e19110afdf5967521f0af49681789cb0a378716d7ae00
|
data/Rakefile
CHANGED
data/lib/evertils/common.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
require 'evertils/common/enml'
|
3
|
-
require 'evertils/common/results_helper'
|
4
3
|
require 'evertils/common/entity/notebook'
|
5
4
|
require 'evertils/common/entity/notebooks'
|
6
5
|
require 'evertils/common/entity/notes'
|
@@ -10,15 +9,14 @@ require 'evertils/common/entity/tags'
|
|
10
9
|
|
11
10
|
module Evertils
|
12
11
|
module Common
|
13
|
-
class
|
12
|
+
class SimpleQueries
|
14
13
|
|
15
14
|
def notebooks
|
16
15
|
Entity::Notebooks.new.all
|
17
16
|
end
|
18
17
|
|
19
18
|
def tags
|
20
|
-
|
21
|
-
tags.all
|
19
|
+
Entity::Tags.new.all
|
22
20
|
end
|
23
21
|
|
24
22
|
def notebook_by_name(name)
|
@@ -42,8 +40,8 @@ module Evertils
|
|
42
40
|
note.create_from_yml(full_path)
|
43
41
|
end
|
44
42
|
|
45
|
-
def
|
46
|
-
nb = Entity::
|
43
|
+
def create_notebooks_from(full_path)
|
44
|
+
nb = Entity::Notebooks.new
|
47
45
|
nb.create_from_yml(full_path)
|
48
46
|
end
|
49
47
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evertils-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Priebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -93,8 +93,7 @@ files:
|
|
93
93
|
- lib/evertils/common/entity/stack.rb
|
94
94
|
- lib/evertils/common/entity/tag.rb
|
95
95
|
- lib/evertils/common/entity/tags.rb
|
96
|
-
- lib/evertils/common/
|
97
|
-
- lib/evertils/common/results_helper.rb
|
96
|
+
- lib/evertils/common/simplequeries.rb
|
98
97
|
- lib/evertils/common/version.rb
|
99
98
|
homepage: http://rubygems.org/gems/evertils-common
|
100
99
|
licenses:
|
@@ -1,22 +0,0 @@
|
|
1
|
-
module Evertils
|
2
|
-
module Common
|
3
|
-
class Results
|
4
|
-
attr_reader :bucket
|
5
|
-
|
6
|
-
def initialize
|
7
|
-
@bucket = []
|
8
|
-
@bucket
|
9
|
-
end
|
10
|
-
|
11
|
-
# Add a result for processing
|
12
|
-
def add(result)
|
13
|
-
@bucket.push(result.to_bool)
|
14
|
-
result.to_bool
|
15
|
-
end
|
16
|
-
|
17
|
-
def should_eval_to(pass_value)
|
18
|
-
@bucket.all? == pass_value
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|