elixirize 0.3.0 → 0.4.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: f30450303060b252707cc95284fdc6b667aeddc9
4
- data.tar.gz: f3f7c2a7213a94976f5cae3f4063560e99123512
3
+ metadata.gz: bf1f09a032413b4d706349c33aef1f1ef2007cb9
4
+ data.tar.gz: 2c2768dc37e90aece92a12a051976aa25f4c27e0
5
5
  SHA512:
6
- metadata.gz: add253f3de8585ee05618a9ece79c0ff5dc66b36e25b1013f6d91853e7354f49e86afc1b8db849ab126219379669f3914a6cca59307b200d21c51db4e505ea58
7
- data.tar.gz: '02942923f295a2157cedfed5d76295a9d93d75e9353e5259c4b8c92c3cfe8ce9cf2c7ba1943fb50fe2057071f4c39f1e8dd581c9bd07b6a13becd96ac3785e9b'
6
+ metadata.gz: 854ea2e013a208f22688f45f4866d965a9d02e21abe48a5acc0b507630607d19c117fd9d8928b0e9a67e5e3a225ddc9b0c0d8f1ea814172647d87acd2e8e6778
7
+ data.tar.gz: 80957f091c58138dd07bc3bec46593424250e2eaf0b73e7f2c108fe3b983191cfbb826d667f91824e9126fab3b0a0b179a7aeb52560851ba95206d8fa10389aa
data/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  # Elixirize
9
9
 
10
10
  This adds the `ᐅ` method to Ruby. It pipes in the returned value of the left as the first parameter of the
11
- Proc on the right.
11
+ Proc _(or anything with `:call` defined)_ on the right.
12
12
 
13
13
  ### Unicode ᐅ
14
14
 
@@ -55,7 +55,7 @@ add(40, 60).ᐅ method(:divide), 20
55
55
  # => 5
56
56
  ```
57
57
 
58
- For fun I've also aliased λ to lambda; unicode 03bb.
58
+ ## Extra
59
59
 
60
60
  Since Ruby is designed largely to call methods on the object that was returned
61
61
  I've written the `~` method on `Symbol` to allow method calls on the returned
@@ -77,9 +77,9 @@ val
77
77
  You can mix both behaviors without any issue.
78
78
 
79
79
  This may seem counter intuitive as it's the same thing as just calling the method
80
- on the object, but consider this a noticable refactoring step. If you're designing
80
+ on the object, but consider this a noticeable refactoring step. If you're designing
81
81
  a project in a manner where you want results piped in as the first parameter then
82
- the tilde-Symbol will be your TODO reminder to convert/refactor how your code base is
82
+ the tilde-symbol will be your TODO reminder to convert/refactor how your code base is
83
83
  implemented.
84
84
 
85
85
  ## Development
@@ -12,7 +12,7 @@ module Elixirize
12
12
 
13
13
  ::Symbol.class_eval do
14
14
  def ~
15
- λ {|obj, *args| obj.send self, *args }
15
+ λ {|obj, *args| obj.public_send self, *args }
16
16
  end
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module Elixirize
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elixirize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-24 00:00:00.000000000 Z
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.6.10
95
+ rubygems_version: 2.6.11
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Add ᐅ method for Elixir feel.