comable_backend 0.4.1 → 0.4.2

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: 99b392fa967786593a01f9fd3f6f3220ccc4f9d1
4
- data.tar.gz: 1b0c10eb4e1c8602084e30af09cd8827086f626a
3
+ metadata.gz: 76ffc0c5bdb8d0ae0bc2883bbd4229e3e461ebbf
4
+ data.tar.gz: 8997356a6594946a0d5098faedb16321a0b79516
5
5
  SHA512:
6
- metadata.gz: 1957e2efe162941bf28743107a76774d65e6b6f5ba3a560c72c8b22c42efc45b4c4bf680cdbeb6e082e557ebdab36c950fc537fd9c45b19a08fe8d6236e0ff75
7
- data.tar.gz: 1bbf24c6eaa5ea90d78cdd30a0882653e9dc1e797544024e07da3245d8b9d0b9d5931a227a76d73027738b7afca9c4f7f13baa199ba4d7e3af911593cbaaa6b4
6
+ metadata.gz: 78992e36428c8afafee468b37d8f2ea8931ca2fc1f573e29209a622c9f776f56f5094e6f4d39b1299482a0f820fdcb288a70b4abb8dc125bd3d136df6fb9e08a
7
+ data.tar.gz: a68ef71f0aeccb6b228740c6e48a6e668d449aa93173d80149899d10fed731344395cf1401778e13c12e2a3d5fbbc239bb411f39c2b00f415b158f7e86680281
data/Rakefile CHANGED
@@ -16,6 +16,11 @@ end
16
16
  APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__)
17
17
  load 'rails/tasks/engine.rake'
18
18
 
19
+ def command(string)
20
+ puts string
21
+ system string
22
+ end
23
+
19
24
  if File.exist?('comable.gemspec')
20
25
  $LOAD_PATH.unshift File.expand_path('..', __FILE__)
21
26
  require 'tasks/release'
@@ -45,9 +50,7 @@ if File.exist?('comable.gemspec')
45
50
  namespace :migrate do
46
51
  task :all do
47
52
  FRAMEWORKS.each do |framework|
48
- command = "cd #{framework} && test -d db && bundle exec rake db:migrate RAILS_ENV=#{Rails.env}"
49
- puts command
50
- system command
53
+ command "cd #{framework} && test -d db/migrate && bundle exec rake db:migrate RAILS_ENV=#{Rails.env}"
51
54
  end
52
55
  end
53
56
  end
@@ -59,11 +62,8 @@ if File.exist?('comable.gemspec')
59
62
 
60
63
  namespace :reset do
61
64
  task :all do
62
- FRAMEWORKS.each do |framework|
63
- command = "cd #{framework} && test -d db && bundle exec rake db:migrate:reset RAILS_ENV=#{Rails.env}"
64
- puts command
65
- system command
66
- end
65
+ command "bundle exec rake db:drop db:create RAILS_ENV=#{Rails.env}"
66
+ Rake::Task['db:migrate'].invoke
67
67
  end
68
68
  end
69
69
  end
@@ -90,6 +90,7 @@ end
90
90
  namespace :brakeman do
91
91
  task :all do
92
92
  FRAMEWORKS.each do |framework|
93
+ next unless File.directory?("#{framework}/app")
93
94
  sh "brakeman --exit-on-warn --ignore-config .brakeman.ignore #{framework}"
94
95
  end
95
96
  end
@@ -39,7 +39,7 @@ module Comable
39
39
  end
40
40
 
41
41
  def after_access_denied_path
42
- if current_comable_user.user?
42
+ if current_comable_user.customer?
43
43
  comable.root_path
44
44
  else
45
45
  comable.admin_root_path
@@ -1,8 +1,8 @@
1
1
  footer
2
2
  ul.list-inline
3
3
  li
4
- | Comable v#{Comable::VERSION::STRING}
4
+ | #{Comable.app_name} v#{Comable.version}
5
5
  li
6
- = link_to 'GitHub', 'https://github.com/hyoshida/comable'
6
+ = link_to 'GitHub', Comable.homepage
7
7
  li
8
- = link_to 'License', 'https://github.com/hyoshida/comable/blob/master/MIT-LICENSE'
8
+ = link_to 'License', Comable.license
@@ -2,7 +2,7 @@ header.navbar.navbar-default.navbar-fixed-top
2
2
  .container-fluid
3
3
  .navbar-header
4
4
  = link_to comable.admin_root_path, class: 'navbar-brand' do
5
- | Comable
5
+ = Comable.app_name
6
6
 
7
7
  button.navbar-toggle type="button" data-click="sidebar-toggled" onclick='$(".sidebar").toggleClass("sidebar-open");'
8
8
  span.icon-bar
@@ -4,7 +4,7 @@
4
4
  .comable-signin
5
5
  .comable-signin-heading
6
6
  h1.page-header
7
- | Comable
7
+ = Comable.app_name
8
8
  small
9
9
  | provides a simple way to add e-commerce features.
10
10
 
@@ -3,7 +3,7 @@ html
3
3
  head
4
4
  meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"
5
5
  title
6
- | Comable
6
+ = Comable.app_name
7
7
  = yield :head
8
8
  = stylesheet_link_tag 'comable/admin/application', media: 'all'
9
9
  = javascript_include_tag 'comable/admin/application'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comable_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - YOSHIDA Hiroki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: comable_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.1
19
+ version: 0.4.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.4.1
26
+ version: 0.4.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -380,7 +380,7 @@ files:
380
380
  - lib/comable/backend/engine.rb
381
381
  - lib/comable_backend.rb
382
382
  - lib/tasks/comable_backend_tasks.rake
383
- homepage: https://github.com/hyoshida/comable#comable
383
+ homepage: https://github.com/appirits/comable#comable
384
384
  licenses:
385
385
  - MIT
386
386
  metadata: {}
@@ -400,7 +400,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
400
400
  version: '0'
401
401
  requirements: []
402
402
  rubyforge_project:
403
- rubygems_version: 2.4.5
403
+ rubygems_version: 2.2.2
404
404
  signing_key:
405
405
  specification_version: 4
406
406
  summary: Provide backend functions for Comable.