sewell 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 358b5a20e3f8dc39abca06e1e662453f7d4528ac
4
- data.tar.gz: 191fb1bf2b737c1b9e8bd5df1be4ab43b1ac4c24
3
+ metadata.gz: d8430cab999dcb76ecd0372c0043550f0c140cc2
4
+ data.tar.gz: 0658ae06250b16068ea398cc87be02829192b34d
5
5
  SHA512:
6
- metadata.gz: c33e4631231346e36a459c5a9acb861bd5233ca268b1a9a5afb95a73b3e9201fe6284d087575827264ecf08a89b768d9874def9698a943c01bb833922be7e303
7
- data.tar.gz: a3c26999e6bf16d1df44c46b6aecc39b7796b9120522917c0f563a007cc4965011bf5786a6fba71a6877f6682492345ada7e2ade0591f83a0182023e18da6a46
6
+ metadata.gz: 6df9d13a9dda63c8239bd7d0d17f2ea489a953e52dde6c42beb8b07b305080908f97ab57aaf579e38bc44f035c4ec1cac68352c8d8bd15eb4bbadbf9e0818bfe
7
+ data.tar.gz: 04b84bba6f23723d2b97da4b1a167deea271c21afb57deb78c9e8aded791c6d9b70303d287f97a5739869dfd96a0c02ca7ad56cace646011aa646e2d3327ae25
@@ -133,6 +133,6 @@ module Sewell
133
133
  if ex.first
134
134
  query.gsub!(ex.first, '')
135
135
  end
136
- query.gsub(/(:|<|>|\[|\])/, '')
136
+ query.gsub(/(:|<|>|\[|\])|\+/, '')
137
137
  end
138
138
  end
@@ -1,3 +1,3 @@
1
1
  module Sewell
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
@@ -24,4 +24,8 @@ describe Sewell do
24
24
  Sewell.generate('"Rainy veil" OR あなたの愛した世界', ['buta']).should == "( buta:@\"Rainy veil\" ) OR ( buta:@あなたの愛した世界 )"
25
25
  Sewell.generate('あなたの愛した世界 OR "Rainy veil"', ['buta']).should == "( buta:@あなたの愛した世界 ) OR ( buta:@\"Rainy veil\" )"
26
26
  end
27
+
28
+ it 'can use +' do
29
+ Sewell.generate('Aチャンネル +smile', ['buta']).should == '( buta:@Aチャンネル ) + ( buta:@smile )'
30
+ end
27
31
  end
@@ -5,7 +5,6 @@
5
5
  #
6
6
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
7
  RSpec.configure do |config|
8
- config.treat_symbols_as_metadata_keys_with_true_values = true
9
8
  config.run_all_when_everything_filtered = true
10
9
  config.filter_run :focus
11
10
 
@@ -14,4 +13,6 @@ RSpec.configure do |config|
14
13
  # the seed, which is printed after each run.
15
14
  # --seed 1234
16
15
  config.order = 'random'
16
+
17
+ config.expect_with(:rspec) { |c| c.syntax = :should }
17
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sewell
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ssig33
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-17 00:00:00.000000000 Z
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec