learn-generate 1.0.12 → 1.0.13

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: 67cd11343f38a13fa9d283cfec02d0fb379b9eca
4
- data.tar.gz: 8f26d60fc1c3d90693eca4c67cbe948974b07eee
3
+ metadata.gz: 59702b4b218cd2baa8de818eda14862f4f11b563
4
+ data.tar.gz: e1b2a467637a515285475a1a51dec37e5445aea2
5
5
  SHA512:
6
- metadata.gz: cd37210b05a0e829b7383802322b40863cdfd552ed24be5d495a2d2643ebf3a2c85c002ccb1351290af7e1a247abd6d0d27444b5a6a6c9f52e589e00a1644a0b
7
- data.tar.gz: 10f0d52068de5a1b443cfc43233df17802d0e7ccfe0948513101dc111f1d972cde88b702630760f301b05c35a766690b69e019d1f15f595405f95b1ff5e9cbc2
6
+ metadata.gz: ddeec14af60777b4f295d4b710ff00a4a3d6638c27041d3fa758bb2e98cf292cd8d763f2a0f07d1dcca1b9bdba1b18659d1558e04b1ae2ce379ca589470f17ac
7
+ data.tar.gz: dd0c6f937318e6fe53d9dd1742e82506107327a9b9f987223109ad6d586030ea8f87edfeadae449f054f20856f8a6baa8308ebd0683c1575753f4dc14e14b160
@@ -2,13 +2,13 @@ module LearnGenerate
2
2
  class IosLab
3
3
  class LiftoffBackup
4
4
  def backup
5
- `mv .liftoffrc{,.bak}`
6
- `mv .liftoff{,.bak}`
5
+ `mv ~/.liftoffrc{,.bak}`
6
+ `mv ~/.liftoff{,.bak}`
7
7
  end
8
8
 
9
9
  def restore
10
- `mv .liftoffrc{.bak,}`
11
- `mv .liftoff{.bak,}`
10
+ `mv ~/.liftoffrc{.bak,}`
11
+ `mv ~/.liftoff{.bak,}`
12
12
  end
13
13
  end
14
14
  end
@@ -13,8 +13,8 @@ module LearnGenerate
13
13
  def initialize(lab_name)
14
14
  @lab_name = lab_name
15
15
  @liftoff_installed = !(`brew ls --versions liftoff 2>/dev/null`.strip.empty?)
16
- @liftoffrc_exists = File.exists?('.liftoffrc')
17
- @liftoff_dir_exists = File.exists?('.liftoff')
16
+ @liftoffrc_exists = File.exists?(File.expand_path('~/.liftoffrc'))
17
+ @liftoff_dir_exists = File.exists?(File.expand_path('~/.liftoff'))
18
18
  @liftoff_backup = LearnGenerate::IosLab::LiftoffBackup.new
19
19
  templates_path = File.expand_path('~/.learn-generate/templates')
20
20
  templates_git_path = File.expand_path('~/.learn-generate/templates/.git')
@@ -43,7 +43,7 @@ module LearnGenerate
43
43
  end
44
44
 
45
45
  def restore_if_necessary
46
- `rm -rf .liftoff .liftoffrc`
46
+ `rm -rf ~/.liftoff ~/.liftoffrc`
47
47
 
48
48
  if liftoff_settings_files_exist?
49
49
  liftoff_backup.restore
@@ -56,9 +56,9 @@ module LearnGenerate
56
56
 
57
57
  def copy_settings_files
58
58
  if has_templates_dir
59
- `cp -a #{full_templates_path}/ios/. #{FileUtils.pwd}`
59
+ `cp -a #{full_templates_path}/ios/. ~/`
60
60
  else
61
- `cp -a #{LearnGenerate::FileFinder.location_to_dir('../templates/ios')}/. #{FileUtils.pwd}`
61
+ `cp -a #{LearnGenerate::FileFinder.location_to_dir('../templates/ios')}/. ~/`
62
62
  end
63
63
  end
64
64
  end
@@ -1,3 +1,3 @@
1
1
  module LearnGenerate
2
- VERSION = '1.0.12'
2
+ VERSION = '1.0.13'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn-generate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flatiron School
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-01 00:00:00.000000000 Z
11
+ date: 2015-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler