elixirize 0.1.0 → 0.2.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: 50bbc7dee902135cd0de99c9b5966114578a7aad
4
- data.tar.gz: 690e6562b32ab28c10065fb7027295cccf20b6aa
3
+ metadata.gz: ba8996108e4f521e3c1ece8b4a56208c0f6c0aa7
4
+ data.tar.gz: cc1f51d3f33e56107b4b8db31301313f4b29ac41
5
5
  SHA512:
6
- metadata.gz: 944e8315292e0ef9883ab1d93a280bfa514792e9cfe9b7fe70d9c4aaeca82a02740107a757b98ab5fe9e7b118f6a2c0bbe03119fdf8deaf82ba016777e98fac5
7
- data.tar.gz: ab9e8844202bc71da8ebf959df61b09767460039db4c558ba31ac0d9a1f23bbf462a303fae040fae81ba6e116171d7bfbac4b2a693fd42e8144c857e62731555
6
+ metadata.gz: 00540d8a078ae88e35b403e65ce6a19c287af5f6ad29f5f42b9f295956ccf6d384f0c18acea3141d515ac1353ecff7719da3218dc56b37c6d810ccaf1676de23
7
+ data.tar.gz: 546dc501ed9724a0b05f322723a3e330fcdc4cadf8abf7d954d7c8eea68732fa06aa16107861f6de55debbacc5e7e981df5538ace3c9f9efe60273a774acbae7
@@ -8,7 +8,7 @@ env:
8
8
  - secure: qXpWydxv6DHMrvGL8WH4wNRY4MTY7KV/x308Y5dHkZCrI7k9UOccvznp69KT3Z+tzYEFDXfUix5wA6pgyVcvrsQyiLSjGcyzHhxJKs1gk0gcxAkmhwHmUP9aiXWUe/mzpj7Uoc2DHwpPTpK1wQ5kV6eV+jzQLuN3nhfNr2sL8b4=
9
9
  addons:
10
10
  code_climate:
11
- repo_token: TODO! UPDATE_THIS!
11
+ repo_token: 87b4abe10917ab899b09956c25e9f389e4ce3abe126c1f98549de726692c209c
12
12
  script: bundle exec rake test
13
13
  after_success:
14
14
  - bundle exec codeclimate-test-reporter
data/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  # Elixirize
9
9
 
10
- This add the `ᐅ` method to Ruby. It pipes in the returned value of the left as the last parameter of the
10
+ This adds the `ᐅ` method to Ruby. It pipes in the returned value of the left as the first parameter of the
11
11
  Proc on the right.
12
12
 
13
13
  In Linux to enter ᐅ you need to type CTRl-SHIFT-U and then 1405 followed by the space or enter key.
@@ -32,19 +32,19 @@ Or install it yourself as:
32
32
 
33
33
  ```ruby
34
34
  def add a, b
35
- a+b
35
+ a + b
36
36
  end
37
37
 
38
- subtract = ->a, b{a-b}
38
+ subtract = ->a, b{ a - b }
39
39
 
40
40
  add(4, 5).ᐅ subtract, 15
41
- # => 6
41
+ # => -6
42
42
 
43
- def divide a,b
44
- a/b
43
+ def divide a, b
44
+ a / b
45
45
  end
46
46
 
47
- add(4, 6).ᐅ method(:divide), 50
47
+ add(40, 60).ᐅ method(:divide), 20
48
48
  # => 5
49
49
  ```
50
50
 
@@ -1,11 +1,9 @@
1
1
  require "elixirize/version"
2
2
 
3
3
  module Elixirize
4
- # add(4,5).ᐅ :minus, 15
5
-
6
4
  ::Object.class_eval do
7
5
  def ᐅ other, *args
8
- other.call(*args, self)
6
+ other.call(self, *args)
9
7
  end
10
8
  end
11
9
  end
@@ -1,3 +1,3 @@
1
1
  module Elixirize
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elixirize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark