blueberry_rails 0.1.1 → 0.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c981cb74af7ec7df5b6f4ebb5872b0ee33d40cf
|
4
|
+
data.tar.gz: 74037ea0c83d48e8e935603d461edf37de278b84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef1f5b0d7a01572c4234f8ccdf7567f514e44716accb871b43aba1780dcd5a5770fdbb63a2fd53882d5fbed8e93ecf6722257468fefc8609fdcfaf1a9652a57f
|
7
|
+
data.tar.gz: a6f3771a29246d66e6b5e277203b1b178ca567b0bea9ec711129d208333c20785a1ffabeaa712f45c84697adeefc40f078da06c22c5af41e494c9bab7d68efa4
|
@@ -96,6 +96,13 @@ module BlueberryRails
|
|
96
96
|
'config.action_controller.action_on_unpermitted_parameters = :raise'
|
97
97
|
end
|
98
98
|
|
99
|
+
def configure_mailcatcher
|
100
|
+
configure_environment 'development',
|
101
|
+
'config.action_mailer.delivery_method = :smtp'
|
102
|
+
configure_environment 'development',
|
103
|
+
"config.action_mailer.smtp_settings = { address: 'localhost', port: 1025 }"
|
104
|
+
end
|
105
|
+
|
99
106
|
def configure_generators
|
100
107
|
config = <<-RUBY
|
101
108
|
config.generators do |generate|
|
@@ -113,6 +120,10 @@ module BlueberryRails
|
|
113
120
|
inject_into_class 'config/application.rb', 'Application', config
|
114
121
|
end
|
115
122
|
|
123
|
+
def add_ruby_version_file
|
124
|
+
add_file '.ruby-version', "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
|
125
|
+
end
|
126
|
+
|
116
127
|
def remove_routes_comment_lines
|
117
128
|
replace_in_file 'config/routes.rb',
|
118
129
|
/Application\.routes\.draw do.*end/m,
|
@@ -57,6 +57,7 @@ module BlueberryRails
|
|
57
57
|
say 'Setting up the development environment'
|
58
58
|
build :configure_generators
|
59
59
|
build :raise_on_unpermitted_parameters
|
60
|
+
build :configure_mailcatcher
|
60
61
|
end
|
61
62
|
|
62
63
|
def setup_test_environment
|
@@ -84,6 +85,7 @@ module BlueberryRails
|
|
84
85
|
build :disable_xml_params
|
85
86
|
build :setup_mailer_hosts
|
86
87
|
build :remove_turbolinks
|
88
|
+
build :add_ruby_version_file
|
87
89
|
end
|
88
90
|
|
89
91
|
def remove_routes_comment_lines
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blueberry_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blueberryapps
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|