mongoid-giza 0.6.1 → 0.6.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e88568de3ce6ba2000674119e6c9037e8c1955a1
4
- data.tar.gz: cc83403e36c7876e6949f2cee0cdc17ecaa6afb9
3
+ metadata.gz: 9edb036ce36b11799e47d366dd694c9b85ea5cba
4
+ data.tar.gz: 1d91150beaa2ed2afd8b8328805df93394b59496
5
5
  SHA512:
6
- metadata.gz: 2f4760e98e0074811b7de2dc0f778a266c740f0bfb5e4150a6005fee514c0c293c2402756f9a0ff376d77a4cfdcea47238dae9a660120096cfe571d3e4d4d35d
7
- data.tar.gz: 657c50a1c0647c2ddb9be644f17745afab69e5ba3e9fa4d5f0d8842c994f8ff8322a6f9ddfbede605acb5b911ada2f21171720035ad83423fd2b6ab8de3b129f
6
+ metadata.gz: bf0041aab836a2511ca73c02b7540e6562747d39e0cee50ac15df020aaa23183d2fa8905e9ada8a7b45020371464290b08b537f638eba0c88aa75e1d4e384104
7
+ data.tar.gz: 5d37e08e2e3332cbfdabb2ef80ae38bf75460aa103022e55e1b400e9e7fd557bc2ba782d4704f52d383195a3cfa7f7281b56c990e0d4d00817826ee12216f3af
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.2
4
+
5
+ * Allow underscore on fields' and attributes' names
6
+
3
7
  ## 0.6.1
4
8
 
5
9
  * Only allow alphabetical characters on fields' and attributes' names (replaces everything else with **-**)
@@ -11,7 +11,7 @@ module Mongoid
11
11
  #
12
12
  # @return [Symbol] the normalized symbol
13
13
  def normalize(s)
14
- s.to_s.gsub(/[^[:alpha:]]/, "-").mb_chars.downcase.to_sym
14
+ s.to_s.gsub(/[^[:alpha:]_-]/, "-").mb_chars.downcase.to_sym
15
15
  end
16
16
  end
17
17
  end
@@ -1,6 +1,6 @@
1
1
  module Mongoid
2
2
  # :nodoc:
3
3
  module Giza
4
- VERSION = "0.6.1"
4
+ VERSION = "0.6.2"
5
5
  end
6
6
  end
data/mongoid-giza.gemspec CHANGED
@@ -15,8 +15,8 @@ Gem::Specification.new do |spec|
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files`.split($RS)
18
- spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
19
- spec.test_files = spec.files.grep(/^(test|spec|features)\//)
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_development_dependency "bundler", "~> 1.3"
@@ -91,7 +91,7 @@ describe Mongoid::Giza::Search do
91
91
  context "with no argument" do
92
92
  it "should respond to method from riddle" do
93
93
  allow(client).to receive(:respond_to?).with(:offset) { true }
94
- expect(client).to receive(:"offset").with(no_args)
94
+ expect(client).to receive(:offset).with(no_args)
95
95
  search.offset
96
96
  end
97
97
  end
@@ -107,7 +107,7 @@ describe Mongoid::Giza::Search do
107
107
  context "with multiple arguments" do
108
108
  it "should respond to method from riddle" do
109
109
  allow(client).to receive(:respond_to?).with(:offset) { true }
110
- expect(client).to receive(:"offset").with(1, 2)
110
+ expect(client).to receive(:offset).with(1, 2)
111
111
  search.offset(1, 2)
112
112
  end
113
113
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-giza
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maurício Batista
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-08 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler