shrine-reform 0.1.1 → 0.1.2

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: 27a8fdd87a1f63696f2738360f6ba77862db4f3e
4
- data.tar.gz: de85b092c1111cc8ef4df702eef64658adff38b3
3
+ metadata.gz: e5b40488b9678e2a445616c8c6bd0a705c6d51ba
4
+ data.tar.gz: 6b178ce5601c2788cbdd5caf0f3b9645e8fb3b44
5
5
  SHA512:
6
- metadata.gz: 223536a013b503893ec801748763725d2f3804b889a9ceee87da3672ab173650ffbfafea8f0eaa9065c963febf77a7adc015d0494107592ada5634e109605f20
7
- data.tar.gz: 76edc07d55be8e16517e6c84ce3d174d2537681ebd2d47f2e5fbfec2418fccbac1c6456d7260df644425e301d6fdeb61fbe962e800e96a0780a0b5e19945bbb4
6
+ metadata.gz: b96e07db1cadc221d3555482f86b24eca3a658f69dc1f0ca99cb1c837dec5571cd6ce3a715283b6845d0f410cc1ce0c1a9cfc74cdf6a699f453afd059c2e82e1
7
+ data.tar.gz: e0d0baa65de2f197445bbac2ae407930292faf47e5de3d9943e234b5e3fdbdee888cdd0dbc2821df30a8027ed1a11b3f255bf3475c841319e836b951882564ed
data/README.md CHANGED
@@ -6,7 +6,6 @@ Provides [Reform] integration for [Shrine].
6
6
 
7
7
  ```ruby
8
8
  gem "shrine-reform"
9
- gem "shrine", github: "janko-m/shrine"
10
9
  ```
11
10
 
12
11
  ## Usage
@@ -28,6 +27,14 @@ class PostForm < Reform::Form
28
27
  end
29
28
  ```
30
29
 
30
+ ## Contributing
31
+
32
+ You can run tests with the Rake task:
33
+
34
+ ```
35
+ $ bundle exec rake test
36
+ ```
37
+
31
38
  ## License
32
39
 
33
40
  [MIT](LICENSE.txt)
@@ -4,10 +4,6 @@ class Shrine
4
4
  module Plugins
5
5
  module Reform
6
6
  module AttachmentMethods
7
- def initialize(*)
8
- super
9
- end
10
-
11
7
  def included(form)
12
8
  super
13
9
 
@@ -35,8 +31,7 @@ class Shrine
35
31
 
36
32
  form.class_eval <<-RUBY, __FILE__, __LINE__ + 1
37
33
  def self.create_accessors(name, definition)
38
- return if #{properties}.include?(name)
39
- super
34
+ super unless #{properties}.include?(name)
40
35
  end
41
36
 
42
37
  attr_accessor :#{@name}_data
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "shrine-reform"
3
- gem.version = "0.1.1"
3
+ gem.version = "0.1.2"
4
4
 
5
5
  gem.required_ruby_version = ">= 2.1"
6
6
 
@@ -13,9 +13,9 @@ Gem::Specification.new do |gem|
13
13
  gem.files = Dir["README.md", "LICENSE.txt", "lib/**/*.rb", "*.gemspec"]
14
14
  gem.require_path = "lib"
15
15
 
16
- gem.add_dependency "shrine"
16
+ gem.add_dependency "shrine", "~> 2.0"
17
+ gem.add_dependency "reform"
17
18
 
18
- gem.add_development_dependency "reform"
19
19
  gem.add_development_dependency "activerecord", "~> 4.2"
20
20
  gem.add_development_dependency "sqlite3"
21
21
  gem.add_development_dependency "shrine-memory"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-reform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-08 00:00:00.000000000 Z
11
+ date: 2016-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shrine
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: reform
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -31,7 +31,7 @@ dependencies:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :development
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements: