enum_help 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: 8f384a872b8a965d2c3c1e3213d957f56f2f81ce
4
- data.tar.gz: 47733a81ef522b6df322c9a8be6b78097c85bb67
3
+ metadata.gz: 42f7cdd1735452d6cd1aa40beacdb8ea085bce61
4
+ data.tar.gz: e58011f45e85f1245b6a443cc4f17fe3a2dc864a
5
5
  SHA512:
6
- metadata.gz: dc36a1846a9e2718181175e430c2ffee181422d40c84d25b23526cd01d969f41ff1c05bb78c0dd1f2ef06bb30e8e54cacabb851f66d036af7b847abe1bc029ae
7
- data.tar.gz: 1e4136f604af3825a3f2473865a0b7efb52b62a45d2acc577a5e9de6f5bc1a1f9f567e66d0b3f0db8579f1bcce7386516ceb95883375ea720facef144dd5d249
6
+ metadata.gz: 542fe66c3050f4f3647ea52ccb610297c5e1892431425d7e441f870c5fa682a9e005b69cb5feb788cfe18e65097bb6b2a61ad40c17a63117ca72be64b19f092a
7
+ data.tar.gz: 07506b5652aa6e5b1e065638d8a3fe095e7e8a414cfaad2aa044cd61eac4309d69428a973009a87adc17eae1d36f45494c54280434806956e7c4acf87672846e
@@ -1,3 +1,5 @@
1
+ require 'simple_form'
2
+
1
3
  module EnumHelp
2
4
  module SimpleForm
3
5
  module BuilderExtension
@@ -1,3 +1,3 @@
1
1
  module EnumHelp
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/lib/enum_help.rb CHANGED
@@ -1,5 +1,14 @@
1
1
  require "enum_help/version"
2
- require "enum_help/simple_form"
2
+
3
+ simple_form_exist = true
4
+ begin
5
+ require 'simple_form'
6
+ rescue LoadError
7
+ simple_form_exist = false
8
+ end
9
+ if simple_form_exist
10
+ require "enum_help/simple_form"
11
+ end
3
12
  require "enum_help/i18n"
4
13
  require "enum_help/railtie"
5
14
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enum_help
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lester Zhao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-26 00:00:00.000000000 Z
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler