app-store-emigrant 0.0.2 → 0.0.3

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/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  CHANGELOG
2
2
 
3
+ v0.0.3
4
+ - Support library organization structures prior to iTunes 9
5
+ - Improved exception messages
6
+
3
7
  v0.0.2
4
8
  - Added Ruby 1.8.7 support
5
9
  - Added Travis continuous integration support
data/README.md CHANGED
@@ -4,8 +4,8 @@ App Store Emigrant [![Build Status](https://secure.travis-ci.org/timkurvers/app-
4
4
 
5
5
  Copyright (c) 2012 Tim Kurvers <http://www.moonsphere.net>
6
6
 
7
- App Store Emigrant is a Ruby gem that will manually attempt to verify whether
8
- any of your local mobile applications are out of date, which iTunes will refuse
7
+ App Store Emigrant is a Ruby gem that will manually attempt to verify whether
8
+ any of your local mobile applications are out of date, which iTunes will refuse
9
9
  to do automatically once you have moved countries.
10
10
 
11
11
  **Suported Ruby versions: 1.8.7 or higher**
@@ -15,7 +15,7 @@ Licensed under the **MIT** license, see LICENSE for more information.
15
15
  Background
16
16
  ----------
17
17
 
18
- For more information on the issues faced when moving countries with regards to
18
+ For more information on the issues faced when moving countries with regards to
19
19
  Apple's ecosystem please see [these](https://discussions.apple.com/thread/2443094) [discussions](https://discussions.apple.com/message/16273593).
20
20
 
21
21
 
@@ -30,12 +30,12 @@ App Store Emigrant is available from RubyGems and can be installed as follows:
30
30
  Usage
31
31
  -----
32
32
 
33
- Once installed, a new not-so-fantastically named binary called 'ase' will be
33
+ Once installed, a new not-so-fantastically named binary called 'ase' will be
34
34
  added to your path. Invoke the binary to start the verification process:
35
35
 
36
36
  $ ase
37
37
 
38
- If App Store Emigrant complains that it cannot find your default library,
39
- help it along and specify where your iTunes library lurks:
38
+ If App Store Emigrant complains that it cannot find your default library,
39
+ help it along and specify where your mobile applications lurk:
40
40
 
41
41
  $ ase ~/m00sic
@@ -16,7 +16,7 @@ module AppStore::Emigrant
16
16
 
17
17
  # Ensure library is a valid directory
18
18
  unless @path.directory?
19
- raise DoesNotExist, "Given path is not a valid library directory: #{@path}"
19
+ raise DoesNotExist, "Given path is not a valid mobile applications library: #{@path}"
20
20
  end
21
21
 
22
22
  @apps = nil
@@ -52,7 +52,9 @@ module AppStore::Emigrant
52
52
  end
53
53
 
54
54
  # Returns the default library (if any) for this system
55
- # See Apple's support document (http://support.apple.com/kb/ht1391) as to where libraries can be found
55
+ # See Apple's support documents as to where libraries can be found
56
+ # - http://support.apple.com/kb/ht1391
57
+ # - http://support.apple.com/kb/ht3847
56
58
  def self.default
57
59
 
58
60
  # Use the homedir provided through the environment
@@ -62,19 +64,29 @@ module AppStore::Emigrant
62
64
  locations = [
63
65
 
64
66
  # Mac OSX and Windows Vista
65
- "#{homedir}/Music/iTunes/iTunes Media/Mobile Applications/",
67
+ "#{homedir}/Music/iTunes/iTunes Media/Mobile Applications",
66
68
 
67
69
  # Windows 7
68
- "#{homedir}/My Music/iTunes/iTunes Media/Mobile Applications/",
70
+ "#{homedir}/My Music/iTunes/iTunes Media/Mobile Applications",
69
71
 
70
72
  # Windows XP
71
- "#{homedir}/My Documents/My Music/iTunes/iTunes Media/Mobile Applications/"
73
+ "#{homedir}/My Documents/My Music/iTunes/iTunes Media/Mobile Applications",
74
+
75
+ # Mac OSX and Windows Vista (prior to iTunes 9)
76
+ "#{homedir}/Music/iTunes/Mobile Applications",
77
+
78
+ # Windows 7 (prior to iTunes 9)
79
+ "#{homedir}/My Music/iTunes/Mobile Applications",
80
+
81
+ # Windows XP (prior to iTunes 9)
82
+ "#{homedir}/My Documents/My Music/iTunes/Mobile Applications",
83
+
72
84
  ]
73
85
 
74
86
  # Raise exception if no default library could be found
75
87
  path = Dir.glob(locations).first
76
88
  unless path
77
- raise DoesNotExist, 'Could not locate default iTunes library'
89
+ raise DoesNotExist, 'Could not locate default iTunes mobile applications library'
78
90
  end
79
91
 
80
92
  # Return an instance of this default library
@@ -3,6 +3,6 @@ module AppStore; end
3
3
 
4
4
  module AppStore::Emigrant
5
5
 
6
- VERSION = '0.0.2'
6
+ VERSION = '0.0.3'
7
7
 
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app-store-emigrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-04 00:00:00.000000000 Z
12
+ date: 2012-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubyzip
16
- requirement: &70224611793140 !ruby/object:Gem::Requirement
16
+ requirement: &70215748634160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.5
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70224611793140
24
+ version_requirements: *70215748634160
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rainbow
27
- requirement: &70224611792640 !ruby/object:Gem::Requirement
27
+ requirement: &70215748649200 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.1.3
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70224611792640
35
+ version_requirements: *70215748649200
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: CFPropertyList
38
- requirement: &70224611792140 !ruby/object:Gem::Requirement
38
+ requirement: &70215748646920 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.0.17
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70224611792140
46
+ version_requirements: *70215748646920
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &70224611791740 !ruby/object:Gem::Requirement
49
+ requirement: &70215748645240 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70224611791740
57
+ version_requirements: *70215748645240
58
58
  description: App Store Emigrant will manually attempt to verify whether any of your
59
59
  local mobile applications are out of date, which iTunes - unfortunately - will refuse
60
60
  once you have moved countries