redpear 1.2.0 → 1.3.0

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: 5c80c1f9e88de0084fc27d1d77b10072817f3287
4
- data.tar.gz: da764ebc3290cdac2cc83504b9dbb97277170171
3
+ metadata.gz: d27a6c1bbdd1844b9e136c2c9e35326da79e898c
4
+ data.tar.gz: f3e1a6ec116b4ae5a064ef5490072ead17fa1b98
5
5
  SHA512:
6
- metadata.gz: 501443f93fa7bd8a35a486e628930c9fe69ccba208bb46df8c146013eec6fcaa68d970e1b99655fcf6d3586f0482c82b42faf1a452792a03ba583efd382ce780
7
- data.tar.gz: ecef9a6c3c03ae60ba5c7d86ecfc4c85e060922a50a0ad8410e3e43ff56ad1156288d88d5d734664b8f4af8a76c1d10e2294db6f38ffb8729e73fd5f17cbeff1
6
+ metadata.gz: a7f356ffa4b00838b76991a3aaf540de325517bc30734e220221daa074613ef410100da5d531ef359e5267393fb7dcedba4c13a298571929f75d7c93f722bc62
7
+ data.tar.gz: c0827e06f68f8e604fd53d62c76b1f01a333ada8c4e2a72fca276a56ff1289b9dcfcba45c36baf7ba5e0a7f678e3fd630c1184b22e55a4a2898d8b635739994e
@@ -1,28 +1,28 @@
1
- require 'factory_girl'
1
+ require 'factory_bot'
2
2
  require 'redpear/model'
3
3
 
4
4
  class Redpear::Model
5
5
 
6
- # FactoryGirl module for your tests/specs. Example:
6
+ # FactoryBot module for your tests/specs. Example:
7
7
  #
8
- # require 'redpear/model/factory_girl'
8
+ # require 'redpear/model/factory_bot'
9
9
  #
10
- # FactoryGirl.define do
10
+ # FactoryBot.define do
11
11
  # factory :post do
12
12
  # title { "A Title" }
13
13
  # created_at { Time.at(1313131313) }
14
14
  # end
15
15
  # end
16
16
  #
17
- module FactoryGirl
17
+ module FactoryBot
18
18
 
19
- # @return [Boolean] always true. FactoryGirl requires it.
19
+ # @return [Boolean] always true. FactoryBot requires it.
20
20
  def save!
21
21
  after_save({}) # call after_save again
22
22
  true
23
23
  end
24
24
 
25
25
  end
26
- include FactoryGirl
26
+ include FactoryBot
27
27
 
28
28
  end
@@ -1,7 +1,7 @@
1
1
  module Redpear
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
- MINOR = 2
4
+ MINOR = 3
5
5
  TINY = 0
6
6
  PRE = nil
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redpear
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-24 00:00:00.000000000 Z
11
+ date: 2017-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -95,21 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: machinist
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: factory_girl
98
+ name: factory_bot
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - ">="
@@ -160,9 +146,8 @@ files:
160
146
  - lib/redpear/concern.rb
161
147
  - lib/redpear/model.rb
162
148
  - lib/redpear/model/expiration.rb
163
- - lib/redpear/model/factory_girl.rb
149
+ - lib/redpear/model/factory_bot.rb
164
150
  - lib/redpear/model/finders.rb
165
- - lib/redpear/model/machinist.rb
166
151
  - lib/redpear/schema.rb
167
152
  - lib/redpear/schema/collection.rb
168
153
  - lib/redpear/schema/column.rb
@@ -190,17 +175,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
175
  requirements:
191
176
  - - ">="
192
177
  - !ruby/object:Gem::Version
193
- version: 1.9.0
178
+ version: 2.2.0
194
179
  required_rubygems_version: !ruby/object:Gem::Requirement
195
180
  requirements:
196
181
  - - ">="
197
182
  - !ruby/object:Gem::Version
198
- version: 1.3.6
183
+ version: '0'
199
184
  requirements: []
200
185
  rubyforge_project:
201
- rubygems_version: 2.4.7
186
+ rubygems_version: 2.6.14
202
187
  signing_key:
203
188
  specification_version: 4
204
189
  summary: Redpear, a Redis ORM
205
190
  test_files: []
206
- has_rdoc:
@@ -1,54 +0,0 @@
1
- require 'machinist'
2
- require 'redpear/model'
3
-
4
- class Redpear::Model
5
- extend ::Machinist::Machinable
6
-
7
- # Used internally by Machinist
8
- # @return [Class] the blueprint class
9
- def self.blueprint_class
10
- self::Machinist::Blueprint
11
- end
12
-
13
- # Machinist module for your tests/specs. Example:
14
- #
15
- # # spec/support/blueprints.rb
16
- # require "redpear/model/machinist"
17
- #
18
- # Post.blueprint do
19
- # title { "A Title" }
20
- # created_at { 2.days.ago }
21
- # end
22
- #
23
- module Machinist
24
-
25
- class Blueprint < ::Machinist::Blueprint
26
-
27
- def make!(attributes = {})
28
- make(attributes)
29
- end
30
-
31
- def lathe_class #:nodoc:
32
- Lathe
33
- end
34
-
35
- end
36
-
37
- class Lathe < ::Machinist::Lathe
38
- protected
39
-
40
- def make_one_value(attribute, args)
41
- return unless block_given?
42
- raise_argument_error(attribute) unless args.empty?
43
- yield
44
- end
45
-
46
- def assign_attribute(key, value) #:nodoc:
47
- @assigned_attributes[key.to_sym] = value
48
- @object[key] = value
49
- end
50
-
51
- end
52
-
53
- end
54
- end