moodswings 0.0.0 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -13,6 +13,24 @@ class Moodswings
13
13
  "-e \'end tell \'"
14
14
  )
15
15
  end
16
+
17
+ def open_app(app_name)
18
+ system(
19
+ "osascript " \
20
+ "-e \'tell application \"#{app_name}\"\' " \
21
+ "-e \'activate\' " \
22
+ "-e \'end tell\'"
23
+ )
24
+ end
25
+
26
+ def close_app(app_name)
27
+ system(
28
+ "osascript " \
29
+ "-e \'tell application \"#{app_name}\"\' " \
30
+ "-e \'quit\' " \
31
+ "-e \'end tell\'"
32
+ )
33
+ end
16
34
  end
17
35
  end
18
36
  end
data/moodswings.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "moodswings"
8
- s.version = "0.0.0"
8
+ s.version = "0.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Elpizo Choi"]
12
- s.date = "2013-04-19"
12
+ s.date = "2013-04-25"
13
13
  s.description = "Changing your dev environment, one keystroke at a time"
14
14
  s.email = "fu7iin@gmail.com"
15
15
  s.executables = ["moodswing"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moodswings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-19 00:00:00.000000000 Z
12
+ date: 2013-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: -773243428527740536
118
+ hash: -2134567400002195747
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements: