noir 0.1.3 → 0.1.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: 6043da81f5715ad88e9c5ea12a3bff8beac1cfe2
4
- data.tar.gz: d1f29160842c2ba57f9d3a1ed95399c28ff66650
3
+ metadata.gz: 8995959adf4e36125c76b32568e6d6219a5d9e66
4
+ data.tar.gz: b5bcaad3754cdb1135cc1f8822ec529a801685cf
5
5
  SHA512:
6
- metadata.gz: 715b1d0a0f932b853d4aa6525b7253641756f09a3ad29df5c13f961ca0f461967579a898f94c6b1da7b57510626f5f3f71ea61aedbce662bae5e73f27351c308
7
- data.tar.gz: 2a58e7338a9009a3d1a2041a2b3238d8863354465cc00f0d25ecd19241acd30a2e0df9f55e50f05779a8cdbf1cc12d72daa2f15a89a7335361c190cb6675f4a3
6
+ metadata.gz: a17b254027bb5228a9d0349dc7854dce29fb07f6967c62e179f227b005349415eeea74a6a785e286a49406e775d4a9bfa6c7c5e248abbb104feff943a0e69529
7
+ data.tar.gz: e265c5fc9db8c6bd4c4241c4dbec68e566f4325a70fefb9d97d415c034a593ea5c6cdd0072f62548d681eba5bceaa4b1ae0b74c6abf933d5577397ab20ea7a7b
@@ -11,4 +11,6 @@ end
11
11
 
12
12
  require 'noir/command/new/note'
13
13
  require 'noir/command/new/gitignore'
14
+ require 'noir/command/new/hgignore'
15
+ require 'noir/command/new/hgignore.rb'
14
16
  require 'noir/command/new/makefile'
@@ -0,0 +1,13 @@
1
+ class Noir::Command::New::HgIgnore < Noir::Base::Command
2
+ @description = 'Create new .hgignore'
3
+
4
+ HgIgnoreName = '.hgignore'
5
+
6
+ def self.createHgIgnore text
7
+ Noir::Command::New.createFile(HgIgnoreName, text)
8
+ end
9
+
10
+ end
11
+
12
+ require 'noir/command/new/hgignore/tex'
13
+ require 'noir/command/new/hgignore/vim'
@@ -0,0 +1,21 @@
1
+ class Noir::Command::New::HgIgnore::Tex < Noir::Base::TerminalCommand
2
+ @description = 'Create new .hgignore for TeX'
3
+
4
+ HgIgnoreText = %q(
5
+ syntax: glob
6
+
7
+ *.swp
8
+
9
+ *.log
10
+ *.aux
11
+ *.dvi
12
+ *.pdf
13
+ *.toc
14
+ )
15
+
16
+ def self.execute *args
17
+ Noir::Command::New::HgIgnore.createHgIgnore HgIgnoreText
18
+ end
19
+
20
+ end
21
+
@@ -0,0 +1,15 @@
1
+ class Noir::Command::New::HgIgnore::Vim < Noir::Base::TerminalCommand
2
+ @description = 'Create new .hgignore for vim'
3
+
4
+ HgIgnoreText = %q(
5
+ syntax: glob
6
+
7
+ *.swp
8
+ )
9
+
10
+ def self.execute *args
11
+ Noir::Command::New::HgIgnore.createHgIgnore HgIgnoreText
12
+ end
13
+
14
+ end
15
+
@@ -14,16 +14,21 @@ $(TARGET).dvi : $(wildcard **/*.tex) $(TARGET).tex
14
14
  platex $(TARGET).tex
15
15
  platex $(TARGET).tex
16
16
 
17
+
17
18
  # commands
18
- .PHONY : all open clean
19
+ .PHONY : clean all open remake
20
+
21
+ clean:
22
+ rm -f *.dvi *.aux *.log *.pdf *.ps *.gz *.bbl *.blg *.toc *~ *.core
19
23
 
20
- all : $(TARGET).pdf
24
+ all: $(TARGET).pdf
21
25
 
22
- open : $(TARGET).pdf
26
+ open: $(TARGET).pdf
23
27
  open $(TARGET).pdf
24
28
 
25
- clean:
26
- rm -f *.dvi *.aux *.log *.pdf *.ps *.gz *.bbl *.blg *.toc *~ *.core
29
+ remake:
30
+ make clean
31
+ make all
27
32
  )
28
33
 
29
34
  def self.execute *args
data/lib/noir/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Noir
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -0,0 +1,14 @@
1
+ require 'noir'
2
+ require 'spec_helper'
3
+
4
+ describe 'Noir::Command::New::HgIgnore::Tex' do
5
+ it 'is TerminalCommand' do
6
+ expect(Noir::Command::New::HgIgnore::Tex.superclass).to eq(Noir::Base::TerminalCommand)
7
+ end
8
+
9
+ it 'is create .hgignore by Noir::Command::New.createFile' do
10
+ allow(Noir::Command::New).to receive(:createFile)
11
+ expect(Noir::Command::New).to receive(:createFile).with('.hgignore', anything)
12
+ Noir::Command::New::HgIgnore::Tex.execute
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ require 'noir'
2
+ require 'spec_helper'
3
+
4
+ describe 'Noir::Command::New::HgIgnore::Vim' do
5
+ it 'is TerminalCommand' do
6
+ expect(Noir::Command::New::HgIgnore::Vim.superclass).to eq(Noir::Base::TerminalCommand)
7
+ end
8
+
9
+ it 'is create .hgignore by Noir::Command::New.createFile' do
10
+ allow(Noir::Command::New).to receive(:createFile)
11
+ expect(Noir::Command::New).to receive(:createFile).with('.hgignore', anything)
12
+ Noir::Command::New::HgIgnore::Vim.execute
13
+ end
14
+ end
15
+
@@ -0,0 +1,10 @@
1
+ require 'noir'
2
+ require 'spec_helper'
3
+
4
+ describe 'Noir::Command::New::HgIgnore' do
5
+ it 'is Command' do
6
+ expect(Noir::Command::New::HgIgnore.superclass).to eq(Noir::Base::Command)
7
+ end
8
+ end
9
+
10
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - atton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-13 00:00:00.000000000 Z
11
+ date: 2014-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -89,6 +89,9 @@ files:
89
89
  - lib/noir/command/new/gitignore.rb
90
90
  - lib/noir/command/new/gitignore/tex.rb
91
91
  - lib/noir/command/new/gitignore/vim.rb
92
+ - lib/noir/command/new/hgignore.rb
93
+ - lib/noir/command/new/hgignore/tex.rb
94
+ - lib/noir/command/new/hgignore/vim.rb
92
95
  - lib/noir/command/new/makefile.rb
93
96
  - lib/noir/command/new/makefile/tex.rb
94
97
  - lib/noir/command/new/note.rb
@@ -113,6 +116,9 @@ files:
113
116
  - spec/noir/command/new/gitignore/tex_spec.rb
114
117
  - spec/noir/command/new/gitignore/vim_spec.rb
115
118
  - spec/noir/command/new/gitignore_spec.rb
119
+ - spec/noir/command/new/hgignore/tex_spec.rb
120
+ - spec/noir/command/new/hgignore/vim_spec.rb
121
+ - spec/noir/command/new/hgignore_spec.rb
116
122
  - spec/noir/command/new/makefile/tex_spec.rb
117
123
  - spec/noir/command/new/makefile_spec.rb
118
124
  - spec/noir/command/new/note_spec.rb
@@ -145,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
151
  version: '0'
146
152
  requirements: []
147
153
  rubyforge_project:
148
- rubygems_version: 2.2.2
154
+ rubygems_version: 2.3.0
149
155
  signing_key:
150
156
  specification_version: 4
151
157
  summary: Utilities for atton.
@@ -167,6 +173,9 @@ test_files:
167
173
  - spec/noir/command/new/gitignore/tex_spec.rb
168
174
  - spec/noir/command/new/gitignore/vim_spec.rb
169
175
  - spec/noir/command/new/gitignore_spec.rb
176
+ - spec/noir/command/new/hgignore/tex_spec.rb
177
+ - spec/noir/command/new/hgignore/vim_spec.rb
178
+ - spec/noir/command/new/hgignore_spec.rb
170
179
  - spec/noir/command/new/makefile/tex_spec.rb
171
180
  - spec/noir/command/new/makefile_spec.rb
172
181
  - spec/noir/command/new/note_spec.rb