copernicium 0.2.3 → 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.
- checksums.yaml +4 -4
- data/lib/repos.rb +1 -1
- data/lib/ui.rb +1 -1
- data/lib/workspace.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb802a1d4255667038572c8f3e20bcaa5a90362d
|
4
|
+
data.tar.gz: fcbce9b4479ad60153677250ca100fb356553a48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 398f7c8124fda976ee94a71e07b24419615cbaa58674d7cff2a37f003abc5b90d42a7318a9de300ea63502556695047c768f95257b8eba5b633418098f34e1b3
|
7
|
+
data.tar.gz: 3aa3f41cacb7bcf471e29617219af3da479b8e311d35dfb1e702c9b571f216b895935748f8e9e55c670c7750b4b180d9d9155e15af35d82f3855be47348d0264
|
data/lib/repos.rb
CHANGED
@@ -160,7 +160,7 @@ module Copernicium
|
|
160
160
|
|
161
161
|
# Find snapshot and return snapshot from id
|
162
162
|
def Repos.get_snapshot(id)
|
163
|
-
@@history.each do |
|
163
|
+
@@history.each do |_branch, snapids|
|
164
164
|
snapids.each do |snapid|
|
165
165
|
return YAML.load_file(File.join(@@snap, id)) if snapid == id
|
166
166
|
end
|
data/lib/ui.rb
CHANGED
data/lib/workspace.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
module Copernicium
|
5
5
|
class FileObj
|
6
|
-
attr_reader :path, :
|
6
|
+
attr_reader :path, :history
|
7
7
|
def initialize(path, ids)
|
8
8
|
@base = File.dirname(path)
|
9
9
|
@history = ids
|
@@ -18,6 +18,11 @@ module Copernicium
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
+
def base # fix for deployment
|
22
|
+
@base = File.dirname(@path)
|
23
|
+
@base
|
24
|
+
end
|
25
|
+
|
21
26
|
# returns most recent file id in the snapshot it was saved in
|
22
27
|
def last() @history.last end
|
23
28
|
end # FileObj
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: copernicium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Copernicium
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diffy
|