plutonium 0.9.2 → 0.10.1

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: 366e8cd49e552b8602a4767dd6e55406b92eddb9d83f5f38c4b89025a85bae2d
4
- data.tar.gz: 810cbeae388ef71b27b102c1eb9e7a8dfa7c4a2a75f0215a6ec98b58a333db8a
3
+ metadata.gz: 62776ccdb807ad168a6e61bcea935268d749a932018c1064c6df354d125e06c2
4
+ data.tar.gz: 1bbce05f7591948984c31d1a662b55a098248323e93f0c4e171aac107e132bf6
5
5
  SHA512:
6
- metadata.gz: fbf757e37dfa65e33e7e6d77a377826066097066a572c165e159c3173540a203d7c8bd3ffe4dc2d981a30c6ce5aeb5b3de2c4da311e116cbda266bc4ef8e4642
7
- data.tar.gz: 5d3685200e6db17a7e8433348b855e72256f1c1c3572c5e1e11f49e73822af164c72c6c27b55aa16d26d40a09bed41fa02673179b98be58a62a034549fa0e0d9
6
+ metadata.gz: 66844257f2a1b0cbeb59cbdfaa211ec87c176389a2e8058cf679d133b31f7f09d3fb21b98cea25b5856b5e43ed0572d3fb8872189464d0fbeedf7c0ce5d96cd4
7
+ data.tar.gz: 1220dded69fae0946c2df3120f2c89db1262a38a481d461410dbac2b6dd76139805612fe3a1e470c2e5951684e401f98a38ef6ebce0b6040a7222e0129b88d3f
data/Rakefile CHANGED
@@ -8,10 +8,9 @@ require "standard/rake"
8
8
  task default: %i[spec standard]
9
9
 
10
10
  task :assets do
11
- puts "assets >>>>>>>"
12
11
  `npm run js:prod`
12
+ `npm run css:prod`
13
13
  end
14
14
 
15
- Rake::Task["release"].enhance [Rake::Task["assets"]] do
16
- puts "after >>>>>>>>"
17
- end
15
+ # https://stackoverflow.com/questions/15707940/rake-before-task-hook
16
+ Rake::Task["build"].enhance ["assets"]
data/js.manifest ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "plutonium-app.js.map": "plutonium-app-36KN5FVJ.js.map",
3
+ "plutonium-app.js": "plutonium-app-36KN5FVJ.js"
4
+ }
@@ -1,10 +1,11 @@
1
1
  require "active_support"
2
+ require "active_model"
2
3
 
3
4
  module Plutonium
4
5
  module Config
5
6
  # @return [Boolean] Are we developing plutonium? This is separate from Rails development.
6
7
  mattr_accessor :development
7
- @@development = defined?(Rails.env) && Rails.env.development?
8
+ @@development = ActiveModel::Type::Boolean.new.cast(ENV["PLUTONIUM_DEV"]).present?
8
9
 
9
10
  # @return [Boolean] Should hotreload be enabled? Enabled by default in Rails development.
10
11
  mattr_accessor :enable_hotreload
@@ -1,3 +1,3 @@
1
1
  module Plutonium
2
- VERSION = "0.9.2"
2
+ VERSION = "0.10.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plutonium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich
@@ -847,6 +847,7 @@ files:
847
847
  - css.manifest
848
848
  - esbuild.config.js
849
849
  - exe/pug
850
+ - js.manifest
850
851
  - lib/active_model/validations/array_validator.rb
851
852
  - lib/active_model/validations/attached_validator.rb
852
853
  - lib/active_model/validations/url_validator.rb