raykit 0.0.473 → 0.0.475
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/default_content.rb +28 -0
- data/lib/raykit/git/directory.rb +7 -7
- data/lib/raykit/tasks.rb +0 -1
- data/lib/raykit.rb +2 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50377c8cdf65cff1a790f03705f42f9bb778048cdc43a5cfb1c613093bf4f507
|
4
|
+
data.tar.gz: a2d8dc2c402ad4b5d89928f496a5df410645248379436ec2473678b72d47a92e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51e08fb2ff9c19fd9e89e78b3ac41a157685962a6f770b8bc4b5f5a5412288e5ef09e0bdf930fbcd60b7ee522c8ee50587178809700d6b63f926f8a21e876d9d
|
7
|
+
data.tar.gz: d45d2420e0a4a2a969f26a4abf45615cddf3d66d27f5dc6ce59ac836fea326accbc30763d002a03d712b9330fb5696c67faa94e1ff63f593b59a00b444f898ca
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Raykit
|
2
|
+
class DefaultContent
|
3
|
+
def self.gitignore
|
4
|
+
<<-GITIGNORE
|
5
|
+
# Ruby
|
6
|
+
*.gem
|
7
|
+
*.rbc
|
8
|
+
/.config
|
9
|
+
/coverage/
|
10
|
+
/InstalledFiles
|
11
|
+
/pkg/
|
12
|
+
/spec/reports/
|
13
|
+
/spec/examples.txt
|
14
|
+
/test/tmp/
|
15
|
+
/test/version_tmp/
|
16
|
+
/tmp/
|
17
|
+
/.yardoc/
|
18
|
+
/_yardoc/
|
19
|
+
/doc/
|
20
|
+
/rdoc/
|
21
|
+
/.bundle/
|
22
|
+
/vendor/bundle
|
23
|
+
/lib/bundler/man/
|
24
|
+
.rvmrc
|
25
|
+
GITIGNORE
|
26
|
+
end # def self.gitignore
|
27
|
+
end # class DefaultContent
|
28
|
+
end # module Raykit
|
data/lib/raykit/git/directory.rb
CHANGED
@@ -205,12 +205,12 @@ module Raykit
|
|
205
205
|
# Return unique constants
|
206
206
|
constants.uniq
|
207
207
|
end
|
208
|
-
end
|
209
208
|
|
210
|
-
|
211
|
-
|
212
|
-
|
209
|
+
def setup
|
210
|
+
DEFAULT_SUBDIRECTORIES.each do |subdirectory|
|
211
|
+
FileUtils.mkdir_p(subdirectory)
|
212
|
+
end
|
213
213
|
end
|
214
|
-
end
|
215
|
-
end
|
216
|
-
end
|
214
|
+
end # class Directory
|
215
|
+
end # module Git
|
216
|
+
end # module Raykit
|
data/lib/raykit/tasks.rb
CHANGED
data/lib/raykit.rb
CHANGED
@@ -20,6 +20,7 @@ lib_dir = File.dirname(__FILE__)
|
|
20
20
|
Dir.glob("#{lib_dir}/raykit/**/*.rb").sort.each { |file| require file }
|
21
21
|
|
22
22
|
# Constants
|
23
|
+
DEFAULT_GITIGNORE_CONTENT = Raykit::DefaultContent::gitignore unless defined?(DEFAULT_GITIGNORE_CONTENT)
|
23
24
|
PROJECT = Raykit::Project.new
|
24
25
|
SECRETS = Raykit::Secrets.new
|
25
26
|
REPOSITORIES = Raykit::Git::Repositories.new("#{Raykit::Environment.get_dev_dir("log")}/Raykit.Git.Repositories.json")
|
@@ -34,6 +35,7 @@ Raykit::MsBuild::fix_msbuild_path
|
|
34
35
|
|
35
36
|
if RAYKIT_AUTO_SETUP
|
36
37
|
GIT_DIRECTORY.setup
|
38
|
+
File.write(".gitignore", DEFAULT_GITIGNORE_CONTENT) unless File.exist?(".gitignore")
|
37
39
|
end
|
38
40
|
# include Raykit::TopLevel to make run method accessible from the global scope
|
39
41
|
module Raykit
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raykit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.475
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
@@ -95,6 +95,7 @@ files:
|
|
95
95
|
- lib/raykit/conan/buildinfo.rb
|
96
96
|
- lib/raykit/conanpackage.rb
|
97
97
|
- lib/raykit/console.rb
|
98
|
+
- lib/raykit/default_content.rb
|
98
99
|
- lib/raykit/dir.rb
|
99
100
|
- lib/raykit/dotnet.rb
|
100
101
|
- lib/raykit/environment.rb
|