ae-be_strong 0.1.2.pre → 0.1.2.pre2

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: 157817a839f7a816900085d41a4ef142543b70a6
4
- data.tar.gz: 2ecc51e0c17c70eb62b1193b03d6a08d26c02980
3
+ metadata.gz: 71b481781fee4d1e237fdac5adacb6000e883a53
4
+ data.tar.gz: 11586ddbf4301fa81ac6c433f5ddc0acb997ce51
5
5
  SHA512:
6
- metadata.gz: 7b926bbb43cdce3615f887d3a9d33402a6ec414f3b5e4473e21ffccda347b327a363853535fff90d3f0ab861a939a624f968e6258b054a3de2bfdcf6164f6609
7
- data.tar.gz: da917c182e6133fd8dc9fbfb1470463e02b2bb9710bb3003566720d97d12154d3b6ed251dd476884474669f525b16138eb10714c2d8b013d5142706ad96cabc8
6
+ metadata.gz: f5957b1c6016b248c4e1c0d5a5d5570060a2a00afbb9125f066e93ad5e6fb511b4246d82f73a8c31d3474efae976182134cbfc0bf622704a74ebc88dc482cfb8
7
+ data.tar.gz: 5b23feb96d9efbc81163f408f800896493d2b92ab9f3526e948d66b7c78658532c479ef21671fe55ae7e3d7be94bbde2985852d67328471d0f730310fc4c6d86
@@ -15,7 +15,7 @@ module BeStrong
15
15
  code = Code.new(buf).remove_attr_accessible_and_protected!
16
16
  return false unless code.changed?
17
17
 
18
- File.open(file, 'w'){|f| f.puts(code.to_str)}
18
+ File.open(file, 'w'){|f| f.puts(code.to_s)}
19
19
  true
20
20
  end
21
21
  end
@@ -2,7 +2,7 @@ module BeStrong
2
2
  class Code
3
3
  include Comparable
4
4
 
5
- REG_MASS_ASSIGNMENT_METHOD = /((new|build|build_.*|update|update!|assign_attributes|update_attributes|update_attributes!)([\( )])params\[:(\w*)\]([\( )]))/
5
+ REG_MASS_ASSIGNMENT_METHOD = /((new|build|build_.*|update|update!|assign_attributes|update_attributes|update_attributes!|attributes\s*=)([\( )])\s*params\[:(\w*)\]([\( )]))/
6
6
 
7
7
  def initialize(code)
8
8
  @code = code
@@ -1,3 +1,3 @@
1
1
  module BeStrong
2
- VERSION = "0.1.2.pre"
2
+ VERSION = "0.1.2.pre2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae-be_strong
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.pre
4
+ version: 0.1.2.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - AppFolio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-07 00:00:00.000000000 Z
11
+ date: 2017-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler