spree_prediction_io 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: 719b537eb9cf79b8a93904ebe9267ed04a6ac0c2
4
- data.tar.gz: 7354ba3ff33b3e3df2ff708d6f3b1ce9701a5fd2
3
+ metadata.gz: de75de2ef676c605c78bc7fe13f514f9f53c4b66
4
+ data.tar.gz: 2bba4457d58cf413b968ff2974b32a7424435388
5
5
  SHA512:
6
- metadata.gz: 93ed1ec8e3d3e9016ab634a662e1581c6a711ff1356e1757c82a3db9ffc755a779eae367ca86c1cfcd9d75b72ab946cd5f021970a95c6e6858f1cb0f85297276
7
- data.tar.gz: 2343a7ad12b569fccc6f0381a51f7e8b9a7e355ce88e8ea95d94c58cff69c18639cf520ca42b80b0c34abe52a779b13a06bb0b35513f909b6aef34697269ef7b
6
+ metadata.gz: 4f825d90d8ef2dc068e0507978a61298f728130fb1522b7dcb1d3b8cbe79ca63e260920a03f82613764fad48fd07d8cd6e2cb59f4535cee4a940d076437f88d5
7
+ data.tar.gz: eddd0d85c9600ceefa69d705fd339604d245b0e450860e32bf90335040b4bac646747493ed2269858a4c30b9d925fd2ba4acce85a46814c92b1992f097f0dfef
data/.travis.yml ADDED
@@ -0,0 +1,16 @@
1
+ language: ruby
2
+ cache: bundler
3
+ bundler_args: --without development production staging
4
+ env:
5
+ - DB=postgresql
6
+ rvm:
7
+ - 1.8.7
8
+ - 1.9.3
9
+ - 2.1
10
+ script:
11
+ - RAILS_ENV=test bundle exec rake
12
+ notifications:
13
+ slack: resolvedigital:PjPY3KPAjmyPsjyfEkdcjMEf
14
+ addons:
15
+ code_climate:
16
+ repo_token: 30bf36f05514365034ed0bac270d155ffe1e15b0e6f0f1109bc44c0da18cccff
data/Gemfile CHANGED
@@ -1,4 +1,17 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in spree_prediction_io.gemspec
4
4
  gemspec
5
+
6
+ gem 'predictionio'
7
+ gem 'resque'
8
+
9
+ group :test do
10
+ gem "rake"
11
+ gem "minitest"
12
+ gem "codeclimate-test-reporter", :require => nil
13
+ end
14
+
15
+ group :development do
16
+ require "pry"
17
+ end
data/README.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # SpreePredictionIo
2
2
 
3
- TODO: Write a gem description
3
+ Sync Spree and Prediction.IO
4
+
5
+ Run redis
6
+ redis-server /usr/local/etc/redis.conf
7
+
8
+ Make jobs work
9
+ QUEUE=* RESQUE_WORKER=true rake resque:work
10
+
11
+ View jobs running on browser
12
+ resque-web
4
13
 
5
14
  ## Installation
6
15
 
data/Rakefile CHANGED
@@ -1 +1,5 @@
1
1
  require "bundler/gem_tasks"
2
+ load "tasks/resque.rake"
3
+ load "tasks/minitest.rake"
4
+
5
+ task :default => :test
@@ -1,3 +1,3 @@
1
1
  module SpreePredictionIo
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.required_ruby_version = ">= 1.9.3"
22
+
21
23
  spec.add_development_dependency "bundler", "~> 1.5"
22
24
  spec.add_development_dependency "rake"
23
25
  end
@@ -0,0 +1,6 @@
1
+ require "rake/testtask"
2
+
3
+ Rake::TestTask.new(:test) do |t|
4
+ t.libs << "test"
5
+ t.pattern = "test/**/*_test.rb"
6
+ end
@@ -0,0 +1,7 @@
1
+ require "minitest/autorun"
2
+
3
+ # Code Climate test reporter doesn't work with Ruby 1.8.7
4
+ if RUBY_VERSION.to_f >= 1.9
5
+ require "codeclimate-test-reporter"
6
+ CodeClimate::TestReporter.start
7
+ end
@@ -0,0 +1,9 @@
1
+ require "minitest_helper"
2
+
3
+ describe "Example Tests" do
4
+
5
+ it "returns true" do
6
+ assert true
7
+ end
8
+
9
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_prediction_io
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
  - David Jones
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-21 00:00:00.000000000 Z
11
+ date: 2014-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -46,6 +46,7 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - .gitignore
49
+ - .travis.yml
49
50
  - Gemfile
50
51
  - LICENSE.txt
51
52
  - README.md
@@ -53,6 +54,9 @@ files:
53
54
  - lib/spree_prediction_io.rb
54
55
  - lib/spree_prediction_io/version.rb
55
56
  - spree_prediction_io.gemspec
57
+ - tasks/minitest.rake
58
+ - test/minitest_helper.rb
59
+ - test/models/example_test.rb
56
60
  homepage: http://www.resolvedigital.com
57
61
  licenses:
58
62
  - MIT
@@ -65,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
69
  requirements:
66
70
  - - '>='
67
71
  - !ruby/object:Gem::Version
68
- version: '0'
72
+ version: 1.9.3
69
73
  required_rubygems_version: !ruby/object:Gem::Requirement
70
74
  requirements:
71
75
  - - '>='
@@ -77,4 +81,6 @@ rubygems_version: 2.1.10
77
81
  signing_key:
78
82
  specification_version: 4
79
83
  summary: Prediction.IO recommendations for Spree
80
- test_files: []
84
+ test_files:
85
+ - test/minitest_helper.rb
86
+ - test/models/example_test.rb