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: 2c368f83843b0108c0b6c18e388d9b433a588101
4
- data.tar.gz: 0d601c672f56b68008890abb94a2b6c90ae3d844
3
+ metadata.gz: 0cc20450c23333660537eb3b3b4567b3a8299294
4
+ data.tar.gz: 7a5d4c34820177f1fe8f50a2928c4f9d3a4a0e08
5
5
  SHA512:
6
- metadata.gz: a3241acb6c440d0c89eeeda9b77e1da61221306350fa0378bb3e42ef88ff5610d2cc9b612cc41474b1bf814a98c5359393a2a68ff01f19c91a52ac27e44e8990
7
- data.tar.gz: 1bf948b921d815542e027881f1c09bd79eced04f952e8f2db878d66bbe8251bf45b5589aa55e7347fed9645e34ebc57cea0fefc9aef22fd6ea91cfd9de48bad2
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
- # # Figure out the external URI of the webapp against which to test the front end.
56
- # dns_name = "webshop" # Set this to your client apps' DNS name
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
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.27.5"
2
+ VERSION = "1.27.6"
3
3
  end
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.5
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