refinerycms-inquiries 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +11 -5
- data/lib/generators/refinery/inquiries/inquiries_generator.rb +6 -0
- data/lib/generators/refinery/inquiries/templates/config/initializers/refinery/inquiries.rb.erb +4 -0
- data/refinerycms-inquiries.gemspec +1 -1
- data/spec/models/refinery/inquiries/inquiry_spec.rb +1 -2
- data/spec/spec_helper.rb +0 -3
- metadata +3 -2
data/.travis.yml
CHANGED
@@ -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:
|
6
|
+
script:
|
7
|
+
- "DISPLAY=:99.0 bundle exec rspec spec"
|
4
8
|
notifications:
|
5
|
-
email:
|
6
|
-
|
7
|
-
|
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")
|
@@ -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.
|
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
|
-
|
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
|
data/spec/spec_helper.rb
CHANGED
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.
|
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-
|
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
|