forked from spree-contrib/spree_email_to_friend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated gemspec & switched to latest recaptcha gem
- Loading branch information
Showing
6 changed files
with
38 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.swp | ||
spec/test_app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,28 @@ | ||
unless defined? SPREE_ROOT | ||
ENV["RAILS_ENV"] = "test" | ||
case | ||
when ENV["SPREE_ENV_FILE"] | ||
require ENV["SPREE_ENV_FILE"] | ||
when File.dirname(__FILE__) =~ %r{vendor/SPREE/vendor/extensions} | ||
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment" | ||
else | ||
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" | ||
end | ||
end | ||
require "#{SPREE_ROOT}/spec/spec_helper" | ||
# This file is copied to ~/spec when you run 'ruby script/generate rspec' | ||
# from the project root directory. | ||
ENV["RAILS_ENV"] ||= 'test' | ||
require File.expand_path("../test_app/config/environment", __FILE__) | ||
require 'rspec/rails' | ||
|
||
if File.directory?(File.dirname(__FILE__) + "/scenarios") | ||
Scenario.load_paths.unshift File.dirname(__FILE__) + "/scenarios" | ||
end | ||
if File.directory?(File.dirname(__FILE__) + "/matchers") | ||
Dir[File.dirname(__FILE__) + "/matchers/*.rb"].each {|file| require file } | ||
end | ||
# Requires supporting files with custom matchers and macros, etc, | ||
# in ./support/ and its subdirectories. | ||
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} | ||
|
||
Spec::Runner.configure do |config| | ||
# config.use_transactional_fixtures = true | ||
# config.use_instantiated_fixtures = false | ||
# config.fixture_path = RAILS_ROOT + '/spec/fixtures' | ||
|
||
# You can declare fixtures for each behaviour like this: | ||
# describe "...." do | ||
# fixtures :table_a, :table_b | ||
# | ||
# Alternatively, if you prefer to declare them only once, you can | ||
# do so here, like so ... | ||
RSpec.configure do |config| | ||
# == Mock Framework | ||
# | ||
# config.global_fixtures = :table_a, :table_b | ||
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: | ||
# | ||
# If you declare global fixtures, be aware that they will be declared | ||
# for all of your examples, even those that don't use them. | ||
end | ||
# config.mock_with :mocha | ||
# config.mock_with :flexmock | ||
# config.mock_with :rr | ||
config.mock_with :rspec | ||
|
||
config.fixture_path = "#{::Rails.root}/spec/fixtures" | ||
|
||
# If you're not using ActiveRecord, or you'd prefer not to run each of your | ||
# examples within a transaction, comment the following line or assign false | ||
# instead of true. | ||
config.use_transactional_fixtures = true | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
Gem::Specification.new do |s| | ||
s.platform = Gem::Platform::RUBY | ||
s.name = 'spree_email_to_friend' | ||
s.version = '0.30.0.beta2' | ||
s.version = '1.0.0' | ||
s.summary = 'Spree extension to send product recommendations to friends' | ||
#s.description = 'Add (optional) gem description here' | ||
s.homepage = 'https://github.com/calas/spree-email-to-friend' | ||
s.required_ruby_version = '>= 1.8.7' | ||
|
||
s.author = 'Jorge Calás Lozano, Roman Smirnov' | ||
# s.email = 'roman@railsdog.com' | ||
# s.homepage = 'http://www.rubyonrails.org' | ||
# s.rubyforge_project = 'actionmailer' | ||
s.author = 'Jorge Calás Lozano, Roman Smirnov' | ||
|
||
s.files = Dir['CHANGELOG', 'README.md', 'LICENSE', 'lib/**/*', 'app/**/*'] | ||
s.require_path = 'lib' | ||
s.requirements << 'none' | ||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.require_paths = ["lib"] | ||
|
||
s.has_rdoc = true | ||
|
||
s.add_dependency('spree_core', '>= 0.30.0.beta2') | ||
s.add_dependency('spree_auth', '>= 0.30.0.beta2') | ||
s.add_dependency('recaptcha') | ||
s.add_dependency('spree_core', '>= 0.30.1') | ||
s.add_dependency('spree_auth', '>= 0.30.1') | ||
s.add_dependency('recaptcha', '>= 0.3.1') | ||
end |