ocean-rails 7.2.4 → 7.2.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25bda2932322cad874e89ae83e013275c4c816177530b5825fec74eb339dfb30
4
- data.tar.gz: 34c5a09aa1c5f6e9fa308cf78430ce0f65230752f2e5bf5d83830e9a706358bf
3
+ metadata.gz: ae94418c6ed9425568ee1da771c64cff6dc5dc25720c451e4d27b5d3bd446c91
4
+ data.tar.gz: 11b92197a8b0fc5cac8c825fc85ae51d73f216772ccd2abe51cccce98663143c
5
5
  SHA512:
6
- metadata.gz: 902294e159a0c9bc06b0a2a13347687bc91f2a91916e3feeb74bbab6145b3ab7e5e6dfd5fc72db9a77f80b108f25791c2f560268c65cbb0b1cd84b625024405c
7
- data.tar.gz: 4480c1cfdf7eefb75ab6b9edda68a8a7fca09254247931aba349f205f35f20bd7cd9a96ff912e54e7faa9911ef6608c4a3e536aca3c1273e5716636b1a131970
6
+ metadata.gz: d93655a8e004101667ba7c02c608648ca3e07801a47b556e1459fc055c641e7a9acbee11d452dcade0f23ac3bec238d4460b77676f604c68d432dcae3425cec1
7
+ data.tar.gz: 29561210bd7dad8ebccc975613e341b2e5e3ef50dda1906521341a9d0dd180de130718c2353d6fc8ac4936da750a1265d9b975d84cb18839ef145dc67fcb6df6
@@ -76,12 +76,11 @@ class OceanSetupGenerator < Rails::Generators::NamedBase #:nodoc: all
76
76
  end
77
77
 
78
78
  def install_config_yml_files
79
- template "config.yml.example", "#{Rails.root}/config/config.yml.example"
80
- template "config.yml.example", "#{Rails.root}/config/config.yml"
79
+ template "config.yml", "#{Rails.root}/config/config.yml"
81
80
  end
82
81
 
83
82
  def install_aws_yml_files
84
- template "aws.yml.example", "#{Rails.root}/config/aws.yml"
83
+ template "aws.yml", "#{Rails.root}/config/aws.yml"
85
84
  end
86
85
 
87
86
  def install_default_cache_time_file
@@ -98,9 +97,4 @@ class OceanSetupGenerator < Rails::Generators::NamedBase #:nodoc: all
98
97
  git :init
99
98
  end
100
99
 
101
- def add_zeromq_logging_in_production
102
- prepend_to_file 'config/environments/production.rb',
103
- "Rails.logger = ZeromqLogger.new\n\n"
104
- end
105
-
106
100
  end
@@ -25,9 +25,3 @@ group :test do
25
25
  gem 'rspec-rails'
26
26
  gem 'simplecov', require: false
27
27
  end
28
-
29
- group :test , :development do
30
- gem 'guard'#, require:false
31
- gem 'guard-rspec'#, require: false
32
- gem 'foreman'
33
- end
@@ -0,0 +1,32 @@
1
+ # The Ocean environment
2
+ OCEAN_ENV: <%= ENV['OCEAN_ENV'] %>
3
+
4
+ # This is the application's name
5
+ APP_NAME: <%= ENV['APP_NAME'] %>
6
+
7
+ # Authentication data to use when the app authenticates with the Auth service.
8
+ # You should substitute your own password. Passwords should not be identical
9
+ # between services. Use a unique password in each case.
10
+ API_USER: <%= ENV['API_USER'] %>
11
+ API_PASSWORD: <%= ENV['API_PASSWORD'] %>
12
+
13
+ # This is the base domain used for all Ocean calls.
14
+ BASE_DOMAIN: <%= ENV['BASE_DOMAIN'] %>
15
+ OCEAN_API_HOST: <%= ENV['OCEAN_API_HOST'] %>
16
+ OCEAN_API_URL: <%= ENV['OCEAN_API_URL'] %>
17
+ INTERNAL_OCEAN_API_URL: <%= ENV['INTERNAL_OCEAN_API_URL'] %>
18
+
19
+ # This enumerates the latest versions of all resources in the system, not just the
20
+ # ones defined by this service. You should keep it updated at all times.
21
+ # The special key _default is used as a fallback.
22
+ #API_VERSIONS: <%= JSON.parse(ENV['API_VERSIONS']) %>
23
+
24
+ # This is the list of IP numbers for the Varnish instances. (For PURGE and BAN.)
25
+ LOAD_BALANCERS: <%= ENV['LOAD_BALANCERS'].split "," %>
26
+
27
+ # This is the list of IP numbers for the memcached servers. (Only used in production.)
28
+ MEMCACHED_SERVERS: <%= ENV['MEMCACHED_SERVERS'].split "," %>
29
+
30
+ # The password regex and error message
31
+ PASSWORD_REGEXP: <%= ENV['PASSWORD_REGEXP'] %>
32
+ PASSWORD_MSG: <%= ENV['PASSWORD_MSG'] %>
@@ -7,9 +7,6 @@
7
7
  # Ignore bundler config
8
8
  /.bundle
9
9
 
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
-
13
10
  # Ignore all logfiles and tempfiles.
14
11
  /log/*.log
15
12
  /tmp
@@ -24,11 +21,5 @@
24
21
  # Ignore coverage artefacts
25
22
  /coverage
26
23
 
27
- # Ignore the tailored config.yml file
28
- config/config.yml
29
-
30
24
  # Ignore any tailored smtp.yml file
31
25
  config/smtp.yml
32
-
33
- # Ignore the Tork config dir
34
- /.tork
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "7.2.4"
2
+ VERSION = "7.2.5"
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: 7.2.4
4
+ version: 7.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
@@ -224,8 +224,8 @@ files:
224
224
  - lib/generators/ocean_setup/ocean_setup_generator.rb
225
225
  - lib/generators/ocean_setup/templates/Gemfile
226
226
  - lib/generators/ocean_setup/templates/application_controller.rb
227
- - lib/generators/ocean_setup/templates/aws.yml.example
228
- - lib/generators/ocean_setup/templates/config.yml.example
227
+ - lib/generators/ocean_setup/templates/aws.yml
228
+ - lib/generators/ocean_setup/templates/config.yml
229
229
  - lib/generators/ocean_setup/templates/default_cache_time.rb
230
230
  - lib/generators/ocean_setup/templates/gitignore
231
231
  - lib/generators/ocean_setup/templates/hyperlinks.rb
@@ -1,54 +0,0 @@
1
- ##########################################################################################
2
- # In order for the application to work, a file named config/config.yml must exist.
3
- # You can use this file as a template: simply copy it, rename it and tailor its
4
- # contents. All data in this file will be used to define constants in your application
5
- # namespace. Please note that both config.yml and config.yml.example must exist.
6
- #
7
- # Any constants declared here can be overridden by corresponding environment variables
8
- # starting with OVERRIDE_. Thus, BASE_DOMAIN can be overridden by the environment
9
- # variable OVERRIDE_BASE_DOMAIN, and so forth. The API_PASSWORD receives special
10
- # treatment: you can pass both the master and the staging password separated by a comma,
11
- # and Ocean will choose the appropriate one to use depending on the Ocean environment.
12
- #
13
- # NB: The contents of this file will be replaced by an auto-generated file on AWS.
14
- ##########################################################################################
15
-
16
-
17
- # This is the application's name
18
- APP_NAME: <%= name %>
19
-
20
- # Authentication data to use when the app authenticates with the Auth service.
21
- # You should substitute your own password. Passwords should not be identical
22
- # between services. Use a unique password in each case.
23
- API_USER: <%= name %>
24
- API_PASSWORD: xxxxxxxxxx
25
-
26
- # This is the base domain used for all Ocean calls.
27
- BASE_DOMAIN: example.com
28
-
29
- # This enumerates the latest versions of all resources in the system, not just the
30
- # ones defined by this service. You should keep it updated at all times.
31
- # The special key _default is used as a fallback.
32
- API_VERSIONS:
33
- _default: v1
34
-
35
- # The Ocean environment
36
- OCEAN_ENV: master
37
-
38
-
39
- ##########################################################################################
40
- # This section allows you to specify values specific for a particular Rails
41
- # environment. Values defined here will take precedence over the default values.
42
- # Make sure the declarations in each section are indented properly.
43
- # NB: these overrides only affect your local development environment (which may run
44
- # in any of these three states). In deployment, a generated version of this file
45
- # is used.
46
- ##########################################################################################
47
-
48
- development:
49
-
50
-
51
- test:
52
-
53
-
54
- production: