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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c502eab631e509861abba3548ac1bd6361724449aa3626d44053c621ccb70047
4
- data.tar.gz: 97ad8eb7c49fb4e7877f05b808aa7d97dabc998c8ae7f3597f01a1cc905458f3
3
+ metadata.gz: 50377c8cdf65cff1a790f03705f42f9bb778048cdc43a5cfb1c613093bf4f507
4
+ data.tar.gz: a2d8dc2c402ad4b5d89928f496a5df410645248379436ec2473678b72d47a92e
5
5
  SHA512:
6
- metadata.gz: c2aacebd7a619100255a55d1fd53df5b6e8ecb900cda2da9d1e912a169cbe6e86c5f36e544bf1928c0e36203aef0dbf1477d26be399fe578eb5108ac69c469c5
7
- data.tar.gz: 22f9c1b9efde96621437fac926d6c67c748ba9019e502d754ea9612b5dbb904155070b6e19e6e39d1398e3177d2b442ad1b20dbf36d577c4df37b3230ad580f6
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
@@ -205,12 +205,12 @@ module Raykit
205
205
  # Return unique constants
206
206
  constants.uniq
207
207
  end
208
- end
209
208
 
210
- def setup
211
- DEFAULT_SUBDIRECTORIES.each do |subdirectory|
212
- FileUtils.mkdir_p(subdirectory)
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
@@ -97,4 +97,3 @@ end
97
97
 
98
98
  desc "update source files"
99
99
  task update: [:update_source]
100
-
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.473
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