slate-installer 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZjUzNDk1ZDgyMmNjZWZmNDEyMzdkODVlMzgwZWZlNDVmM2JlZTc2ZA==
5
- data.tar.gz: !binary |-
6
- YjY3MjBiZGExM2RhYjhjNGU2MmE5ZTgzMTY3ZjllYjM1ZWJiNzg3Yw==
2
+ SHA1:
3
+ metadata.gz: 3bd95a7843cc5dd790abccce1313e7ffee6e4060
4
+ data.tar.gz: 14fc0b12da125ef0ed5189723a56907534e75b60
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YmZhNDMzNThhYTBiZTZiZjg0MjAxOThjNTNmZjM5OGI4MjFiOWVkMjM0OGJj
10
- MDU3Y2RjOGQ1YWQ3YzkwNTQ4YjdlNzg2MjlkYzFkODdmMjU1M2VlYWQ0Mzhm
11
- ZTc3MGIyZDg3ZDc0NjE1NjllYjQyNDg1OTkyNTc5MTVmNGEwM2I=
12
- data.tar.gz: !binary |-
13
- ZTRhYzgxZTQ0Y2U1MjJlMjI3ZjY1NDRiNzNjYWQ4ZTg3Y2QyYjYwMDdkNjVk
14
- YjJjYjcxMDJmODczYjQ1ZWI5ZTViOTkwMmNlMWQ4YmY5ODJiZTZkZWJiMjZi
15
- MTMxYzEyYWRjYzNhOTYxMmZlM2MxNTRhOWY1ZWE0ZGVkMTBiNTM=
6
+ metadata.gz: 636c45dc3157ca6cf91d0e1565f6b7d93a79994d3ba32cfce072164b6a0bc5fd29199d9527fc0f64c4c14ce13915b70d348a2d578e8cd1d1bc5128361a709f64
7
+ data.tar.gz: 9f31be1f869fda4205b913f2f7aafa9445cee543f4b3ef167cf753a0dbee5a71cb7859477a2f66679b6245746559e6f79155c2356759a5dd3dedf32bed9ccfdb
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 1.2.0
4
+
5
+ *January 26, 2017*
6
+
7
+ **Features**
8
+
9
+ - Added an optional `-d` option to install slate from its dev branch instead of master
10
+
11
+
3
12
  ## Version 1.1.0
4
13
 
5
14
  *October 14, 2016*
data/README.md CHANGED
@@ -37,6 +37,10 @@ Slate Installer commands:
37
37
  slate-installer help [COMMAND] # Describe available commands or one specific command
38
38
  slate-installer install # creates a docs folder and installs latest slate into it
39
39
 
40
+ Options:
41
+ -l, [--logo=LOGO] # path to custom logo file
42
+ -d, [--dev], [--no-dev] # install from the slate dev branch
43
+
40
44
  Runtime options:
41
45
  -f, [--force] # Overwrite files that already exist
42
46
  -p, [--pretend], [--no-pretend] # Run but do not make any changes
@@ -58,6 +62,12 @@ You can optionally specify the path to a custom logo to have that overwrite the
58
62
  $ slate-installer install -l path/to/logo.png
59
63
  ```
60
64
 
65
+ You can optionally install slate from its dev branch instead of master with the `-d` option
66
+
67
+ ```shell
68
+ $ slate-installer install -d
69
+ ```
70
+
61
71
  ## Development
62
72
 
63
73
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -17,13 +17,20 @@ module Slate
17
17
 
18
18
  desc "install", "creates a docs folder and installs latest slate into it"
19
19
  method_option :logo, :type => :string, :aliases => "-l", :desc => "path to custom logo file", :lazy_default => ""
20
+ method_option :dev, :type => :boolean, :aliases => "-d", :desc => "install from the slate dev branch"
20
21
  def install
21
22
  if options[:logo]
22
23
  logo = determine_logo_path(options[:logo])
23
24
  end
24
25
 
25
26
  Dir.mktmpdir("slate-src-") do |tmpdir|
26
- output, _status = Open3.capture2e("git", "clone", "--depth", "1", "--progress", "https://github.com/lord/slate.git", tmpdir)
27
+ branch = if options[:dev]
28
+ "dev"
29
+ else
30
+ "master"
31
+ end
32
+
33
+ output, _status = Open3.capture2e("git", "clone", "--depth", "1", "--branch", branch, "--progress", "https://github.com/lord/slate.git", tmpdir)
27
34
  puts output
28
35
 
29
36
  if logo
@@ -1,5 +1,5 @@
1
1
  module Slate
2
2
  module Installer
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slate-installer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Glowacz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-14 00:00:00.000000000 Z
11
+ date: 2017-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.19'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.19'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.12'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.12'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
69
  description: This provides a utility to add and update your docs folder with the latest
@@ -75,9 +75,9 @@ executables:
75
75
  extensions: []
76
76
  extra_rdoc_files: []
77
77
  files:
78
- - .gitignore
79
- - .rspec
80
- - .travis.yml
78
+ - ".gitignore"
79
+ - ".rspec"
80
+ - ".travis.yml"
81
81
  - CHANGELOG.md
82
82
  - CODE_OF_CONDUCT.md
83
83
  - Gemfile
@@ -102,12 +102,12 @@ require_paths:
102
102
  - lib
103
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - ! '>='
105
+ - - ">="
106
106
  - !ruby/object:Gem::Version
107
107
  version: 2.0.0
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ! '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []