figaro-backup 0.0.2 → 0.0.3

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: dc253d6deeaa40b51658fbf153d77b63fd2bc2e2
4
- data.tar.gz: 490cb38a9f93b16864bfc6cd62ed420b62ccc8c2
3
+ metadata.gz: c31a3bcd1ec11917d8018d0170a4b33bcf952db8
4
+ data.tar.gz: 664774d50ede397d8aedd44d71b7b5acc46d2c34
5
5
  SHA512:
6
- metadata.gz: 3ba844fbe433f2a1f31b116b0019a5a744d332c57896563fd96ae8d5358c272ddd7a24d3c4783eb0b643cef304b38e049143a0f729af530175a58986559a9bd8
7
- data.tar.gz: 935936bb1f0bdf42aebb77ee2ddfeee48e573979ba1064d9fdedb531ecfcb9d7f6f1684e154e767959202b3a1f3247e7a1459965e33c11c867edc2cd6cca6590
6
+ metadata.gz: 92989f4ef7059817fa5e3fefe13c79123a5d6d8eaddbe5b20431fe1ca494b4f4be52844c0ed8115e5356748910445eccdacf40980bf2177c30b1ef68bc1deb03
7
+ data.tar.gz: 610e3b73cca07eb848b120378ca1f7390026a4e32e82baf3c6c97d2a2594bc9fa58c258703b0a37992d22a816a837869fe441b2c76b7a7eceecb5ecc64f53c47
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in figaro-dropbox.gemspec
3
+ # Specify your gem's dependencies in figaro-backup.gemspec
4
4
  gemspec
@@ -1,13 +1,14 @@
1
1
  module Figaro
2
- module Dropbox
2
+ module Backup
3
3
  module Rails
4
4
  class Engine < ::Rails::Engine
5
5
 
6
6
  config.before_configuration do
7
- check_things_out!
7
+ check_things_out! if ::Rails.env.development?
8
8
  end
9
9
 
10
10
  def check_things_out!
11
+ raise build_message "Oops... #{Figaro.application.path.inspect} is missing." unless File.exists?(Figaro.application.path)
11
12
  raise build_message "You should really use git!" unless git_installed?
12
13
  raise build_message "Make sure to add #{Figaro.application.path.inspect} to .gitignore!" unless git_ignored?
13
14
  return puts(build_message "YAY! Your project lives in Dropbox!") if in_dropbox?(Figaro.application.path)
@@ -53,7 +54,7 @@ module Figaro
53
54
  end
54
55
 
55
56
  def build_message(message)
56
- "[Figaro Dropbox] #{message}"
57
+ "[Figaro Backup] #{message}"
57
58
  end
58
59
  end
59
60
  end
@@ -1,5 +1,5 @@
1
1
  module Figaro
2
2
  module Backup
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: figaro-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Van Horn