sevencan 0.1.2 → 0.1.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: b84ad07dcbf14ef8f82065bd5b8974ff530f60e4
4
- data.tar.gz: f85de0cddb78d760650e4a4acf1036b801eb21d9
3
+ metadata.gz: 40e6b19b8f8240462fa44eb2f23c861b521183e8
4
+ data.tar.gz: d0fbe28d6348107661f99e1deee190d0c67ec1a0
5
5
  SHA512:
6
- metadata.gz: 45884905ac89883951198b3245905fc75ce4f5d5d9d57af8b73b8f1ebeea2afa5b8140a75a5bc4ff27ca81e189c628a08aaf760ad43da5a29b99fbf96b3a4988
7
- data.tar.gz: 92f4bfb0f6609efa94dffc2c7bfd41dd5c9174d579dd2940fcb38e2bdee28ed64a1a55626626c62b17caa0d266c1e60ddf4d35d1b4c91aa7d3bfb3ed3edcf0c4
6
+ metadata.gz: 0b7f0a6ce5cbec7b38fd30c20434dac6e8b29cc17360f862ad0f700ff3f592bdb9d4c9084c9e1d4972a8c21c992e7bb1d3deff5677dc2cead0ba55f45aa6fd19
7
+ data.tar.gz: 8c5cf2ea89c639c9babdbb8fb7f13e3bb4e2ed933544e6131943c62c2feae3904b13fe314cce6c5ac653791caa1cec35eafae93d20433374779e155234a0af42
data/.gitignore CHANGED
@@ -10,3 +10,5 @@
10
10
 
11
11
  *.swp
12
12
  *.gem
13
+
14
+ /spec/examples.txt
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Seven
2
2
 
3
- Permission manage center
3
+ Permission manage center, Better `six`
4
4
 
5
5
  ## Installation
6
6
 
@@ -34,7 +34,7 @@ module Seven
34
34
  target_list.each do |t|
35
35
  case t
36
36
  when Symbol, String
37
- instance = instance_variable_get(t)
37
+ instance = instance_variable_defined?(t) ? instance_variable_get(t) : nil
38
38
  return instance if instance
39
39
  when Proc
40
40
  result = instance_eval(&t)
data/lib/seven/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Seven
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sevencan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jiangzhi.xie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-22 00:00:00.000000000 Z
11
+ date: 2016-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler