block-is-hash 0.0.2 → 0.0.3

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: 39a1387ddb0eee8b6fd51aae9f2e0743871bbc4b
4
- data.tar.gz: 4ce084cd4a29d1f411d100871a2f11cb4751c7f6
3
+ metadata.gz: 04b00200c960417dce7a56451cb1de4f490c49c0
4
+ data.tar.gz: 64c34aa4371c9b3557da05097aff2360cef595bc
5
5
  SHA512:
6
- metadata.gz: c624741ce1c1f85bef4f4024c479efc443295778bf21e1cccca76783bc342a458b04702de1c5c4738ce26ccbb920d38e73881e17163c0eb8a898ff45a20fac57
7
- data.tar.gz: 6cfd5ef35099ffc9347d0a4876e8e970c2e0e2411eff01a5f79ae6b399ff30b79150d86fa785c0cfe373cd623abb85ace2593bbd60af9fd9f220e4989831e5b6
6
+ metadata.gz: 06d403ab56f903b42723e7a6cfdbd3a75ff16009a4e26674b34ca43eb0dbd268873e2da43274c8c6ffe47563beb7d2b1478eecda88dc3d0ee75cc250dac01619
7
+ data.tar.gz: b4167213e7c5cff6525f196367010194a1d33b8f2c686f95f402d4256635996e3bddc971a10d311cb83f926bc4e199a867f23a76a5881cb57f2eca4ef76d4ff2
@@ -1 +1 @@
1
- require_relative 'block-is-hash/block_is_hash'
1
+ require_relative 'block-is-hash/function'
@@ -6,10 +6,6 @@ class BlockIsHash
6
6
  end
7
7
 
8
8
  def method_missing name, *args, &block
9
- if not (args or block)
10
- @hash[name]
11
- end
12
-
13
9
  if block
14
10
  args.push BlockIsHash.new(@repeats, &block).to_hash
15
11
  end
@@ -0,0 +1,7 @@
1
+ require_relative 'class'
2
+
3
+
4
+
5
+ def block_is_hash repeats=[], &block
6
+ BlockIsHash.new(repeats, &block).to_hash
7
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: block-is-hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yota Toyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-23 00:00:00.000000000 Z
11
+ date: 2016-10-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: block-to-hash converter
14
14
  email: raviqqe@gmail.com
@@ -17,8 +17,8 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - lib/block-is-hash.rb
20
- - lib/block-is-hash/block_is_hash.rb
21
- - lib/block-is-hash/blockishash.rb
20
+ - lib/block-is-hash/class.rb
21
+ - lib/block-is-hash/function.rb
22
22
  homepage: https://github.com/raviqqe/block-is-hash
23
23
  licenses:
24
24
  - Unlicense
@@ -1,7 +0,0 @@
1
- require_relative 'blockishash'
2
-
3
-
4
-
5
- def block_is_hash repeats, &block
6
- BlockIsHash.new(repeats, &block).to_hash
7
- end