raykit 0.0.474 → 0.0.475

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
  SHA256:
3
- metadata.gz: 68291706c421da6efeeffa8cf26594768b9662e581a5c544cb75c07bd379bd22
4
- data.tar.gz: 363f4cfc1bbf88be8a0da062ca61ba0f3e97f6d50090ad5fc6704c40657ab989
3
+ metadata.gz: 50377c8cdf65cff1a790f03705f42f9bb778048cdc43a5cfb1c613093bf4f507
4
+ data.tar.gz: a2d8dc2c402ad4b5d89928f496a5df410645248379436ec2473678b72d47a92e
5
5
  SHA512:
6
- metadata.gz: 97b366abd61de26695644b00c475c00baeb6290b425d2dc8f949e2d7a8eac8a90fb09980113f8069a7b55deb538ecd8a0d5e807b8e304bcff8d504151dd40452
7
- data.tar.gz: d4c126a5dece2816e37a971fcdb9916178f785d22b69915b6f921f95e5e769b2af678e7199be899dc2571ad3d6a7fec8b87c3b414eb7fe43d1fbc22e55555220
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.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.474
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