applog 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTk1OGNhNDk5ZDc2ZTczYTkzZDkxM2EzMmM0ODM3Y2M4YmVjODc4YQ==
4
+ ZWY0Y2VlZjQyNmUyYTFkMGIwYzU3OGQ5OTExYWRkZjk4NDc2ODI3Nw==
5
5
  data.tar.gz: !binary |-
6
- MjYwMzkyZWQ3MDBjNmEzOGQ0MjYwMDRkZTViNzZkOWMyNTJiMzk2Yw==
6
+ ODIyMTkwNGViMTkxOTk0MDFkZTYxYzhhODZhMmQzN2JjZDNiNmRiNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWJkNzhiNDVjODMxODA0N2RmYjc3M2RlYTM3MzUwZDA1NjQxOTkzYjk2ZTVh
10
- NWVhOGU4ZWJlMTg1Zjk0ZmI0MTdiM2NiYWNmYTg2MmM5M2U1ZTM5ZGYzM2Yx
11
- NmZhOTU0MmUwZDg0YmUxYzBjMDg4ZWRiZmMzZDNmNWIwZGUzZDU=
9
+ ZTQ4Y2E1MmE4MzBhY2I2OWQxYzEwOWQ2MzkzY2U5OTVhZTRjYWRkMGVjOGQ1
10
+ MjI3NDcyYWYyZjU3ZGMxZmMyMjdiM2U1NjUwYTdjMDk4YzU2M2U0ZWYxMjFi
11
+ ZDg1ODA2MWM1ZGQzZjljNzM2OTMyZWU4NGU4NTdhMzliYjdlYWU=
12
12
  data.tar.gz: !binary |-
13
- MDc5N2EyMDgxMmVhNjA3MGJkNzg5MjlmODhhNDFiZDkxZTZkNTQyODE3NDdm
14
- YjRkOGYyOTZiZDU5MjEzMjVjZGJmMDM4ZGRmMTkxOWJhOWIyMDYyMDMxMTU2
15
- ZmQxN2NjZjdjNjEyY2JiNjFjOGQxMjA0MGM4NDc2ZGVlNDJiNzE=
13
+ OGNmNDZkNTM5YWM2YzJmZDViNjE0NjQzNGRlNjVmZjdhNjU4ZTM4MDc1ZDUw
14
+ YmQ5NTI2MGUyNDUzNGUyNGY1Y2Y1MWFkY2ZiNjRjYTAwOTZmOGQ5NTc3ZTU2
15
+ MjIwMWVlMTc3ZjNjOGE2YWNmODMzZWU3MGMyOGJmYjdhNzg4OTU=
@@ -6,6 +6,7 @@ require 'applog/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "applog"
8
8
  spec.version = Applog::VERSION
9
+ spec.executables << 'applog'
9
10
  spec.authors = ["Harrison Chen", "Michael Yoon"]
10
11
  spec.email = ["harrisonxchen@gmail.com", "mikejuyoon@gmail.com"]
11
12
  spec.summary = %q{"Command line tool to create a log applications on your system."}
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'applog'
4
+
5
+ Applog::ApplicationManager.logApplications()
@@ -1,5 +1,25 @@
1
1
  require "applog/version"
2
2
 
3
3
  module Applog
4
- # Your code goes here...
4
+
5
+ class ApplicationManager
6
+
7
+ def self.logApplications
8
+ File.open('system-backup-log.txt', 'w') do |file|
9
+ applications = Dir.entries("/Applications/")
10
+
11
+ puts "Detected #{applications.count} Applications\n\n"
12
+ file.puts "#{applications.count} Applications\n\n"
13
+
14
+ for application in applications
15
+ if(application[0] != '.')
16
+ puts "#{application[0..application.length - 5]}"
17
+ file.puts "#{application[0..application.length - 5]}"
18
+ end
19
+ end
20
+ end
21
+ end
22
+
23
+ end
24
+
5
25
  end
@@ -1,3 +1,3 @@
1
1
  module Applog
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,55 @@
1
+ 57 Applications
2
+
3
+ Android Studio
4
+ App Store
5
+ Arduino
6
+ Automator
7
+ BetterSnapTool
8
+ Caffeine
9
+ Calculator
10
+ Calendar
11
+ Chess
12
+ Contacts
13
+ Dashboard
14
+ Dictionary
15
+ DVD Player
16
+ FaceTime
17
+ Flux
18
+ Font Book
19
+ Game Center
20
+ GarageBand
21
+ Google Chrome
22
+ G
23
+ GoPro Studio
24
+ iBooks
25
+ Image Capture
26
+ iMovie
27
+ Inkscape
28
+ iPhoto
29
+ iTunes
30
+ Keynote
31
+ Launchpad
32
+ Mail
33
+ Maps
34
+ Messages
35
+ Microsoft Office
36
+ Mission Control
37
+ Notes
38
+ Numbers
39
+ Pages
40
+ Photo Booth
41
+ Preview
42
+ QuickTime Player
43
+ Reminders
44
+ Safari
45
+ Slack
46
+ Spotify
47
+ Stickies
48
+ Sublime Text 2
49
+ System Preferences
50
+ TextEdit
51
+ Time Machine
52
+ Utili
53
+ WD Drive Utilities
54
+ WD Security
55
+ Xcode
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: applog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harrison Chen
@@ -43,7 +43,8 @@ description: ! '""'
43
43
  email:
44
44
  - harrisonxchen@gmail.com
45
45
  - mikejuyoon@gmail.com
46
- executables: []
46
+ executables:
47
+ - applog
47
48
  extensions: []
48
49
  extra_rdoc_files: []
49
50
  files:
@@ -53,8 +54,10 @@ files:
53
54
  - README.md
54
55
  - Rakefile
55
56
  - applog.gemspec
57
+ - bin/applog
56
58
  - lib/applog.rb
57
59
  - lib/applog/version.rb
60
+ - system-backup-log.txt
58
61
  homepage: http://rubygems.org/gems/applog
59
62
  licenses:
60
63
  - MIT