crystalline 1.4.0 → 1.5.0

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjEwYTRhYmZlMzljMWExZThmYWQzNDhiNzk5ODJiYTQzOTQyMTRkNA==
4
+ YmRmZjY3MzEzNDNlOWRhZjk0YmJkZGUxYWM0OGJjOGJhYjNiYzU3Yw==
5
5
  data.tar.gz: !binary |-
6
- ZjA5M2NhZjQ2MTIyZWRmYzcyYjlkNzI4OThkMmM1M2M0ZDc1YjcxZQ==
6
+ YjNjNzA0MWJiOWE2YzVkNzMzZGNkNjk0YTA1Zjk0MThmN2I3NTE4ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGU0ODljZWYwOTM3MjQ0Yzg2MDA0NTc0MWM5NjA0YmI4NmQ5MDZkMDM0ZjIz
10
- ZWQyZmJmZGM3NDRhZGIyY2I2ZmQwMjk5MzUzZjVlYzA5ZjA2MjI4NGZmNjc1
11
- YTgwMGNmMzgwZDVjZGE2ZTY1ODRiYzM2N2RkMzBiYmE3ZDUwZGY=
9
+ ZDVmMWQ2ZWFkZjIwZGE2ZjU2M2I1NjQwYmZiNTBjNjg2NDQ3NTcxZTI5NjVk
10
+ MDg0MTIzMmE4OGNiYWI2M2NhZGI2NzNlNTNiYWRiMjJkMzU2MDZlYWQ5OTg4
11
+ Y2Y1MmU3MzcyOGU3NDE3ODRlNTljMTdiYjQ5MmMxMjkwMTRjMzk=
12
12
  data.tar.gz: !binary |-
13
- ODI5YTI0NzRhYjAxOTA2MDhjOGQwNDdmN2Y0YjY5ZDQ3NmMyYTQ2OTIyNGQ1
14
- OWFjMDRiOTUxZmY5ZjgzOWUzNDFmMjI5MjhiOGE4MGRiNDFmODFiNmZkYjM2
15
- ZDczOWEzMzhjNTI0N2I0ZjlkZjFmNTI1YjZmOTY2MjlhMjRkNTY=
13
+ MGNlZTRhNGQ0NWQ2NTUxZDIwNGFhNGZjZDdmYThiZTFkNzBiODM3MzU0ZWJi
14
+ ZDIyYmUwY2U4YTQwZWQxNmMxMmM0ZjJmZmY4NDMwNWUwZTBlN2QyODg5ODUy
15
+ MDFmOGMwOTlhNzVlNTc3NzUwYmQzZGIzYzlkZDA2MjkxNWVjNzA=
@@ -19,5 +19,6 @@ generator_command Crystalline::Generators::Readme
19
19
  generator_command Crystalline::Generators::SpecHelper
20
20
  generator_command Crystalline::Generators::Rakefile
21
21
  generator_command Crystalline::Generators::Travis
22
+ generator_command Crystalline::Generators::Rubocop
22
23
 
23
24
  exit run(ARGV)
@@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
20
20
  gem.add_dependency "flog"
21
21
  gem.add_dependency "flay"
22
22
  gem.add_dependency 'reek'
23
+ gem.add_dependency 'rubocop'
23
24
 
24
25
  gem.add_dependency "pry"
25
26
 
@@ -6,3 +6,4 @@ require 'crystalline/generators/readme'
6
6
  require 'crystalline/generators/rakefile'
7
7
  require 'crystalline/generators/travis'
8
8
  require 'crystalline/generators/spec_helper'
9
+ require 'crystalline/generators/rubocop'
@@ -0,0 +1,17 @@
1
+ module Crystalline
2
+ module Generators
3
+ class Rubocop < Generator
4
+ def self.file_name
5
+ 'rubocop.yml'
6
+ end
7
+
8
+ def self.command_name
9
+ :rubocop
10
+ end
11
+
12
+ def self.hidden?
13
+ true
14
+ end
15
+ end
16
+ end
17
+ end
@@ -2,6 +2,7 @@ require 'crystalline/rake/flay'
2
2
  require 'crystalline/rake/flog'
3
3
  require 'crystalline/rake/mutant'
4
4
  require 'crystalline/rake/spec'
5
+ require 'crystalline/rake/rubocop'
5
6
 
6
7
  require 'pry'
7
8
 
@@ -0,0 +1,4 @@
1
+ desc 'run rubocop'
2
+ task :rubocop do
3
+ system 'rubocop --format emacs'
4
+ end
@@ -0,0 +1,39 @@
1
+ LineLength:
2
+ Description: 'Limit lines to 120 characters.'
3
+ Max: 120
4
+
5
+ MethodLength:
6
+ Description: 'Avoid methods longer than 25 lines of code.'
7
+ CountComments: false # count full line comments?
8
+ Max: 25
9
+
10
+ BlockNesting:
11
+ Description: 'Avoid more than `Max` levels of nesting.'
12
+ Max: 5
13
+
14
+ # Align the elements of a hash literal if they span more than one line.
15
+ AlignHash:
16
+ # Alignment of entries using hash rocket as separator. Valid values are:
17
+ #
18
+ # key - left alignment of keys
19
+ # 'a' => 2
20
+ # 'bb' => 3
21
+ # separator - alignment of hash rockets, keys are right aligned
22
+ # 'a' => 2
23
+ # 'bb' => 3
24
+ # table - left alignment of keys, hash rockets, and values
25
+ # 'a' => 2
26
+ # 'bb' => 3
27
+ EnforcedHashRocketStyle: table
28
+ # Alignment of entries using colon as separator. Valid values are:
29
+ #
30
+ # key - left alignment of keys
31
+ # a: 0
32
+ # bb: 1
33
+ # separator - alignment of colons, keys are right aligned
34
+ # a: 0
35
+ # bb: 1
36
+ # table - left alignment of keys and values
37
+ # a: 0
38
+ # bb: 1
39
+ EnforcedColonStyle: separator
@@ -1,3 +1,3 @@
1
1
  module Crystalline
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crystalline
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Fredette
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-13 00:00:00.000000000 Z
11
+ date: 2013-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -102,6 +102,22 @@ dependencies:
102
102
  - !ruby/object:Gem::Version
103
103
  version: !binary |-
104
104
  MA==
105
+ - !ruby/object:Gem::Dependency
106
+ name: rubocop
107
+ type: :runtime
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: !binary |-
113
+ MA==
114
+ prerelease: false
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: !binary |-
120
+ MA==
105
121
  - !ruby/object:Gem::Dependency
106
122
  name: pry
107
123
  type: :runtime
@@ -193,6 +209,7 @@ files:
193
209
  - lib/crystalline/generators/generator.rb
194
210
  - lib/crystalline/generators/rakefile.rb
195
211
  - lib/crystalline/generators/readme.rb
212
+ - lib/crystalline/generators/rubocop.rb
196
213
  - lib/crystalline/generators/spec_helper.rb
197
214
  - lib/crystalline/generators/travis.rb
198
215
  - lib/crystalline/gli_helpers.rb
@@ -201,6 +218,7 @@ files:
201
218
  - lib/crystalline/rake/flog.rb
202
219
  - lib/crystalline/rake/mutant.rb
203
220
  - lib/crystalline/rake/reek.rb
221
+ - lib/crystalline/rake/rubocop.rb
204
222
  - lib/crystalline/rake/spec.rb
205
223
  - lib/crystalline/spec.rb
206
224
  - lib/crystalline/spec/macros.rb
@@ -208,6 +226,7 @@ files:
208
226
  - lib/crystalline/spec/rspec.rb
209
227
  - lib/crystalline/templates/README.md.erb
210
228
  - lib/crystalline/templates/Rakefile.erb
229
+ - lib/crystalline/templates/rubocop.yml.erb
211
230
  - lib/crystalline/templates/spec_helper.rb.erb
212
231
  - lib/crystalline/templates/travis.yml.erb
213
232
  - lib/crystalline/version.rb