ocean-rails 1.27.5 → 1.27.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cc20450c23333660537eb3b3b4567b3a8299294
|
4
|
+
data.tar.gz: 7a5d4c34820177f1fe8f50a2928c4f9d3a4a0e08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7981fc22dfc51c1d31e36e43227aa5bb192604adf1f138b95985bdf342d85ded9de718cec420b02216ea1f84d99f4e70cb3bf61c19563ed947972e33c746d58
|
7
|
+
data.tar.gz: 782f6417881a92a90f49605cd02f65b831b16b8a7bfe349ffbcd3a352ce4ad55d3096c6ff6ff69f3ed21265bfd634bfafe3d10c852269ac285cf39b30888505e
|
@@ -33,6 +33,12 @@ class OceanSetupGenerator < Rails::Generators::NamedBase #:nodoc: all
|
|
33
33
|
template "routes.rb", "#{Rails.root}/config/routes.rb"
|
34
34
|
end
|
35
35
|
|
36
|
+
def turn_off_locales
|
37
|
+
application "# No locales
|
38
|
+
config.i18n.enforce_available_locales = false
|
39
|
+
"
|
40
|
+
end
|
41
|
+
|
36
42
|
def turn_off_asset_pipeline
|
37
43
|
application "# Disable the asset pipeline
|
38
44
|
config.assets.enabled = false
|
@@ -69,6 +75,11 @@ class OceanSetupGenerator < Rails::Generators::NamedBase #:nodoc: all
|
|
69
75
|
template "config.yml.example", "#{Rails.root}/config/config.yml"
|
70
76
|
end
|
71
77
|
|
78
|
+
def install_aws_yml_files
|
79
|
+
template "aws.yml.example", "#{Rails.root}/config/aws.yml.example"
|
80
|
+
template "aws.yml.example", "#{Rails.root}/config/aws.yml"
|
81
|
+
end
|
82
|
+
|
72
83
|
def replace_gemfile
|
73
84
|
remove_file "#{Rails.root}/Gemfile"
|
74
85
|
copy_file "Gemfile", "#{Rails.root}/Gemfile"
|
@@ -0,0 +1,44 @@
|
|
1
|
+
##########################################################################################
|
2
|
+
# In order for the application to work, a file named config/aws.yml must exist.
|
3
|
+
# You can use this file as a template: simply copy it, rename it and tailor its
|
4
|
+
# contents. Please note that both aws.yml and aws.yml.example must exist - don't
|
5
|
+
# delete this example file, as its values will be used by TeamCity for tests.
|
6
|
+
#
|
7
|
+
# If your application doesn't use any AWS functionality, you should delete both
|
8
|
+
# aws.yml.example and aws.yml. In that case, none of them may exist in your application.
|
9
|
+
#
|
10
|
+
# NB: the Chef recipes used to deploy the application to its Chef environment (master,
|
11
|
+
# staging, prod) will replace the contents of config/aws.yml with an auto-generated file.
|
12
|
+
##########################################################################################
|
13
|
+
|
14
|
+
|
15
|
+
fake_dynamo: &local
|
16
|
+
use_ssl: false
|
17
|
+
dynamo_db_endpoint: localhost
|
18
|
+
dynamo_db_port: 4567
|
19
|
+
access_key_id: xxx
|
20
|
+
secret_access_key: xxx
|
21
|
+
user_agent_prefix: Ocean
|
22
|
+
|
23
|
+
amazon: &amazon
|
24
|
+
access_key_id: YOURACCESSKEYHERE
|
25
|
+
secret_access_key: YOURSECRETKEYHERE
|
26
|
+
region: eu-west-1
|
27
|
+
user_agent_prefix: Ocean
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# It is safe to set any of the following three environments to
|
32
|
+
# *amazon, as table names will be suffixed according to the
|
33
|
+
# environment (CHEF_ENV and Rails.env). See Api.basename_suffix.
|
34
|
+
# You can use *amazon instead of *local if you wish.
|
35
|
+
#
|
36
|
+
|
37
|
+
development:
|
38
|
+
<<: *local
|
39
|
+
|
40
|
+
test:
|
41
|
+
<<: *local
|
42
|
+
|
43
|
+
production:
|
44
|
+
<<: *local
|
@@ -52,13 +52,8 @@ end
|
|
52
52
|
# You can delete this section if you're creating a REST service.
|
53
53
|
# ------------------------------------------------------------------------------------
|
54
54
|
|
55
|
-
#
|
56
|
-
#
|
57
|
-
# # Don't modify any of these, set environment vars instead.
|
58
|
-
# ocean_env = ENV['GIT_BRANCH'] || ENV['OCEAN_FRONTEND'] || "master"
|
59
|
-
# ocean_env = "master" if ocean_env == "<default>"
|
60
|
-
# client_host = ENV['CLIENT_HOST'] || "http://#{ocean_env}-#{dns_name}.#{BASE_DOMAIN}"
|
61
|
-
# client_port = ENV['CLIENT_PORT'] || 80
|
55
|
+
# client_host = ENV['CLIENT_HOST'] || "http://localhost"
|
56
|
+
# client_port = ENV['CLIENT_PORT'] || 3000
|
62
57
|
|
63
58
|
|
64
59
|
# # Configure Watir
|
data/lib/ocean/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocean-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.27.
|
4
|
+
version: 1.27.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
@@ -265,6 +265,7 @@ files:
|
|
265
265
|
- lib/generators/ocean_setup/ocean_setup_generator.rb
|
266
266
|
- lib/generators/ocean_setup/templates/application_controller.rb
|
267
267
|
- lib/generators/ocean_setup/templates/application_helper.rb
|
268
|
+
- lib/generators/ocean_setup/templates/aws.yml.example
|
268
269
|
- lib/generators/ocean_setup/templates/config.yml.example
|
269
270
|
- lib/generators/ocean_setup/templates/Gemfile
|
270
271
|
- lib/generators/ocean_setup/templates/gitignore
|