view_tree 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGVlNzFhN2FkNGY1MjRkNTAzMDQ4ZTk4MGY1NzQyZWJhYWMzNTRiOQ==
4
+ YzAyN2U2OTIyODZkYmZlYzExMjZmNTNkNGMzNWNmNjdiNjk2MjAzMA==
5
5
  data.tar.gz: !binary |-
6
- NmU4YTQ5ZjRlMmI1ZmQzMDkxNjBiNTkzMGZiYjdiZjFlMjk4NGZlMg==
6
+ NzcwOWVmYjc2NzcxYmM5YmYzMDdkM2Q5ZDFjMzdkNzMzYTQzOGQ1ZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YTBkZWUwZDU4YjJkOGJmOWQwMzhhY2Q2OTc5OWNiY2RiYTk2OGI4M2EzZjgx
10
- MmY0MGQyYzY2MDBhNjYzOGFhZjZmYThjMmJiZGVkNGU4NDUxYjI0MWFkY2Nh
11
- NTdmYzYxNjkyNzgxMTQ0NjZhMGRhNmUwMDJlODk4MzU3ZDJjZTc=
9
+ MjIxZWE1N2Q0OTc4NTY5ZDljYjAzNDYzZWIzNGU2NGNjMDRhYWI5Nzk4MzEy
10
+ MjM3MTlmZDc3Mjc4OGM4NjZkN2NkZDRkOGQ2YTc3Y2MwYzBjYzI0ZDE2Nzlh
11
+ MTlkMmI1NmIzYTI2OTcwMTk5ZWQzYTYzYTNhMjVhMTVkYzY2NWY=
12
12
  data.tar.gz: !binary |-
13
- MGNiMjczOGY2MGVlODBkMzE5ZWJkYzM4MWFlMGJmYTY5MmYwNTUzMGVhOTRj
14
- ZDE5MzdjNTFmMTIxMDViNDVjYTU4MTkyYjYyMWMzMTJjMjgxYjQ2NjA3ZWE3
15
- ZWIxY2UyMTExMzAzODA5MmQ1MDI1OWE5ZWI0ODlkYjJjN2ZjODg=
13
+ YjZiNTZmNjVlNjZhZjFjN2MyMTQ2NzcwYWQ5YzQ4ZTY4Njg3Y2VkYjg1NGQx
14
+ Yzg3ODlhNmNhOWNjOGYwZWFhZTc1NTI5ZmQ5Njg1MTVjYWRhY2M5NDhlNmNl
15
+ OGY5ZTI5ZGI3ZTRkMDI1MWFjZTFlZDdiNjlhN2NlNzJiOGFiN2Q=
@@ -1,3 +1,3 @@
1
1
  module ViewTree
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
data/lib/view_tree.rb CHANGED
@@ -56,12 +56,8 @@ class Cb
56
56
 
57
57
  # Check that if user has input "bundle install --path vendor"
58
58
 
59
- if controller_action_name.size == 0 && controller_action_name[0] == "#"
60
- puts "Please input controller and action name."
61
- exit
62
- end
63
-
64
- if controller_action_name[controller_action_name.size - 1] == "#" && controller_action_name.include?("*")
59
+ if controller_action_name.size == 0 || controller_action_name[0] == "#" ||
60
+ controller_action_name[controller_action_name.size - 1] == "#" || controller_action_name.include?("*")
65
61
  puts "Please input controller and action name."
66
62
  exit
67
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent