swiftly 5.0.4 → 5.0.5
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/README.md +10 -0
- data/lib/swiftly/create_wordpress.rb +4 -0
- data/lib/swiftly/template.rb +11 -1
- data/lib/swiftly/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dcb6de1cd6956326d95b8f643be61726460cd04f
|
|
4
|
+
data.tar.gz: 40ca8960a04b01fff8d80ae17a25b46b68597659
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a048e8a8299b150490d0c21bd74341ea5e2e2a03809b32689e74c3fa626c706e4d29a2852b1367bbb9f8f999eb772b184ac4f65fd29ea5a236c63cfd48487dfb
|
|
7
|
+
data.tar.gz: 85b7921d4714973e5a9ab7d3905cf2a2e68975e44fca5dca1d4a8864a021732efdd890fc9fc115546e99db2aad72a3f6284b6a7146bbe92f2866218b77c236b9
|
data/README.md
CHANGED
|
@@ -21,6 +21,16 @@ Run it:
|
|
|
21
21
|
|
|
22
22
|
## Requirements
|
|
23
23
|
|
|
24
|
+
1. git (with username and email set)
|
|
25
|
+
2. mysql (or equivalent i.e. mariadb)
|
|
26
|
+
3. php (to load the site, otherwise optional)
|
|
27
|
+
3. Apache/Nginx (to see the site, otherwise optional)
|
|
28
|
+
|
|
29
|
+
Git must be installed and username and email must be in your global config. Something like the below should do.
|
|
30
|
+
|
|
31
|
+
`$ git config --global user.name "Your Name"`
|
|
32
|
+
`$ git config --global user.email "your@mail.com"`
|
|
33
|
+
|
|
24
34
|
Mysql must be in your $PATH. You can check this by running:
|
|
25
35
|
|
|
26
36
|
$ which mysql
|
|
@@ -69,6 +69,10 @@ module Swiftly
|
|
|
69
69
|
# @return [void]
|
|
70
70
|
def get_theme
|
|
71
71
|
|
|
72
|
+
# Check to see if the template name is default and if it
|
|
73
|
+
# is then change it to the default template name
|
|
74
|
+
@template.name = Swiftly::Template.default_name if @template.name == :default
|
|
75
|
+
|
|
72
76
|
# Change directories to inside of the theme directory
|
|
73
77
|
inside File.join( @project_path, 'wp-content', 'themes') do
|
|
74
78
|
|
data/lib/swiftly/template.rb
CHANGED
|
@@ -5,6 +5,16 @@ module Swiftly
|
|
|
5
5
|
|
|
6
6
|
@package_type = :template
|
|
7
7
|
|
|
8
|
+
#
|
|
9
|
+
# Sets the default template name to be used when
|
|
10
|
+
# running find and replace on the the template files
|
|
11
|
+
#
|
|
12
|
+
# @return [symbol] The name of the template
|
|
13
|
+
def self.default_name
|
|
14
|
+
|
|
15
|
+
:mask
|
|
16
|
+
end
|
|
17
|
+
|
|
8
18
|
def self.defaults
|
|
9
19
|
|
|
10
20
|
self.set :template, :type => :wordpress do
|
|
@@ -16,4 +26,4 @@ module Swiftly
|
|
|
16
26
|
end
|
|
17
27
|
end
|
|
18
28
|
end
|
|
19
|
-
end
|
|
29
|
+
end
|
data/lib/swiftly/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: swiftly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.0.
|
|
4
|
+
version: 5.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mic Alexander
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-06-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: git
|
|
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
163
163
|
version: 2.1.3
|
|
164
164
|
requirements: []
|
|
165
165
|
rubyforge_project:
|
|
166
|
-
rubygems_version: 2.6.
|
|
166
|
+
rubygems_version: 2.6.12
|
|
167
167
|
signing_key:
|
|
168
168
|
specification_version: 4
|
|
169
169
|
summary: Swiftly is a all-in-one WordPress development tool
|