plutonium 0.10.0 → 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: 2c06e317739b1f680a765c14d8cec25681b2a4ee8a2f28eb862d64acaab7c131
4
- data.tar.gz: 685ce9c385e2a344d2b67b05c548b9ecbbc9d34f528c610963cacf0f2b6b95cc
3
+ metadata.gz: 62776ccdb807ad168a6e61bcea935268d749a932018c1064c6df354d125e06c2
4
+ data.tar.gz: 1bbce05f7591948984c31d1a662b55a098248323e93f0c4e171aac107e132bf6
5
5
  SHA512:
6
- metadata.gz: 6bb7965e89acbbe4d79e9f2d75b9dddc2d5c8ea7ef55eb4a1d82a9df56f6bef23cba50f696366c651739f9f12afb7da909a904d06c2e4235e2947b680b066ce2
7
- data.tar.gz: 55e6762fd915065bd5f37ecb370196f44f774b19331b9ac42f526c599ed4fb6b1dd75e0a49d6d2330d945ef0058e38de48632990f2a221c02b339ef387d36633
6
+ metadata.gz: 66844257f2a1b0cbeb59cbdfaa211ec87c176389a2e8058cf679d133b31f7f09d3fb21b98cea25b5856b5e43ed0572d3fb8872189464d0fbeedf7c0ce5d96cd4
7
+ data.tar.gz: 1220dded69fae0946c2df3120f2c89db1262a38a481d461410dbac2b6dd76139805612fe3a1e470c2e5951684e401f98a38ef6ebce0b6040a7222e0129b88d3f
@@ -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.10.0"
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.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich