cbaoth 0.0.20 → 0.1.1
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/cbaoth.gemspec +2 -1
- data/lib/cbaoth/version.rb +1 -1
- data/spec/lib/cbaoth_spec.rb +13 -13
- data/spec/spec_helper.rb +2 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50b4372cb6d328dd8ffb8225b3e84032f29a8ea6
|
4
|
+
data.tar.gz: b99e1cf83c601bb0503be135f2d4cd24606875af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9f0179955e283ac52b5740d9247a7675ed183fa81432354786ead19e2162e3fe201eb1ed2e04f514a00c1471ff83f041fda98055fe66e4080b3d3399c47212c
|
7
|
+
data.tar.gz: 4ad0c42f5755e557e31279a22ccc1e50d4af40df4f9da81234287c9ba2fe6115a2e4314be3167b93538518c6aabf726e9db7db00b53d4530fc1d1b58b4ca39c8
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Cbaoth
|
2
2
|
|
3
|
+
[](http://badge.fury.io/rb/cbaoth)
|
4
|
+
[](https://www.omniref.com/ruby/gems/cbaoth)
|
5
|
+
|
3
6
|
Ruby Gem to create a base ruby automation/whatever you want app from the command line. By simply typing cbaoth app_name.
|
4
7
|
|
5
8
|
## Installation
|
data/cbaoth.gemspec
CHANGED
@@ -19,5 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
-
spec.add_development_dependency "rake"
|
22
|
+
spec.add_development_dependency "rake", ">= 10.1.0"
|
23
|
+
spec.required_ruby_version = '>= 1.9.3'
|
23
24
|
end
|
data/lib/cbaoth/version.rb
CHANGED
data/spec/lib/cbaoth_spec.rb
CHANGED
@@ -27,42 +27,42 @@ describe Cbaoth::Generator do
|
|
27
27
|
end
|
28
28
|
|
29
29
|
it 'creates the bin dir' do
|
30
|
-
expect(Dir.exist?("bin")).to
|
30
|
+
expect(Dir.exist?("bin")).to be_truthy
|
31
31
|
end
|
32
32
|
|
33
33
|
it 'creates the lib dir' do
|
34
|
-
expect(Dir.exist?('lib')).to
|
34
|
+
expect(Dir.exist?('lib')).to be_truthy
|
35
35
|
end
|
36
36
|
|
37
37
|
it 'creates the config dir' do
|
38
|
-
expect(Dir.exist?('config')).to
|
38
|
+
expect(Dir.exist?('config')).to be_truthy
|
39
39
|
end
|
40
40
|
|
41
41
|
it 'creates the db dir' do
|
42
|
-
expect(Dir.exist?('db')).to
|
42
|
+
expect(Dir.exist?('db')).to be_truthy
|
43
43
|
end
|
44
44
|
|
45
45
|
it 'creates the db/migrate dir' do
|
46
|
-
expect(Dir.exist?('db/migrate')).to
|
46
|
+
expect(Dir.exist?('db/migrate')).to be_truthy
|
47
47
|
end
|
48
48
|
|
49
49
|
it 'creates the log dir' do
|
50
|
-
expect(Dir.exist?('log')).to
|
50
|
+
expect(Dir.exist?('log')).to be_truthy
|
51
51
|
end
|
52
52
|
it 'creates a rakefile' do
|
53
|
-
expect(File.exist?("Rakefile")).to
|
53
|
+
expect(File.exist?("Rakefile")).to be_truthy
|
54
54
|
end
|
55
55
|
|
56
56
|
it 'creates a gemfile' do
|
57
|
-
expect(File.exist?("Gemfile")).to
|
57
|
+
expect(File.exist?("Gemfile")).to be_truthy
|
58
58
|
end
|
59
59
|
|
60
60
|
it 'creates a readmefile' do
|
61
|
-
expect(File.exist?("README.md")).to
|
61
|
+
expect(File.exist?("README.md")).to be_truthy
|
62
62
|
end
|
63
63
|
|
64
64
|
it 'creates a database.yml file' do
|
65
|
-
expect(File.exist?("config/database.yml")).to
|
65
|
+
expect(File.exist?("config/database.yml")).to be_truthy
|
66
66
|
end
|
67
67
|
|
68
68
|
describe 'git init' do
|
@@ -70,7 +70,7 @@ describe Cbaoth::Generator do
|
|
70
70
|
n = ""
|
71
71
|
@generator.generate "test", n
|
72
72
|
Dir.chdir "test"
|
73
|
-
expect(Dir.exist?('.git')).to
|
73
|
+
expect(Dir.exist?('.git')).to be_truthy
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
@@ -79,8 +79,8 @@ describe Cbaoth::Generator do
|
|
79
79
|
n = "-g"
|
80
80
|
@generator.generate "test", n
|
81
81
|
Dir.chdir "test"
|
82
|
-
expect(Dir.exist?('.git')).to
|
82
|
+
expect(Dir.exist?('.git')).to be_falsey
|
83
83
|
end
|
84
84
|
end
|
85
85
|
end
|
86
|
-
end
|
86
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -8,13 +8,12 @@
|
|
8
8
|
require_relative '../lib/cbaoth'
|
9
9
|
|
10
10
|
RSpec.configure do |config|
|
11
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
11
|
+
# config.treat_symbols_as_metadata_keys_with_true_values = true
|
12
12
|
config.run_all_when_everything_filtered = true
|
13
13
|
config.filter_run :focus
|
14
14
|
|
15
|
-
# todo: change this to after so we don't have unwanted test dir's/files
|
16
15
|
config.after :suite do
|
17
|
-
FileUtils.rm_rf "
|
16
|
+
FileUtils.rm_rf "#{File.dirname(__dir__)}/spec/testing_dir"
|
18
17
|
end
|
19
18
|
|
20
19
|
# Run specs in random order to surface order dependencies. If you find an
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cbaoth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Curtis Ovard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 10.1.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 10.1.0
|
41
41
|
description: Gem to create base ruby automation apps from cli.
|
42
42
|
email:
|
43
43
|
- ovardcj@gmail.com
|
@@ -76,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
76
|
requirements:
|
77
77
|
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
79
|
+
version: 1.9.3
|
80
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - ">="
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.4.
|
87
|
+
rubygems_version: 2.4.6
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Gem to create a base ruby automation app from the command line. Simply typing
|