scope_composer 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OThlZWVlZmUwMzdkMTk1MmVlNDVhOTg5MjUxYTk2NDYyYTUwODgzYQ==
4
+ Zjg2M2ViZjVlMTlmNjk2ODg2ZjJkYjIyMjljZDNmZDJiYTU5YzBhOA==
5
5
  data.tar.gz: !binary |-
6
- MTg5MGQzZGZkMTBlY2U0NjFjYjA4NzQzOTY1MjYyZDMwZDIxNGI5Yw==
6
+ OTc0OTQwMGFlZjVkYzY0OTkzMTU3ZDAwMmZmMDgzYjQ3MGQ4MDVkMQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Y2Y2ZmJjOTEzZmE5YWUzZjczYzliMzg5ZWQxZTZkZjY2NGYwZmU3OGFhNTM3
10
- NDZlNWZjZjQxOTkyNjI1OTNkYzNjMjliY2Y4MTc0NjJlMGZkMzFlNTMwMzAy
11
- MzRlYjkzZmI1ZTNhOTNmMzk3ZDA1NGE4NWEyY2NkOGZiMGNhZmM=
9
+ MDEyY2FkOTNmY2U1NWUxYjU4YjAwMDYxZDEyNmQ1ZmQzYTQ0NmM2ODZhNDdj
10
+ NzFkODgwYzAxZmJkYTYwMWU5MzQ5ODE1ODg4YzY1ZWRkNTc1MjJmOWNmYWI0
11
+ NDEwOTg0ZGRmNDI4MWIzODI3NWMxNDU3ZWVhNzk2NWI2ZjczZDM=
12
12
  data.tar.gz: !binary |-
13
- NTcyODczZjRiYmY2YTJkY2QzMzFhNDUzNmJkYzdhOTk5ZTMxNzNlY2JjMGRk
14
- YTczYzNlNjkzY2IwNjNhZDI2OTNiY2RjNGM3ZjVlOWJjNTIwZDc4MzBhMGFj
15
- Njg3YWFiNmZjMWE0OTYwODhiMzhmMzNlMmViNDcyMjU4YjAwN2E=
13
+ MDI5ODY2MTAyZTlhYTdmYTRmYjIzODg3YTQ0YjExNDAzOTdhOGQ5NDc3ZjE1
14
+ YTVjNjQ5NDVmOTdiOWFjMDg1MjhkYzdmZTFhMGNjOWUwMzgwZGM0Yjk4NGEy
15
+ YTNiNzQ2M2U5MmZjYmFkZmQ3NjFjYjEwMjVjYzFiNmRjZGQ5ODQ=
@@ -134,6 +134,10 @@ class Scope
134
134
  delegate :to_param, to: :attributes
135
135
 
136
136
  def scoped
137
+ self.class.new
138
+ end
139
+
140
+ def clone
137
141
  s = self.class.new
138
142
  s.attributes = attributes.clone
139
143
  s.scope_attributes = scope_attributes.clone
@@ -1,3 +1,3 @@
1
1
  module ScopeComposer
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scope_composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Hilscher