presspass 0.1.2 → 1.0.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 +7 -0
- data/lib/presspass/cli/new_project_generator.rb +8 -12
- data/lib/presspass/presspass.rb +2 -2
- metadata +62 -79
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e3ad883ad634232b0298b8c7ab428e778b081838
|
4
|
+
data.tar.gz: d1cad8acf5daaa04bbcf248cea0d607d870c903e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ad1ff6ef9706903c604b565354fb3998ed2e8e6ceeada9393e040b20a8d65de987a80d208f74eabf7b966a4c1412febe1d9e5794bb5e03e9ffcd8f6cb5e69b25
|
7
|
+
data.tar.gz: 920b6ab521d0d0f9c0ad3abf0079702f12146ac3ac109364d4766aed222f35fbab8714b02b0a6502426a0c494b3c588bee9295358edc26194ede57ffccd152f8
|
@@ -6,15 +6,15 @@ module PressPass
|
|
6
6
|
class NewProjectGenerator
|
7
7
|
|
8
8
|
def initialize(command = "new")
|
9
|
-
@options = {:
|
9
|
+
@options = {:path_to_php => nil}
|
10
10
|
|
11
11
|
@app_name = ARGV.first
|
12
12
|
|
13
13
|
OptionParser.new do |opts|
|
14
14
|
opts.banner = "Usage: presspass #{command} <app_name> [options]"
|
15
15
|
|
16
|
-
opts.on("--php PATH", "Path to PHP
|
17
|
-
@options[:
|
16
|
+
opts.on("--php PATH", "Path to PHP binary") do |php_path|
|
17
|
+
@options[:path_to_php] = php_path
|
18
18
|
end
|
19
19
|
|
20
20
|
end.parse!(ARGV)
|
@@ -34,7 +34,7 @@ module PressPass
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def init
|
37
|
-
add_rack_config(:
|
37
|
+
add_rack_config(:path_to_php => @options[:path_to_php])
|
38
38
|
|
39
39
|
set_default_config
|
40
40
|
end
|
@@ -89,25 +89,21 @@ module PressPass
|
|
89
89
|
end
|
90
90
|
|
91
91
|
def add_rack_config(opts = {})
|
92
|
-
options = { :
|
92
|
+
options = { :path_to_php => nil }
|
93
93
|
options.merge!(opts)
|
94
94
|
|
95
95
|
config_ru = <<EOF
|
96
96
|
require 'rack'
|
97
97
|
require 'rack-legacy'
|
98
|
-
require 'rack-rewrite'
|
99
98
|
|
100
|
-
|
101
|
-
|
102
|
-
ENV['SERVER_PROTOCOL'] = "HTTP/1.1"
|
103
|
-
|
104
|
-
use Rack::Legacy::Php, Dir.getwd<% if options[:php_cgi_path] %>, '<%= options[:php_cgi_path] %>' <% end %>
|
99
|
+
use Rack::Legacy::Index
|
100
|
+
use Rack::Legacy::Php<% if options[:path_to_php] %>, '<%= options[:path_to_php] %>' <% end %>
|
105
101
|
run Rack::File.new Dir.getwd
|
106
102
|
EOF
|
107
103
|
config_ru_template = ERB.new(config_ru)
|
108
104
|
|
109
105
|
puts "Adding config.ru for usage with Pow."
|
110
|
-
|
106
|
+
|
111
107
|
File.open(File.join(@app_name, "config.ru"), "w") do |file|
|
112
108
|
file.write(config_ru_template.result(binding))
|
113
109
|
end
|
data/lib/presspass/presspass.rb
CHANGED
metadata
CHANGED
@@ -1,111 +1,94 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: presspass
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 2
|
10
|
-
version: 0.1.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Michiel Sikkes
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-04-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: rack
|
22
|
-
|
23
|
-
|
24
|
-
none: false
|
25
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
26
17
|
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
32
20
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: rack-legacy
|
36
21
|
prerelease: false
|
37
|
-
|
38
|
-
|
39
|
-
requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
40
24
|
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rack-legacy
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
46
34
|
type: :runtime
|
47
|
-
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: rack-rewrite
|
50
35
|
prerelease: false
|
51
|
-
|
52
|
-
|
53
|
-
requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
54
38
|
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: |2
|
42
|
+
PressPass is a command-line tool that helps you do WordPress development.
|
43
|
+
|
44
|
+
It lets you install the latest WordPress version on your local development machine
|
45
|
+
and sets it up for usage with PHP and Pow so you can run it along side your
|
46
|
+
Rails apps if you want to.
|
47
|
+
|
48
|
+
It contains generation tools similar to the rails command for generating themes
|
49
|
+
and plugins.
|
63
50
|
email: michiel@firmhouse.com
|
64
|
-
executables:
|
51
|
+
executables:
|
65
52
|
- presspass
|
66
53
|
extensions: []
|
67
|
-
|
68
54
|
extra_rdoc_files: []
|
69
|
-
|
70
|
-
|
55
|
+
files:
|
56
|
+
- bin/presspass
|
71
57
|
- lib/presspass.rb
|
72
|
-
- lib/presspass/presspass.rb
|
73
58
|
- lib/presspass/cli.rb
|
74
|
-
- lib/presspass/cli/new_project_generator.rb
|
75
59
|
- lib/presspass/cli/linker.rb
|
76
|
-
-
|
60
|
+
- lib/presspass/cli/new_project_generator.rb
|
61
|
+
- lib/presspass/presspass.rb
|
77
62
|
homepage: http://github.com/firmhouse/presspass
|
78
|
-
licenses:
|
63
|
+
licenses:
|
79
64
|
- MIT
|
80
|
-
|
81
|
-
|
65
|
+
metadata: {}
|
66
|
+
post_install_message: |2+
|
67
|
+
Thank you for installing PressPass! Now get started with setting up a
|
68
|
+
WordPress installation in your current directory:
|
82
69
|
|
83
|
-
|
70
|
+
presspass new my_blog
|
71
|
+
|
72
|
+
If you need help, please create an issue at
|
73
|
+
https://github.com/firmhouse/presspass/issues
|
74
|
+
|
75
|
+
rdoc_options: []
|
76
|
+
require_paths:
|
84
77
|
- lib
|
85
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
-
|
87
|
-
requirements:
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
88
80
|
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
version: "0"
|
94
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
|
-
requirements:
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
97
85
|
- - ">="
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
100
|
-
segments:
|
101
|
-
- 0
|
102
|
-
version: "0"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
103
88
|
requirements: []
|
104
|
-
|
105
89
|
rubyforge_project:
|
106
|
-
rubygems_version:
|
90
|
+
rubygems_version: 2.2.0
|
107
91
|
signing_key:
|
108
|
-
specification_version:
|
92
|
+
specification_version: 4
|
109
93
|
summary: PressPass makes doing WordPress development awesome
|
110
94
|
test_files: []
|
111
|
-
|