roger_themes 0.1.2 → 0.2.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 +4 -4
- data/.rubocop.yml +47 -0
- data/LICENSE.txt +1 -1
- data/README.md +3 -3
- data/lib/roger_themes.rb +3 -0
- data/lib/roger_themes/version.rb +1 -1
- data/lib/roger_themes/xc_finalizer.rb +16 -4
- data/roger_themes.gemspec +2 -2
- data/test/test_helper.rb +2 -0
- metadata +21 -19
- data/.rubocop +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0720077a8aff27cb17a0ba446632cb9272db907
|
|
4
|
+
data.tar.gz: a3609e21f3e0973ca72ae925a98884cec9a9b1e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92da72d5e6d0b9c99842a554967fe7b9398ca5c1d80badfca19f615320a0d2ef447b5b031a5472e498e54ec4d27b27c4b05e9923829992d0afd02b7c0aa484da
|
|
7
|
+
data.tar.gz: a5f36d66d7c273ae191017d427e0d1798660717af3ec60fa116b02b1f013bc8d6e53463c712bcb85416850382e0e0f062466cf6bed9ef9ff839a6ff9b852a7ad
|
data/.rubocop.yml
ADDED
|
@@ -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
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -22,9 +22,9 @@ And then execute:
|
|
|
22
22
|
|
|
23
23
|
## Todo
|
|
24
24
|
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
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
|
|
data/lib/roger_themes.rb
CHANGED
data/lib/roger_themes/version.rb
CHANGED
|
@@ -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 +
|
|
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|
|
data/roger_themes.gemspec
CHANGED
|
@@ -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"
|
data/test/test_helper.rb
CHANGED
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.
|
|
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-
|
|
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
|
-
-
|
|
105
|
-
-
|
|
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.
|
|
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