dice_bag 0.7.0 → 0.8.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 +15 -0
- data/lib/dice_bag/default_template_file.rb +4 -1
- data/lib/dice_bag/dice_bag_file.rb +2 -1
- data/lib/dice_bag/private_key.rb +1 -0
- data/lib/dice_bag/project.rb +3 -1
- data/lib/dice_bag/version.rb +1 -1
- metadata +56 -31
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDlkYzIxYjM3Zjk1YTM2YThhYTc2OWQ0YjE1MGZiYzg1YTUwMzlmOQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MjBkY2RhMWU0ZTI0ZWMzMDhiM2JkMTczYmRhYmIzYWIwYWU2YTFjYg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NTU5ZTQzMzgzODlmN2ZmYzNiOTczMTQzODRlYzA2YTUxNjBlOTNiN2MzZGY5
|
10
|
+
OTc2OGZjZTI2ZjcwYjQ2YTA3YjA5YWEyZDg5ZDBlMmE1MDNhM2EwMmI4YWY5
|
11
|
+
ZmNhZWRhZWYxMzNjZmFhMjVjMDExMmRiOWY3ZWMzODkyYTVhM2U=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MDJlZGIzNDgzMWIzMDhkYTJlYzJlMGU4Y2NiYWQ3ZDYxMmQxZWU4NGFjOGRm
|
14
|
+
MzdhYzhhM2ZjMmZlMjM1MWNiZDdhNmZiN2VjMzc1NDU3YTgxODQ3MjY2Yjll
|
15
|
+
ZTI5MjMwMThlMzJlYzM3ZGQ0NGZjMDY2NjgxOWVmMzJiMzJkMjY=
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'dice_bag/dice_bag_file'
|
2
2
|
require 'dice_bag/project'
|
3
3
|
|
4
|
+
require 'fileutils'
|
4
5
|
require 'tempfile'
|
5
6
|
|
6
7
|
#This file encapsulate the template files Dicebag brings with itself
|
@@ -21,7 +22,9 @@ module DiceBag
|
|
21
22
|
|
22
23
|
def create_file
|
23
24
|
contents = read_template(@file)
|
24
|
-
|
25
|
+
rooted_template_location = File.join(Project.root, @template_location)
|
26
|
+
FileUtils.mkdir_p(rooted_template_location)
|
27
|
+
template_file = File.join(rooted_template_location, @filename)
|
25
28
|
File.open(template_file, 'w') do |file|
|
26
29
|
file.puts(contents)
|
27
30
|
end
|
@@ -26,7 +26,8 @@ module DiceBag
|
|
26
26
|
while true
|
27
27
|
puts "Overwrite #{file} ? Recommended: Yes. "
|
28
28
|
puts " [Y]es, [n]o, [a]ll files, [q]uit, [d]show diff"
|
29
|
-
answer = $stdin.gets
|
29
|
+
answer = $stdin.gets
|
30
|
+
answer &&= answer.chars.first.downcase
|
30
31
|
case answer
|
31
32
|
when 'y'
|
32
33
|
return true
|
data/lib/dice_bag/private_key.rb
CHANGED
data/lib/dice_bag/project.rb
CHANGED
data/lib/dice_bag/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dice_bag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.8.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Andrew Smith
|
@@ -10,42 +9,67 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2014-06-03 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rake
|
17
|
-
requirement:
|
18
|
-
none: false
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
requirements:
|
20
18
|
- - ! '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: '0'
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
|
-
version_requirements:
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ! '>='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
26
28
|
- !ruby/object:Gem::Dependency
|
27
29
|
name: aruba
|
28
|
-
requirement:
|
29
|
-
none: false
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
32
|
- - ~>
|
32
33
|
- !ruby/object:Gem::Version
|
33
34
|
version: 0.5.1
|
34
35
|
type: :development
|
35
36
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ~>
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 0.5.1
|
37
42
|
- !ruby/object:Gem::Dependency
|
38
43
|
name: rspec
|
39
|
-
requirement:
|
40
|
-
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ~>
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '2.12'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
52
|
requirements:
|
42
53
|
- - ~>
|
43
54
|
- !ruby/object:Gem::Version
|
44
55
|
version: '2.12'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: bundler
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
45
63
|
type: :development
|
46
64
|
prerelease: false
|
47
|
-
version_requirements:
|
48
|
-
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
description: Dice Bag is a library of rake tasks for configuring web apps in the style
|
71
|
+
of The Twelve-Factor App. It also provides continuous integration tasks that rely
|
72
|
+
on the configuration tasks.
|
49
73
|
email:
|
50
74
|
- asmith@mdsol.com
|
51
75
|
- jcarres@mdsol.com
|
@@ -54,55 +78,56 @@ extensions: []
|
|
54
78
|
extra_rdoc_files: []
|
55
79
|
files:
|
56
80
|
- lib/dice_bag.rb
|
57
|
-
- lib/dice_bag/
|
81
|
+
- lib/dice_bag/available_templates.rb
|
58
82
|
- lib/dice_bag/command.rb
|
59
|
-
- lib/dice_bag/
|
83
|
+
- lib/dice_bag/config_file.rb
|
84
|
+
- lib/dice_bag/configuration.rb
|
60
85
|
- lib/dice_bag/default_template_file.rb
|
86
|
+
- lib/dice_bag/dice_bag_file.rb
|
87
|
+
- lib/dice_bag/private_key.rb
|
88
|
+
- lib/dice_bag/project.rb
|
89
|
+
- lib/dice_bag/railtie.rb
|
61
90
|
- lib/dice_bag/tasks.rb
|
91
|
+
- lib/dice_bag/tasks/config.rake
|
62
92
|
- lib/dice_bag/template_file.rb
|
63
|
-
- lib/dice_bag/
|
64
|
-
- lib/dice_bag/
|
65
|
-
- lib/dice_bag/version.rb
|
93
|
+
- lib/dice_bag/template_helpers.rb
|
94
|
+
- lib/dice_bag/templates/aws.yml.dice
|
66
95
|
- lib/dice_bag/templates/dalli.yml.dice
|
67
96
|
- lib/dice_bag/templates/database.yml.dice
|
68
97
|
- lib/dice_bag/templates/gems_checker.rb
|
69
|
-
- lib/dice_bag/templates/newrelic.yml.dice
|
70
98
|
- lib/dice_bag/templates/google_analytics.yml.dice
|
71
|
-
- lib/dice_bag/templates/
|
72
|
-
- lib/dice_bag/
|
73
|
-
- lib/dice_bag/
|
74
|
-
- lib/dice_bag/configuration.rb
|
75
|
-
- lib/dice_bag/tasks/config.rake
|
76
|
-
- lib/dice_bag/available_templates.rb
|
77
|
-
- lib/dice_bag/template_helpers.rb
|
99
|
+
- lib/dice_bag/templates/newrelic.yml.dice
|
100
|
+
- lib/dice_bag/version.rb
|
101
|
+
- lib/dice_bag/warning.rb
|
78
102
|
- spec/command_spec.rb
|
79
103
|
- spec/spec_helper.rb
|
80
104
|
homepage: https://github.com/mdsol/dice_bag
|
81
|
-
licenses:
|
105
|
+
licenses:
|
106
|
+
- MIT
|
107
|
+
metadata: {}
|
82
108
|
post_install_message:
|
83
109
|
rdoc_options: []
|
84
110
|
require_paths:
|
85
111
|
- lib
|
86
112
|
required_ruby_version: !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
113
|
requirements:
|
89
114
|
- - ! '>='
|
90
115
|
- !ruby/object:Gem::Version
|
91
116
|
version: '0'
|
92
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
118
|
requirements:
|
95
119
|
- - ! '>='
|
96
120
|
- !ruby/object:Gem::Version
|
97
121
|
version: '0'
|
98
122
|
requirements: []
|
99
123
|
rubyforge_project:
|
100
|
-
rubygems_version:
|
124
|
+
rubygems_version: 2.2.2
|
101
125
|
signing_key:
|
102
|
-
specification_version:
|
126
|
+
specification_version: 4
|
103
127
|
summary: Dice Bag is a library of rake tasks for configuring web apps in the style
|
104
128
|
of The Twelve-Factor App. It also provides continuous integration tasks that rely
|
105
129
|
on the configuration tasks.
|
106
130
|
test_files:
|
107
131
|
- spec/command_spec.rb
|
108
132
|
- spec/spec_helper.rb
|
133
|
+
has_rdoc:
|