bait 0.5.9 → 0.5.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: deb434ed410af96b5c37f6eb896a6af1ac012793
4
- data.tar.gz: ccf48fc25949a13e7233e298ed06812ea57c58cc
3
+ metadata.gz: ba4a454147e48ef95a51f3519a4a8ca5b0e6f0e6
4
+ data.tar.gz: 25d9089723006cd240d8c87b1b3f13b9462d4960
5
5
  SHA512:
6
- metadata.gz: 9c14b6260e836cde135646ea1e4f9568a03774c66df691801e1a2265355405376ed304b18a062e3fe5f5849f876585e51d637d7dd3e1f0b0682dc27e6ad3c9bc
7
- data.tar.gz: 1496769a9ed1abec659d9609f9c8bad854911cc9d8711e75b9ee08100fd1cd25954f80c695fa242b2133ca28dd28399d454a2b5fe1a9c310d335ccbb4225d695
6
+ metadata.gz: 3513f74238174f6c445578e645722fa3880fc5769ef24405a4ba6cee14e6e2292f7737c90b628dd662913a2fcd675ec98b4f7cd6519629a642055451b0d930da
7
+ data.tar.gz: f23bda046a4872d7eb4b2b621e28e514bebc7c72bb5cdc3ceaa8c0b98ebd23c385f707a049386fb43e0ded67e239ad5a85c08e7710588688f781bc97f99be65c
File without changes
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  .DS_Store
2
+ *.swo
2
3
  *.swp
3
4
  *.gem
4
5
  *.rbc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bait (0.5.9)
4
+ bait (0.5.10)
5
5
  git
6
6
  haml
7
7
  moneta
@@ -37,7 +37,7 @@ GEM
37
37
  multi_json (~> 1.0)
38
38
  ffi (1.9.0)
39
39
  formatador (0.2.4)
40
- git (1.2.5)
40
+ git (1.2.6)
41
41
  guard (1.8.1)
42
42
  formatador (>= 0.2.4)
43
43
  listen (>= 1.0.0)
@@ -49,7 +49,7 @@ GEM
49
49
  rspec (~> 2.13)
50
50
  haml (4.0.3)
51
51
  tilt
52
- i18n (0.6.4)
52
+ i18n (0.6.5)
53
53
  listen (1.2.2)
54
54
  rb-fsevent (>= 0.9.3)
55
55
  rb-inotify (>= 0.9)
data/README.md CHANGED
@@ -2,7 +2,6 @@ Bait
2
2
  ====
3
3
 
4
4
  executable is `bait`, standing for Build And Integration Tester
5
- I'm conflicted about the name, another is artci: Application-Readiness-Test-based Continuous Integration
6
5
 
7
6
  The most important thing to know about this project is this:
8
7
 
@@ -38,6 +37,11 @@ You can set your Github to notify the server on that port.
38
37
 
39
38
  You may also test manually by inputting a clone URL within the UI
40
39
 
40
+ # Caution
41
+
42
+ * There is no security setup at this time
43
+ * Bait is currently a WIP and should be considered experimental software
44
+
41
45
  # Architectural Overview
42
46
 
43
47
  ```
data/VERSION CHANGED
@@ -1,3 +1,3 @@
1
- 0.5.9
1
+ 0.5.10
2
2
 
3
3
 
@@ -37,7 +37,7 @@ module Bait
37
37
  end
38
38
 
39
39
  def phases
40
- YAML.load_file(File.join(self.bait_dir, "bire.yml"))
40
+ YAML.load_file(File.join(self.bait_dir, "config.yml"))
41
41
  end
42
42
 
43
43
  def enter_phase name
@@ -10,7 +10,7 @@ module Bait
10
10
 
11
11
  ##
12
12
  # Start the server
13
- def self.server
13
+ def self.server username=false, password=false
14
14
  puts "** Bait/#{Bait::VERSION} booting up in #{Bait.env} environment"
15
15
  if Bait.env == "production" && Bait.assets.missing?
16
16
  Bait.assets.compile!
@@ -20,7 +20,7 @@ module Bait
20
20
  end
21
21
 
22
22
  ##
23
- # Create .bait/ and list.yml and example .bait/test.sh
23
+ # Create .bait/ and config.yml and example .bait/test.sh
24
24
  # I do not seek to read your mind, instead I'd prefer that
25
25
  # you contribute Scripts for different Contexts/Technologies
26
26
  def self.init
@@ -40,12 +40,12 @@ module Bait
40
40
  File.chmod(0744, script)
41
41
  puts "Created executable script #{script}."
42
42
  name = File.basename(script)
43
- yml_file = File.join(bait_dir, 'bire.yml')
44
- File.open(yml_file, "w") do |f|
43
+ config_file = File.join(bait_dir, 'config.yml')
44
+ File.open(config_file, "w") do |f|
45
45
  f.puts "---"
46
46
  f.puts "- #{name}"
47
47
  end
48
- puts "Setup one phase in #{yml_file} pointing to #{name}."
48
+ puts "Setup one phase in #{config_file} pointing to #{name}."
49
49
  end
50
50
  end
51
51
 
@@ -53,12 +53,12 @@ module Bait
53
53
  # Run a defined phase
54
54
  def self.test name=nil
55
55
  dir = Dir.pwd, ".bait"
56
- yml = File.join(dir, "bire.yml")
57
- if File.exists? yml
56
+ config_file = File.join(dir, "config.yml")
57
+ if File.exists? config_file
58
58
  require 'yaml'
59
- scripts = YAML.load_file(yml)
59
+ scripts = YAML.load_file(config_file)
60
60
  if scripts.empty?
61
- puts "Define your scripts in #{yml}"
61
+ puts "Define your scripts in #{config_file}"
62
62
  exit 1
63
63
  end
64
64
  runscript = proc do |script, quit|
@@ -80,17 +80,17 @@ module Bait
80
80
  end
81
81
  end
82
82
  end
83
- puts "Script #{script} not defined in #{yml}"
83
+ puts "Script #{script} not defined in #{config_file}"
84
84
  exit 1
85
85
  else
86
- puts "Running all defined in #{yml}"
86
+ puts "Running all defined in #{config_file}"
87
87
  scripts.each do |name|
88
88
  script = File.join(dir, name)
89
89
  runscript.call(script, false)
90
90
  end
91
91
  end
92
92
  else
93
- puts "Project did not have configuration file #{yml}"
93
+ puts "Project did not have configuration file #{config_file}"
94
94
  exit 1
95
95
  end
96
96
  end
@@ -140,13 +140,13 @@ describe Bait::Build do
140
140
  describe "#phases" do
141
141
  before do
142
142
  FileUtils.mkdir_p build.bait_dir
143
- File.open(File.join(build.bait_dir, "bire.yml"), "w") do |f|
143
+ File.open(File.join(build.bait_dir, "config.yml"), "w") do |f|
144
144
  f.puts "---"
145
145
  f.puts "- foo.py"
146
146
  f.puts "- bar.php"
147
147
  end
148
148
  end
149
- it "outputs scripts in the order defined in bire.yml" do
149
+ it "outputs scripts in the order defined in config.yml" do
150
150
  build.phases.should eq ["foo.py", "bar.php"]
151
151
  end
152
152
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bait
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9
4
+ version: 0.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keyvan Fatehi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-18 00:00:00.000000000 Z
11
+ date: 2013-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -242,8 +242,8 @@ executables:
242
242
  extensions: []
243
243
  extra_rdoc_files: []
244
244
  files:
245
- - .bait/bire.yml
246
245
  - .bait/coffeelint.rb
246
+ - .bait/config.yml
247
247
  - .bait/test.sh
248
248
  - .gitignore
249
249
  - Gemfile
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
315
315
  version: '0'
316
316
  requirements: []
317
317
  rubyforge_project:
318
- rubygems_version: 2.0.5
318
+ rubygems_version: 2.0.3
319
319
  signing_key:
320
320
  specification_version: 4
321
321
  summary: build and integration test service