eyemanager 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: f29f914bd2d3cc25e0b65992914ff0f3065b1f77
4
- data.tar.gz: 4ee6ed82137befc41db9a5d7b294ae336f1e206c
3
+ metadata.gz: bc27db558d652d8160c54733d9964d312d34a794
4
+ data.tar.gz: a82871d35fef68e7e828d1dda60755649dd9dc29
5
5
  SHA512:
6
- metadata.gz: d56f9004008efe7c0858bf201b08221ff7e976038da2473e31136332bec75e6a0d608d277a37cb501d10b1892a68e0a281545a321112d058c3fced28d4da4dfb
7
- data.tar.gz: 611e76bf0a2415112ec99ea63c13091bdab803d6c03affae99d43fd1827cc4d363f9f8fb97977def183bfabfa734aed97052870598663cc19dbf490d42cf8637
6
+ metadata.gz: ee8fd1b38e46b6798a82a49c4176709d4907f0f486e7f69c5d7430eda1f17632d60b7569a8f96e13ad441ccf13df61ba150ca6eb8c65fd2a9af2d6cd684f5e8c
7
+ data.tar.gz: 67b1a92b5e0b1362ca1bf0b571d03a5bb6b905cdfa8b12052e9a1ecc49fa928ba7a91469d541610080f58b6ecc5714dec3c01bb65a1ae3f2c78d4b125f716a4e
data/eyemanager.gemspec CHANGED
@@ -33,4 +33,5 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "rake", "~> 10.0"
34
34
  spec.add_development_dependency "rspec", "~> 3.0"
35
35
  spec.add_dependency "eye"
36
+ spec.add_dependency "gem-release"
36
37
  end
@@ -1,3 +1,3 @@
1
1
  module EyeManager
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/eyemanager.rb CHANGED
@@ -27,6 +27,10 @@ module EyeManager
27
27
  /^Eye quit|socket\(.+\) not found/.match(output)
28
28
  end
29
29
 
30
+ def list_apps
31
+ eye_status_apps_filtered_by.map{|a| a['name']}
32
+ end
33
+
30
34
  private
31
35
 
32
36
  def validate_start_params params={}
@@ -88,7 +92,7 @@ module EyeManager
88
92
  'unknown'
89
93
  end
90
94
 
91
- def eye_status_apps_filtered_by app
95
+ def eye_status_apps_filtered_by app=nil
92
96
  status_apps = JSON.parse(`eye i -j`)['subtree']
93
97
  app.to_s.length > 0 ?
94
98
  status_apps
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyemanager
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
  - joshweir
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: gem-release
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description:
70
84
  email:
71
85
  - joshua.weir@gmail.com