trent 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +2 -2
  4. data/lib/trent.rb +8 -4
  5. metadata +74 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a21fefc0b5f22d12a24c553deba8f7407ae3e8e82649c00b4c2fd772dd85d478
4
- data.tar.gz: bfc28c7a4b7fcb99b45e4087c138f6439ff75a569850d6569c8fc293546edadb
3
+ metadata.gz: 8bf0702ce2c0fff153f326fd2f975aed86e42d6fd2fc3ea1bc09f9264f40fca3
4
+ data.tar.gz: 0b43ac26659e0032f9def1b7d6090acf8587357e3b2074136d5bb72aa0e2acab
5
5
  SHA512:
6
- metadata.gz: bbeae5926416ffec213b212dc1e3ee7de0e6ee0f9783c8dffa0a1e279e1b4f1de83df868f4071d50f0b578d8abb56850c8d9d474ca13c4e239521837ff573d65
7
- data.tar.gz: f4609d0e6abf0befd92cf39c0f2f645b1cbcfc6c701cb2a7d1dbffc63b09fa2191513cbbedde143689629d9991930f66ffe73d64b220c869fc9ea04029f6e82e
6
+ metadata.gz: 58437bb5955c6b6f89b546aec964f423696d7a177ba88bd644611cd84a5c22aee0820d218432e4cd206e709e79b8afc1a01769a8e0e6cd2dadfe98a8662d18f3
7
+ data.tar.gz: '097c6e79bfe8c9fdcffcc06b35aff26e9db37167915462886c5ee4e72bf5186047e6ac9bb5afd8db0e1320e201152e4413eb16b70be5747056582158fdf74225'
@@ -1,3 +1,8 @@
1
+ ### [0.3.0] 2018-11-27
2
+
3
+ ### Added
4
+ - Allow Trent to run locally. Use Trent to run scripts locally on your own machine if you wish.
5
+
1
6
  ### [0.2.3] 2018-09-04
2
7
 
3
8
  ### Fixed
data/README.md CHANGED
@@ -157,7 +157,7 @@ Trent documentation is hosted [here](https://www.rubydoc.info/gems/trent/0.1.0).
157
157
  ```ruby
158
158
  # Set the color Trent uses to print the command about to run to the console.
159
159
  # Available colors are located here: https://github.com/fazibear/colorize/blob/master/lib/colorize/class_methods.rb#L61
160
- ci = Trent.new(:green)
160
+ ci = Trent.new(:color => :green)
161
161
  ```
162
162
 
163
163
  ## Author
@@ -187,7 +187,7 @@ While working on Trent, make sure to lint it:
187
187
  $> bundle exec rake lint
188
188
  ```
189
189
 
190
- To test out Trent on your machine:
190
+ To run tests and build Trent on your machine:
191
191
 
192
192
  ```
193
193
  $> bundle exec rake build
@@ -9,10 +9,14 @@ require 'command/command'
9
9
 
10
10
  # Communicate with all of the Trent library with this class.
11
11
  class Trent
12
- def initialize(color = :blue)
13
- Log.fatal('Trent is designed to run on Travis-CI builds. Run it on Travis-CI.') unless ENV['HAS_JOSH_K_SEAL_OF_APPROVAL']
14
-
15
- @color = color
12
+ # Initialize Trent instance.
13
+ # color - Color of shell output you want Trent to use.
14
+ # local - Run Trent locally on your own machine instead of a CI server.
15
+ def initialize(params = {})
16
+ running_local = params.fetch(:local, false)
17
+ Log.fatal('Trent is designed to run on Travis-CI builds. Run it on Travis-CI.') unless ENV['HAS_JOSH_K_SEAL_OF_APPROVAL'] || running_local
18
+
19
+ @color = params.fetch(:color, :blue)
16
20
  @sh = Sh.new
17
21
 
18
22
  @paths = {}
metadata CHANGED
@@ -1,71 +1,135 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Levi Bostian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-07 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.8'
20
+ - - ">="
18
21
  - !ruby/object:Gem::Version
19
22
  version: 0.8.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - '='
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '0.8'
30
+ - - ">="
25
31
  - !ruby/object:Gem::Version
26
32
  version: 0.8.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: net-ssh
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - '='
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '5.0'
40
+ - - ">="
32
41
  - !ruby/object:Gem::Version
33
42
  version: 5.0.2
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
- - - '='
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '5.0'
50
+ - - ">="
39
51
  - !ruby/object:Gem::Version
40
52
  version: 5.0.2
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: rubocop
43
55
  requirement: !ruby/object:Gem::Requirement
44
56
  requirements:
45
- - - '='
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0.58'
60
+ - - ">="
46
61
  - !ruby/object:Gem::Version
47
62
  version: 0.58.2
48
63
  type: :development
49
64
  prerelease: false
50
65
  version_requirements: !ruby/object:Gem::Requirement
51
66
  requirements:
52
- - - '='
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.58'
70
+ - - ">="
53
71
  - !ruby/object:Gem::Version
54
72
  version: 0.58.2
55
73
  - !ruby/object:Gem::Dependency
56
74
  name: rake
57
75
  requirement: !ruby/object:Gem::Requirement
58
76
  requirements:
59
- - - '='
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '12.3'
80
+ - - ">="
60
81
  - !ruby/object:Gem::Version
61
82
  version: 12.3.1
62
83
  type: :development
63
84
  prerelease: false
64
85
  version_requirements: !ruby/object:Gem::Requirement
65
86
  requirements:
66
- - - '='
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '12.3'
90
+ - - ">="
67
91
  - !ruby/object:Gem::Version
68
92
  version: 12.3.1
93
+ - !ruby/object:Gem::Dependency
94
+ name: rspec
95
+ requirement: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - "~>"
98
+ - !ruby/object:Gem::Version
99
+ version: '3.8'
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 3.8.0
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '3.8'
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 3.8.0
113
+ - !ruby/object:Gem::Dependency
114
+ name: rspec_junit_formatter
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: '0.4'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 0.4.1
123
+ type: :development
124
+ prerelease: false
125
+ version_requirements: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '0.4'
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: 0.4.1
69
133
  description: "I have been using Travis-CI for a few years to build, test, and deploy
70
134
  my apps. Bash is great, but using a higher level language for interacting with Travis
71
135
  and the build machine would be very beneficial. \n\n Trent is a convenient ruby