adcurve_spree 0.0.5 → 0.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: db03552dd9557d8806115e0edad576cda973167a
4
- data.tar.gz: 277baf96df028be6a46702ccc4b5b382b782a006
3
+ metadata.gz: 94f46c90bf4c88ac9b7ff03685d5b7a80246bb8d
4
+ data.tar.gz: 82607893e2db2f57b75a461e75e9c711f24b56a9
5
5
  SHA512:
6
- metadata.gz: ed7058c352ce99479dc877ace2b096e6182d08d52cdcfc24d262c04ab46892af6236c8bd07de092d830f3d42b5d3698c3238f0ce2506ea19f2bfbe9a49e2da54
7
- data.tar.gz: ac056c674d195906db5a1c3b28e5d520cf0e0642851c971bb6d0ae68f440894f432aa173f2ef3501fa27db140ecd76efb23d9d68a66f18b1d0dd0f6c53a2822a
6
+ metadata.gz: df3d41a9d0481f8525063672fc07671518b67d08092ce75a4f9e3adcf4bfd7db6dfdeb66181755f6ca5932790613aef414ca01689d72b155aacb7f772df2aa7c
7
+ data.tar.gz: 72bf1e40a6667207437279fe11d49773405b0a893ed39c40c72c932fc89a70287e70ecb8ba5699b6cda906ce59d6a43ba814ec1009abd35e5b18ac8aa993eba4
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm use 2.1.6@adcurve_spree --create
1
+ rvm use 2.3.1@adcurve_spree --create
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.1
4
+ sudo: false
5
+ cache: bundler
6
+ before_script:
7
+ - sh -e /etc/init.d/xvfb start
8
+ - bundle exec rake test_app
9
+ script:
10
+ - export DISPLAY=:99.0
11
+ - bundle exec rspec spec
data/Gemfile CHANGED
@@ -1,7 +1,6 @@
1
1
  source 'http://rubygems.org'
2
+
2
3
  gem 'spree', github: 'spree/spree', branch: '3-1-stable'
3
- # Provides basic authentication functionality for testing parts of your engine
4
4
  gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-1-stable'
5
5
 
6
-
7
6
  gemspec
data/README.md CHANGED
@@ -1,17 +1,23 @@
1
- Spree Shop2market Tag
2
- =====================
3
1
 
4
- Shop2market tags implementation for Spree shop engine
2
+ Adcurve Spree Integration Plugin
3
+ --------------------------------
5
4
 
6
- Installation and configuration
7
- ==============================
5
+ [![Gem Version](https://badge.fury.io/rb/adcurve_spree.svg)](https://badge.fury.io/rb/adcurve_spree)
6
+ [![Code Climate](https://codeclimate.com/github/cthulhu/adcurve-spree/badges/gpa.svg)](https://codeclimate.com/github/cthulhu/adcurve-spree)
7
+ [![Build Status](https://travis-ci.org/cthulhu/adcurve-spree.svg?branch=master)](https://travis-ci.org/cthulhu/adcurve-spree)
8
+
9
+ Installation
10
+ ============
8
11
 
9
12
  Add to your spree shop Gemfile
10
13
 
11
- gem 'spree_adcurve_import', :git => 'git://github.com/Shop2market/adcurve_spree.git'
14
+ gem 'adcurve_spree'
12
15
 
13
16
  Run bundle install
14
17
 
15
- Go to admin > Configuration > adcurve Tags, fill in your shop_id and host for shop2market application( default is track.shop2market.com )
18
+ Configuration
19
+ =============
20
+
21
+ Go to admin > Configuration > adcurve Tags, fill in your shop_id, host and API key for adcurve application( default is track.shop2market.com )
16
22
 
17
23
  Copyright (c) 2013 Shop2market, released under the New BSD License
data/Rakefile CHANGED
@@ -2,7 +2,6 @@ require 'bundler'
2
2
  Bundler::GemHelper.install_tasks
3
3
 
4
4
  require 'rspec/core/rake_task'
5
- #require 'spree/core/testing_support/common_rake'
6
5
  require 'spree/testing_support/common_rake'
7
6
 
8
7
  RSpec::Core::RakeTask.new
@@ -2,13 +2,13 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'adcurve_spree'
5
- s.version = '0.0.5'
6
- s.summary = 'Shop2market tag for spree'
7
- s.description = 'Easy installation shop2market support for spree driven shops'
5
+ s.version = '0.0.6'
6
+ s.summary = 'Adcurve Spree Integration plugin'
7
+ s.description = 'Easy install adcurve support in to your spree ecommerce site'
8
8
  s.required_ruby_version = '>= 2.1.6'
9
9
 
10
- s.author = 'Stanislav O. Pogrebnyak'
11
- s.email = 'stanislav.pogrebnyak@gmail.com'
10
+ s.authors = ['Stanislav O. Pogrebnyak', 'Rostislav O. Korin']
11
+ s.email = 'info@adcurve.com'
12
12
  s.homepage = 'http://adcurve.com'
13
13
 
14
14
  s.files = `git ls-files`.split($/)
@@ -21,11 +21,18 @@ Gem::Specification.new do |s|
21
21
  s.add_dependency 'spree_frontend', '>= 3.1.0', '< 4.0'
22
22
  s.add_dependency 'spree_api', '>= 3.1.0', '< 4.0'
23
23
 
24
- s.add_development_dependency 'capybara', '~> 1.1.2'
25
- s.add_development_dependency 'coffee-rails'
26
- s.add_development_dependency 'factory_girl', '~> 2.6.4'
27
- s.add_development_dependency 'ffaker'
28
- s.add_development_dependency 'rspec-rails', '~> 3.4'
29
- s.add_development_dependency 'sass-rails'
30
- s.add_development_dependency 'sqlite3'
24
+ s.add_development_dependency 'ffaker', '>= 1.32.1'
25
+ s.add_development_dependency 'capybara', '~> 2.4.4'
26
+ s.add_development_dependency 'capybara-screenshot', '~> 1.0.11'
27
+ s.add_development_dependency 'database_cleaner', '~> 1.4.0'
28
+ s.add_development_dependency 'poltergeist', '~> 1.6.0'
29
+ s.add_development_dependency 'rspec-rails', '~> 3.4'
30
+ s.add_development_dependency 'factory_girl', '~> 4.5'
31
+ s.add_development_dependency 'sqlite3', '>= 1.3.10'
32
+ s.add_development_dependency 'simplecov', '~> 0.9.0'
33
+ s.add_development_dependency 'coffee-rails', '~> 4.0.0'
34
+ s.add_development_dependency 'sass-rails', '~> 5.0.0'
35
+ s.add_development_dependency 'guard-rspec', '>= 4.3.1'
36
+ s.add_development_dependency 'pry-rails', '>= 0.3.2'
37
+ s.add_development_dependency 'rubocop', '>= 0.24.1'
31
38
  end
@@ -1,7 +1,6 @@
1
1
  module AdcurveSpree
2
2
  module Generators
3
3
  class InstallGenerator < Rails::Generators::Base
4
-
5
4
  def add_javascripts
6
5
  append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require store/adcurve_spree\n"
7
6
 
@@ -17,12 +16,7 @@ module AdcurveSpree
17
16
  end
18
17
 
19
18
  def run_migrations
20
- res = ask 'Would you like to run the migrations now? [Y/n]'
21
- if res == '' || res.downcase == 'y'
22
- run 'bundle exec rake db:migrate'
23
- else
24
- puts 'Skipping rake db:migrate, don\'t forget to run it!'
25
- end
19
+ run 'bundle exec rake db:migrate'
26
20
  end
27
21
  end
28
22
  end
data/spec/spec_helper.rb CHANGED
@@ -1,20 +1,20 @@
1
+ require 'simplecov'
2
+ SimpleCov.start 'rails'
3
+
1
4
  # Configure Rails Environment
2
5
  ENV['RAILS_ENV'] = 'test'
3
6
 
4
- require File.expand_path('../dummy/config/environment.rb', __FILE__)
7
+ begin
8
+ require File.expand_path('../dummy/config/environment', __FILE__)
9
+ rescue LoadError
10
+ puts 'Could not load dummy application. Please ensure you have run `bundle exec rake test_app`'
11
+ exit
12
+ end
5
13
 
6
14
  require 'rspec/rails'
7
15
  require 'ffaker'
8
-
9
- # Requires supporting ruby files with custom matchers and macros, etc,
10
- # in spec/support/ and its subdirectories.
11
- Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
12
-
13
- # Requires factories defined in spree_core
14
- require 'spree/core/testing_support/factories'
15
- require 'spree/core/testing_support/controller_requests'
16
- require 'spree/core/testing_support/authorization_helpers'
17
- require 'spree/core/url_helpers'
16
+ require 'factory_girl'
17
+ require 'pry'
18
18
 
19
19
  RSpec.configure do |config|
20
20
  config.include FactoryGirl::Syntax::Methods
@@ -25,7 +25,7 @@ RSpec.configure do |config|
25
25
  #
26
26
  # visit spree.admin_path
27
27
  # current_path.should eql(spree.products_path)
28
- config.include Spree::Core::UrlHelpers
28
+ # config.include Spree::Core::UrlHelpers
29
29
 
30
30
  # == Mock Framework
31
31
  #
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adcurve_spree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav O. Pogrebnyak
8
+ - Rostislav O. Korin
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-11-29 00:00:00.000000000 Z
12
+ date: 2016-11-30 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: spree_core
@@ -90,62 +91,76 @@ dependencies:
90
91
  - - "<"
91
92
  - !ruby/object:Gem::Version
92
93
  version: '4.0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: ffaker
96
+ requirement: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 1.32.1
101
+ type: :development
102
+ prerelease: false
103
+ version_requirements: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: 1.32.1
93
108
  - !ruby/object:Gem::Dependency
94
109
  name: capybara
95
110
  requirement: !ruby/object:Gem::Requirement
96
111
  requirements:
97
112
  - - "~>"
98
113
  - !ruby/object:Gem::Version
99
- version: 1.1.2
114
+ version: 2.4.4
100
115
  type: :development
101
116
  prerelease: false
102
117
  version_requirements: !ruby/object:Gem::Requirement
103
118
  requirements:
104
119
  - - "~>"
105
120
  - !ruby/object:Gem::Version
106
- version: 1.1.2
121
+ version: 2.4.4
107
122
  - !ruby/object:Gem::Dependency
108
- name: coffee-rails
123
+ name: capybara-screenshot
109
124
  requirement: !ruby/object:Gem::Requirement
110
125
  requirements:
111
- - - ">="
126
+ - - "~>"
112
127
  - !ruby/object:Gem::Version
113
- version: '0'
128
+ version: 1.0.11
114
129
  type: :development
115
130
  prerelease: false
116
131
  version_requirements: !ruby/object:Gem::Requirement
117
132
  requirements:
118
- - - ">="
133
+ - - "~>"
119
134
  - !ruby/object:Gem::Version
120
- version: '0'
135
+ version: 1.0.11
121
136
  - !ruby/object:Gem::Dependency
122
- name: factory_girl
137
+ name: database_cleaner
123
138
  requirement: !ruby/object:Gem::Requirement
124
139
  requirements:
125
140
  - - "~>"
126
141
  - !ruby/object:Gem::Version
127
- version: 2.6.4
142
+ version: 1.4.0
128
143
  type: :development
129
144
  prerelease: false
130
145
  version_requirements: !ruby/object:Gem::Requirement
131
146
  requirements:
132
147
  - - "~>"
133
148
  - !ruby/object:Gem::Version
134
- version: 2.6.4
149
+ version: 1.4.0
135
150
  - !ruby/object:Gem::Dependency
136
- name: ffaker
151
+ name: poltergeist
137
152
  requirement: !ruby/object:Gem::Requirement
138
153
  requirements:
139
- - - ">="
154
+ - - "~>"
140
155
  - !ruby/object:Gem::Version
141
- version: '0'
156
+ version: 1.6.0
142
157
  type: :development
143
158
  prerelease: false
144
159
  version_requirements: !ruby/object:Gem::Requirement
145
160
  requirements:
146
- - - ">="
161
+ - - "~>"
147
162
  - !ruby/object:Gem::Version
148
- version: '0'
163
+ version: 1.6.0
149
164
  - !ruby/object:Gem::Dependency
150
165
  name: rspec-rails
151
166
  requirement: !ruby/object:Gem::Requirement
@@ -160,36 +175,120 @@ dependencies:
160
175
  - - "~>"
161
176
  - !ruby/object:Gem::Version
162
177
  version: '3.4'
178
+ - !ruby/object:Gem::Dependency
179
+ name: factory_girl
180
+ requirement: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - "~>"
183
+ - !ruby/object:Gem::Version
184
+ version: '4.5'
185
+ type: :development
186
+ prerelease: false
187
+ version_requirements: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - "~>"
190
+ - !ruby/object:Gem::Version
191
+ version: '4.5'
192
+ - !ruby/object:Gem::Dependency
193
+ name: sqlite3
194
+ requirement: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ version: 1.3.10
199
+ type: :development
200
+ prerelease: false
201
+ version_requirements: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - ">="
204
+ - !ruby/object:Gem::Version
205
+ version: 1.3.10
206
+ - !ruby/object:Gem::Dependency
207
+ name: simplecov
208
+ requirement: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - "~>"
211
+ - !ruby/object:Gem::Version
212
+ version: 0.9.0
213
+ type: :development
214
+ prerelease: false
215
+ version_requirements: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - "~>"
218
+ - !ruby/object:Gem::Version
219
+ version: 0.9.0
220
+ - !ruby/object:Gem::Dependency
221
+ name: coffee-rails
222
+ requirement: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - "~>"
225
+ - !ruby/object:Gem::Version
226
+ version: 4.0.0
227
+ type: :development
228
+ prerelease: false
229
+ version_requirements: !ruby/object:Gem::Requirement
230
+ requirements:
231
+ - - "~>"
232
+ - !ruby/object:Gem::Version
233
+ version: 4.0.0
163
234
  - !ruby/object:Gem::Dependency
164
235
  name: sass-rails
236
+ requirement: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - "~>"
239
+ - !ruby/object:Gem::Version
240
+ version: 5.0.0
241
+ type: :development
242
+ prerelease: false
243
+ version_requirements: !ruby/object:Gem::Requirement
244
+ requirements:
245
+ - - "~>"
246
+ - !ruby/object:Gem::Version
247
+ version: 5.0.0
248
+ - !ruby/object:Gem::Dependency
249
+ name: guard-rspec
165
250
  requirement: !ruby/object:Gem::Requirement
166
251
  requirements:
167
252
  - - ">="
168
253
  - !ruby/object:Gem::Version
169
- version: '0'
254
+ version: 4.3.1
170
255
  type: :development
171
256
  prerelease: false
172
257
  version_requirements: !ruby/object:Gem::Requirement
173
258
  requirements:
174
259
  - - ">="
175
260
  - !ruby/object:Gem::Version
176
- version: '0'
261
+ version: 4.3.1
177
262
  - !ruby/object:Gem::Dependency
178
- name: sqlite3
263
+ name: pry-rails
264
+ requirement: !ruby/object:Gem::Requirement
265
+ requirements:
266
+ - - ">="
267
+ - !ruby/object:Gem::Version
268
+ version: 0.3.2
269
+ type: :development
270
+ prerelease: false
271
+ version_requirements: !ruby/object:Gem::Requirement
272
+ requirements:
273
+ - - ">="
274
+ - !ruby/object:Gem::Version
275
+ version: 0.3.2
276
+ - !ruby/object:Gem::Dependency
277
+ name: rubocop
179
278
  requirement: !ruby/object:Gem::Requirement
180
279
  requirements:
181
280
  - - ">="
182
281
  - !ruby/object:Gem::Version
183
- version: '0'
282
+ version: 0.24.1
184
283
  type: :development
185
284
  prerelease: false
186
285
  version_requirements: !ruby/object:Gem::Requirement
187
286
  requirements:
188
287
  - - ">="
189
288
  - !ruby/object:Gem::Version
190
- version: '0'
191
- description: Easy installation shop2market support for spree driven shops
192
- email: stanislav.pogrebnyak@gmail.com
289
+ version: 0.24.1
290
+ description: Easy install adcurve support in to your spree ecommerce site
291
+ email: info@adcurve.com
193
292
  executables: []
194
293
  extensions: []
195
294
  extra_rdoc_files: []
@@ -197,6 +296,7 @@ files:
197
296
  - ".gitignore"
198
297
  - ".rspec"
199
298
  - ".rvmrc"
299
+ - ".travis.yml"
200
300
  - Gemfile
201
301
  - LICENSE
202
302
  - README.md
@@ -255,7 +355,7 @@ rubyforge_project:
255
355
  rubygems_version: 2.2.3
256
356
  signing_key:
257
357
  specification_version: 4
258
- summary: Shop2market tag for spree
358
+ summary: Adcurve Spree Integration plugin
259
359
  test_files:
260
360
  - spec/controllers/spree/admin/adcurve_tags_controller_spec.rb
261
361
  - spec/helpers/spree/admin/adcurve_tags_helper_spec.rb