yupi 0.1.0 → 0.1.1
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 +4 -4
- data/Gemfile.lock +1 -10
- data/lib/yupi/app_builder.rb +14 -10
- data/lib/yupi/version.rb +1 -1
- data/spec/spec_helper.rb +11 -1
- data/templates/Gemfile.erb +3 -3
- data/templates/bin/setup.erb +7 -0
- data/templates/spec/rails_helper.rb +1 -1
- data/templates/spec/spec_helper.rb +11 -2
- data/yupi.gemspec +0 -1
- metadata +2 -17
- data/templates/config/smtp.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 693cbdc5870c201805a9c791b86aeecb983fcd98
|
4
|
+
data.tar.gz: fbc392697202cd76e9d5a77f06af70fe06568487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef91f0ea401f50af757822b9c5e01447a7534bbfdaa970d00a17a0baa657715fe7293bb9487b370d824cd149ebe480e4b3ccf51c3bb6bc43cdf61cfecb445cfc
|
7
|
+
data.tar.gz: 7b23e0b06379fe4279d729b504de7401e3d4957c63f506708b13d9c44cd8d49051c7e6041983defc901a16066e519d728f4b9dca6a8512c2431c316f8d6663c1
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
yupi (0.1.
|
5
|
-
bitters (~> 1.0.0)
|
4
|
+
yupi (0.1.1)
|
6
5
|
bundler (~> 1.3)
|
7
6
|
rails (= 4.2.1)
|
8
7
|
|
@@ -45,13 +44,6 @@ GEM
|
|
45
44
|
thread_safe (~> 0.3, >= 0.3.4)
|
46
45
|
tzinfo (~> 1.1)
|
47
46
|
arel (6.0.0)
|
48
|
-
bitters (1.0.0)
|
49
|
-
bourbon (>= 3.2)
|
50
|
-
sass (>= 3.2)
|
51
|
-
thor
|
52
|
-
bourbon (4.2.1)
|
53
|
-
sass (~> 3.4)
|
54
|
-
thor
|
55
47
|
builder (3.2.2)
|
56
48
|
capybara (2.3.0)
|
57
49
|
mime-types (>= 1.16)
|
@@ -112,7 +104,6 @@ GEM
|
|
112
104
|
rspec-expectations (2.99.0)
|
113
105
|
diff-lcs (>= 1.1.3, < 2.0)
|
114
106
|
rspec-mocks (2.99.0)
|
115
|
-
sass (3.4.13)
|
116
107
|
sprockets (2.12.3)
|
117
108
|
hike (~> 1.2)
|
118
109
|
multi_json (~> 1.0)
|
data/lib/yupi/app_builder.rb
CHANGED
@@ -12,9 +12,15 @@ module Yupi
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def set_test_delivery_method
|
15
|
+
config = <<-RUBY
|
16
|
+
|
17
|
+
config.action_mailer.delivery_method = :smtp
|
18
|
+
config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }
|
19
|
+
RUBY
|
20
|
+
|
15
21
|
inject_into_file(
|
16
22
|
"config/environments/development.rb",
|
17
|
-
|
23
|
+
config,
|
18
24
|
after: "config.action_mailer.raise_delivery_errors = true",
|
19
25
|
)
|
20
26
|
end
|
@@ -62,16 +68,14 @@ module Yupi
|
|
62
68
|
template 'config/newrelic.yml.erb', 'config/newrelic.yml'
|
63
69
|
end
|
64
70
|
|
65
|
-
def
|
66
|
-
copy_file 'config/smtp.rb', 'config/smtp.rb'
|
67
|
-
|
68
|
-
prepend_file 'config/environments/production.rb',
|
69
|
-
%{require Rails.root.join("config/smtp")\n}
|
70
|
-
|
71
|
+
def configure_mailsocio
|
71
72
|
config = <<-RUBY
|
72
73
|
|
73
|
-
config.action_mailer.delivery_method = :
|
74
|
-
config.action_mailer.smtp_settings =
|
74
|
+
config.action_mailer.delivery_method = :mailsocio
|
75
|
+
config.action_mailer.smtp_settings = {
|
76
|
+
account_id: ENV.fetch("MAILSOCIO_ACCOUNT_ID"),
|
77
|
+
api_key: ENV.fetch("MAILSOCIO_API_KEY")
|
78
|
+
}
|
75
79
|
RUBY
|
76
80
|
|
77
81
|
inject_into_file 'config/environments/production.rb', config,
|
@@ -339,7 +343,7 @@ end
|
|
339
343
|
end
|
340
344
|
|
341
345
|
def run_bin_setup
|
342
|
-
|
346
|
+
run "./bin/setup"
|
343
347
|
end
|
344
348
|
|
345
349
|
private
|
data/lib/yupi/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -8,9 +8,19 @@ require (Pathname.new(__FILE__).dirname + '../lib/yupi').expand_path
|
|
8
8
|
Dir['./spec/support/**/*.rb'].each { |file| require file }
|
9
9
|
|
10
10
|
RSpec.configure do |config|
|
11
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
12
11
|
config.include YupiTestHelpers
|
13
12
|
|
13
|
+
config.filter_run :focus
|
14
|
+
config.run_all_when_everything_filtered = true
|
15
|
+
config.disable_monkey_patching!
|
16
|
+
|
17
|
+
if config.files_to_run.one?
|
18
|
+
config.default_formatter = 'doc'
|
19
|
+
end
|
20
|
+
|
21
|
+
config.order = :random
|
22
|
+
Kernel.srand config.seed
|
23
|
+
|
14
24
|
config.before(:all) do
|
15
25
|
drop_dummy_database
|
16
26
|
recreate_tmp_directory
|
data/templates/Gemfile.erb
CHANGED
@@ -6,11 +6,13 @@ gem "bootstrap-sass", "~> 3.3.4"
|
|
6
6
|
gem "coffee-rails", "~> 4.1.0"
|
7
7
|
gem "delayed_job_active_record"
|
8
8
|
gem "email_validator"
|
9
|
+
gem "figaro"
|
9
10
|
gem "high_voltage"
|
10
11
|
gem "i18n-tasks"
|
11
12
|
gem "jquery-rails"
|
12
13
|
gem "newrelic_rpm", ">= 3.9.8"
|
13
14
|
gem "pg"
|
15
|
+
gem "puma"
|
14
16
|
gem "rack-timeout"
|
15
17
|
gem "rails", "<%= Yupi::RAILS_VERSION %>"
|
16
18
|
gem "recipient_interceptor"
|
@@ -18,8 +20,6 @@ gem "sass-rails", "~> 5.0"
|
|
18
20
|
gem "simple_form"
|
19
21
|
gem "title"
|
20
22
|
gem "uglifier"
|
21
|
-
gem "puma"
|
22
|
-
gem "figaro"
|
23
23
|
|
24
24
|
group :development do
|
25
25
|
gem "spring"
|
@@ -38,10 +38,10 @@ group :development, :test do
|
|
38
38
|
end
|
39
39
|
|
40
40
|
group :test do
|
41
|
-
gem "poltergeist"
|
42
41
|
gem "database_cleaner"
|
43
42
|
gem "formulaic"
|
44
43
|
gem "launchy"
|
44
|
+
gem "poltergeist"
|
45
45
|
gem "shoulda-matchers", require: false
|
46
46
|
gem "timecop"
|
47
47
|
gem "webmock"
|
data/templates/bin/setup.erb
CHANGED
@@ -18,6 +18,13 @@ fi
|
|
18
18
|
# Set up database and add any development seed data
|
19
19
|
bundle exec rake db:setup dev:prime
|
20
20
|
|
21
|
+
# Get mailcatcher up and running
|
22
|
+
gem list -i mailcatcher || gem install mailcatcher
|
23
|
+
nc -z localhost 1025 || mailcatcher
|
24
|
+
|
25
|
+
# Install foreman
|
26
|
+
gem list -i foreman || gem install foreman
|
27
|
+
|
21
28
|
# Only if this isn't CI
|
22
29
|
# if [ -z "$CI" ]; then
|
23
30
|
# fi
|
@@ -3,15 +3,24 @@ require "webmock/rspec"
|
|
3
3
|
# http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
4
4
|
RSpec.configure do |config|
|
5
5
|
config.expect_with :rspec do |expectations|
|
6
|
-
expectations.
|
6
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
7
7
|
end
|
8
8
|
|
9
9
|
config.mock_with :rspec do |mocks|
|
10
|
-
mocks.syntax = :expect
|
11
10
|
mocks.verify_partial_doubles = true
|
12
11
|
end
|
13
12
|
|
13
|
+
config.filter_run :focus
|
14
|
+
config.run_all_when_everything_filtered = true
|
15
|
+
config.disable_monkey_patching!
|
16
|
+
|
17
|
+
if config.files_to_run.one?
|
18
|
+
config.default_formatter = 'doc'
|
19
|
+
end
|
20
|
+
|
14
21
|
config.order = :random
|
22
|
+
|
23
|
+
Kernel.srand config.seed
|
15
24
|
end
|
16
25
|
|
17
26
|
WebMock.disable_net_connect!(allow_localhost: true)
|
data/yupi.gemspec
CHANGED
@@ -27,7 +27,6 @@ to build something amazing; don't use it if you like missing deadlines.
|
|
27
27
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
28
28
|
s.version = Yupi::VERSION
|
29
29
|
|
30
|
-
s.add_dependency 'bitters', '~> 1.0.0'
|
31
30
|
s.add_dependency 'bundler', '~> 1.3'
|
32
31
|
s.add_dependency 'rails', Yupi::RAILS_VERSION
|
33
32
|
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yupi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- anadea
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03
|
11
|
+
date: 2015-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bitters
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.0
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.0
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: bundler
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,7 +123,6 @@ files:
|
|
137
123
|
- templates/config/newrelic.yml.erb
|
138
124
|
- templates/config/postgresql_database.yml.erb
|
139
125
|
- templates/config/rails_secrets.yml
|
140
|
-
- templates/config/smtp.rb
|
141
126
|
- templates/dot_gitignore
|
142
127
|
- templates/spec/rails_helper.rb
|
143
128
|
- templates/spec/spec_helper.rb
|
data/templates/config/smtp.rb
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
SMTP_SETTINGS = {
|
2
|
-
address: ENV.fetch("SMTP_ADDRESS"), # example: "smtp.sendgrid.net"
|
3
|
-
authentication: :plain,
|
4
|
-
domain: ENV.fetch("SMTP_DOMAIN"), # example: "heroku.com"
|
5
|
-
enable_starttls_auto: true,
|
6
|
-
password: ENV.fetch("SMTP_PASSWORD"),
|
7
|
-
port: "587",
|
8
|
-
user_name: ENV.fetch("SMTP_USERNAME")
|
9
|
-
}
|