h2ocube_rails_sunspot 0.0.1 → 0.0.2

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: 840a9c483bd1d4cf1210432d104c0d17ae2904fe
4
- data.tar.gz: 6aa8c8eb06ad60a83207422c68fc1716fcfc8555
3
+ metadata.gz: e338c8a016c8ae9315f7c8a0feb7174d4a3ecccf
4
+ data.tar.gz: a3cfc2d08e16129a9f3db5c2327a10c471f97470
5
5
  SHA512:
6
- metadata.gz: 35ab326f4400b67aad723a66fa4dc6fb9c0794e312489bb33b7035dc3cd8910e487169a4c1e26ca58b853dd276d3dcf4696a6090a67cab0c148e3b78d18bdf6a
7
- data.tar.gz: 2124b21e7a0dada07b030eaa08761bb43c2c77f69806763e77e54e288916bbcc0d5e7c96ecefeaba358fd4e0d49665d7ca194a778012d4e4988ada7a36e7a0a4
6
+ metadata.gz: f303c98d45e4741ac6d1dcc7ac581309f39f2ecd10aa859533bcffbdf8762864114cd9f446b750e0ec3e10f919124dff8379e40daf7ac0a589df4767c9fc6231
7
+ data.tar.gz: d498de3fd9603083ba9f6f990451f3c86ff4c816c3eeacda23f17ea8bc9467ae30064bea4d7bfac1a2bf580fbefa29e7e2457951fcc1fae40ae723ff6597f35e
data/Gemfile.lock ADDED
@@ -0,0 +1,101 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ h2ocube_rails_sunspot (0.0.1)
5
+ sunspot_rails
6
+ sunspot_solr
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actionmailer (4.0.1)
12
+ actionpack (= 4.0.1)
13
+ mail (~> 2.5.4)
14
+ actionpack (4.0.1)
15
+ activesupport (= 4.0.1)
16
+ builder (~> 3.1.0)
17
+ erubis (~> 2.7.0)
18
+ rack (~> 1.5.2)
19
+ rack-test (~> 0.6.2)
20
+ activemodel (4.0.1)
21
+ activesupport (= 4.0.1)
22
+ builder (~> 3.1.0)
23
+ activerecord (4.0.1)
24
+ activemodel (= 4.0.1)
25
+ activerecord-deprecated_finders (~> 1.0.2)
26
+ activesupport (= 4.0.1)
27
+ arel (~> 4.0.0)
28
+ activerecord-deprecated_finders (1.0.3)
29
+ activesupport (4.0.1)
30
+ i18n (~> 0.6, >= 0.6.4)
31
+ minitest (~> 4.2)
32
+ multi_json (~> 1.3)
33
+ thread_safe (~> 0.1)
34
+ tzinfo (~> 0.3.37)
35
+ arel (4.0.1)
36
+ atomic (1.1.14)
37
+ builder (3.1.4)
38
+ erubis (2.7.0)
39
+ hike (1.2.3)
40
+ i18n (0.6.9)
41
+ mail (2.5.4)
42
+ mime-types (~> 1.16)
43
+ treetop (~> 1.4.8)
44
+ mime-types (1.25.1)
45
+ mini_portile (0.5.2)
46
+ minitest (4.7.5)
47
+ multi_json (1.8.2)
48
+ nokogiri (1.6.1)
49
+ mini_portile (~> 0.5.0)
50
+ polyglot (0.3.3)
51
+ pr_geohash (1.0.0)
52
+ rack (1.5.2)
53
+ rack-test (0.6.2)
54
+ rack (>= 1.0)
55
+ rails (4.0.1)
56
+ actionmailer (= 4.0.1)
57
+ actionpack (= 4.0.1)
58
+ activerecord (= 4.0.1)
59
+ activesupport (= 4.0.1)
60
+ bundler (>= 1.3.0, < 2.0)
61
+ railties (= 4.0.1)
62
+ sprockets-rails (~> 2.0.0)
63
+ railties (4.0.1)
64
+ actionpack (= 4.0.1)
65
+ activesupport (= 4.0.1)
66
+ rake (>= 0.8.7)
67
+ thor (>= 0.18.1, < 2.0)
68
+ rake (10.1.0)
69
+ rsolr (1.0.9)
70
+ builder (>= 2.1.2)
71
+ sprockets (2.10.1)
72
+ hike (~> 1.2)
73
+ multi_json (~> 1.0)
74
+ rack (~> 1.0)
75
+ tilt (~> 1.1, != 1.3.0)
76
+ sprockets-rails (2.0.1)
77
+ actionpack (>= 3.0)
78
+ activesupport (>= 3.0)
79
+ sprockets (~> 2.8)
80
+ sunspot (2.1.0)
81
+ pr_geohash (~> 1.0)
82
+ rsolr (~> 1.0.7)
83
+ sunspot_rails (2.1.0)
84
+ nokogiri
85
+ rails (>= 3)
86
+ sunspot (= 2.1.0)
87
+ sunspot_solr (2.1.0)
88
+ thor (0.18.1)
89
+ thread_safe (0.1.3)
90
+ atomic
91
+ tilt (1.4.1)
92
+ treetop (1.4.15)
93
+ polyglot
94
+ polyglot (>= 0.3.1)
95
+ tzinfo (0.3.38)
96
+
97
+ PLATFORMS
98
+ ruby
99
+
100
+ DEPENDENCIES
101
+ h2ocube_rails_sunspot!
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 H2ocube.com
1
+ Copyright (c) 2014 H2ocube.com
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -24,6 +24,10 @@ Add sunspot to spec/spec_helper.rb
24
24
  Sunspot.commit
25
25
  end
26
26
 
27
+ Add sunspot to Capfile
28
+
29
+ require 'capistrano/sunspot'
30
+
27
31
  ## Contributing
28
32
 
29
33
  1. Fork it
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'h2ocube_rails_sunspot'
6
- s.version = '0.0.1'
6
+ s.version = '0.0.2'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Ben']
9
9
  s.email = ['ben@h2ocube.com']
@@ -0,0 +1 @@
1
+ load File.expand_path('../tasks/sunspot.cap', __FILE__)
@@ -0,0 +1,49 @@
1
+ namespace :sunspot do
2
+ task :setup_solr_data_dir do
3
+ on roles :app do
4
+ within shared_path do
5
+ execute :mkdir, "-p #{shared_path}/solr"
6
+ end
7
+ end
8
+ end
9
+
10
+ task :link_to_solr_shared_dirs do
11
+ on roles :app do
12
+ within shared_path do
13
+ execute :ln, "-s #{shared_path}/solr #{release_path}/solr"
14
+ end
15
+ end
16
+ end
17
+
18
+ desc 'start solr'
19
+ task :start do
20
+ on roles :app do
21
+ within release_path do
22
+ execute :rake, "sunspot:solr:start RAILS_ENV=#{fetch :stage}"
23
+ end
24
+ end
25
+ end
26
+
27
+ desc 'stop solr'
28
+ task :stop do
29
+ on roles :app do
30
+ within release_path do
31
+ execute :rake, "sunspot:solr:stop RAILS_ENV=#{fetch :stage};true"
32
+ end
33
+ end
34
+ end
35
+
36
+ desc 'reindex solr'
37
+ task :reindex do
38
+ on roles :app do
39
+ within release_path do
40
+ execute :rake, "sunspot:solr:reindex RAILS_ENV=#{fetch :stage};true"
41
+ end
42
+ end
43
+ end
44
+ end
45
+
46
+ after 'deploy:check', 'sunspot:setup_solr_data_dir'
47
+
48
+ before 'deploy:publishing', 'sunspot:link_to_solr_shared_dirs'
49
+ before 'deploy:publishing', 'sunspot:reindex'
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_sunspot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-21 00:00:00.000000000 Z
11
+ date: 2014-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sunspot_rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sunspot_solr
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Easy way to use sunspot for rails
@@ -46,10 +46,13 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - Gemfile
49
+ - Gemfile.lock
49
50
  - LICENSE.txt
50
51
  - README.md
51
52
  - Rakefile
52
53
  - h2ocube_rails_sunspot.gemspec
54
+ - lib/capistrano/sunspot.rb
55
+ - lib/capistrano/tasks/sunspot.cap
53
56
  - lib/generators/h2ocube_rails_sunspot_generator.rb
54
57
  - lib/generators/source/sunspot.rb.erb
55
58
  - lib/generators/source/sunspot.yml.erb
@@ -64,17 +67,17 @@ require_paths:
64
67
  - lib
65
68
  required_ruby_version: !ruby/object:Gem::Requirement
66
69
  requirements:
67
- - - '>='
70
+ - - ">="
68
71
  - !ruby/object:Gem::Version
69
72
  version: '0'
70
73
  required_rubygems_version: !ruby/object:Gem::Requirement
71
74
  requirements:
72
- - - '>='
75
+ - - ">="
73
76
  - !ruby/object:Gem::Version
74
77
  version: '0'
75
78
  requirements: []
76
79
  rubyforge_project:
77
- rubygems_version: 2.1.11
80
+ rubygems_version: 2.2.1
78
81
  signing_key:
79
82
  specification_version: 4
80
83
  summary: Easy way to use sunspot for rails