ceedling-autorake 0.0.2

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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MTQxNzkwZDgzODIwZWRhMDllNzFjMjhjNDY1YmFkYmFiNDhmNDM1MQ==
5
+ data.tar.gz: !binary |-
6
+ NmI0OTQ1YWJlZGVmZTU0M2M2NGIyYzEyYTIxOTMxYjliNzQwNzI2ZA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YmZhOTYwNzZmMjM4ZWU0Y2RhZGM4ODc4MmMxNWIxYzQ4OGM2ZjE0ODRhNGQz
10
+ ZTkxN2Q4NTRjYjNiNWUzMzI5YzA0NGQwM2IxN2Y5YjVmMmUwOTM1YzVmMDJi
11
+ MGM5NGU1OGE5NGFkOGFiMDkwODk0NWY0ZmE1NDdjNjkyZmJjNmI=
12
+ data.tar.gz: !binary |-
13
+ ZjdiNTg1ZWM3YzA2MmM3ZDI5MTk4OWExNjk2MDkyZDZlMmZhMmY0MDZjZTli
14
+ NjRkZWVmOGQ1YWQxMjQ2ODliYmUwNTgyN2FlMjM1ZjY5YzE1NGRkMTY1MTBh
15
+ NTczMDRjODc4NzA3ZmE2NjkzODQ0YjQ1ZTVhMGUyYjJjMTdmNTg=
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source "http://rubygems.org/"
2
+
3
+ gem "bundler", "~> 1.1.rc.7"
4
+ gem "rake", ">= 0.9.2.2"
5
+
6
+ gem "rspec"
7
+ gem "ceedling"
8
+ gem "watch"
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 Austin Mullins
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.
@@ -0,0 +1,41 @@
1
+ Ceedling-Autorake
2
+ =================
3
+
4
+ Autotest for Ceedling projects
5
+ ------------------------------
6
+
7
+ Using the [Watch gem](//rubygems.org/gems/watch) and [YAML](//rubygems.org/gems/yaml) configuration compatible with [Ceedling's](rubygems.org/gems/ceedling) project.yml, this simple code allows you to just code and let Ceedling run your tests in the background.
8
+
9
+ Installation
10
+ ------------
11
+
12
+ gem install ceedling-autorake
13
+
14
+
15
+ Configuration
16
+ -------------
17
+
18
+ Add something like this to your project.yml file:
19
+
20
+ :autorake:
21
+ :paths:
22
+ - tests
23
+ - src
24
+ - mocks
25
+
26
+ Easy integration
27
+ ----------------
28
+
29
+ 1. Add these lines to your project's `rakefile.rb`:
30
+
31
+ require "Autorake"
32
+
33
+ task :auto do
34
+ Autorake.new "project.yml"
35
+ end
36
+
37
+ 2. Now run:
38
+
39
+ rake auto
40
+
41
+ 3. Cackle like an evil genius.
@@ -0,0 +1,29 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
3
+ require "version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "ceedling-autorake"
7
+ s.version = ::Autorake::Version::GEM
8
+ s.platform = ::Gem::Platform::RUBY
9
+ s.authors = %w[Austin Mullins]
10
+ s.email = %w[austin.mullins@gmail.com]
11
+ s.homepage = "http://walkedesigns.com/"
12
+ s.summary = %q{Automated Testing for Ceedling Projects}
13
+ s.description = %q{Ceedling provides a set of tools to deploy its guts in a folder or which can be required in a Rakefile. This makes that process more automatic.}
14
+
15
+ s.homepage = "https://github.com/amullins83/ceedling-autorake"
16
+
17
+ s.add_dependency "rake", ">= 0.8.7"
18
+ s.add_dependency "watch", ">= 0.1.0"
19
+
20
+ # Files needed from submodules
21
+ s.files = []
22
+ s.files += Dir['**/*']
23
+ s.test_files = Dir['test/**/*', 'spec/**/*', 'features/**/*']
24
+
25
+ s.require_paths = ["lib"]
26
+
27
+ s.license = "MIT"
28
+
29
+ end
@@ -0,0 +1,8 @@
1
+ :autorake:
2
+ :paths:
3
+ - tests
4
+ - source
5
+ - src
6
+ - include
7
+ - lib
8
+ - common
@@ -0,0 +1,16 @@
1
+ require File.expand_path( File.dirname __FILE__ ) + "/autotest"
2
+
3
+ class Autorake
4
+ def initialize configFilePath
5
+ @plugin_root = File.expand_path( File.dirname __FILE__ ) + "/.."
6
+ @configFilePath = configFilePath || @plugin_root + "/config/autorake.yml"
7
+ @config = YAML.load_file(@configFilePath)
8
+ start_watching
9
+ end
10
+
11
+ private
12
+
13
+ def start_watching
14
+ AutoTest.new @config[:autorake][:paths]
15
+ end
16
+ end
@@ -0,0 +1,39 @@
1
+ require 'watch'
2
+
3
+ class AutoTest
4
+ def initialize(paths)
5
+ @paths = paths
6
+ run
7
+ end
8
+
9
+ def get_pathArray_from_file(fileName)
10
+ @paths = []
11
+ File.open(fileName, "r") do |file|
12
+ file.each do |line|
13
+ @paths.push line
14
+ end
15
+ end
16
+ end
17
+
18
+ def run
19
+ addWatches makePaths
20
+ end
21
+
22
+ def addWatches(pathList)
23
+ Watch.new(pathList) {
24
+ runTests
25
+ }
26
+ end
27
+
28
+ def runTests
29
+ system "rake test:all"
30
+ end
31
+
32
+ def makePaths()
33
+ pathList = "./{"
34
+ @paths.each do |folder|
35
+ pathList += folder + ","
36
+ end
37
+ pathList += "}/*"
38
+ end
39
+ end
@@ -0,0 +1,5 @@
1
+ class Autorake
2
+ class Version
3
+ GEM="0.0.2"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ceedling-autorake
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Austin
8
+ - Mullins
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-11-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ! '>='
19
+ - !ruby/object:Gem::Version
20
+ version: 0.8.7
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ! '>='
26
+ - !ruby/object:Gem::Version
27
+ version: 0.8.7
28
+ - !ruby/object:Gem::Dependency
29
+ name: watch
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: 0.1.0
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ! '>='
40
+ - !ruby/object:Gem::Version
41
+ version: 0.1.0
42
+ description: Ceedling provides a set of tools to deploy its guts in a folder or which
43
+ can be required in a Rakefile. This makes that process more automatic.
44
+ email:
45
+ - austin.mullins@gmail.com
46
+ executables: []
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - ceedling-autorake-0.0.1.gem
51
+ - ceedling-autorake.gemspec
52
+ - config/autorake.yml
53
+ - Gemfile
54
+ - lib/autorake.rb
55
+ - lib/autotest.rb
56
+ - lib/version.rb
57
+ - LICENSE
58
+ - README.md
59
+ homepage: https://github.com/amullins83/ceedling-autorake
60
+ licenses:
61
+ - MIT
62
+ metadata: {}
63
+ post_install_message:
64
+ rdoc_options: []
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.1.11
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: Automated Testing for Ceedling Projects
83
+ test_files: []