brief 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: 924a794819e31fb5d5a771fcfc1d43a61f9d6d2b
4
- data.tar.gz: 792080c4446263eeba5d2344b171e969f93c86f8
3
+ metadata.gz: 18e0fdf17448c78cbab4c8f7fa5145888ecf4ad3
4
+ data.tar.gz: b2d595ee8bc3bb89d1954460b26a03076a9a3576
5
5
  SHA512:
6
- metadata.gz: b33ffefd5730676f58566c66819d022c10df5d5282f164cb0db0a50d6a1465727b1d0061320c4db68c96cd8fd441f40615c62d951b15b7b0702eeced3b936f6e
7
- data.tar.gz: 62342839b618a02b7d720c3151e19e587168dbd9602c5dda6610d34fbbfed0852a1b51e0799a8a466f0f4471e50d6b7e1679d5bda597405f783231f0458f3f1d
6
+ metadata.gz: 12e65937b0d7494b7fb75c05ddc66c8c11deac4bc31b3ad9b91e08a891c8d540c607ab60e34e1b12fcc4937396d13576a432f792691d0fcd877e032caf7a2358
7
+ data.tar.gz: 7fd9bc54ace58c9f163e9f70ea69e00d2a9e91ca7d7c6a24f55e38fd2a897a587c3c18a8885f52bf49c144dce7b57808136155441e751b9aaf2bf1709ff81147
data/brief.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "brief"
7
- spec.version = '0.0.3'
7
+ spec.version = '0.0.4'
8
8
  spec.authors = ["Jonathan Soeder"]
9
9
  spec.email = ["jonathan.soeder@gmail.com"]
10
10
  spec.description = %q{Brief is a utility to make writing more productive for software architects. It allows you write to places like Github Wiki, The Github Issues API all from the command line and a single file.}
@@ -18,9 +18,10 @@ command :write do |c|
18
18
 
19
19
  if content == publisher.sample
20
20
  say "Ignoring editor input, same as sample"
21
+ else
22
+ document = Brief::Document.new(content)
23
+ document.publish(publisher)
21
24
  end
22
-
23
- binding.pry
24
25
  end
25
26
  end
26
27
 
data/lib/brief/parser.rb CHANGED
@@ -52,7 +52,7 @@ module Brief
52
52
  min = heading_line.number + 1
53
53
  max = next_sibling_of(heading_line).try(:number).try(:-, 1) || last_line_number
54
54
 
55
- parsed_lines.select {|p| p.number.between?(min,max) }.map(&:raw).map(&:strip).join("")
55
+ parsed_lines.select {|p| p.number.between?(min,max) }.map(&:raw).join()
56
56
  end
57
57
 
58
58
  def lines_between_boundaries *bounds
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brief
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
  - Jonathan Soeder