reform-rails 0.1.4 → 0.1.5

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: e2a4bb3a64ef4f53fe1a03d4886a84275cf77c05
4
- data.tar.gz: be3cddbf1dcc890adf09373a14f2fbe1ba706c04
3
+ metadata.gz: 8eaf0b3254319ddae478464746d47c6d329b2e5c
4
+ data.tar.gz: 95b65e9d55d640e61117f3485b7280df563e4f5f
5
5
  SHA512:
6
- metadata.gz: f84f21d50c895a1d2ee55befae0a9fa095951f03349a39b40817bd9ba7369332737c81dd7fbe53ef4e82e24bea24f762ee7ae1f68ac4159c181d44fd67bf4fb4
7
- data.tar.gz: 5659e0a564452f062cb49983914f092255cd7abd2c850a59b9c59c6ba9a6ede7c21fac915aa1e6a3124b66218b38c630407a1b2290b69fe789b63b0c1910b2e2
6
+ metadata.gz: dcbc5c89277bdab000c8900ed5199c3e879a2652fd78ada2c4136b10eddeb6437fe53ba8a28d54cf75634dc8285ed06813bf67989cb7b998d11e679e5218245b
7
+ data.tar.gz: 19d864caaf261d850c58d913c3d02456ad57d3a12fcc6765333872c49d462c00cb207e3778e1f9cbb848f4eadd7fa1f776055352b7ab26ffa4e76b4ce0fe2868
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.1.5
2
+
3
+ * Allow using Reform-Rails without Rails (it used to crash when not loading `rails.rb`).
4
+
1
5
  # 0.1.4
2
6
 
3
7
  * Allow setting `config.reform` in initializers, too.
Binary file
@@ -73,7 +73,7 @@ module Reform::Form::ActiveModel
73
73
 
74
74
  private
75
75
  def active_model_name_for(string, namespace=nil)
76
- return ::ActiveModel::Name.new(OpenStruct.new(:name => string)) if Reform.rails3_0?
76
+ return ::ActiveModel::Name.new(OpenStruct.new(:name => string)) if ::ActiveModel::VERSION::MAJOR == 3 and ::ActiveModel::VERSION::MINOR == 0 # TODO: remove when we drop rails 3.x.
77
77
  ::ActiveModel::Name.new(self, namespace, string)
78
78
  end
79
79
  end # ClassMethods
@@ -2,7 +2,4 @@ require "reform/rails/version"
2
2
  require "reform/rails/railtie"
3
3
 
4
4
  module Reform
5
- def self.rails3_0?
6
- ::ActiveModel::VERSION::MAJOR == 3 and ::ActiveModel::VERSION::MINOR == 0
7
- end
8
5
  end
@@ -1,5 +1,5 @@
1
1
  module Reform
2
2
  module Rails
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reform-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-03 00:00:00.000000000 Z
11
+ date: 2016-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reform