redcloud 0.1

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 +7 -0
  2. data/README.md +4 -0
  3. data/Rakefile +66 -0
  4. data/lib/redcloud/version.rb +3 -0
  5. metadata +84 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 250db4618d4bbc31d39b6a6ec379bbc9b80be53e
4
+ data.tar.gz: cb7d4a35e1af40a5fe777d6476c4e0cdf9694c64
5
+ SHA512:
6
+ metadata.gz: 5e6286e1e1dcf1e0b4ca325aef163e27c3a00d1650fcc6f349b30b452e3338f0b9013591efeafa243e913c96ad60add6c510e6cf10116719ea5c17054a3ed184
7
+ data.tar.gz: bf6ca1b19445b685d3bc5cb5d9dcb14eb920751c08106d737ffb7f05e70da07da10d3d6352752af280ad59ce329d0ce3cc0b36188a9910545a2cda14d0dcd0b3
data/README.md ADDED
@@ -0,0 +1,4 @@
1
+ RedCloud
2
+ ========
3
+
4
+ Simulation of data centers using dynamic networks of hybrid automata and continuous variables for request rates etc.
data/Rakefile ADDED
@@ -0,0 +1,66 @@
1
+ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
2
+
3
+ require 'rake'
4
+ require 'rake/testtask'
5
+
6
+ PRJ = "redcloud"
7
+
8
+ def version
9
+ @version ||= begin
10
+ require 'redcloud/version'
11
+ warn "RedCloud::VERSION not a string" unless
12
+ RedCloud::VERSION.kind_of? String
13
+ RedCloud::VERSION
14
+ end
15
+ end
16
+
17
+ def tag
18
+ @tag ||= "#{PRJ}-#{version}"
19
+ end
20
+
21
+ desc "Run tests"
22
+ Rake::TestTask.new :test do |t|
23
+ t.libs << "lib"
24
+ t.test_files = FileList["test/**/*.rb"]
25
+ end
26
+
27
+ desc "Commit, tag, and push repo; build and push gem"
28
+ task :release => "release:is_new_version" do
29
+ require 'tempfile'
30
+
31
+ sh "gem build #{PRJ}.gemspec"
32
+
33
+ file = Tempfile.new "template"
34
+ begin
35
+ file.puts "release #{version}"
36
+ file.close
37
+ sh "git commit --allow-empty -a -v -t #{file.path}"
38
+ ensure
39
+ file.close unless file.closed?
40
+ file.unlink
41
+ end
42
+
43
+ sh "git tag #{tag}"
44
+ sh "git push"
45
+ sh "git push --tags"
46
+
47
+ sh "gem push #{tag}.gem"
48
+ end
49
+
50
+ namespace :release do
51
+ desc "Diff to latest release"
52
+ task :diff do
53
+ latest = `git describe --abbrev=0 --tags --match '#{PRJ}-*'`.chomp
54
+ sh "git diff #{latest}"
55
+ end
56
+
57
+ desc "Log to latest release"
58
+ task :log do
59
+ latest = `git describe --abbrev=0 --tags --match '#{PRJ}-*'`.chomp
60
+ sh "git log #{latest}.."
61
+ end
62
+
63
+ task :is_new_version do
64
+ abort "#{tag} exists; update version!" unless `git tag -l #{tag}`.empty?
65
+ end
66
+ end
@@ -0,0 +1,3 @@
1
+ module RedCloud
2
+ VERSION = "0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: redcloud
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ platform: ruby
6
+ authors:
7
+ - Joel VanderWerf
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-02-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: redshift
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: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Simulation of data centers using dynamic networks of hybrid automata
42
+ and continuous variables for request rates etc.
43
+ email: vjoel@users.sourceforge.net
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files:
47
+ - README.md
48
+ files:
49
+ - README.md
50
+ - Rakefile
51
+ - lib/redcloud/version.rb
52
+ homepage: https://github.com/vjoel/redcloud
53
+ licenses:
54
+ - BSD
55
+ metadata: {}
56
+ post_install_message:
57
+ rdoc_options:
58
+ - "--quiet"
59
+ - "--line-numbers"
60
+ - "--inline-source"
61
+ - "--title"
62
+ - RedCloud
63
+ - "--main"
64
+ - README.md
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 2.2.2
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: Simulation of data centers
83
+ test_files: []
84
+ has_rdoc: