copernicium 0.2.3 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repos.rb +1 -1
  3. data/lib/ui.rb +1 -1
  4. data/lib/workspace.rb +6 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb6640d45f2e8340d6773a90b84562c18f49e081
4
- data.tar.gz: b7167785efeb0792ef678319288627cc6c1c1c18
3
+ metadata.gz: cb802a1d4255667038572c8f3e20bcaa5a90362d
4
+ data.tar.gz: fcbce9b4479ad60153677250ca100fb356553a48
5
5
  SHA512:
6
- metadata.gz: 087e52e28beb477b9b588812f1874f2cd98ba982c12585e794ace85a5c7afd114b88b1ab279a365a9f5fb8627c4b86f4c308a3104742c63db1baea94a86d1833
7
- data.tar.gz: b6dc121c1b32d9905f41254af357c9ff90387497d9f5fe921245cb8870b0acfc28724bfed6c962408ac38da65def9e29effca7f9f76e0ea506daccbc045585b9
6
+ metadata.gz: 398f7c8124fda976ee94a71e07b24419615cbaa58674d7cff2a37f003abc5b90d42a7318a9de300ea63502556695047c768f95257b8eba5b633418098f34e1b3
7
+ data.tar.gz: 3aa3f41cacb7bcf471e29617219af3da479b8e311d35dfb1e702c9b571f216b895935748f8e9e55c670c7750b4b180d9d9155e15af35d82f3855be47348d0264
@@ -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 |branch, snapids|
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
@@ -1,7 +1,7 @@
1
1
  # user interface module - parse and execute commands
2
2
  # integrates all modules, central module
3
3
 
4
- VERSION = "0.2.3"
4
+ VERSION = "0.3"
5
5
 
6
6
  include Copernicium::PushPull
7
7
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Copernicium
5
5
  class FileObj
6
- attr_reader :path, :base, :history
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.2.3
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-09 00:00:00.000000000 Z
11
+ date: 2015-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diffy