refinerycms-inquiries 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,22 @@
1
+ before_install:
2
+ - gem install bundler
1
3
  before_script:
4
+ - "sh -e /etc/init.d/xvfb start"
2
5
  - "bundle exec rake refinery:testing:dummy_app > /dev/null"
3
- script: "bundle exec rspec ./spec"
6
+ script:
7
+ - "DISPLAY=:99.0 bundle exec rspec spec"
4
8
  notifications:
5
- email:
6
- - parndt@gmail.com
7
- - ugis.ozolss@gmail.com
9
+ email: true
10
+ irc:
11
+ use_notice: true
12
+ skip_join: true
13
+ channels:
14
+ - "irc.freenode.org#refinerycms"
8
15
  env:
9
16
  - DB=postgresql
10
17
  - DB=mysql
11
18
  rvm:
12
19
  - 1.8.7
13
- - 1.9.2
14
20
  - 1.9.3
15
21
  - rbx
16
22
  - jruby
@@ -1,5 +1,11 @@
1
1
  module Refinery
2
2
  class InquiriesGenerator < Rails::Generators::Base
3
+ source_root File.expand_path('../templates', __FILE__)
4
+
5
+ def generate_inquiries_initializer
6
+ template 'config/initializers/refinery/inquiries.rb.erb', File.join(destination_root, 'config', 'initializers', 'refinery', 'inquiries.rb')
7
+ end
8
+
3
9
  def rake_db
4
10
  rake("refinery_inquiries:install:migrations")
5
11
  rake("refinery_settings:install:migrations")
@@ -0,0 +1,4 @@
1
+ Refinery::Inquiries.configure do |config|
2
+ # Configure whether to show privacy link
3
+ # config.show_contact_privacy_link = <%= Refinery::Inquiries.show_contact_privacy_link.inspect %>
4
+ end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinerycms-inquiries}
5
- s.version = %q{2.0.1}
5
+ s.version = %q{2.0.2}
6
6
  s.date = "#{Date.today.strftime("%Y-%m-%d")}"
7
7
  s.summary = %q{Inquiry handling functionality for the Refinery CMS project.}
8
8
  s.description = %q{Inquiry handling functionality extracted from Refinery CMS to allow you to have a contact form and manage inquiries in the Refinery backend.}
@@ -36,8 +36,7 @@ module Refinery
36
36
  end
37
37
 
38
38
  it "returns latest 7 inquiries including spam ones" do
39
- 4.times { Factory(:inquiry) }
40
- 3.times { Factory(:inquiry) }
39
+ 7.times { Factory(:inquiry) }
41
40
  Refinery::Inquiries::Inquiry.all[0..2].each { |inquiry| inquiry.toggle!(:spam) }
42
41
  Refinery::Inquiries::Inquiry.latest(7, true).length.should == 7
43
42
  end
@@ -18,9 +18,6 @@ def setup_environment
18
18
  config.filter_run :focus => true
19
19
  config.run_all_when_everything_filtered = true
20
20
  end
21
-
22
- # set javascript driver for capybara
23
- Capybara.javascript_driver = :selenium
24
21
  end
25
22
 
26
23
  def each_run
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-inquiries
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-03-23 00:00:00.000000000 Z
14
+ date: 2012-04-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: refinerycms-core
@@ -117,6 +117,7 @@ files:
117
117
  - db/migrate/20101208082840_create_inquiries.rb
118
118
  - db/seeds.rb
119
119
  - lib/generators/refinery/inquiries/inquiries_generator.rb
120
+ - lib/generators/refinery/inquiries/templates/config/initializers/refinery/inquiries.rb.erb
120
121
  - lib/refinery/inquiries.rb
121
122
  - lib/refinery/inquiries/configuration.rb
122
123
  - lib/refinery/inquiries/engine.rb