vergissberlin 0.0.12 → 0.0.13
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/README.md +3 -0
- data/lib/vergissberlin/version.rb +1 -1
- data/test/cases/my_test.rb +21 -0
- metadata +5 -19
- data/bin/programmerq +0 -92
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3fd2cff2e500f85c1134fce4464cb06a16deca5
|
4
|
+
data.tar.gz: 2747935eaf076c6d5be34ae4784994e1ea2710ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72a367fb538efc95db87d8774d6f02f871d9abdea60554d56438d2a135897f037a54365daf935663c328c039c317a4bdc68e0153449a6c6f1156face3c12c345
|
7
|
+
data.tar.gz: a9402beb28df49cfdf34b713ecd1e6f692dac6e7845e19d1c6809e273b9c2731b9342779633f13b728469aab8aec4f1a33d78d01eacd131b982f4d237ea638d1
|
data/README.md
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
|
3
|
+
class MyTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
# Called before every test method runs. Can be used
|
6
|
+
# to set up fixture information.
|
7
|
+
def setup
|
8
|
+
# Do nothing
|
9
|
+
end
|
10
|
+
|
11
|
+
# Called after every test method runs. Can be used to tear
|
12
|
+
# down fixture information.
|
13
|
+
|
14
|
+
def teardown
|
15
|
+
# Do nothing
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_ok
|
19
|
+
assert true
|
20
|
+
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vergissberlin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Lademann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -108,39 +108,24 @@ dependencies:
|
|
108
108
|
- - '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: capistrano_colors
|
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
111
|
description: This is a useless tool witho no functionality!
|
126
112
|
email:
|
127
113
|
- andre@programmerq.eu
|
128
114
|
executables:
|
129
115
|
- vergissberlin
|
130
|
-
- programmerq
|
131
116
|
extensions: []
|
132
117
|
extra_rdoc_files: []
|
133
118
|
files:
|
134
|
-
- bin/programmerq
|
135
119
|
- bin/vergissberlin
|
136
120
|
- lib/vergissberlin/version.rb
|
137
121
|
- lib/vergissberlin.rb
|
122
|
+
- test/cases/my_test.rb
|
138
123
|
- test/cases/version_case.rb
|
139
124
|
- test/rest_spec.rb
|
140
125
|
- test/suites/suite_test.rb
|
141
126
|
- test/utils.rb
|
142
127
|
- README.md
|
143
|
-
homepage:
|
128
|
+
homepage: https://github.com/vergissberlin/vergissberlin
|
144
129
|
licenses:
|
145
130
|
- MIT
|
146
131
|
metadata: {}
|
@@ -165,6 +150,7 @@ signing_key:
|
|
165
150
|
specification_version: 4
|
166
151
|
summary: This is a useless tool witho no functionality!
|
167
152
|
test_files:
|
153
|
+
- test/cases/my_test.rb
|
168
154
|
- test/cases/version_case.rb
|
169
155
|
- test/rest_spec.rb
|
170
156
|
- test/suites/suite_test.rb
|
data/bin/programmerq
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'optparse'
|
4
|
-
require 'fileutils'
|
5
|
-
|
6
|
-
OptionParser.new do |opts|
|
7
|
-
opts.banner = "Usage: #{File.basename($0)} [path]"
|
8
|
-
|
9
|
-
opts.on("-h", "--help", "Displays this help info") do
|
10
|
-
puts opts
|
11
|
-
exit 0
|
12
|
-
end
|
13
|
-
|
14
|
-
begin
|
15
|
-
opts.parse!(ARGV)
|
16
|
-
rescue OptionParser::ParseError => e
|
17
|
-
warn e.message
|
18
|
-
puts opts
|
19
|
-
exit 1
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
if ARGV.empty?
|
24
|
-
abort "Please specify the directory to programmerq, e.g. `#{File.basename($0)} .'"
|
25
|
-
elsif !File.exists?(ARGV.first)
|
26
|
-
abort "`#{ARGV.first}' does not exist."
|
27
|
-
elsif !File.directory?(ARGV.first)
|
28
|
-
abort "`#{ARGV.first}' is not a directory."
|
29
|
-
elsif ARGV.length > 1
|
30
|
-
abort "Too many arguments; please specify only the directory to programmerq."
|
31
|
-
end
|
32
|
-
|
33
|
-
def unindent(string)
|
34
|
-
indentation = string[/\A\s*/]
|
35
|
-
string.strip.gsub(/^#{indentation}/, "")
|
36
|
-
end
|
37
|
-
|
38
|
-
files = {
|
39
|
-
"Capfile" => unindent(<<-FILE),
|
40
|
-
|
41
|
-
load 'deploy'
|
42
|
-
|
43
|
-
# Uncomment if you are using Rails' asset pipeline
|
44
|
-
# load 'deploy/assets'
|
45
|
-
|
46
|
-
load 'config/deploy' # remove this line to skip loading any of the default tasks
|
47
|
-
FILE
|
48
|
-
|
49
|
-
"config/deploy.rb" => 'set :application, "set your application name here"
|
50
|
-
set :repository, "set your repository location here"
|
51
|
-
|
52
|
-
# set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
|
53
|
-
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
|
54
|
-
|
55
|
-
role :web, "your web-server here" # Your HTTP server, Apache/etc
|
56
|
-
role :app, "your app-server here" # This may be the same as your `Web` server
|
57
|
-
role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run
|
58
|
-
role :db, "your slave db-server here"
|
59
|
-
|
60
|
-
# if you want to clean up old releases on each deploy uncomment this:
|
61
|
-
# after "deploy:restart", "deploy:cleanup"
|
62
|
-
|
63
|
-
# if you\'re still using the script/reaper helper you will need
|
64
|
-
# these http://github.com/rails/irs_process_scripts
|
65
|
-
|
66
|
-
# If you are using Passenger mod_rails uncomment this:
|
67
|
-
# namespace :deploy do
|
68
|
-
# task :start do ; end
|
69
|
-
# task :stop do ; end
|
70
|
-
# task :restart, :roles => :app, :except => { :no_release => true } do
|
71
|
-
# run "#{try_sudo} touch #{File.join(current_path,\'tmp\',\'restart.txt\')}"
|
72
|
-
# end
|
73
|
-
# end'}
|
74
|
-
|
75
|
-
base = ARGV.shift
|
76
|
-
files.each do |file, content|
|
77
|
-
file = File.join(base, file)
|
78
|
-
if File.exists?(file)
|
79
|
-
warn "[skip] '#{file}' already exists"
|
80
|
-
elsif File.exists?(file.downcase)
|
81
|
-
warn "[skip] '#{file.downcase}' exists, which could conflict with `#{file}'"
|
82
|
-
else
|
83
|
-
unless File.exists?(File.dirname(file))
|
84
|
-
puts "[add] making directory '#{File.dirname(file)}'"
|
85
|
-
FileUtils.mkdir(File.dirname(file))
|
86
|
-
end
|
87
|
-
puts "[add] writing '#{file}'"
|
88
|
-
File.open(file, "w") { |f| f.write(content) }
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
puts "[done] capified!"
|