noir 0.1.5 → 0.1.6
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/.travis.yml +9 -0
- data/lib/noir/command/new/gitignore/tex.rb +1 -0
- data/lib/noir/command/new/hgignore.rb +1 -0
- data/lib/noir/command/new/hgignore/agda.rb +17 -0
- data/lib/noir/command/new/hgignore/tex.rb +1 -0
- data/lib/noir/command/new/makefile/tex.rb +1 -1
- data/lib/noir/version.rb +1 -1
- data/spec/noir/command/new/gitignore/tex_spec.rb +1 -1
- data/spec/noir/command/new/gitignore/vim_spec.rb +1 -1
- data/spec/noir/command/new/hgignore/agda_spec.rb +15 -0
- data/spec/noir/command/new/hgignore/tex_spec.rb +1 -1
- data/spec/noir/command/new/hgignore/vim_spec.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f042636641282955a738c7e58147f0376594aafb
|
4
|
+
data.tar.gz: e6d854008154865700b3601c29894d02f47ab471
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da65e20c426057d8903654b8feaf534d8d21f7527382ff93f2b2b6b1282ebcd80a27d89136c1822e9da14c0f11d1bbff92e6bf5367bbc90c0949bdc9df49b5f0
|
7
|
+
data.tar.gz: ee01b757c552f30a3597053e0cd205464044569189b8fbf90d5d091f50edc9a92c10253fcbe04bc0b1fdd74ee73d8d225a3911572c3d6bc0ed27845a8341bf29
|
data/.travis.yml
CHANGED
@@ -1 +1,10 @@
|
|
1
1
|
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.1.1
|
4
|
+
- 2.0.0
|
5
|
+
- 1.9.3
|
6
|
+
- 1.9.2
|
7
|
+
notifications:
|
8
|
+
email: false
|
9
|
+
slack:
|
10
|
+
secure: dSwRumGlIAdGDAaH/fzh/KsQhRqPBcNpbGYrMbAzacFMm8nGyLCShxR3EP/ZxkBp14ZsJ8ys4F5DMVlri7EbGNgBf1nOKAtzme6lV8oqrUxW2QULgvrP4W/+xTg1ULX758qF5NgwqErfS4Y1etofMbOuGriJ6kIxFWRjidmFPYo=
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class Noir::Command::New::HgIgnore::Agda < Noir::Base::TerminalCommand
|
2
|
+
@description = 'Create new .hgignore for Agda'
|
3
|
+
|
4
|
+
HgIgnoreText = %q(
|
5
|
+
syntax: glob
|
6
|
+
|
7
|
+
*.swp
|
8
|
+
|
9
|
+
*.agdai
|
10
|
+
*.*~
|
11
|
+
)
|
12
|
+
|
13
|
+
def self.execute *args
|
14
|
+
Noir::Command::New::HgIgnore.createHgIgnore HgIgnoreText
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
@@ -19,7 +19,7 @@ $(TARGET).dvi : $(wildcard **/*.tex) $(TARGET).tex
|
|
19
19
|
.PHONY : clean all open remake
|
20
20
|
|
21
21
|
clean:
|
22
|
-
rm -f *.dvi *.aux *.log *.pdf *.ps *.gz *.bbl *.blg *.toc *~ *.core
|
22
|
+
rm -f *.dvi *.aux *.log *.pdf *.ps *.gz *.bbl *.blg *.toc *~ *.core *.cpt
|
23
23
|
|
24
24
|
all: $(TARGET).pdf
|
25
25
|
|
data/lib/noir/version.rb
CHANGED
@@ -8,7 +8,7 @@ describe 'Noir::Command::New::GitIgnore::Tex' do
|
|
8
8
|
|
9
9
|
it 'is create .gitignore by Noir::Command::New.createFile' do
|
10
10
|
allow(Noir::Command::New).to receive(:createFile)
|
11
|
-
expect(Noir::Command::New).to receive(:createFile).with('.gitignore',
|
11
|
+
expect(Noir::Command::New).to receive(:createFile).with('.gitignore', /dvi/)
|
12
12
|
Noir::Command::New::GitIgnore::Tex.execute
|
13
13
|
end
|
14
14
|
end
|
@@ -8,7 +8,7 @@ describe 'Noir::Command::New::GitIgnore::Vim' do
|
|
8
8
|
|
9
9
|
it 'is create .gitignore by Noir::Command::New.createFile' do
|
10
10
|
allow(Noir::Command::New).to receive(:createFile)
|
11
|
-
expect(Noir::Command::New).to receive(:createFile).with('.gitignore',
|
11
|
+
expect(Noir::Command::New).to receive(:createFile).with('.gitignore', /swp/)
|
12
12
|
Noir::Command::New::GitIgnore::Vim.execute
|
13
13
|
end
|
14
14
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'noir'
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe 'Noir::Command::New::HgIgnore::Agda' do
|
5
|
+
it 'is TerminalCommand' do
|
6
|
+
expect(Noir::Command::New::HgIgnore::Agda.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', /agdai/)
|
12
|
+
Noir::Command::New::HgIgnore::Agda.execute
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
@@ -8,7 +8,7 @@ describe 'Noir::Command::New::HgIgnore::Tex' do
|
|
8
8
|
|
9
9
|
it 'is create .hgignore by Noir::Command::New.createFile' do
|
10
10
|
allow(Noir::Command::New).to receive(:createFile)
|
11
|
-
expect(Noir::Command::New).to receive(:createFile).with('.hgignore',
|
11
|
+
expect(Noir::Command::New).to receive(:createFile).with('.hgignore', /dvi/)
|
12
12
|
Noir::Command::New::HgIgnore::Tex.execute
|
13
13
|
end
|
14
14
|
end
|
@@ -8,7 +8,7 @@ describe 'Noir::Command::New::HgIgnore::Vim' do
|
|
8
8
|
|
9
9
|
it 'is create .hgignore by Noir::Command::New.createFile' do
|
10
10
|
allow(Noir::Command::New).to receive(:createFile)
|
11
|
-
expect(Noir::Command::New).to receive(:createFile).with('.hgignore',
|
11
|
+
expect(Noir::Command::New).to receive(:createFile).with('.hgignore', /swp/)
|
12
12
|
Noir::Command::New::HgIgnore::Vim.execute
|
13
13
|
end
|
14
14
|
end
|
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.6
|
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-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- lib/noir/command/new/gitignore/tex.rb
|
94
94
|
- lib/noir/command/new/gitignore/vim.rb
|
95
95
|
- lib/noir/command/new/hgignore.rb
|
96
|
+
- lib/noir/command/new/hgignore/agda.rb
|
96
97
|
- lib/noir/command/new/hgignore/tex.rb
|
97
98
|
- lib/noir/command/new/hgignore/vim.rb
|
98
99
|
- lib/noir/command/new/makefile.rb
|
@@ -121,6 +122,7 @@ files:
|
|
121
122
|
- spec/noir/command/new/gitignore/tex_spec.rb
|
122
123
|
- spec/noir/command/new/gitignore/vim_spec.rb
|
123
124
|
- spec/noir/command/new/gitignore_spec.rb
|
125
|
+
- spec/noir/command/new/hgignore/agda_spec.rb
|
124
126
|
- spec/noir/command/new/hgignore/tex_spec.rb
|
125
127
|
- spec/noir/command/new/hgignore/vim_spec.rb
|
126
128
|
- spec/noir/command/new/hgignore_spec.rb
|
@@ -156,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
158
|
version: '0'
|
157
159
|
requirements: []
|
158
160
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.4.
|
161
|
+
rubygems_version: 2.4.2
|
160
162
|
signing_key:
|
161
163
|
specification_version: 4
|
162
164
|
summary: Utilities for atton.
|
@@ -180,6 +182,7 @@ test_files:
|
|
180
182
|
- spec/noir/command/new/gitignore/tex_spec.rb
|
181
183
|
- spec/noir/command/new/gitignore/vim_spec.rb
|
182
184
|
- spec/noir/command/new/gitignore_spec.rb
|
185
|
+
- spec/noir/command/new/hgignore/agda_spec.rb
|
183
186
|
- spec/noir/command/new/hgignore/tex_spec.rb
|
184
187
|
- spec/noir/command/new/hgignore/vim_spec.rb
|
185
188
|
- spec/noir/command/new/hgignore_spec.rb
|
@@ -195,4 +198,3 @@ test_files:
|
|
195
198
|
- spec/noir/noir_spec.rb
|
196
199
|
- spec/noir/options_spec.rb
|
197
200
|
- spec/spec_helper.rb
|
198
|
-
has_rdoc:
|