pansophy 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a413f73cf0d57dc704e9da49e2860f84fcdae63a
4
+ data.tar.gz: 2c1be096963fd12f1c9451159633cb98ef79fc3d
5
+ SHA512:
6
+ metadata.gz: e817397aaf1da9dc9ddff72c1717fc7f0d9c50c39a40e20de1cd6ec4cfc2284fd4221cfb223745b1fc2954b8fb611d21edb24db13fa3e5f29f08ab32a3eaf645
7
+ data.tar.gz: 994926a1c90db92e416900bbc0f22d3924db32a474a0c91d0d80eb7aafc3e410708b3adb34f91fa8a5a542d06b270105a94c08f328ddcebde92b0efaaacf5c9e
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /vendor/
11
+ /.idea/
12
+ .env
13
+ .DS_Store
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,11 @@
1
+ Metrics/LineLength:
2
+ Max: 100
3
+
4
+ Documentation:
5
+ Enabled: false
6
+
7
+ Style/BlockDelimiters:
8
+ EnforcedStyle: semantic
9
+
10
+ Style/TrivialAccessors:
11
+ AllowPredicates: true
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.2.2
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9
4
+ - 2.0
5
+ - 2.1
6
+ - 2.2
7
+ notifications:
8
+ email:
9
+ - support@travellink.com.au
10
+ flowdock: e69dcafad1fea15c6b8c76e9ced965af
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in pansophy.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Alessandro Berardi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # Pansophy
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/pansophy.svg)](http://badge.fury.io/rb/pansophy)
4
+ [![Build Status](https://travis-ci.org/sealink/pansophy.svg?branch=master)](https://travis-ci.org/sealink/pansophy)
5
+ [![Coverage Status](https://coveralls.io/repos/sealink/pansophy/badge.svg)](https://coveralls.io/r/sealink/pansophy)
6
+ [![Dependency Status](https://gemnasium.com/sealink/pansophy.svg)](https://gemnasium.com/sealink/pansophy)
7
+ [![Code Climate](https://codeclimate.com/github/sealink/pansophy/badges/gpa.svg)](https://codeclimate.com/github/sealink/pansophy)
8
+
9
+ Pansophy allows different applications to share knowledge via a centralised remote repository
10
+
11
+ The current version only works wit AWS S3 buckets and allows:
12
+ * pulling a remote directory to a local directory
13
+ * merging a remote directory with a local directory
14
+ * pushing a local directory to a remote directory
15
+ * reading the contents of a remote file
16
+
17
+ ## Installation
18
+
19
+ Add this line to your application's Gemfile:
20
+
21
+ ```ruby
22
+ gem 'pansophy'
23
+ ```
24
+
25
+ And then execute:
26
+
27
+ $ bundle
28
+
29
+ Or install it yourself as:
30
+
31
+ $ gem install pansophy
32
+
33
+ ## Usage
34
+
35
+ To pull a remote directory to a local directory
36
+ ```ruby
37
+ # Pass overwrite: true to entirely replace the local directory.
38
+ Pansophy.pull('bucket_name', 'remote_directory', 'local_directory', overwrite: true)
39
+ ```
40
+
41
+ To merge a remote directory with a local directory
42
+ ```ruby
43
+ # Pass overwrite: true to entirely replace the remote directory.
44
+ Pansophy.merge('bucket_name', 'remote_directory', 'local_directory', overwrite: true)
45
+ ```
46
+
47
+ To push a local directory to a remote directory
48
+ ```ruby
49
+ # Pass overwrite: true to overwrite local files with remote files.
50
+ # Local files without a corresponding remote file remain untouched.
51
+ Pansophy.push('bucket_name', 'remote_directory', 'local_directory', overwrite: true)
52
+ ```
53
+
54
+ To read the contents of a remote file
55
+ ```ruby
56
+ Pansophy.read('bucket_name', 'remote_file_path')
57
+ ```
58
+
59
+ ## Development
60
+
61
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
62
+
63
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
64
+
65
+ ## Contributing
66
+
67
+ 1. Fork it ( https://github.com/sealink/pansophy/fork )
68
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
69
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
70
+ 4. Push to the branch (`git push origin my-new-feature`)
71
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,11 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
7
+ desc 'Generate SimpleCov test coverage and open in your browser'
8
+ task :coverage do
9
+ ENV['COVERAGE'] = 'true'
10
+ Rake::Task['spec'].invoke
11
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'pansophy'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/lib/pansophy.rb ADDED
@@ -0,0 +1,33 @@
1
+ require 'pansophy/version'
2
+
3
+ module Pansophy
4
+ def self.connection
5
+ @connection ||= Connection.aws
6
+ end
7
+
8
+ def self.pull(bucket_name, remote_directory, local_directory, options = {})
9
+ Synchronizer.new(bucket_name, remote_directory, local_directory).pull(options)
10
+ end
11
+
12
+ def self.merge(bucket_name, remote_directory, local_directory, options = {})
13
+ Synchronizer.new(bucket_name, remote_directory, local_directory).merge(options)
14
+ end
15
+
16
+ def self.push(bucket_name, remote_directory, local_directory, options = {})
17
+ Synchronizer.new(bucket_name, remote_directory, local_directory).push(options)
18
+ end
19
+
20
+ def self.read(bucket_name, path)
21
+ Remote::ReadFile.new(bucket_name, path).call
22
+ end
23
+ end
24
+
25
+ require 'fog'
26
+ require 'singleton'
27
+ require 'adamantium'
28
+
29
+ require 'pansophy/helpers'
30
+ require 'pansophy/connection'
31
+ require 'pansophy/remote'
32
+ require 'pansophy/local'
33
+ require 'pansophy/synchronizer'
@@ -0,0 +1,12 @@
1
+ module Pansophy
2
+ module Connection
3
+ def self.aws
4
+ Fog::Storage.new(
5
+ provider: 'AWS',
6
+ aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'],
7
+ aws_secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
8
+ region: ENV['AWS_REGION']
9
+ )
10
+ end
11
+ end
12
+ end
@@ -0,0 +1 @@
1
+ require 'pansophy/helpers/path_builder'
@@ -0,0 +1,15 @@
1
+ module Pansophy
2
+ module Helpers
3
+ class PathBuilder
4
+ def initialize(file, directory)
5
+ @file = file
6
+ @directory = directory
7
+ end
8
+
9
+ def relative_path
10
+ return @file.pathname if @directory.pathname.to_s.empty?
11
+ @file.pathname.sub(::File.join(@directory.pathname, '/'), '')
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ require 'pansophy/local/directory'
2
+ require 'pansophy/local/create_file'
3
+ require 'pansophy/local/file'
@@ -0,0 +1,26 @@
1
+ module Pansophy
2
+ module Local
3
+ class CreateFile
4
+ include Adamantium::Flat
5
+
6
+ def initialize(path, body)
7
+ @pathname = Pathname.new(path)
8
+ @body = body
9
+ end
10
+
11
+ def call(options = {})
12
+ prevent_overwrite! unless options[:overwrite]
13
+ @pathname.dirname.mkpath
14
+ ::File.write(@pathname, @body)
15
+ end
16
+
17
+ private
18
+
19
+ def prevent_overwrite!
20
+ return unless @pathname.exist?
21
+ fail ArgumentError,
22
+ "#{@pathname} already exists, pass ':overwrite => true' to overwrite"
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,53 @@
1
+ module Pansophy
2
+ module Local
3
+ class Directory
4
+ include Adamantium
5
+
6
+ def initialize(path)
7
+ @path = path
8
+ verify_directory!
9
+ end
10
+
11
+ def pathname
12
+ Pathname.new(@path)
13
+ end
14
+ memoize :pathname
15
+
16
+ def files
17
+ entries.select(&:file?).map { |file| File.new(file) }
18
+ end
19
+
20
+ def create(options)
21
+ remove(options)
22
+ pathname.mkpath
23
+ end
24
+
25
+ def create_file(path, body, options = {})
26
+ CreateFile.new(pathname.join(path), body).call(options)
27
+ end
28
+
29
+ private
30
+
31
+ def entries
32
+ Dir[pathname.join('**/*')].map { |entry| Pathname.new(entry) }
33
+ end
34
+ memoize :entries
35
+
36
+ def verify_directory!
37
+ return if pathname.directory? || !pathname.exist?
38
+ fail ArgumentError, "#{pathname} is not a directory"
39
+ end
40
+
41
+ def remove(options)
42
+ return unless pathname.exist?
43
+ prevent_overwrite! unless options[:overwrite]
44
+ pathname.rmtree
45
+ end
46
+
47
+ def prevent_overwrite!
48
+ fail ArgumentError,
49
+ "#{pathname} already exists, pass ':overwrite => true' to overwrite"
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,19 @@
1
+ module Pansophy
2
+ module Local
3
+ class File
4
+ include Adamantium::Flat
5
+
6
+ attr_reader :pathname
7
+
8
+ def initialize(path)
9
+ @pathname = Pathname.new(path)
10
+ end
11
+
12
+ def body
13
+ return nil unless @pathname.exist?
14
+ ::File.read(@pathname)
15
+ end
16
+ memoize :body
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,5 @@
1
+ require 'pansophy/remote/directory'
2
+ require 'pansophy/remote/create_file'
3
+ require 'pansophy/remote/file'
4
+ require 'pansophy/remote/read_directory'
5
+ require 'pansophy/remote/read_file'
@@ -0,0 +1,35 @@
1
+ module Pansophy
2
+ module Remote
3
+ class CreateFile
4
+ include Adamantium::Flat
5
+
6
+ def initialize(bucket, path, body)
7
+ @bucket = bucket
8
+ @pathname = Pathname.new(path)
9
+ @body = body
10
+ end
11
+
12
+ def call(options = {})
13
+ prevent_overwrite! unless options[:overwrite]
14
+ directory.files.create(key: @pathname.to_s, body: @body.dup)
15
+ end
16
+
17
+ private
18
+
19
+ def exist?
20
+ directory.files.any? { |file| file.key == @pathname.to_s }
21
+ end
22
+
23
+ def prevent_overwrite!
24
+ return unless exist?
25
+ fail ArgumentError,
26
+ "#{@pathname} already exists, pass ':overwrite => true' to overwrite"
27
+ end
28
+
29
+ def directory
30
+ ReadDirectory.new(@bucket, @pathname).call
31
+ end
32
+ memoize :directory
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,71 @@
1
+ module Pansophy
2
+ module Remote
3
+ class Directory
4
+ include Adamantium::Flat
5
+
6
+ def initialize(bucket_name, path = nil)
7
+ @bucket_name = bucket_name
8
+ @path = path.to_s
9
+ end
10
+
11
+ def pathname
12
+ Pathname.new(@path)
13
+ end
14
+ memoize :pathname
15
+
16
+ def files
17
+ remote_files.map { |file| File.new(file) }
18
+ end
19
+
20
+ def create(options)
21
+ remove(options)
22
+ directory.files.create(key: pathname.cleanpath.to_s + '/')
23
+ end
24
+
25
+ def create_file(path, body, options = {})
26
+ CreateFile.new(@bucket_name, pathname.join(path), body).call(options)
27
+ end
28
+
29
+ private
30
+
31
+ def directory
32
+ ReadDirectory.new(@bucket_name, @path).call
33
+ end
34
+ memoize :directory
35
+
36
+ def remote_files
37
+ remote_entries.select { |file| !directory?(file) }
38
+ end
39
+
40
+ def remote_entries
41
+ directory.files
42
+ end
43
+
44
+ def directory?(file)
45
+ file.key.end_with?('/')
46
+ end
47
+
48
+ def remote_entry
49
+ remote_entries.find { |entry|
50
+ Pathname.new(entry.key).cleanpath == pathname.cleanpath
51
+ }
52
+ end
53
+ memoize :remote_entry
54
+
55
+ def exist?
56
+ !remote_entry.nil?
57
+ end
58
+
59
+ def remove(options)
60
+ return unless exist?
61
+ prevent_overwrite! unless options[:overwrite]
62
+ remote_entries.each(&:destroy)
63
+ end
64
+
65
+ def prevent_overwrite!
66
+ fail ArgumentError,
67
+ "#{pathname} already exists, pass ':overwrite => true' to overwrite"
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,20 @@
1
+ module Pansophy
2
+ module Remote
3
+ class File
4
+ include Adamantium::Flat
5
+
6
+ def initialize(file)
7
+ @file = file
8
+ end
9
+
10
+ def body
11
+ @file.body
12
+ end
13
+
14
+ def pathname
15
+ Pathname.new(@file.key)
16
+ end
17
+ memoize :pathname
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,18 @@
1
+ module Pansophy
2
+ module Remote
3
+ class ReadDirectory
4
+ include Adamantium::Flat
5
+
6
+ def initialize(bucket, path)
7
+ @bucket = bucket
8
+ @pathname = Pathname.new(path)
9
+ end
10
+
11
+ def call
12
+ Pansophy.connection.directories.get(@bucket, prefix: @pathname.to_s).tap do |directory|
13
+ fail ArgumentError, "Could not find bucket #{@bucket}" if directory.nil?
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,29 @@
1
+ module Pansophy
2
+ module Remote
3
+ class ReadFile
4
+ include Adamantium::Flat
5
+
6
+ def initialize(bucket, path)
7
+ @bucket = bucket
8
+ @pathname = Pathname.new(path)
9
+ end
10
+
11
+ def call
12
+ fail ArgumentError, "#{@pathname} does not exist" if file.nil?
13
+ file.body
14
+ end
15
+
16
+ private
17
+
18
+ def file
19
+ directory.files.find { |file| file.key == @pathname.to_s }
20
+ end
21
+ memoize :file
22
+
23
+ def directory
24
+ ReadDirectory.new(@bucket, @pathname).call
25
+ end
26
+ memoize :directory
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,30 @@
1
+ module Pansophy
2
+ class Synchronizer
3
+ def initialize(bucket_name, remote_directory, local_directory)
4
+ @remote_dir = Remote::Directory.new(bucket_name, remote_directory)
5
+ @local_dir = Local::Directory.new(local_directory)
6
+ end
7
+
8
+ def pull(options = {})
9
+ synchronize(@remote_dir, @local_dir, options)
10
+ end
11
+
12
+ def push(options = {})
13
+ synchronize(@local_dir, @remote_dir, options)
14
+ end
15
+
16
+ def merge(options = {})
17
+ synchronize(@remote_dir, @local_dir, options.merge(merge: true))
18
+ end
19
+
20
+ private
21
+
22
+ def synchronize(source_dir, destination_dir, options)
23
+ destination_dir.create(options) unless options[:merge]
24
+ source_dir.files.each do |file|
25
+ file_path = Helpers::PathBuilder.new(file, source_dir).relative_path
26
+ destination_dir.create_file(file_path, file.body, options)
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,3 @@
1
+ module Pansophy
2
+ VERSION = '0.1.0'
3
+ end
data/pansophy.gemspec ADDED
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pansophy/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'pansophy'
8
+ spec.version = Pansophy::VERSION
9
+ spec.authors = ['Alessandro Berardi']
10
+ spec.email = ['berardialessandro@gmail.com']
11
+
12
+ spec.summary = 'Information sharing via centralised repository'
13
+ spec.description = 'Pansophy allows different applications to share knowledge' \
14
+ 'via a centralised remote repository'
15
+ spec.homepage = 'https://github.com/sealink/pansophy'
16
+ spec.license = 'MIT'
17
+
18
+ spec.files = `git ls-files -z`.split("\x0")
19
+ .reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ spec.bindir = 'exe'
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ['lib']
23
+
24
+ spec.add_dependency 'fog'
25
+ spec.add_dependency 'adamantium'
26
+
27
+ spec.add_development_dependency 'bundler'
28
+ spec.add_development_dependency 'rake'
29
+ spec.add_development_dependency 'dotenv'
30
+ spec.add_development_dependency 'rspec'
31
+ spec.add_development_dependency 'simplecov'
32
+ spec.add_development_dependency 'simplecov-rcov'
33
+ spec.add_development_dependency 'coveralls'
34
+ spec.add_development_dependency 'rubocop'
35
+ end
metadata ADDED
@@ -0,0 +1,214 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pansophy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Alessandro Berardi
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-04-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: fog
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: adamantium
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: dotenv
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov-rcov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: coveralls
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Pansophy allows different applications to share knowledgevia a centralised
154
+ remote repository
155
+ email:
156
+ - berardialessandro@gmail.com
157
+ executables: []
158
+ extensions: []
159
+ extra_rdoc_files: []
160
+ files:
161
+ - ".gitignore"
162
+ - ".rspec"
163
+ - ".rubocop.yml"
164
+ - ".ruby-version"
165
+ - ".travis.yml"
166
+ - CODE_OF_CONDUCT.md
167
+ - Gemfile
168
+ - LICENSE.txt
169
+ - README.md
170
+ - Rakefile
171
+ - bin/console
172
+ - bin/setup
173
+ - lib/pansophy.rb
174
+ - lib/pansophy/connection.rb
175
+ - lib/pansophy/helpers.rb
176
+ - lib/pansophy/helpers/path_builder.rb
177
+ - lib/pansophy/local.rb
178
+ - lib/pansophy/local/create_file.rb
179
+ - lib/pansophy/local/directory.rb
180
+ - lib/pansophy/local/file.rb
181
+ - lib/pansophy/remote.rb
182
+ - lib/pansophy/remote/create_file.rb
183
+ - lib/pansophy/remote/directory.rb
184
+ - lib/pansophy/remote/file.rb
185
+ - lib/pansophy/remote/read_directory.rb
186
+ - lib/pansophy/remote/read_file.rb
187
+ - lib/pansophy/synchronizer.rb
188
+ - lib/pansophy/version.rb
189
+ - pansophy.gemspec
190
+ homepage: https://github.com/sealink/pansophy
191
+ licenses:
192
+ - MIT
193
+ metadata: {}
194
+ post_install_message:
195
+ rdoc_options: []
196
+ require_paths:
197
+ - lib
198
+ required_ruby_version: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: '0'
203
+ required_rubygems_version: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ requirements: []
209
+ rubyforge_project:
210
+ rubygems_version: 2.4.6
211
+ signing_key:
212
+ specification_version: 4
213
+ summary: Information sharing via centralised repository
214
+ test_files: []