cosi-temp 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -3
- data/changelog.md +11 -0
- data/cosi-temp.gemspec +2 -2
- data/lib/cosi-temp/meetings-generator.rb +2 -13
- data/lib/cosi-temp/projects-generator.rb +1 -12
- data/lib/cosi-temp/temp-generator.rb +11 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 906d6169dce9ca65182d2aaac8f97988cbaf5484
|
4
|
+
data.tar.gz: b64e96db0c78404edc4b731d13378b4f727122f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae40813c41d5249264d16d057f0ab37a069c70cf34835eb2c3c37bed18fc9fd9993902c78f28cbe755186cbb469202097a70e143d76429bb361f772b696d23e6
|
7
|
+
data.tar.gz: 3478255f65a2c199a0417035dd81f857f6010be2d02c4077b3179ee6a03d11ce85539c26c156ffa15d2415a49e0e005b9455a44d16fabc193cb7e2b11704ca87
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
|
3
3
|
[](https://travis-ci.org/lannonbr/cosi-temp)
|
4
4
|
[](https://raw.githubusercontent.com/lannonbr/cosi-temp/master/LICENSE)
|
5
|
-
|
6
|
-
### Note: The project is does not have an initial release yet
|
5
|
+
[](https://rubygems.org/gems/cosi-temp)
|
7
6
|
|
8
7
|
cosi-temp is a simple CLI tool for the [cosi-lab](https://github.com/cosi-lab) that is in
|
9
8
|
development. It will allow easy creation of a blank [meeting minutes](http://cosi-lab.github.io/meeting-minutes)
|
@@ -15,7 +14,7 @@ Make sure you have Ruby installed
|
|
15
14
|
The gem can easily be installed by typing in `gem install cosi-temp`
|
16
15
|
|
17
16
|
## Usage
|
18
|
-
|
17
|
+
the basic commands include
|
19
18
|
|
20
19
|
- `cosi-temp meeting`: This will create a meeting minutes entry in the current directory with the current date used.
|
21
20
|
- `cosi-temp project -name "Foobar Release 1.4.0" -author "Benjamin Lannon"`: This will create a project updates post that has a header which is filled out using the -name and -author flags.
|
data/changelog.md
ADDED
data/cosi-temp.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'cosi-temp'
|
3
|
-
s.version = '1.0.
|
4
|
-
s.date = '
|
3
|
+
s.version = '1.0.1'
|
4
|
+
s.date = '2016-01-05'
|
5
5
|
s.summary = "Cosi Temp"
|
6
6
|
s.description = "A simple CLI tool to create a Project Update post or Meeting Minutes entry for the Clarkson Open Source Institute"
|
7
7
|
s.authors = ["Benjamin Lannon"]
|
@@ -3,25 +3,14 @@ require 'date'
|
|
3
3
|
class MeetingsGenerator < TempGenerator
|
4
4
|
def initialize(date)
|
5
5
|
super(date)
|
6
|
-
@filename = gen_date
|
7
6
|
@title = gen_title
|
7
|
+
@filename = gen_filename
|
8
8
|
@file_array = create_file
|
9
9
|
end
|
10
10
|
|
11
|
-
def to_file
|
12
|
-
if File.exist? @filename
|
13
|
-
puts "The file already exists. Quitting"
|
14
|
-
return
|
15
|
-
end
|
16
|
-
File.open(@filename, 'w') do |f|
|
17
|
-
@file_array.each { |line| f.write line }
|
18
|
-
end
|
19
|
-
puts "File written to #{@filename}"
|
20
|
-
end
|
21
|
-
|
22
11
|
private
|
23
12
|
|
24
|
-
def
|
13
|
+
def gen_filename
|
25
14
|
"#{@date.strftime('%Y-%m-%d')}-Meeting-Minutes.md"
|
26
15
|
end
|
27
16
|
|
@@ -4,22 +4,11 @@ class ProjectsGenerator < TempGenerator
|
|
4
4
|
def initialize(author, title, date)
|
5
5
|
super(date)
|
6
6
|
@title = title
|
7
|
-
@filename = gen_filename
|
8
7
|
@author = author
|
8
|
+
@filename = gen_filename
|
9
9
|
@file_array = create_file
|
10
10
|
end
|
11
11
|
|
12
|
-
def to_file
|
13
|
-
if File.exist? @filename
|
14
|
-
puts "The file already exists. Quitting"
|
15
|
-
return
|
16
|
-
end
|
17
|
-
File.open(@filename, 'w') do |f|
|
18
|
-
@file_array.each { |line| f.write line }
|
19
|
-
end
|
20
|
-
puts "File written to #{@filename}"
|
21
|
-
end
|
22
|
-
|
23
12
|
private
|
24
13
|
|
25
14
|
def gen_filename
|
@@ -4,4 +4,15 @@ class TempGenerator
|
|
4
4
|
def initialize(date)
|
5
5
|
@date = date
|
6
6
|
end
|
7
|
+
|
8
|
+
def to_file
|
9
|
+
if File.exist? @filename
|
10
|
+
puts "The file already exists. Quitting"
|
11
|
+
return
|
12
|
+
end
|
13
|
+
File.open(@filename, 'w') do |f|
|
14
|
+
@file_array.each { |line| f.write line }
|
15
|
+
end
|
16
|
+
puts "File written to #{@filename}"
|
17
|
+
end
|
7
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cosi-temp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Lannon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- README.md
|
70
70
|
- Rakefile
|
71
71
|
- bin/cosi-temp
|
72
|
+
- changelog.md
|
72
73
|
- cosi-temp.gemspec
|
73
74
|
- data/meetingstemp.md
|
74
75
|
- data/meetingstemp_filled.md
|
@@ -99,9 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
100
|
version: '0'
|
100
101
|
requirements: []
|
101
102
|
rubyforge_project:
|
102
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.5.1
|
103
104
|
signing_key:
|
104
105
|
specification_version: 4
|
105
106
|
summary: Cosi Temp
|
106
107
|
test_files: []
|
107
|
-
has_rdoc:
|