docman 0.0.36 → 0.0.37

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6250b7c21d8388051caea6b99f126f1b89ad6be3
4
- data.tar.gz: ab0938c8baccb720ab0eaea267e5a59be25ec3e1
3
+ metadata.gz: cbf50429d5f634c8850f119dbec72555fb2956b0
4
+ data.tar.gz: ebb811dc89b506288b36f4b45b21d41994c27518
5
5
  SHA512:
6
- metadata.gz: 77003d11c11b17a0b6335294a21ee9331622c899a9674475acd21cdf053fb6a9191d714aa097fe8ce8d597f5884fc55326a24e01da27ae6ba36bcd7c244cb12c
7
- data.tar.gz: 4fd112f5d7435654fb79b00e3ec78dc1d49d06ca52e995f341aeab328b877c2467a6d04d3b6034bc659c093204dc2a549d65a123ea4238d00b34a049447431f2
6
+ metadata.gz: fc4f2f628e8f3f48cac6f7563ec57a247ee563fd833d4fcf51f7eba73ec564654e2b79d0471fcc18be4aa809a46dd927a906a070134e4e86c33826b3f8b6d78e
7
+ data.tar.gz: 2e014ecf61751db071d0cacff9491c92e96b9802dd4a65c3c1eb60382ccbd8caae41698c51090dd8de1c6a1250d820d65a5e57905578bdc978719bd9ab7f0e80
data/README.md CHANGED
@@ -6,31 +6,30 @@ Notes: we are speaking about the code only, media files should be managed separa
6
6
 
7
7
  ## Installation
8
8
 
9
- Add this line to your application's Gemfile:
9
+ $ gem install docman
10
10
 
11
- gem 'docman'
11
+ ## Usage (in process of documentation)
12
12
 
13
- And then execute:
13
+ Init local environment:
14
14
 
15
- $ bundle
15
+ $ docman init <project-dir> <config-repo> # Template: https://github.com/Adyax/docman-config
16
16
 
17
- Or install it yourself as:
17
+ Build local environment:
18
18
 
19
- $ gem install docman
19
+ $ docman build local environment
20
20
 
21
- ## Usage (in process of documentation)
22
21
 
23
- Build local environment:
22
+ Work on your website!
24
23
 
25
- $ docman build local environment
24
+
25
+ Bump your production version:
26
+
27
+ $ docman bump
26
28
 
27
29
  Build the destination docroot using your settings:
28
30
 
29
31
  $ docman build <docroot> stable
30
32
 
31
- Deploy built docroot (Drupal core with multiple websites in multisite) to your environment:
32
-
33
- $ docman deploy <docroot>
34
33
 
35
34
  ## Contributing
36
35
 
@@ -129,11 +129,11 @@ module Docman
129
129
  end
130
130
 
131
131
  def replace_placeholder(value)
132
- value.gsub! '$ROOT$', @context['docroot_config'].root['full_build_path']
133
- value.gsub! '$DOCROOT$', @context['docroot_config'].docroot_dir
134
- value.gsub! '$PROJECT$', @context['full_build_path']
135
- value.gsub! '$INFO$', @context['full_path']
136
- value.gsub! '$ENVIRONMENT$', @context.environment_name
132
+ value.gsub!('$ROOT$', @context['docroot_config'].root['full_build_path']) unless @context['docroot_config'].root['full_build_path'].nil?
133
+ value.gsub!('$DOCROOT$', @context['docroot_config'].docroot_dir) unless @context['docroot_config'].docroot_dir.nil?
134
+ value.gsub!('$PROJECT$', @context['full_build_path']) unless @context['full_build_path'].nil?
135
+ value.gsub!('$INFO$', @context['full_path']) unless @context['full_path'].nil?
136
+ value.gsub!('$ENVIRONMENT$', @context.environment_name) unless @context.environment_name.nil?
137
137
  end
138
138
 
139
139
  end
@@ -22,7 +22,7 @@ module Docman
22
22
  if state['source']['type'] == :retrieve_from_repo
23
23
  repo = state['source']['repo'] == :project_repo ? self['repo'] : state['source']['repo']
24
24
  external_state_info = read_yaml_from_file(repo, self['states_path'], state['source']['branch'], state['source']['file'])
25
- state.deep_merge! external_state_info unless external_state_info.nil?
25
+ state.deep_merge! external_state_info unless external_state_info.nil? or state.nil?
26
26
  end
27
27
  end
28
28
  end
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.36"
2
+ VERSION = "0.0.37"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.36
4
+ version: 0.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tolstikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-23 00:00:00.000000000 Z
11
+ date: 2014-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler