roger_themes 0.1.2 → 0.2.0

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: c557907ae7ff03c77d87796dee8b90bb8ceb61ae
4
- data.tar.gz: 05b2114889f32f02edc66b47c9233604a991eff2
3
+ metadata.gz: c0720077a8aff27cb17a0ba446632cb9272db907
4
+ data.tar.gz: a3609e21f3e0973ca72ae925a98884cec9a9b1e5
5
5
  SHA512:
6
- metadata.gz: d6b5873d6dd589818aafbe801437298c7ca86eedabbd168a1f3b0a7283694607f08fbf597f9c93bbd3038434ee507f67ec866cb71490da488e431b74edc48668
7
- data.tar.gz: ef451f5bb58427ee8a5380511a159a0481a7a7cf8445a20bfcbb0068ad669f8a8060a3c15527c29a63530737dd5befc4133d399852143db9062d199f704741d8
6
+ metadata.gz: 92da72d5e6d0b9c99842a554967fe7b9398ca5c1d80badfca19f615320a0d2ef447b5b031a5472e498e54ec4d27b27c4b05e9923829992d0afd02b7c0aa484da
7
+ data.tar.gz: a5f36d66d7c273ae191017d427e0d1798660717af3ec60fa116b02b1f013bc8d6e53463c712bcb85416850382e0e0f062466cf6bed9ef9ff839a6ff9b852a7ad
@@ -0,0 +1,47 @@
1
+ LineLength:
2
+ Description: 'Limit lines to 100 characters.'
3
+ Max: 100
4
+ Enabled: true
5
+
6
+ StringLiterals:
7
+ EnforcedStyle: double_quotes
8
+ Enabled: true
9
+
10
+ Style/DotPosition:
11
+ EnforcedStyle: trailing
12
+ Enabled: true
13
+
14
+ Metrics/MethodLength:
15
+ CountComments: false # count full line comments?
16
+ Max: 20
17
+
18
+ Metrics/AbcSize:
19
+ Max: 20
20
+
21
+ Style/ClassAndModuleChildren:
22
+ EnforcedStyle: compact
23
+ Enabled: false
24
+
25
+ # By default, the rails cops are not run. Override in project or home
26
+ # directory .rubocop.yml files, or by giving the -R/--rails option.
27
+ AllCops:
28
+ RunRailsCops: false
29
+
30
+ # Disabled cops
31
+ Metrics/ClassLength:
32
+ Enabled: false
33
+
34
+ Metrics/ModuleLength:
35
+ Enabled: false
36
+
37
+ Style/EachWithObject:
38
+ Enabled: false
39
+
40
+ Style/AccessorMethodName:
41
+ Enabled: false
42
+
43
+ Lint/AssignmentInCondition:
44
+ Enabled: false
45
+
46
+ Style/SingleLineBlockParams:
47
+ Enabled: false
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 Edwin van der Graaf
1
+ Copyright (c) 2015 Digitpaint (Edwin van der Graaf, Flurin Egger)
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -22,9 +22,9 @@ And then execute:
22
22
 
23
23
  ## Todo
24
24
 
25
- - [] Add tests
26
- - [] Complete documentation (especially on how themes work by default)
27
- - [] Add theme selector views for usage in table of content
25
+ - Add tests
26
+ - Complete documentation (especially on how themes work by default)
27
+ - Add theme selector views for usage in table of content
28
28
 
29
29
  ## Usage
30
30
 
@@ -1,5 +1,8 @@
1
1
  require "roger_themes/version"
2
2
 
3
+ require "fileutils"
4
+ include FileUtils
5
+
3
6
  module RogerThemes
4
7
  # Your code goes here...
5
8
  end
@@ -1,3 +1,3 @@
1
1
  module RogerThemes
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -1,18 +1,30 @@
1
+ require "roger/release"
2
+
1
3
  module RogerThemes
2
4
  class XcFinalizer < Roger::Release::Finalizers::Base
3
5
  attr_reader :release
4
6
 
7
+ # XC finalizer finalizes designzips.
8
+ #
9
+ # @param [Release] release
10
+ # @param [Hash] options Options hash
11
+ # @option options [String] :prefix ("html") The name to prefix the zipfile with (before version)
12
+ # @option options [String] :zip ("zip") The ZIP command to use
13
+ # @option options [String] :source_path ("themes/*") The paths to zip
14
+ # @option options [String] :target_path ("themes/zips") The path to the zips
5
15
  def call(release, options = {})
6
- dirs = Dir.glob((release.build_path + "themes/*").to_s)
7
-
8
16
  options = {
9
17
  :prefix => "html",
10
- :zip => "zip"
18
+ :zip => "zip",
19
+ :source_path => "themes/*",
20
+ :target_path => "themes/zips"
11
21
  }.update(options)
12
22
 
23
+ dirs = Dir.glob((release.build_path + options[:source_path]).to_s)
24
+
13
25
  releasename = [(options[:prefix] || "html"), release.scm.version].join("-")
14
26
 
15
- zipdir = release.build_path + "themes/zips"
27
+ zipdir = release.build_path + options[:target_path]
16
28
  FileUtils.mkdir_p(zipdir) unless zipdir.exist?
17
29
 
18
30
  dirs.each do |dir|
@@ -6,8 +6,8 @@ require "roger_themes/version"
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "roger_themes"
8
8
  spec.version = RogerThemes::VERSION
9
- spec.authors = ["Edwin van der Graaf"]
10
- spec.email = ["edwin@digitpaint.nl"]
9
+ spec.authors = ["Edwin van der Graaf", "Flurin Egger"]
10
+ spec.email = ["edwin@digitpaint.nl", "flurin@digitpaint.nl"]
11
11
  spec.summary = "Create themes and release them as static site"
12
12
  spec.homepage = "https://github.com/digitpaint/roger_themes"
13
13
  spec.license = "MIT"
@@ -1,3 +1,5 @@
1
+ require "roger_themes"
2
+
1
3
  require "simplecov"
2
4
  SimpleCov.start
3
5
 
metadata CHANGED
@@ -1,108 +1,110 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roger_themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edwin van der Graaf
8
+ - Flurin Egger
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-08-10 00:00:00.000000000 Z
12
+ date: 2015-08-24 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: roger
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - "~>"
18
+ - - ~>
18
19
  - !ruby/object:Gem::Version
19
20
  version: '1.0'
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - "~>"
25
+ - - ~>
25
26
  - !ruby/object:Gem::Version
26
27
  version: '1.0'
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: rack
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - ">="
32
+ - - '>='
32
33
  - !ruby/object:Gem::Version
33
34
  version: '0'
34
35
  type: :runtime
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - ">="
39
+ - - '>='
39
40
  - !ruby/object:Gem::Version
40
41
  version: '0'
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: rake
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - "~>"
46
+ - - ~>
46
47
  - !ruby/object:Gem::Version
47
48
  version: '10.0'
48
49
  type: :development
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
- - - "~>"
53
+ - - ~>
53
54
  - !ruby/object:Gem::Version
54
55
  version: '10.0'
55
56
  - !ruby/object:Gem::Dependency
56
57
  name: test-unit
57
58
  requirement: !ruby/object:Gem::Requirement
58
59
  requirements:
59
- - - "~>"
60
+ - - ~>
60
61
  - !ruby/object:Gem::Version
61
62
  version: 3.1.2
62
63
  type: :development
63
64
  prerelease: false
64
65
  version_requirements: !ruby/object:Gem::Requirement
65
66
  requirements:
66
- - - "~>"
67
+ - - ~>
67
68
  - !ruby/object:Gem::Version
68
69
  version: 3.1.2
69
70
  - !ruby/object:Gem::Dependency
70
71
  name: simplecov
71
72
  requirement: !ruby/object:Gem::Requirement
72
73
  requirements:
73
- - - "~>"
74
+ - - ~>
74
75
  - !ruby/object:Gem::Version
75
76
  version: 0.10.0
76
77
  type: :development
77
78
  prerelease: false
78
79
  version_requirements: !ruby/object:Gem::Requirement
79
80
  requirements:
80
- - - "~>"
81
+ - - ~>
81
82
  - !ruby/object:Gem::Version
82
83
  version: 0.10.0
83
84
  - !ruby/object:Gem::Dependency
84
85
  name: rubocop
85
86
  requirement: !ruby/object:Gem::Requirement
86
87
  requirements:
87
- - - "~>"
88
+ - - ~>
88
89
  - !ruby/object:Gem::Version
89
90
  version: 0.31.0
90
91
  type: :development
91
92
  prerelease: false
92
93
  version_requirements: !ruby/object:Gem::Requirement
93
94
  requirements:
94
- - - "~>"
95
+ - - ~>
95
96
  - !ruby/object:Gem::Version
96
97
  version: 0.31.0
97
98
  description:
98
99
  email:
99
100
  - edwin@digitpaint.nl
101
+ - flurin@digitpaint.nl
100
102
  executables: []
101
103
  extensions: []
102
104
  extra_rdoc_files: []
103
105
  files:
104
- - ".gitignore"
105
- - ".rubocop"
106
+ - .gitignore
107
+ - .rubocop.yml
106
108
  - Gemfile
107
109
  - LICENSE.txt
108
110
  - README.md
@@ -128,17 +130,17 @@ require_paths:
128
130
  - lib
129
131
  required_ruby_version: !ruby/object:Gem::Requirement
130
132
  requirements:
131
- - - ">="
133
+ - - '>='
132
134
  - !ruby/object:Gem::Version
133
135
  version: '0'
134
136
  required_rubygems_version: !ruby/object:Gem::Requirement
135
137
  requirements:
136
- - - ">="
138
+ - - '>='
137
139
  - !ruby/object:Gem::Version
138
140
  version: '0'
139
141
  requirements: []
140
142
  rubyforge_project:
141
- rubygems_version: 2.4.5
143
+ rubygems_version: 2.2.2
142
144
  signing_key:
143
145
  specification_version: 4
144
146
  summary: Create themes and release them as static site
data/.rubocop DELETED
@@ -1,3 +0,0 @@
1
- # Don't give me rails thingies
2
- AllCops:
3
- RunRailsCops: false