picky 4.20.1 → 4.20.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/picky.rb +1 -1
  3. data/spec/lib/picky_spec.rb +12 -0
  4. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f25d9203dd2ec9711b17ff15a7f8efe8e4625e63
4
- data.tar.gz: 3422b02dc81bf9af884d0f54db2d94b53eedf284
3
+ metadata.gz: 48213f688488361aa4c09b943c2be94e956e19b1
4
+ data.tar.gz: 1ec6a4dc8d8dced3c2c2a7b6a8ce9f7176acb592
5
5
  SHA512:
6
- metadata.gz: 8b6b0d73bbd233558fc64cbb65bd1975c5f37b260071d90c363933ac3863435a30b6067574ce48cdb16e117976da6713f05d5108eb47d0f9620de65e8666ab6b
7
- data.tar.gz: 214ca1310b052232bafef670a2dc8013bd0c09c70f9ce7ea2e90338c858d71fd81e7e1a0a080bb91aff64c458b63f7a329abad8f9be543c558aee3747daf3996
6
+ metadata.gz: e3eb94fd9f3a4cbf3695f1611f6a54aae9193c934e8d63e7a072b81f1766d54224d164cc01d665f143f756dc309d09ee14146746b25d3e343b028e82a4dd5d8e
7
+ data.tar.gz: 8407ce2fa8aa9a423e6387d2bdb13b98da910576e815bbd021c9d6853b11c837390977f4871d67304a2321ccc5f50bbc5dc7b106fc74eec4471dad0fec04098e
data/lib/picky.rb CHANGED
@@ -33,7 +33,7 @@ module Picky
33
33
  # TODO Still required with Ruby 2.1?
34
34
  #
35
35
  # require 'fileutils'
36
- # require 'strscan'
36
+ require 'strscan'
37
37
 
38
38
  # Check if platform specific modifiers need to be installed.
39
39
  #
@@ -11,4 +11,16 @@ describe Picky do
11
11
  # Encoding.default_internal.should == Encoding::UTF_8
12
12
  # end
13
13
 
14
+ it 'loads in a simple ruby environment with the defined requirements' do
15
+ #TODO Picky.root is set to /spec/temp in spec_helper, so is this the "best" way?
16
+ load_path = File.expand_path('../../../lib', __FILE__)
17
+ ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']).sub(/.*\s.*/m, '"\&"')
18
+
19
+ simple_load = <<-COMMAND
20
+ #{ruby} -I #{load_path} -r picky -e "puts 'OK'"
21
+ COMMAND
22
+
23
+ IO.popen(simple_load, err: [:child, :out]).readline.strip.should == 'OK'
24
+ end
25
+
14
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picky
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.20.1
4
+ version: 4.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-13 00:00:00.000000000 Z
11
+ date: 2014-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -397,7 +397,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
397
397
  version: '0'
398
398
  requirements: []
399
399
  rubyforge_project: http://rubyforge.org/projects/picky
400
- rubygems_version: 2.2.0
400
+ rubygems_version: 2.2.2
401
401
  signing_key:
402
402
  specification_version: 4
403
403
  summary: 'Picky: Semantic Search Engine. Clever Interface. Good Tools.'
@@ -553,4 +553,3 @@ test_files:
553
553
  - spec/lib/tasks/try_spec.rb
554
554
  - spec/lib/tokenizer_spec.rb
555
555
  - spec/performant_spec.rb
556
- has_rdoc: