deploy_rubygem 0.60.0.4.ga6cf712 → 0.60.5

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore DELETED
@@ -1,58 +0,0 @@
1
- *.gem
2
- *.rbc
3
- /.config
4
- /coverage/
5
- /InstalledFiles
6
- /pkg/
7
- /spec/reports/
8
- /spec/examples.txt
9
- /test/tmp/
10
- /test/version_tmp/
11
- /tmp/
12
-
13
- # Used by dotenv library to load environment variables.
14
- # .env
15
-
16
- # Ignore Byebug command history file.
17
- .byebug_history
18
-
19
- ## Specific to RubyMotion:
20
- .dat*
21
- .repl_history
22
- build/
23
- *.bridgesupport
24
- build-iPhoneOS/
25
- build-iPhoneSimulator/
26
-
27
- ## Specific to RubyMotion (use of CocoaPods):
28
- #
29
- # We recommend against adding the Pods directory to your .gitignore. However
30
- # you should judge for yourself, the pros and cons are mentioned at:
31
- # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
32
- #
33
- # vendor/Pods/
34
-
35
- ## Documentation cache and generated files:
36
- /.yardoc/
37
- /_yardoc/
38
- /doc/
39
- /rdoc/
40
-
41
- ## Environment normalization:
42
- /.bundle/
43
- /vendor/bundle
44
- /lib/bundler/man/
45
-
46
- # for a library or gem, you might want to ignore these files since the code is
47
- # intended to run in multiple environments; otherwise, check them in:
48
- # Gemfile.lock
49
- # .ruby-version
50
- # .ruby-gemset
51
-
52
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
- .rvmrc
54
-
55
- # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
- # .rubocop-https?--*
57
- Gemfile.lock
58
- .rspec_status
data/Gemfile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in deploy_rubygem.gemspec
6
- gemspec
7
-
8
- gem "rake", "~> 13.0"
9
-
10
- gem "rspec", "~> 3.0"
11
-
12
- gem "rubocop", "~> 1.21"
data/bin/console DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "deploy_rubygem"
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- require "irb"
11
- IRB.start(__FILE__)
@@ -1,8 +0,0 @@
1
- #!/opt/chef-workstation/embedded/bin/ruby
2
- Signal.trap('INT') { exit 1 }
3
-
4
- $LOAD_PATH.unshift File.join(File.dirname(__FILE__), %w(.. lib))
5
- require 'rubygems' unless defined?(Gem)
6
- require 'deploy_rubygem'
7
-
8
- DeployRubygem.deploy_jimbo_management_site
@@ -1,8 +0,0 @@
1
- #!/opt/chef-workstation/embedded/bin/ruby
2
- Signal.trap('INT') { exit 1 }
3
-
4
- $LOAD_PATH.unshift File.join(File.dirname(__FILE__), %w(.. lib))
5
- require 'rubygems' unless defined?(Gem)
6
- require 'deploy_rubygem'
7
-
8
- DeployRubygem.release
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,77 +0,0 @@
1
-
2
-
3
- require 'git-version-bump'
4
-
5
- ::Gem::Specification.new do |s|
6
- s.name = 'deploy_rubygem'
7
- s.license = 'MIT'
8
- s.authors = ['Jimmy Provencher']
9
- s.email = ['jimbo_dragon@hotmail.com']
10
- s.homepage = 'https://github.com/JimboDragonGit/deploy_rubygem'
11
- s.summary = 'A auto chef bootstrapper and wrapper cookbook to deploy code and context'
12
- s.description = 'Using Chef cookbook style and force any script using it to switch to chef even if it is not install. It will install it tho ;)'
13
-
14
- s.version = GVB.version
15
- s.date = GVB.date
16
-
17
- # all_files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
18
- # s.files = all_files.grep(%r!^(exe|libraries|rubocop)/|^.rubocop.yml$!)
19
- # code_folder = 'libraries/'
20
- # s.files = %w(README.md LICENSE bin/selfbootstrap libraries/selfbootstrap.rb ) + Dir.glob('libraries/**/*') # + Dir.glob('{bin,lib,certs,test}/**/*')
21
- # s.require_paths = [code_folder]
22
- # s.executables = %w(selfbootstrap)
23
- # s.bindir = 'exe'
24
-
25
-
26
- s.extra_rdoc_files = ["README.md"]
27
- s.files = `git ls-files`.split("\n")
28
- s.executables = %w(
29
- deploy_rubygem
30
- prepare_workstation
31
- test_deploy_rubygem
32
- deploy_rubygem_manually
33
- deploy_jimbodragon
34
- )
35
-
36
- # s.cert_chain = [File.expand_path('../jimbodragon/certs/public/jimbodragon.pem')]
37
- # s.signing_key = File.expand_path('../jimbodragon/certs/private/jimbodragon-gem-private_key.pem') if $PROGRAM_NAME =~ /gem\z/
38
-
39
- s.metadata = {
40
- # 'source_code_uri' => '/home/git/selfbootstrap.git/',
41
- 'bug_tracker_uri' => 'https://github.com/JimboDragonGit/deploy_rubygem/issues',
42
- 'changelog_uri' => 'https://github.com/JimboDragonGit/deploy_rubygem/releases',
43
- 'homepage_uri' => s.homepage,
44
- }
45
-
46
- s.rdoc_options = ['--charset=UTF-8']
47
- s.extra_rdoc_files = %w(README.md LICENSE)
48
-
49
- # s.required_ruby_version = '>= 3.1.2'
50
- # s.required_rubygems_version = '>= 2.7.0'
51
-
52
- s.add_development_dependency('chef')
53
- s.add_development_dependency('test-kitchen')
54
-
55
- s.add_runtime_dependency('git-version-bump')
56
- s.add_runtime_dependency('rubocop-rake')
57
- s.add_runtime_dependency('rubocop-rspec')
58
-
59
- # s.add_runtime_dependency('deploy-context')
60
-
61
- # s.add_runtime_dependency('colorator', '~> 1.0')
62
- # s.add_runtime_dependency('em-websocket', '~> 0.5')
63
- # s.add_runtime_dependency('i18n', '~> 1.0')
64
- # s.add_runtime_dependency('jekyll-sass-converter', '>= 2.0', '< 4.0')
65
- # s.add_runtime_dependency('jekyll-watch', '~> 2.0')
66
- # s.add_runtime_dependency('kramdown', '~> 2.3', '>= 2.3.1')
67
- # s.add_runtime_dependency('kramdown-parser-gfm', '~> 1.0')
68
- # s.add_runtime_dependency('liquid', '~> 4.0')
69
- # s.add_runtime_dependency('mercenary', '>= 0.3.6', '< 0.5')
70
- # s.add_runtime_dependency('pathutil', '~> 0.9')
71
- # s.add_runtime_dependency('rouge', '>= 3.0', '< 5.0')
72
- # s.add_runtime_dependency('safe_yaml', '~> 1.0')
73
- # s.add_runtime_dependency('terminal-table', '>= 1.8', '< 4.0')
74
- # s.add_runtime_dependency('webrick', '~> 1.7')
75
- end
76
-
77
-
@@ -1,7 +0,0 @@
1
-
2
- module DeployRubygem
3
- class ChefSupermarket
4
- def download
5
- end
6
- end
7
- end
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # RSpec.describe 'Publishing itself' do
4
- # it "deploy itself" do
5
- # self_deploy = DeployRubygem.self_deploy
6
- # expect(self_deploy).not_to be nil
7
- # end
8
-
9
- # it "deploy jimbo_management_site" do
10
- # jimbo_management_site_deploy = DeployRubygem.deploy_jimbo_management_site
11
- # expect(jimbo_management_site_deploy).not_to be nil
12
- # end
13
-
14
- # it "has pre latest version publish" do
15
- # expect(`gem list -r deploy_rubygem`).to include("deploy_rubygem (#{Gem::Version.new("#{GVB.major_version}.#{GVB.minor_version - 1}.1")})")
16
- # end
17
-
18
- # it "has latest version publish" do
19
- # expect(`gem list -r deploy_rubygem`).not_to include("deploy_rubygem (#{GVB.version}})")
20
- # end
21
- # end
data/spec/spec_helper.rb DELETED
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "deploy_rubygem"
4
-
5
- RSpec.configure do |config|
6
- # Enable flags like --only-failures and --next-failure
7
- config.example_status_persistence_file_path = ".rspec_status"
8
-
9
- # Disable RSpec exposing methods globally on `Module` and `main`
10
- config.disable_monkey_patching!
11
-
12
- config.expect_with :rspec do |c|
13
- c.syntax = :expect
14
- end
15
- end
@@ -1,49 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- RSpec.describe GVB do
4
- it "has a version number" do
5
- expect(GVB.version).not_to be nil
6
- end
7
-
8
- %w(major_version minor_version patch_version).each do |method_name|
9
- it "has the method #{method_name}" do
10
- expect(GVB.methods.include?(method_name.to_sym)).to eq(true)
11
- end
12
- end
13
- end
14
-
15
- RSpec.describe DeployRubygem do
16
- it "has a version number" do
17
- expect(DeployRubygem::VERSION).not_to be nil
18
- end
19
-
20
- %w(main deploy_jimbodragon change_to_directory deploy_rubygem_path chefrepo_path).each do |method_name|
21
- it "has the method #{method_name}" do
22
- expect(DeployRubygem.methods.include?(method_name.to_sym)).to eq(true)
23
- end
24
- end
25
-
26
- it "has pre latest version publish" do
27
- expect(`gem list -r deploy_rubygem`).to include("deploy_rubygem (#{Gem::Version.new("#{GVB.major_version}.#{GVB.minor_version - 1}.1")})")
28
- end
29
- end
30
-
31
- RSpec.describe 'Publishing itself' do
32
- it "Change to Chef repo folder" do
33
- change_repo = DeployRubygem.change_to_directory(DeployRubygem.chefrepo_path, 'git@github.com:JimboDragonGit/jimbodragon.git')
34
- expect(change_repo).not_to be nil
35
- expect(change_repo).to include DeployRubygem.chefrepo_path
36
- end
37
-
38
- it "Change to jimbo_management_site folder" do
39
- change_repo = DeployRubygem.change_to_directory(DeployRubygem.jimbo_management_site_path, 'git@github.com:JimboDragonGit/jimbo_management_site.git')
40
- expect(change_repo).not_to be nil
41
- expect(change_repo).to include DeployRubygem.jimbo_management_site_path
42
- end
43
-
44
- it "Change to deploy_rubygem folder" do
45
- change_repo = DeployRubygem.change_to_directory(DeployRubygem.deploy_rubygem_path, 'git@github.com:JimboDragonGit/deploy_rubygem.git')
46
- expect(change_repo).not_to be nil
47
- expect(change_repo).to include DeployRubygem.deploy_rubygem_path
48
- end
49
- end