timecapsule 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/timecapsule/railtie.rb +3 -3
- data/timecapsule.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/lib/timecapsule/railtie.rb
CHANGED
@@ -9,7 +9,7 @@ class Timecapsule
|
|
9
9
|
Dir.mkdir(path) unless File.exists?(path)
|
10
10
|
end
|
11
11
|
|
12
|
-
default_config = {:import_directory =>
|
12
|
+
default_config = {:import_directory => 'db/seed_data/' , :export_directory => 'db/seed_data/'}
|
13
13
|
config_pathname = Rails.root.join("config/timecapsule.yml")
|
14
14
|
config_dir_pathname = Rails.root.join("config")
|
15
15
|
unless File.exists?(config_pathname)
|
@@ -19,8 +19,8 @@ class Timecapsule
|
|
19
19
|
config_file.close
|
20
20
|
end
|
21
21
|
config = YAML.load_file(config_pathname)
|
22
|
-
Timecapsule::IMPORT_DIR = config[:import_directory]
|
23
|
-
Timecapsule::EXPORT_DIR = config[:export_directory]
|
22
|
+
Timecapsule::IMPORT_DIR = Rails.root.join(config[:import_directory]).to_s
|
23
|
+
Timecapsule::EXPORT_DIR = Rails.root.join(config[:export_directory]).to_s
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
data/timecapsule.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timecapsule
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Ren\xC3\xA9e De Voursney"
|