contextualizer 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec4c6dfc60a05baceb03c9a46c88175f09715cbf
4
- data.tar.gz: 928070a99f1e191c845a31cf083cf9862f876f51
3
+ metadata.gz: 6ba2f6d3bc6a1441c65d5e01d3598319db2cacb4
4
+ data.tar.gz: ff72919a81bd9013f0c893b77f3d54ad4268938b
5
5
  SHA512:
6
- metadata.gz: 947b5d582de538ecf810212daaf363f03d5382cdff6b9f8bac0d99c06d8408aa61c5cdb6eec30d8aed19cdc8049cfab1eb13e17450f04245b574181c66c2595c
7
- data.tar.gz: 300ad39ac4e113e69ac14176b1e3f9a0b748ec934747c63b6b8187cbd0491dff4a9ad6d32ae5573bd70247b91b08f9b9552bcc20b14a42844775ad709550580b
6
+ metadata.gz: e3c6a460e6c8c8d493d27c3e6ea94da7a24c59344bd39d9c647bda89caa86d4169c9e2298935c4fd4bbd49cf6a5695408984cf715dcefe70e5642136a94545de
7
+ data.tar.gz: f1a826eae8fa1fdfd8a48397782901d544f38dfbbf0e50a57a8b37ae7c63cac810a929223a7a5519963d204f35ca06fcc6b76aabe097246440316585d68ecb01
@@ -1,3 +1,5 @@
1
+ require 'contextualizer/version'
2
+
1
3
  module Contextualizer
2
4
  def context(*attrs, **opt_attrs)
3
5
  unless @_setter
@@ -0,0 +1,13 @@
1
+ require 'contextualizer'
2
+
3
+ module Contextualizer
4
+ module Callable
5
+ def call(ctx, *args, &bl)
6
+ new(ctx).call(*args, &bl)
7
+ end
8
+
9
+ def self.extended(klass)
10
+ klass.extend Contextualizer
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Contextualizer
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contextualizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Herrero
@@ -114,6 +114,7 @@ files:
114
114
  - bin/setup
115
115
  - contextualizer.gemspec
116
116
  - lib/contextualizer.rb
117
+ - lib/contextualizer/callable.rb
117
118
  - lib/contextualizer/version.rb
118
119
  homepage:
119
120
  licenses: