Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Prepare gemspec to push to rubygems, more docs (e.g. changelogs) #10

Merged
merged 4 commits into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
44 .gitignore
@@ -1,7 +1,41 @@
-tmp/*
-*.DS_Store
-.rvmrc
-.idea
-vender/bundle
+*.gem
+*.rbc
.bundle
+.config
+Gemfile.lock
+InstalledFiles
+coverage
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
+
+# Local Ruby Dev Configs
+.rvmrc
+
+# YARD artifacts
+.yardoc
+_yardoc
+doc/
+
+# JetBrains IDE files
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# OS X
+.DS_Store
+.AppleDouble
+.LSOverride
+Icon
+
+# Thumbnails
+._*
+# Files that might appear on external disk
+.Spotlight-V100
+.Trashes
View
10 .travis.yml
@@ -1,6 +1,12 @@
language: ruby
rvm:
- 1.9.3
- - jruby-19mode # JRuby in 1.9 mode
- - rbx-19mode
+ - 2.0.0
+ - ruby-head
+ - jruby-19mode # JRuby in 1.9 mode
+ - rbx-19mode # Rubinius in 1.9 mode
+matrix:
+ allow_failures:
+ - rvm: ruby-head
+
script: bundle exec rspec spec
View
7 CHANGELOG.md
@@ -0,0 +1,7 @@
+## Current (Unreleased)
+
+
+## 0.0.1 / 3-21-2013
+
+* Created initial project skeleton: application config, multi-stage app config
+* Created initial plugin skeleton for adding recipes
View
45 Gemfile.lock
@@ -1,45 +0,0 @@
-PATH
- remote: .
- specs:
- borg (0.0.1)
- capistrano
- capistrano_colors
- colored
- term-ansicolor
-
-GEM
- remote: https://rubygems.org/
- specs:
- capistrano (2.14.2)
- highline
- net-scp (>= 1.0.0)
- net-sftp (>= 2.0.0)
- net-ssh (>= 2.0.14)
- net-ssh-gateway (>= 1.1.0)
- capistrano_colors (0.5.5)
- colored (1.2)
- diff-lcs (1.1.3)
- highline (1.6.15)
- net-scp (1.1.0)
- net-ssh (>= 2.6.5)
- net-sftp (2.1.1)
- net-ssh (>= 2.6.5)
- net-ssh (2.6.5)
- net-ssh-gateway (1.2.0)
- net-ssh (>= 2.6.5)
- rspec (2.12.0)
- rspec-core (~> 2.12.0)
- rspec-expectations (~> 2.12.0)
- rspec-mocks (~> 2.12.0)
- rspec-core (2.12.2)
- rspec-expectations (2.12.1)
- diff-lcs (~> 1.1.3)
- rspec-mocks (2.12.1)
- term-ansicolor (1.0.7)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- borg!
- rspec
View
14 README.md
@@ -6,8 +6,8 @@ deployment.
[![Dependency Status](https://gemnasium.com/B0RG/borg.png)](https://gemnasium.com/B0RG/borg)
[![Code Climate](https://codeclimate.com/github/B0RG/borg.png)](https://codeclimate.com/github/B0RG/borg)
-# Setup
-## Deployer Package
+## Setup
+### Deployer Package
`borgify` Sets up the following structure
@@ -42,7 +42,7 @@ load 'borg'
```
-## Services Package
+### Services Package
`borgify plugin` Sets up the following structure
```
@@ -83,3 +83,11 @@ then all the blocks will be run for that application/stage.
The CLI enforces that all configs be specified at the start. Consider the command `borg app1:stage1 app2 deploy`
will result in config app1:stage1, all configs for app2 (1 config for each stage, if there is no stage it assumes the app is the only stage)
to be load and the deploy task be run against all of them.
+
+## Contributing
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Add some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
View
30 borg.gemspec
@@ -1,23 +1,27 @@
-$:.push File.expand_path("../lib", __FILE__)
+# coding: utf-8
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require 'borg/version'
-# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
- s.name = "borg"
- s.version = "0.0.1"
+ s.name = "borg-rb"
+ s.version = Borg::VERSION
s.authors = ["Identified"]
s.email = ["phil@identified.com", "tejas@identified.com"]
- s.homepage = "http://www.identified.com"
- s.summary = "Add this later."
- s.description = "Add this later."
+ s.description = %q{Ruby-based software provisioning and deployment framework}
+ s.summary = %q{Ruby-based software provisioning and deployment framework}
+ s.homepage = "https://github.com/B0RG/borg"
+ s.license = "MIT"
- s.files = Dir["{capistrano,service,lib}/**/*"] + ["Capfile", "README.md"]
- s.test_files = Dir["test/**/*"]
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.files = `git ls-files`.split($/)
+ s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
+ s.require_paths = ["lib"]
- s.add_dependency "capistrano"
+ s.add_dependency "capistrano", "~> 2.14.2"
s.add_dependency "capistrano_colors"
s.add_dependency "colored"
- s.add_dependency 'term-ansicolor'
+ s.add_dependency "term-ansicolor"
- s.add_development_dependency 'rspec'
+ s.add_development_dependency "rspec"
end
View
2  lib/borg.rb
@@ -5,4 +5,4 @@ def _cset(name, *args, &block)
end
end
-assimilate "borg"
+assimilate "borg-rb"
View
3  lib/borg/version.rb
@@ -0,0 +1,3 @@
+module Borg
+ VERSION = "0.0.1"
+end
View
2  skeleton/Gemfile
@@ -1,3 +1,3 @@
source "https://rubygems.org"
-gem 'borg.rb'
+gem 'borg-rb'
View
2  skeleton/mygem.gemspec.skeleton
@@ -16,5 +16,5 @@ Gem::Specification.new do |s|
s.description = raise "fill gem description here"
- s.add_dependency "borg"
+ s.add_dependency "borg-rb"
end
View
4 spec/lib/borg/configuration/assimilator_spec.rb
@@ -12,12 +12,12 @@
Dir["cap/initializers/**/*.rb"].each do |file|
subject.should_receive(:load).with(File.expand_path(file))
end
- subject.assimilate ('borg')
+ subject.assimilate ('borg-rb')
end
it "should add the cap directory to teh load path" do
Dir.stub("[]").and_return([])
- lambda { subject.assimilate ('borg') }.should change(subject.load_paths, :count).by 1
+ lambda { subject.assimilate ('borg-rb') }.should change(subject.load_paths, :count).by 1
end
end
end
Something went wrong with that request. Please try again.