dohutil 0.2.17 → 0.2.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dohutil/app/name.rb +12 -0
  3. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37e994ff384709bf728c68d759d19ffc0c3250d4
4
- data.tar.gz: 6ec5930a02e2c168848ddd7310cc376b3ba0982c
3
+ metadata.gz: de3784972811034de9468d7036f30c8e12f980ed
4
+ data.tar.gz: 52004c336ef714c0c586d2a7ff91e1dc464d8641
5
5
  SHA512:
6
- metadata.gz: 7c7b6a11d000e0c226a18445903d27413fa036ad7772f8067fde231fcb2d3f578da0d398a0a3d275479a842f1b6d064541d78a2022d9ecb9200ee085ebacdea6
7
- data.tar.gz: fd962ea71ece84bbdee8e6b55a1d1faab92df966e3b3fd6769a9ca57007fd9a4e27db51308fb55566ea18c6f4fd282b29635624bcba972db625c42d41317645b
6
+ metadata.gz: aac229b59d4a9c4063854abd163a9ff4977de228e1da1609fe6382f85a1c216e3ac39e9666619974eed860bcf308c6e9f04043ba8864da778e5054bb2f3aff7c
7
+ data.tar.gz: 49c54d560c65bcf771b2f8a8bda09be75b7cd68bad3003c8e3255b7b5c67498e616133c10c64c9114a2edd26216b7d50d59f94e81affeba4656f129c5786490e
@@ -0,0 +1,12 @@
1
+ module DohApp
2
+ extend self
3
+
4
+ def name
5
+ @name ||= File.basename($PROGRAM_NAME, '.rb')
6
+ end
7
+
8
+ def name=(appname)
9
+ @name = appname
10
+ end
11
+
12
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dohutil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.17
4
+ version: 0.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Makani Mason
@@ -64,6 +64,7 @@ files:
64
64
  - lib/dohutil/app/cli.rb
65
65
  - lib/dohutil/app/init_from_prog.rb
66
66
  - lib/dohutil/app/init_from_pwd.rb
67
+ - lib/dohutil/app/name.rb
67
68
  - lib/dohutil/app/origin.rb
68
69
  - lib/dohutil/app/util.rb
69
70
  - lib/dohutil/array_to_hash.rb