noodall-core 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.rvmrc +49 -0
- data/VERSION +1 -1
- data/lib/noodall/search.rb +1 -1
- data/noodall-core.gemspec +9 -8
- metadata +29 -28
data/.rvmrc
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
+
# development environment upon cd'ing into the directory
|
5
|
+
|
6
|
+
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
|
7
|
+
environment_id="ruby-1.8.7-p334@g-noodall-core"
|
8
|
+
|
9
|
+
#
|
10
|
+
# First we attempt to load the desired environment directly from the environment
|
11
|
+
# file. This is very fast and efficicent compared to running through the entire
|
12
|
+
# CLI and selector. If you want feedback on which environment was used then
|
13
|
+
# insert the word 'use' after --create as this triggers verbose mode.
|
14
|
+
#
|
15
|
+
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
|
16
|
+
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then
|
17
|
+
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
18
|
+
|
19
|
+
[[ -s ".rvm/hooks/after_use" ]] && . ".rvm/hooks/after_use"
|
20
|
+
else
|
21
|
+
# If the environment file has not yet been created, use the RVM CLI to select.
|
22
|
+
rvm --create use "$environment_id"
|
23
|
+
fi
|
24
|
+
|
25
|
+
#
|
26
|
+
# If you use an RVM gemset file to install a list of gems (*.gems), you can have
|
27
|
+
# it be automatically loaded. Uncomment the following and adjust the filename if
|
28
|
+
# necessary.
|
29
|
+
#
|
30
|
+
# filename=".gems"
|
31
|
+
# if [[ -s "$filename" ]] ; then
|
32
|
+
# rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
|
33
|
+
# fi
|
34
|
+
|
35
|
+
#
|
36
|
+
# If you use bundler and would like to run bundle each time you enter the
|
37
|
+
# directory, you can uncomment the following code.
|
38
|
+
#
|
39
|
+
# # Ensure that Bundler is installed. Install it if it is not.
|
40
|
+
# if ! command -v bundle >/dev/null; then
|
41
|
+
# printf "The rubygem 'bundler' is not installed. Installing it now.\n"
|
42
|
+
# gem install bundler
|
43
|
+
# fi
|
44
|
+
#
|
45
|
+
# # Bundle while reducing excess noise.
|
46
|
+
# printf "Bundling your gems. This may take a few minutes on a fresh clone.\n"
|
47
|
+
# bundle | grep -v '^Using ' | grep -v ' is complete' | sed '/^$/d'
|
48
|
+
#
|
49
|
+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.3
|
data/lib/noodall/search.rb
CHANGED
@@ -41,7 +41,7 @@ module Noodall
|
|
41
41
|
options = plucky_query.options.to_hash
|
42
42
|
|
43
43
|
# Extract words from the query and clean up
|
44
|
-
words = query.downcase.split(/\W/) - STOPWORDS
|
44
|
+
words = query.to_s.downcase.split(/\W/) - STOPWORDS
|
45
45
|
words.reject!{|w| w.length < 3}
|
46
46
|
|
47
47
|
# add stemmed words to the array of words
|
data/noodall-core.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{noodall-core}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Steve England"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-06-03}
|
13
13
|
s.description = %q{Core data objects for Noodall}
|
14
14
|
s.email = %q{steve@wearebeef.co.uk}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".gitignore",
|
22
|
+
".rvmrc",
|
22
23
|
"Gemfile",
|
23
24
|
"LICENSE",
|
24
25
|
"README.rdoc",
|
@@ -44,15 +45,15 @@ Gem::Specification.new do |s|
|
|
44
45
|
s.homepage = %q{http://github.com/beef/noodall-core}
|
45
46
|
s.rdoc_options = ["--charset=UTF-8"]
|
46
47
|
s.require_paths = ["lib"]
|
47
|
-
s.rubygems_version = %q{1.
|
48
|
+
s.rubygems_version = %q{1.6.2}
|
48
49
|
s.summary = %q{Core data objects for Noodall}
|
49
50
|
s.test_files = [
|
50
|
-
"spec/
|
51
|
-
"spec/
|
52
|
-
"spec/component_spec.rb",
|
53
|
-
"spec/spec_helper.rb",
|
51
|
+
"spec/component_spec.rb",
|
52
|
+
"spec/factories/component.rb",
|
54
53
|
"spec/factories/node.rb",
|
55
|
-
"spec/
|
54
|
+
"spec/node_spec.rb",
|
55
|
+
"spec/site_map_spec.rb",
|
56
|
+
"spec/spec_helper.rb"
|
56
57
|
]
|
57
58
|
|
58
59
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noodall-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 3
|
10
|
+
version: 0.6.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steve England
|
@@ -15,11 +15,13 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-03 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
22
|
+
prerelease: false
|
23
|
+
type: :runtime
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
25
|
none: false
|
24
26
|
requirements:
|
25
27
|
- - ~>
|
@@ -30,12 +32,12 @@ dependencies:
|
|
30
32
|
- 8
|
31
33
|
- 6
|
32
34
|
version: 0.8.6
|
33
|
-
requirement: *id001
|
34
|
-
prerelease: false
|
35
35
|
name: mongo_mapper
|
36
|
-
|
36
|
+
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
|
38
|
+
prerelease: false
|
39
|
+
type: :runtime
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
41
|
none: false
|
40
42
|
requirements:
|
41
43
|
- - ~>
|
@@ -46,12 +48,12 @@ dependencies:
|
|
46
48
|
- 1
|
47
49
|
- 1
|
48
50
|
version: 0.1.1
|
49
|
-
requirement: *id002
|
50
|
-
prerelease: false
|
51
51
|
name: ramdiv-mongo_mapper_acts_as_tree
|
52
|
-
|
52
|
+
version_requirements: *id002
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
|
-
|
54
|
+
prerelease: false
|
55
|
+
type: :runtime
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
57
|
none: false
|
56
58
|
requirements:
|
57
59
|
- - ~>
|
@@ -62,12 +64,12 @@ dependencies:
|
|
62
64
|
- 1
|
63
65
|
- 1
|
64
66
|
version: 0.1.1
|
65
|
-
requirement: *id003
|
66
|
-
prerelease: false
|
67
67
|
name: mm-multi-parameter-attributes
|
68
|
-
|
68
|
+
version_requirements: *id003
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
|
70
|
+
prerelease: false
|
71
|
+
type: :runtime
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
71
73
|
none: false
|
72
74
|
requirements:
|
73
75
|
- - "="
|
@@ -78,12 +80,12 @@ dependencies:
|
|
78
80
|
- 1
|
79
81
|
- 1
|
80
82
|
version: 0.1.1
|
81
|
-
requirement: *id004
|
82
|
-
prerelease: false
|
83
83
|
name: canable
|
84
|
-
|
84
|
+
version_requirements: *id004
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
|
-
|
86
|
+
prerelease: false
|
87
|
+
type: :runtime
|
88
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
87
89
|
none: false
|
88
90
|
requirements:
|
89
91
|
- - ">="
|
@@ -92,10 +94,8 @@ dependencies:
|
|
92
94
|
segments:
|
93
95
|
- 0
|
94
96
|
version: "0"
|
95
|
-
requirement: *id005
|
96
|
-
prerelease: false
|
97
97
|
name: ruby-stemmer
|
98
|
-
|
98
|
+
version_requirements: *id005
|
99
99
|
description: Core data objects for Noodall
|
100
100
|
email: steve@wearebeef.co.uk
|
101
101
|
executables: []
|
@@ -108,6 +108,7 @@ extra_rdoc_files:
|
|
108
108
|
files:
|
109
109
|
- .document
|
110
110
|
- .gitignore
|
111
|
+
- .rvmrc
|
111
112
|
- Gemfile
|
112
113
|
- LICENSE
|
113
114
|
- README.rdoc
|
@@ -159,14 +160,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
160
|
requirements: []
|
160
161
|
|
161
162
|
rubyforge_project:
|
162
|
-
rubygems_version: 1.
|
163
|
+
rubygems_version: 1.6.2
|
163
164
|
signing_key:
|
164
165
|
specification_version: 3
|
165
166
|
summary: Core data objects for Noodall
|
166
167
|
test_files:
|
168
|
+
- spec/component_spec.rb
|
169
|
+
- spec/factories/component.rb
|
170
|
+
- spec/factories/node.rb
|
167
171
|
- spec/node_spec.rb
|
168
172
|
- spec/site_map_spec.rb
|
169
|
-
- spec/component_spec.rb
|
170
173
|
- spec/spec_helper.rb
|
171
|
-
- spec/factories/node.rb
|
172
|
-
- spec/factories/component.rb
|