stevenson 2.3.3 → 2.5.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: 4206094ec9c9cd5d7b6d602bfa4d2e70f451fd0d
4
- data.tar.gz: 9611f3c7f26787b466a819a665e01da8ae2da408
3
+ metadata.gz: 97d928ffe45af65dcbbefbbc752493eb19222b7f
4
+ data.tar.gz: '0307814dafdfc5e724fc2488e5a385cfc58e3b68'
5
5
  SHA512:
6
- metadata.gz: d5a9b2ec688fd028192ed1dcb454b1332fc2be0097c174c1c9bde408cb87184cb70358ed8e267a6dd3fc43f264dec85b1ebc1952cd8d0e4c024fd81f1c372ac1
7
- data.tar.gz: 47f99d5a09fb3728b1d221b6d3ed07c20b68bbae7c71a626f6afcb233c68e027bc62ddfaf4e22ab3e5800c0bd3b6061fca15678a5fdc81c9972aa320923609e4
6
+ metadata.gz: 005f50c0d0c0978484e0baa1c083e2c1a2d3454b439735f153bb60f440d1987ec1705627270b72201dd45fad47f511654b69c0780a72cf3e16483c767e9f73b3
7
+ data.tar.gz: 3ce5a16de26567a351b248ee35b25187dd79c41d84f8c6112db3564175a920ddb4cd933c932aeda551b3aa79946d20198b72a1c330ac745d7cfdb0201475371d
@@ -1,3 +1,9 @@
1
+ 2.5.0 (July 18th, 2018)
2
+ - Change fog dependency to fog-aws
3
+
4
+ 2.4.0 (July 17th, 2018)
5
+ - Add 'private_template' option for securely passing git credentials.
6
+
1
7
  2.3.3 (January 19th, 2016)
2
8
  - BUGFIX: Explicitly specify Jekyll output directory within
3
9
  temporary directory
data/README.md CHANGED
@@ -50,6 +50,18 @@ option, like so:
50
50
  This will clone the repo at `https://github.com/YourUsername/YourTemplate.git`
51
51
  to `hello_world`.
52
52
 
53
+ ### Private Git Templates
54
+
55
+ If you'd like to use a template in a private git repo, you can pass GitHub credentials or store them in ENV variables. This will take priority over the 'template' option above.
56
+
57
+ $ stevenson new hello_world --private_template https://github.com/YourUsername/YourTemplate.git bob 123
58
+
59
+ This will clone the repo at `https://github.com/YourUsername/YourTemplate.git`
60
+ to `hello_world`.
61
+
62
+ Additionally, Stevenson can use the `GITHUB_SERVICE_ACCOUNT_USERNAME` and
63
+ `GITHUB_SERVICE_ACCOUNT_PASSWORD` environment variables.
64
+
53
65
  ### Zip Output
54
66
 
55
67
  Stevenson can output directories as a zip archive using the `-z` or `--zip`
@@ -9,10 +9,15 @@ module Stevenson
9
9
  default: 'hyde-base',
10
10
  desc: 'The template to use'
11
11
 
12
+ method_option :private_template,
13
+ type: :array,
14
+ desc: 'Private git template url and credentials. Takes priority over normal template option.'
15
+
12
16
  # Template Options
13
17
  method_option :branch,
14
18
  aliases: '-b',
15
19
  desc: 'The git branch you would like to use from your template'
20
+
16
21
  method_option :subdirectory,
17
22
  aliases: '-s',
18
23
  desc: 'The subdirectory to use from the template, if any'
@@ -28,6 +33,7 @@ module Stevenson
28
33
  enum: [:zip],
29
34
  aliases: "-o",
30
35
  desc: 'Array of output filters to be applied in order'
36
+
31
37
  method_option :zip,
32
38
  aliases: "-z",
33
39
  desc: 'Zip compresses the output directory'
@@ -39,8 +45,17 @@ module Stevenson
39
45
  desc: 'The s3 information necessary for deploying to S3'
40
46
 
41
47
  def new(output_directory, config_path)
48
+ if options[:private_template]
49
+ template_url, git_username, git_password = options[:private_template]
50
+ git_username ||= ENV["GITHUB_SERVICE_ACCOUNT_USERNAME"]
51
+ git_password ||= ENV["GITHUB_SERVICE_ACCOUNT_PASSWORD"]
52
+ template = template_url.gsub("github", "#{git_username}:#{git_password}@github")
53
+ else
54
+ template = options[:template]
55
+ end
56
+
42
57
  # Load the template using the template loader
43
- template = Stevenson::Template.load(options[:template], options)
58
+ template = Stevenson::Template.load(template_url, options)
44
59
 
45
60
  # Place yml files
46
61
  template.place_config(config_path)
@@ -1,4 +1,4 @@
1
- require 'fog'
1
+ require 'fog/aws'
2
2
 
3
3
  module Stevenson
4
4
  module Deployer
@@ -1,3 +1,3 @@
1
1
  module Stevenson
2
- VERSION = "2.3.3"
2
+ VERSION = "2.5.0"
3
3
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.add_dependency "cocaine", "~> 0.5"
26
26
  spec.add_dependency "git"
27
- spec.add_dependency "fog"
27
+ spec.add_dependency "fog-aws", "~> 3.0"
28
28
  spec.add_dependency "hashie"
29
29
  spec.add_dependency "highline"
30
30
  spec.add_dependency "jekyll"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stevenson
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - RootsRated
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-19 00:00:00.000000000 Z
11
+ date: 2018-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -81,19 +81,19 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: fog
84
+ name: fog-aws
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '3.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '3.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: hashie
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  version: '0'
232
232
  requirements: []
233
233
  rubyforge_project:
234
- rubygems_version: 2.4.3
234
+ rubygems_version: 2.6.14
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: Stevenson is a generator for Jekyll microsites created by RootsRated.com