dev_environment 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 4e91c75d058af20857fb58baefa7c4303bb32347
4
- data.tar.gz: 418b1103e7a3acb85851650836ab72ff3b7573b7
3
+ metadata.gz: 4826127a83d56ff55f77b0a3384d794aa42ff3f4
4
+ data.tar.gz: 7ca8c093663ebe1f60147d5c5419b0cc766230a8
5
5
  SHA512:
6
- metadata.gz: 8e27bb5c555992ff4f25f77f46b3a8bf9a5be1f3f199b966312c8c0bc825ea2aa9a4902797ae41a3cd3d41d456af88ba378df00c0248e3fe8204f2cfd1b25a63
7
- data.tar.gz: 9f172a2b4f9c6a1c0587ac6e9e37875180e627e36e461a6a67e3263819e40f37cb074c8f019048cc0868f643e7ae64e89e93772e8db25864013438ebf6eb8e54
6
+ metadata.gz: 971bf21c0c4fef4017e5b54d49d1ddd40946cc750b7d3042f47ccb9f6d8b2f2c42f84518c2946a015b7d1122c34083791301ef5648cf9c429c795b32a268121e
7
+ data.tar.gz: 9a23c832ae7069bc2acedd81d7017eb7d83ea41256b39b351f11d651de9e9169578fe5ed161d3bc09b48757176f35a39632323efa3d38505358164d6edaa01cf
data/README.md CHANGED
@@ -1 +1,3 @@
1
- # dev_environment.gem
1
+ # dev_environment <img src="https://badge.fury.io/rb/dev_environment.png" alt="Gem Version" />
2
+
3
+ A ruby gem to aid in the setup of a development environment
data/lib/environment.rb CHANGED
@@ -18,4 +18,9 @@ class Environment < Hash
18
18
  machine = machine.split('.')[0] if machine.include?('.')
19
19
  return machine.strip
20
20
  end
21
+
22
+ def self.user
23
+ return ENV['USER'] if !ENV['USER'].nil? #on Unix
24
+ ENV['USERNAME']
25
+ end
21
26
  end
@@ -9,4 +9,8 @@ describe Environment do
9
9
  it "should have a valid machine name" do
10
10
  expect(Environment.machine.length).to be > 0
11
11
  end
12
+
13
+ it "should have a valid user name" do
14
+ expect(Environment.user.length).to be > 0
15
+ end
12
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_environment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-08 00:00:00.000000000 Z
11
+ date: 2015-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: dev_commands
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rspec
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +52,20 @@ dependencies:
38
52
  - - '>='
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: dev_commands
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  description: gem for setting up and managing a development environment
42
70
  email: lou.parslow@gmail.com
43
71
  executables: []