rails_template_18f 0.5.1 → 0.5.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
  SHA256:
3
- metadata.gz: 9272beadb19c4c9a6aa8f3da43cfbb06d7fbf23f75d0f4ec393dde3610f06157
4
- data.tar.gz: a3906d6bddb262a5bc46f5ed40e0bf64110bd396ac8e765185dcc808abe6c91a
3
+ metadata.gz: 2081ea2fe971ba6cdd3af16c00a9e91146fea1e489b48118543b1c95b075f3d9
4
+ data.tar.gz: 6f7c93f8a5429e2a63fb560e79afc34c940a652168c3cba0e2d548ad61e0c9ca
5
5
  SHA512:
6
- metadata.gz: 22926545b3fe7273d36c8fde0445d9865bab390cf2cc856c25bc33e50f1c1420944a30052a2e0ae8b730da4f17dee2c16165cc83a1e21eb1f0475afa0fd30b74
7
- data.tar.gz: fe7f4f8df14d4f2eac2a5882daf368cdf68a8c9f53a54550fe8d13f1b7a18767c50334e142a2784b92964478fe0e3a3e88c5986271b30e78d8e0743690c8a09a
6
+ metadata.gz: dd118690c1537a3de6db28e7478a492617540ba5d8b2322d80506d5800adbe7997ee78b08098cfb36ace459612f72ae2310bd8ad77a068e5fb3e11fbf6c39f61
7
+ data.tar.gz: 406ef4a7f114415d3059be3d1713015af635a2dd57e76355d5fb685b74d734d90c835bcec860a4fdd980df512d29b4d413b3ec3733efd46e4adf1a3d2414bdfc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.5.2] - 2022-03-24
4
+
5
+ - add extra branch test coverage to CloudGovConfig
6
+ - replace forked version of @csstools/postcss-sass with released version
7
+ - upgrade i18n-tasks gem to 1.0
8
+
3
9
  ## [0.5.1] - 2022-03-17
4
10
 
5
11
  - fix interaction between foreman and dotenv by disabling foreman's env loading
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_template_18f (0.5.1)
4
+ rails_template_18f (0.5.2)
5
5
  activesupport (~> 7.0.0)
6
6
  colorize (~> 0.8)
7
7
  railties (~> 7.0.0)
@@ -37,7 +37,11 @@ RSpec.describe CloudGovConfig, type: :model do
37
37
  end
38
38
 
39
39
  it "returns nil for a missing path" do
40
- expect(subject.dig(:s3, :credentials, :other)).to be_nil
40
+ expect(subject.dig(:s3, :missing)).to be_nil
41
+ end
42
+
43
+ it "returns nil for a missing service" do
44
+ expect(subject.dig(:rds, :credentials)).to be_nil
41
45
  end
42
46
  end
43
47
  end
@@ -18,7 +18,7 @@ module RailsTemplate18f
18
18
  def install_gem
19
19
  return if gem_installed?("i18n-tasks")
20
20
  gem_group :development, :test do
21
- gem "i18n-tasks", "~> 0.9"
21
+ gem "i18n-tasks", "~> 1.0"
22
22
  end
23
23
  end
24
24
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsTemplate18f
4
- VERSION = "0.5.1"
4
+ VERSION = "0.5.2"
5
5
  end
data/template.rb CHANGED
@@ -239,10 +239,11 @@ after_bundle do
239
239
  "build:css": "postcss ./app/assets/stylesheets/application.postcss.css -o ./app/assets/builds/application.css"
240
240
  },
241
241
  EOJSON
242
+ # include verbose flag for dev postcss output
243
+ gsub_file "Procfile.dev", "yarn build:css --watch", "yarn build:css --verbose --watch"
242
244
  # Replace postcss-nesting with sass since USWDS uses sass
243
245
  run "yarn remove postcss-nesting"
244
- # include fork of @csstools/postcss-sass until that library is updated for postcss 8
245
- run "yarn add https://github.com/sinankeskin/postcss-sass"
246
+ run "yarn add @csstools/postcss-sass"
246
247
  run "yarn add postcss-scss"
247
248
  insert_into_file "postcss.config.js", " syntax: 'postcss-scss',\n", before: /^\s+plugins/
248
249
  gsub_file "postcss.config.js", "postcss-nesting", "@csstools/postcss-sass"
@@ -271,8 +272,6 @@ after_bundle do
271
272
  end
272
273
  directory "app/assets"
273
274
  append_to_file "app/assets/stylesheets/application.postcss.css", <<~EOCSS
274
- /* KNOWN ISSUE: only changes to application.postcss.css will trigger an automatic rebuild */
275
- /* restart your server or run `yarn build:css` when changing other files */
276
275
  @import "uswds-settings.scss";
277
276
  @import "../../../node_modules/uswds/dist/scss/uswds.scss";
278
277
  EOCSS
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_template_18f
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Ahearn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-17 00:00:00.000000000 Z
11
+ date: 2022-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties