simple-hasher 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/simplehasher/railtie.rb +11 -0
- data/lib/simplehasher/version.rb +1 -1
- data/lib/simplehasher.rb +2 -0
- metadata +2 -1
@@ -0,0 +1,11 @@
|
|
1
|
+
module SimpleHasher
|
2
|
+
class SimpleHasherRailtie < Rails::Railtie
|
3
|
+
config.simple_hasher = ActiveSupport::OrderedOptions.new
|
4
|
+
|
5
|
+
initializer 'simple_hasher.allowed_chars' do |app|
|
6
|
+
SimpleHasher.configure do |config|
|
7
|
+
config.allowed_chars = app.config.simple_hasher[:allowed_chars]
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
data/lib/simplehasher/version.rb
CHANGED
data/lib/simplehasher.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-hasher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- README.md
|
42
42
|
- Rakefile
|
43
43
|
- lib/simplehasher.rb
|
44
|
+
- lib/simplehasher/railtie.rb
|
44
45
|
- lib/simplehasher/version.rb
|
45
46
|
- simple-hasher.gemspec
|
46
47
|
- spec/simple-hasher_spec.rb
|