mandrill-template-manager 0.3.2 → 0.3.3

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
- SHA1:
3
- metadata.gz: 4afbcfd8e8fa01cde755e7941e3b21c67ba41bea
4
- data.tar.gz: 7a8bf51b7fc6d1b1d332a7c54ebe46b81ea55c4e
2
+ SHA256:
3
+ metadata.gz: 02e2a77f05a8fcf869311f0def658930a18fe1683e7a54271e3981d38a8cacbe
4
+ data.tar.gz: 39ecbc494ff5b547317995a65c7e04c55f56b91d518bbc0e0aaffc501e4d8fc9
5
5
  SHA512:
6
- metadata.gz: c51d2494fc56ba40a1752ed20d8d56f099817b00e56fc7a73ca525cab7569480cef5a695c3838d06318b52008c144f519389cfbf1683cba9acdbccfb68593981
7
- data.tar.gz: 8247c799496ad03428c1088e0e02d2794941a78edd1e975fac67b10bd4804d7eff449c98ddb4d302ff43ec87df72c2e2449721622c005befeec314af8f575f51
6
+ metadata.gz: 7fd817fe4d727533748a1e5e1e16d21949cb285a570b58551f103d468036148d0272934ab0b49f78360f84283bf1a819f9329b7c746f3ef854621b5677dd1bfc
7
+ data.tar.gz: 5bd6f759d6b3d93ddbd154ceb135270a5192a03a0b55aee5418d45db43ef887b71597f811b03c4bbd4467925f6575248ad59250421114a9b84ecfa443592d169
data/Gemfile CHANGED
@@ -5,3 +5,4 @@ gemspec
5
5
 
6
6
  gem 'formatador', github: 'geemus/formatador'
7
7
  gem 'unicode'
8
+ gem 'dotenv'
data/README.md CHANGED
@@ -44,12 +44,17 @@ Commands:
44
44
 
45
45
  ## Setup
46
46
 
47
- APIKEY is read from environment variable.
47
+ Usage of the `mandrilltemplate` command requires a Mandrill API key. You can set it in a `.env` file:
48
48
 
49
49
  ```
50
- export MANDRILL_APIKEY='your api key'
50
+ MANDRILL_APIKEY='your api key'
51
51
  ```
52
52
 
53
+ or set it as an environment variable:
54
+
55
+ ```
56
+ export MANDRILL_APIKEY='your api key'
57
+ ```
53
58
 
54
59
  ## List templates
55
60
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), %w[.. lib])
4
4
 
5
+ require 'dotenv/load'
5
6
  require "thor"
6
7
  require "mandrill_template/cli"
7
8
  require "mandrill_template/monkey_create_file"
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "mandrill-template-manager"
7
- spec.version = "0.3.2"
7
+ spec.version = "0.3.3"
8
8
  spec.authors = ["sawanoboly"]
9
9
  spec.email = ["sawanoboriyu@higanworks.com"]
10
10
 
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/higanworks/mandrill-template-manager"
14
14
  spec.license = "MIT"
15
15
 
16
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }.reject {|f| f.start_with?('.')}
17
17
  spec.executables = %w[mandrilltemplate]
18
18
  spec.require_paths = ["lib"]
19
19
 
@@ -21,8 +21,9 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency "mandrill-api"
22
22
  spec.add_dependency "formatador"
23
23
  spec.add_dependency "unicode"
24
- spec.add_development_dependency "bundler", "~> 1.10"
25
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_dependency "dotenv"
25
+ spec.add_development_dependency "bundler"
26
+ spec.add_development_dependency "rake"
26
27
  spec.add_development_dependency "rspec"
27
28
  spec.add_development_dependency "pry"
28
29
  spec.add_development_dependency "pry-doc"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandrill-template-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-30 00:00:00.000000000 Z
11
+ date: 2020-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -66,34 +66,48 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: dotenv
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: bundler
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - "~>"
87
+ - - ">="
74
88
  - !ruby/object:Gem::Version
75
- version: '1.10'
89
+ version: '0'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - "~>"
94
+ - - ">="
81
95
  - !ruby/object:Gem::Version
82
- version: '1.10'
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rake
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - "~>"
101
+ - - ">="
88
102
  - !ruby/object:Gem::Version
89
- version: '10.0'
103
+ version: '0'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - "~>"
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: '10.0'
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rspec
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -144,9 +158,6 @@ executables:
144
158
  extensions: []
145
159
  extra_rdoc_files: []
146
160
  files:
147
- - ".gitignore"
148
- - ".rspec"
149
- - ".travis.yml"
150
161
  - Gemfile
151
162
  - LICENSE.txt
152
163
  - README.md
@@ -176,10 +187,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
187
  - !ruby/object:Gem::Version
177
188
  version: '0'
178
189
  requirements: []
179
- rubyforge_project:
180
- rubygems_version: 2.4.8
190
+ rubygems_version: 3.1.2
181
191
  signing_key:
182
192
  specification_version: 4
183
193
  summary: Manage Mandrill Template CLI
184
194
  test_files: []
185
- has_rdoc:
data/.gitignore DELETED
@@ -1,52 +0,0 @@
1
- # Created by https://www.gitignore.io
2
-
3
- ### Ruby ###
4
- *.gem
5
- *.rbc
6
- /.config
7
- /coverage/
8
- /InstalledFiles
9
- /pkg/
10
- /spec/reports/
11
- /test/tmp/
12
- /test/version_tmp/
13
- /tmp/
14
-
15
- ## Specific to RubyMotion:
16
- .dat*
17
- .repl_history
18
- build/
19
-
20
- ## Documentation cache and generated files:
21
- /.yardoc/
22
- /_yardoc/
23
- /doc/
24
- /rdoc/
25
-
26
- ## Environment normalisation:
27
- /.bundle/
28
- /vendor/bundle
29
- /lib/bundler/man/
30
-
31
- # for a library or gem, you might want to ignore these files since the code is
32
- # intended to run in multiple environments; otherwise, check them in:
33
- # Gemfile.lock
34
- # .ruby-version
35
- # .ruby-gemset
36
-
37
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
38
- .rvmrc
39
-
40
-
41
- ### Vim ###
42
- [._]*.s[a-w][a-z]
43
- [._]s[a-w][a-z]
44
- *.un~
45
- Session.vim
46
- .netrwhist
47
- *~
48
-
49
- ## Manual
50
- /.envrc
51
- /templates/
52
- /Gemfile.lock
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1.6
4
- before_install: gem install bundler -v 1.10.5