giteaucrat 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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDljY2ZhYWJmNTMxNmJiYzJhN2UwMGIyYzU0YmExYTY1Njc4MmQ0Nw==
4
+ ODNkZDAzYzkzMmVmNjg3MmFhNjNkNWY1MWFjZjYxNmRiMjY1ODAwZA==
5
5
  data.tar.gz: !binary |-
6
- MDQyZWVlN2RlMjg2ZjU0OTFjZTI3ZDIwMDYwODY2ZThhMDFjMTlmYQ==
6
+ ZGVkODczNTJmZTg4MjM2MDcwNzk3YWZmMDQ0YTU4ZDllMjdjZGViZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MzU3MWI4YTkzMzE3MWYzYTY5NWFmNmEwMzhhYWIyZGYyMjBiNjYxYTU3ZDA5
10
- NDkxNDI4YWUyMzZiZTZiNGJkZDYyNzM3NjQyN2Y2MTU5N2NhODAxOGVkODYx
11
- ZDg2ZjM0Y2M2M2ZhMGEwNGE5NGFmNGM3YjA4Mjk1YzdlZjdjNDk=
9
+ Y2NlOTgwMWQ5MWQ3NTMzNmRmN2I4NzdkNjgxNWRlNzhiOTVhMWIzYmNkMzlk
10
+ MzM2NGQ3ZGM0MjhiZTg4ODM1ZGIyMWRlNDAxNGU3YjkyMTliOGJkYzcwMzAy
11
+ ZWRiODdjMjdhMGM2MTczNGQzNTJmNTI5MjEwNzZlODBiOTY1ZTQ=
12
12
  data.tar.gz: !binary |-
13
- M2U1OGU3NzkxYzY2YWRkMWE4NTdiOTJiZTkxMjQ2Y2IyODU1NTVhZjcxZDRj
14
- ZTI5ZjU2NmM0MTNlMDMyYzA1MjE4NjA3NGRmMWI0NGQ5OGIzMzdhMTMxMzQ2
15
- YjhhOGVhMjkzZmQ1NWI1YTUyMjRhZTc4YWU2ZWJjNGM0N2Q3ZDc=
13
+ YTgyMzNmNThlYTE5NjNmNGU1MmZkN2Q4ODc4YmJhMzU1OGJiOTE1MjMzMmRk
14
+ NWQ1OGMxY2I4NWRjZTU4NDdjZjMzOGVmNDlmMTYwNWI5MjNjOGI2Yzc4NDA1
15
+ MzgwMTAzNWYwYWEwOTczYWMzZmMyNzUwZDRkNzI1NDk0NGMwNGU=
@@ -0,0 +1,17 @@
1
+ # coding: utf-8
2
+
3
+ ################################################
4
+ # © Alexander Semyonov, 2013—2013, MIT License #
5
+ # Author: Alexander Semyonov <al@semyonov.us> #
6
+ ################################################
7
+
8
+ require 'giteaucrat/formatters/coffee_formatter'
9
+
10
+ module Giteaucrat
11
+ module Formatters
12
+ class ErlangFormatter < CoffeeFormatter
13
+ COMMENT_PARTS = %w(% % %)
14
+ COPYRIGHT_REGEXP = %r{(?<ruler>%+\n)(?<copyright>(%\s*[^\s/]+.*\s%\n)+)(%\s+%?\n(?<comment>(%\s*.*%?\n)+))?\k<ruler>\n+}
15
+ end
16
+ end
17
+ end
@@ -5,21 +5,13 @@
5
5
  # Author: Alexander Semyonov <al@semyonov.us> #
6
6
  ################################################
7
7
 
8
- require 'giteaucrat/formatters/ruby_formatter'
8
+ require 'giteaucrat/formatters/coffee_formatter'
9
9
 
10
10
  module Giteaucrat
11
11
  module Formatters
12
- class SassFormatter < RubyFormatter
12
+ class SassFormatter < CoffeeFormatter
13
13
  COMMENT_PARTS = %w(// // //)
14
14
  COPYRIGHT_REGEXP = %r{(?<ruler>//+\n)(?<copyright>(//\s*[^\s/]+.*\s//\n)+)(//\s+//?\n(?<comment>(//\s*.*//?\n)+))?\k<ruler>\n+}
15
-
16
- def include_encoding?
17
- false
18
- end
19
-
20
- def add_copyright!
21
- @contents = [format_copyright, contents].join("\n\n")
22
- end
23
15
  end
24
16
  end
25
17
  end
@@ -18,6 +18,7 @@ module Giteaucrat
18
18
  '.sass' => :SassFormatter,
19
19
  '.scss' => :SassFormatter,
20
20
  '.coffee' => :CoffeeFormatter,
21
+ '.erl' => :ErlangFormatter,
21
22
  }
22
23
 
23
24
  module_function
@@ -34,6 +35,7 @@ end
34
35
  require 'giteaucrat/formatters/formatter'
35
36
 
36
37
  require 'giteaucrat/formatters/coffee_formatter'
38
+ require 'giteaucrat/formatters/erlang_formatter'
37
39
  require 'giteaucrat/formatters/java_formatter'
38
40
  require 'giteaucrat/formatters/python_formatter'
39
41
  require 'giteaucrat/formatters/ruby_formatter'
@@ -6,5 +6,5 @@
6
6
  ################################################
7
7
 
8
8
  module Giteaucrat
9
- VERSION = '0.0.3'
9
+ VERSION = '0.0.4'
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: giteaucrat
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
  - Alexander Semyonov
@@ -90,6 +90,7 @@ files:
90
90
  - lib/giteaucrat/file.rb
91
91
  - lib/giteaucrat/formatters.rb
92
92
  - lib/giteaucrat/formatters/coffee_formatter.rb
93
+ - lib/giteaucrat/formatters/erlang_formatter.rb
93
94
  - lib/giteaucrat/formatters/formatter.rb
94
95
  - lib/giteaucrat/formatters/java_formatter.rb
95
96
  - lib/giteaucrat/formatters/python_formatter.rb