Skip to content

Commit

Permalink
Added Install generator
Browse files Browse the repository at this point in the history
#5

Why:

So that we can run one command to unpack
everything that the CMS needs to run.

This change addresses the need by:

Add gem dependencies to the gemspec file
and adding a rails generator to run the
active admin install.
  • Loading branch information
Mrjaco12 committed Sep 25, 2015
1 parent 05c9f3e commit f389ebb
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 10 deletions.
202 changes: 194 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,25 +1,211 @@
PATH
remote: .
specs:
atomic_cms (0.0.1)
activeadmin (= 1.0.0.pre2)
angularjs-rails (~> 1.3, < 1.4)
atomic_assets (~> 0.0.4)
jquery-rails (~> 4.0, >= 4.0.3)
rails (~> 4.2)
redcarpet (~> 3.3)
slim-rails (~> 3.0)

GEM
remote: http://rubygems.org/
specs:
actionmailer (4.2.4)
actionpack (= 4.2.4)
actionview (= 4.2.4)
activejob (= 4.2.4)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.4)
actionview (= 4.2.4)
activesupport (= 4.2.4)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.4)
activesupport (= 4.2.4)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activeadmin (1.0.0.pre2)
arbre (~> 1.0, >= 1.0.2)
bourbon
coffee-rails
formtastic (~> 3.1)
formtastic_i18n
inherited_resources (~> 1.6)
jquery-rails
jquery-ui-rails
kaminari (~> 0.15)
rails (>= 3.2, < 5.0)
ransack (~> 1.3)
sass-rails
activejob (4.2.4)
activesupport (= 4.2.4)
globalid (>= 0.3.0)
activemodel (4.2.4)
activesupport (= 4.2.4)
builder (~> 3.1)
activerecord (4.2.4)
activemodel (= 4.2.4)
activesupport (= 4.2.4)
arel (~> 6.0)
activesupport (4.2.4)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
angularjs-rails (1.3.15)
arbre (1.0.3)
activesupport (>= 3.0.0)
arel (6.0.3)
atomic_assets (0.0.4)
draper (~> 2.1)
bourbon (4.2.5)
sass (~> 3.4)
thor (~> 0.19)
builder (3.2.2)
coffee-rails (4.1.0)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
diff-lcs (1.2.5)
rspec-core (3.3.1)
draper (2.1.0)
actionpack (>= 3.0)
activemodel (>= 3.0)
activesupport (>= 3.0)
request_store (~> 1.0)
erubis (2.7.0)
execjs (2.6.0)
formtastic (3.1.3)
actionpack (>= 3.2.13)
formtastic_i18n (0.4.1)
globalid (0.3.6)
activesupport (>= 4.1.0)
has_scope (0.6.0)
actionpack (>= 3.2, < 5)
activesupport (>= 3.2, < 5)
i18n (0.7.0)
inherited_resources (1.6.0)
actionpack (>= 3.2, < 5)
has_scope (~> 0.6.0.rc)
railties (>= 3.2, < 5)
responders
jquery-rails (4.0.5)
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.5)
railties (>= 3.2.16)
json (1.8.3)
kaminari (0.16.3)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.6.2)
mini_portile (0.6.2)
minitest (5.8.1)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
polyamorous (1.2.0)
activerecord (>= 3.0)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.4)
actionmailer (= 4.2.4)
actionpack (= 4.2.4)
actionview (= 4.2.4)
activejob (= 4.2.4)
activemodel (= 4.2.4)
activerecord (= 4.2.4)
activesupport (= 4.2.4)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.4)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.7)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.2)
loofah (~> 2.0)
railties (4.2.4)
actionpack (= 4.2.4)
activesupport (= 4.2.4)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
ransack (1.7.0)
actionpack (>= 3.0)
activerecord (>= 3.0)
activesupport (>= 3.0)
i18n
polyamorous (~> 1.2)
redcarpet (3.3.2)
request_store (1.2.0)
responders (2.1.0)
railties (>= 4.2.0, < 5)
rspec-core (3.3.2)
rspec-support (~> 3.3.0)
rspec-expectations (3.3.0)
rspec-expectations (3.3.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.3.0)
rspec-mocks (3.3.0)
rspec-mocks (3.3.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.3.0)
rspec-support (3.3.0)
sass (3.4.18)
sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
slim (3.0.6)
temple (~> 0.7.3)
tilt (>= 1.3.3, < 2.1)
slim-rails (3.0.1)
actionmailer (>= 3.1, < 5.0)
actionpack (>= 3.1, < 5.0)
activesupport (>= 3.1, < 5.0)
railties (>= 3.1, < 5.0)
slim (~> 3.0)
sprockets (3.3.4)
rack (~> 1.0)
sprockets-rails (2.3.3)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
temple (0.7.6)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1)
tzinfo (1.2.2)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
rspec-core (~> 3.3.0)
rspec-expectations (~> 3.3.0)
rspec-mocks (~> 3.3.0)
rspec-support (~> 3.3.0)
atomic_cms!
rspec-core (~> 3.3)
rspec-expectations (~> 3.3)
rspec-mocks (~> 3.3)
rspec-support (~> 3.3)

BUNDLED WITH
1.10.3
1.10.6
7 changes: 5 additions & 2 deletions atomic_cms.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ Gem::Specification.new do |s|
# s.homepage = 'http://rubygems.org/gems/atomic_cms'
# s.license = 'MIT'

s.add_dependency 'activeadmin'
s.add_dependency 'rails', '~> 4.2'
s.add_dependency 'activeadmin', '1.0.0.pre1'
s.add_dependency 'angularjs-rails', '~> 1.3', '< 1.4'
# s.add_dependency 'atomic_assets', '~> 0.0.4'
s.add_dependency 'atomic_assets', '~> 0.0.4'
s.add_dependency 'jquery-rails', '~> 4.0', '>= 4.0.3'
s.add_dependency 'redcarpet', '~> 3.3'
s.add_dependency 'slim-rails', '~> 3.0'

s.add_development_dependency 'rspec-core', '~> 3.3'
s.add_development_dependency 'rspec-expectations', '~> 3.3'
Expand Down
8 changes: 8 additions & 0 deletions lib/generators/install_cms_generator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class InstallCmsGenerator < Rails::Generators::Base
def install_active_admin
command = 'bin/rails generate active_admin:install'
command += ' --skip-users' unless Gem.loaded_specs.keys.include?('devise')

run command
end
end

0 comments on commit f389ebb

Please sign in to comment.