noir 0.1.3 → 0.1.4
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/lib/noir/command/new.rb +2 -0
- data/lib/noir/command/new/hgignore.rb +13 -0
- data/lib/noir/command/new/hgignore/tex.rb +21 -0
- data/lib/noir/command/new/hgignore/vim.rb +15 -0
- data/lib/noir/command/new/makefile/tex.rb +10 -5
- data/lib/noir/version.rb +1 -1
- data/spec/noir/command/new/hgignore/tex_spec.rb +14 -0
- data/spec/noir/command/new/hgignore/vim_spec.rb +15 -0
- data/spec/noir/command/new/hgignore_spec.rb +10 -0
- metadata +12 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8995959adf4e36125c76b32568e6d6219a5d9e66
|
4
|
+
data.tar.gz: b5bcaad3754cdb1135cc1f8822ec529a801685cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a17b254027bb5228a9d0349dc7854dce29fb07f6967c62e179f227b005349415eeea74a6a785e286a49406e775d4a9bfa6c7c5e248abbb104feff943a0e69529
|
7
|
+
data.tar.gz: e265c5fc9db8c6bd4c4241c4dbec68e566f4325a70fefb9d97d415c034a593ea5c6cdd0072f62548d681eba5bceaa4b1ae0b74c6abf933d5577397ab20ea7a7b
|
data/lib/noir/command/new.rb
CHANGED
@@ -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
|
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
|
24
|
+
all: $(TARGET).pdf
|
21
25
|
|
22
|
-
open
|
26
|
+
open: $(TARGET).pdf
|
23
27
|
open $(TARGET).pdf
|
24
28
|
|
25
|
-
|
26
|
-
|
29
|
+
remake:
|
30
|
+
make clean
|
31
|
+
make all
|
27
32
|
)
|
28
33
|
|
29
34
|
def self.execute *args
|
data/lib/noir/version.rb
CHANGED
@@ -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
|
+
|
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.
|
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-
|
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.
|
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
|